/* FamiliaBase — legal & landing pages
   Warm editorial: cream paper, warm ink, terracotta accents.
   Fraunces (display) + Newsreader (long-form body). */

:root {
  --paper: #FAF7F2;
  --paper-deep: #F1EAE0;
  --ink: #2B2118;
  --ink-muted: #6B5D4F;
  --ink-faint: #9C8D7C;
  --terracotta: #C5502C;
  --terracotta-deep: #9E4527;
  --terracotta-wash: #F7E8E1;
  --line: #E4DACB;
  --green: #4E7A5A;
  --max: 46rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: 1.0625rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  /* faint paper grain */
  background-image: radial-gradient(rgba(43, 33, 24, 0.028) 1px, transparent 1px);
  background-size: 22px 22px;
}

::selection { background: var(--terracotta-wash); color: var(--terracotta-deep); }

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

.site-head {
  border-top: 6px solid var(--terracotta);
  border-bottom: 1px solid var(--line);
  background: rgba(250, 247, 242, 0.92);
}

.site-head .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark span { color: var(--terracotta); }

.head-links { display: flex; gap: 1.4rem; }
.head-links a {
  font-family: "Fraunces", Georgia, serif;
  font-size: 0.92rem;
  color: var(--ink-muted);
  text-decoration: none;
}
.head-links a:hover, .head-links a[aria-current="page"] { color: var(--terracotta-deep); }

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

.doc {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.2rem 1.5rem 5rem;
}

.doc-kicker {
  font-family: "Fraunces", Georgia, serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.doc h1 {
  font-family: "Fraunces", Georgia, serif;
  font-optical-sizing: auto;
  font-size: clamp(2.3rem, 6vw, 3.4rem);
  font-weight: 640;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0.45rem 0 1rem;
}

.doc-meta {
  color: var(--ink-faint);
  font-style: italic;
  margin-bottom: 2.4rem;
}

.lede {
  font-size: 1.22rem;
  line-height: 1.6;
  color: var(--ink-muted);
  border-left: 3px solid var(--terracotta);
  padding-left: 1.15rem;
  margin-bottom: 3rem;
}

/* table of contents */
.toc {
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.4rem 1.6rem;
  margin-bottom: 3.2rem;
}
.toc h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.7rem;
}
.toc ol {
  columns: 2;
  column-gap: 2.5rem;
  padding-left: 1.2rem;
  font-size: 0.95rem;
}
.toc li { margin-bottom: 0.3rem; break-inside: avoid; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--terracotta-deep); text-decoration: underline; }

/* sections */
.doc section { margin-bottom: 3rem; }

.doc h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 620;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 0.9rem;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  scroll-margin-top: 2rem;
}
.doc h2 .num {
  font-size: 1rem;
  font-weight: 700;
  color: var(--terracotta);
  font-variant-numeric: tabular-nums;
}

.doc h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.12rem;
  font-weight: 620;
  margin: 1.5rem 0 0.5rem;
}

.doc p { margin-bottom: 0.9rem; }
.doc ul, .doc ol { padding-left: 1.4rem; margin-bottom: 0.9rem; }
.doc li { margin-bottom: 0.45rem; }
.doc li::marker { color: var(--terracotta); }

.doc a { color: var(--terracotta-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.doc strong { font-weight: 640; }

/* plain-language summary boxes */
.inshort {
  background: var(--terracotta-wash);
  border-radius: 12px;
  padding: 0.95rem 1.25rem;
  margin: 0 0 1.1rem;
  font-size: 0.98rem;
  line-height: 1.55;
}
.inshort b {
  font-family: "Fraunces", Georgia, serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  display: block;
  margin-bottom: 0.25rem;
}

/* data tables */
.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1rem 0 1.2rem;
}
.doc th {
  font-family: "Fraunces", Georgia, serif;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  color: var(--ink-muted);
  border-bottom: 2px solid var(--terracotta);
  padding: 0.5rem 0.75rem 0.5rem 0;
}
.doc td {
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 0.75rem 0.55rem 0;
  vertical-align: top;
}

/* callout for placeholders that must be completed */
.fillme {
  background: #FFF6D9;
  border: 1px dashed #C9A227;
  border-radius: 10px;
  padding: 0.8rem 1.1rem;
  font-size: 0.92rem;
  color: #6B5A17;
  margin: 1rem 0;
}

hr.sep {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 3rem 0;
}

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

.site-foot {
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
}
.site-foot .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.6rem 1.5rem 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  align-items: baseline;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--ink-muted);
}
.site-foot a { color: var(--ink-muted); }
.site-foot a:hover { color: var(--terracotta-deep); }

/* ---------- landing ---------- */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 6rem 1.5rem 4.5rem;
  text-align: center;
}
.hero .mark {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.8rem, 9vw, 4.6rem);
  font-weight: 680;
  letter-spacing: -0.025em;
  line-height: 1.02;
}
.hero .mark span { color: var(--terracotta); }
.hero .tag {
  font-size: 1.3rem;
  color: var(--ink-muted);
  font-style: italic;
  margin: 1.1rem auto 0;
  max-width: 30rem;
}
.hero .soon {
  display: inline-block;
  margin-top: 2.2rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  background: var(--terracotta-wash);
  border-radius: 999px;
  padding: 0.6rem 1.5rem;
}
.hero-cards {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
}
.hero-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem 1.4rem;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.hero-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(43, 33, 24, 0.09);
}
.hero-card h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}
.hero-card p { font-size: 0.95rem; color: var(--ink-muted); line-height: 1.5; }

/* ---------- small screens & print ---------- */

@media (max-width: 560px) {
  .toc ol { columns: 1; }
  .head-links { gap: 1rem; }
}

@media print {
  body { background: #fff; font-size: 10.5pt; }
  .site-head, .site-foot, .toc { display: none; }
  .doc { padding: 0; max-width: none; }
  .inshort { border: 1px solid #ccc; background: #fff; }
  .doc a { color: inherit; text-decoration: none; }
}
