@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Nunito+Sans:wght@400;600;700&display=swap");

:root {
  --bg: #f4eee3;
  --surface: #fffdf8;
  --surface-soft: #f8f1e6;
  --text: #2f241b;
  --muted: #67594b;
  --brand: #8f5b23;
  --brand-deep: #6c4217;
  --line: #dcc7ad;
  --accent: #d39d55;
  --ok-bg: #edf8ee;
  --ok-text: #1f5f2a;
  --err-bg: #fdeeee;
  --err-text: #8c2d2d;
  --max: 1120px;
  --radius: 16px;
  --shadow: 0 14px 34px rgba(39, 29, 20, 0.09);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Nunito Sans", "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.7;
  background:
    radial-gradient(circle at 14% 6%, rgba(211, 157, 85, 0.17), transparent 36%),
    radial-gradient(circle at 86% 2%, rgba(143, 91, 35, 0.14), transparent 34%),
    linear-gradient(180deg, #f3ebdf 0%, #f8f3e8 55%, #fdfaf4 100%);
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

a {
  color: var(--brand-deep);
}

a:hover,
a:focus {
  color: var(--brand);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(253, 250, 244, 0.95);
  backdrop-filter: blur(8px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
}

.brand {
  text-decoration: none;
  color: var(--text);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.58rem;
  font-weight: 700;
}

.brand small {
  display: block;
  color: var(--muted);
  font-family: "Nunito Sans", "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 10px;
  padding: 0.35rem 0.7rem;
  font-size: 0.95rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  color: var(--text);
  padding: 0.45rem 0.66rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a.active {
  border-color: var(--line);
  background: #fff;
}

.hero {
  padding: 4.2rem 0 2.6rem;
}

.hero h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

.hero p {
  margin: 0;
  max-width: 74ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.section {
  padding: 1.6rem 0 2.35rem;
}

.panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1rem, 3vw, 1.7rem);
  overflow: hidden;
}

.panel::after {
  content: "";
  position: absolute;
  inset: auto -80px -110px auto;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(211, 157, 85, 0.17), transparent 70%);
  pointer-events: none;
}

.panel h2 {
  margin-top: 0;
  margin-bottom: 0.65rem;
  font-size: clamp(1.45rem, 3.3vw, 2rem);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  grid-column: span 6;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  transform: translateY(8px);
  opacity: 0;
  animation: reveal 0.55s ease forwards;
}

.card:nth-child(2) { animation-delay: 0.05s; }
.card:nth-child(3) { animation-delay: 0.1s; }
.card:nth-child(4) { animation-delay: 0.15s; }
.card:nth-child(5) { animation-delay: 0.2s; }
.card:nth-child(6) { animation-delay: 0.25s; }

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.5rem;
}

.card p {
  margin-top: 0;
  color: var(--muted);
}

.card a {
  font-weight: 700;
}

.list {
  margin: 0;
  padding-left: 1.1rem;
}

.list li {
  margin-bottom: 0.5rem;
}

.issue-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1rem;
}

.cta {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  background: var(--brand);
  color: #fff;
  border: 1px solid var(--brand);
  padding: 0.66rem 1.02rem;
  border-radius: 10px;
  font-weight: 700;
}

.btn:hover,
.btn:focus {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
  color: #fff;
}

.btn.alt {
  background: #fff;
  color: var(--brand-deep);
  border-color: var(--line);
}

.btn.alt:hover,
.btn.alt:focus {
  background: var(--surface-soft);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field label {
  font-weight: 700;
}

.field input,
.field textarea,
.field select {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.75rem;
  font: inherit;
  background: #fff;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field.full {
  grid-column: 1 / -1;
}

.form-message {
  margin-top: 0.9rem;
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  font-weight: 700;
  display: none;
}

.form-message.show {
  display: block;
}

.form-message.success {
  background: var(--ok-bg);
  color: var(--ok-text);
  border: 1px solid #9fd6a3;
}

.form-message.error {
  background: var(--err-bg);
  color: var(--err-text);
  border: 1px solid #e6aaaa;
}

.form-hint {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.6rem;
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: #efe4d3;
}

.footer-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 0;
}

.footer-wrap p {
  margin: 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus {
  text-decoration: underline;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .card {
    grid-column: span 12;
  }

  .issue-layout {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 0.8rem;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    background: #fff;
    border: 1px solid var(--line);
  }

  .footer-wrap {
    flex-direction: column;
  }
}
/* Reusable citations component */
.citations-section {
  padding-top: 0.2rem;
}

.citation-panel {
  background: linear-gradient(180deg, #fffaf2 0%, #fffdf8 100%);
}

.citation-panel h2 {
  margin-bottom: 0.35rem;
}

.citation-intro {
  margin-top: 0;
  color: var(--muted);
}

.citation-list {
  margin: 0.9rem 0 0;
  padding-left: 1.15rem;
}

.citation-list li {
  margin-bottom: 0.55rem;
}

.citation-list a {
  word-break: break-word;
}
