/* ============================================================
   Annabanna — legal shell site
   Token system:
   Color   — paper #FAF7F2, ink #211D2B, plum #5C2A4D (headers/links),
             gold #B8874A (accent/rules), muted #6B6577 (secondary text)
   Type    — Fraunces (display, editorial serif) / Inter (body, utility)
   Layout  — single reading column, quiet sidebar nav on wide screens
   Signature — a small hand-tied "knot" mark beside the wordmark,
             and a single gold thread-rule under the active nav item
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600&display=swap');

:root {
  --paper: #FAF7F2;
  --paper-dim: #F2EEE6;
  --ink: #211D2B;
  --ink-soft: #423C4E;
  --muted: #726C7E;
  --plum: #5C2A4D;
  --plum-dim: #7A4468;
  --gold: #B8874A;
  --gold-soft: #E4D3B4;
  --line: #E4DED2;
  --max-w: 46rem;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--plum);
  text-decoration-color: var(--gold-soft);
  text-underline-offset: 3px;
}
a:hover { color: var(--plum-dim); text-decoration-color: var(--gold); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--plum);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.site-header-inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.4rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}

.wordmark svg { flex-shrink: 0; }

.wordmark-text {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.wordmark-text .dot { color: var(--gold); }

nav.top-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

nav.top-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
}

nav.top-nav a:hover,
nav.top-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--gold);
}

/* ---------- layout ---------- */

main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.6rem;
}

h1.page-title {
  font-size: 2.1rem;
  margin: 0 0 0.4rem;
}

.updated {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 2.4rem;
}

main h2 {
  font-size: 1.25rem;
  margin: 2.4rem 0 0.8rem;
}

main h3 {
  font-size: 1.02rem;
  margin: 1.6rem 0 0.5rem;
}

main p, main li {
  color: var(--ink-soft);
}

main ul, main ol {
  padding-left: 1.3rem;
}

main li + li { margin-top: 0.4rem; }

.callout {
  background: var(--paper-dim);
  border-left: 3px solid var(--gold);
  padding: 1rem 1.2rem;
  border-radius: 0 6px 6px 0;
  margin: 1.6rem 0;
  font-size: 0.94rem;
}

.callout p:last-child { margin-bottom: 0; }

hr.thread {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2.8rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: 0.92rem;
}

th, td {
  text-align: left;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper-dim);
}

/* ---------- home / about ---------- */

.hero {
  padding: 4rem 1.5rem 3rem;
  max-width: 64rem;
  margin: 0 auto;
}

.hero-tag {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 30rem;
  margin: 0 0 1.2rem;
}

.hero p.lede {
  max-width: 34rem;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.card-grid {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.4rem;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- footer ---------- */

footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.2rem 1.5rem;
}

.site-footer-inner {
  max-width: 64rem;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer-inner nav {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.site-footer-inner a {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
}

.site-footer-inner a:hover { color: var(--plum); }

.copyright {
  font-size: 0.8rem;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

@media (max-width: 560px) {
  .site-header-inner { flex-direction: column; align-items: flex-start; }
  main { padding: 2rem 1.25rem 3.5rem; }
}
