/* Adé In The Books: site styles */

@font-face {
  font-family: "Onest";
  src: url("/assets/fonts/onest-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("/assets/fonts/literata-var.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("/assets/fonts/literata-var-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Brand palette: Ink and Linen */
  --ink: #13294B;
  --ink-deep: #0D1E38;
  --linen: #F3EEE4;
  --linen-deep: #EAE3D5;
  --paper: #FBF8F2;
  --brass: #BD9B60;
  --harbor: #34657F;
  --umber: #3D3935;
  --sand: #D6D2C4;
  --callout: #EFE6D2;

  /* Semantic roles (overridden on the cannabis page) */
  --c-bg: var(--linen);
  --c-bg-alt: var(--linen-deep);
  --c-surface: #FFFFFF;
  --c-text: var(--umber);
  --c-heading: var(--ink);
  --c-accent: var(--harbor);
  --c-rule: var(--sand);
  --c-dark: var(--ink);
  --c-dark-deep: var(--ink-deep);
  --c-on-dark: var(--linen);
  --c-on-dark-muted: var(--sand);
  --c-on-dark-accent: var(--brass);
  --c-btn: var(--ink);
  --c-btn-text: var(--linen);
  --c-callout: var(--callout);

  --font-serif: "Literata", Georgia, "Times New Roman", serif;
  --font-sans: "Onest", "Helvetica Neue", Helvetica, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 9vw, 7.5rem);
  --radius-card: 14px;
  --radius-btn: 6px;
  --grid-line: rgba(243, 238, 228, 0.05);
}

.theme-cannabis {
  --c-bg: #F2F2EE;
  --c-bg-alt: #E8EFE6;
  --c-text: #1C1C1A;
  --c-heading: #253D25;
  --c-accent: #4A7245;
  --c-rule: #D8D8D3;
  --c-dark: #253D25;
  --c-dark-deep: #1B2E1B;
  --c-on-dark: #FAFAF8;
  --c-on-dark-muted: #D8D8D3;
  --c-on-dark-accent: #C4A35A;
  --c-btn: #4A7245;
  --c-btn-text: #FFFFFF;
  --c-callout: #E8EFE6;
  --grid-line: rgba(250, 250, 248, 0.05);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.65;
  font-feature-settings: "tnum" 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--c-heading); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--c-accent); }

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: var(--linen);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-btn);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--linen); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Type */

h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--c-heading);
  font-weight: 400;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.75rem); line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 3.8vw, 3.375rem); line-height: 1.12; letter-spacing: -0.015em; }
h3 { font-size: clamp(1.375rem, 2vw, 1.6875rem); line-height: 1.25; font-weight: 500; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--c-accent); }

p { margin: 0; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.65; max-width: 38em; }
.prose { max-width: 40em; }
.prose p + p { margin-top: 1.25em; }
.prose strong { color: var(--c-heading); font-weight: 600; }

.eyebrow {
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--c-accent);
}

.stack { display: flex; flex-direction: column; gap: 1.25rem; }
.stack-lg { display: flex; flex-direction: column; gap: 1.75rem; }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-btn);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
.btn-primary { background: var(--c-btn); color: var(--c-btn-text); }
.btn-primary:hover { background: var(--c-heading); color: var(--c-btn-text); }
.btn-light { background: var(--c-on-dark); color: var(--c-dark); }
.btn-light:hover { background: #FFFFFF; color: var(--c-dark); }
.btn-ghost { border-color: rgba(243, 238, 228, 0.5); color: var(--c-on-dark); }
.btn-ghost:hover { border-color: var(--c-on-dark); color: var(--c-on-dark); background: rgba(243, 238, 228, 0.06); }
.btn-accent { background: var(--c-on-dark-accent); color: var(--c-dark); font-weight: 700; }
.btn-accent:hover { background: #D4B678; color: var(--c-dark); }
.btn-outline { border-color: var(--c-btn); color: var(--c-heading); background: var(--c-surface); }
.btn-outline:hover { background: var(--c-btn); color: var(--c-btn-text); }
.theme-cannabis .btn-primary:hover { background: #3C5F38; }
.theme-cannabis .btn-accent:hover { background: #D1B26E; }

.actions { display: flex; flex-wrap: wrap; gap: 0.875rem; }

.text-link {
  font-weight: 600;
  color: var(--c-heading);
  text-decoration: underline;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--sand);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 4.75rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand .seal { width: 40px; height: 40px; flex-shrink: 0; }
.wordmark {
  font-family: var(--font-sans);
  font-size: 1.3125rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
  line-height: 1;
}
.wordmark .wm-rest { font-weight: 500; }
.wm-e { position: relative; display: inline-block; }
.wm-e::after {
  content: "";
  position: absolute;
  left: 0.17em;
  top: 0.02em;
  width: 0.28em;
  height: 0.11em;
  background: var(--harbor);
  transform: rotate(-32deg);
}
.site-footer .wm-e::after { background: var(--brass); }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.5rem 0;
}
.site-nav a:hover { color: var(--harbor); }
.site-nav a[aria-current="page"] {
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--ink);
}
.site-nav .nav-cta {
  background: var(--ink);
  color: var(--linen);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-btn);
  font-weight: 600;
}
.site-nav .nav-cta:hover { background: var(--ink-deep); color: var(--linen); }
.site-nav .nav-cta[aria-current="page"] { box-shadow: none; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid var(--sand);
  border-radius: var(--radius-btn);
  padding: 0.6rem 0.9rem;
  font: 600 0.9375rem var(--font-sans);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle .bars { width: 18px; height: 12px; position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after, .nav-toggle .bars span {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: currentColor;
}
.nav-toggle .bars::before { top: 0; }
.nav-toggle .bars span { top: 5px; }
.nav-toggle .bars::after { bottom: 0; }

@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--sand);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
  }
  .site-nav li a { display: block; padding: 0.9rem 0; border-bottom: 1px solid var(--sand); font-size: 1.0625rem; }
  .site-nav a[aria-current="page"] { box-shadow: none; }
  .site-nav li:last-child a { margin-top: 1rem; border-bottom: 0; text-align: center; }
  .js .site-nav:not(.is-open) { display: none; }
}
@media (max-width: 1040px) {
  .no-js .site-nav { position: static; display: block; border: 0; }
  .no-js .nav-toggle { display: none; }
  .no-js .header-inner { flex-wrap: wrap; padding-bottom: 0.5rem; }
}
@media (max-width: 420px) {
  .wordmark { font-size: 1.125rem; }
  .brand .seal { width: 34px; height: 34px; }
}

/* Sections */

.section { padding: var(--section-y) 0; }
.section-alt { background: var(--c-bg-alt); }
.section-tight-top { padding-top: 0; }
.section-dark {
  background-color: var(--c-dark);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  color: var(--c-on-dark-muted);
}
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--c-on-dark); }
.section-dark h1 em, .section-dark h2 em { color: var(--c-on-dark-accent); }
.section-dark .eyebrow { color: var(--c-on-dark-accent); }
.section-dark a:not(.btn) { color: var(--c-on-dark-accent); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.split-top { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* Hero */

.hero { padding: clamp(4rem, 9vw, 7rem) 0 clamp(4.5rem, 10vw, 7.5rem); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.hero-grid.hero-single { grid-template-columns: minmax(0, 1fr); max-width: 52rem; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { color: var(--c-on-dark); }
.hero .lead { color: var(--c-on-dark-muted); }
.hero-light { background: var(--c-bg); }
.hero-light h1 { color: var(--c-heading); }
.hero-light .lead { color: var(--c-text); }

.pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid color-mix(in srgb, var(--c-on-dark-accent) 55%, transparent);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--c-on-dark-accent);
}
.pill::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.panel {
  background: var(--c-dark-deep);
  border: 1px solid color-mix(in srgb, var(--c-on-dark-accent) 35%, transparent);
  border-radius: 16px;
  padding: clamp(1.75rem, 3vw, 2.25rem);
}
.panel-head {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding-bottom: 1.1rem;
}
.panel-head .seal { width: 36px; height: 36px; }
.panel-title {
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--c-on-dark-accent);
}
.panel-list { list-style: none; margin: 0; padding: 0; }
.panel-list li {
  display: flex;
  gap: 0.875rem;
  padding: 0.95rem 0;
  border-top: 1px solid rgba(243, 238, 228, 0.14);
  color: var(--c-on-dark);
  font-size: 1.0625rem;
  line-height: 1.5;
}
.panel-list .tick { color: var(--c-on-dark-accent); flex-shrink: 0; margin-top: 0.2rem; }
.panel-status li { flex-direction: column; gap: 0.35rem; }
.panel-status strong { font-weight: 600; color: var(--c-on-dark); }
.panel-status span { color: var(--c-on-dark-muted); font-size: 0.9375rem; line-height: 1.6; }
.panel-note {
  padding-top: 1rem;
  border-top: 1px solid rgba(243, 238, 228, 0.14);
  font-size: 0.8125rem;
  color: var(--c-on-dark-muted);
}

/* Hero entrance: one orchestrated moment. Checks tick in like a close being completed. */
.js .hero-anim > * { opacity: 0; transform: translateY(10px); }
.js.is-ready .hero-anim > * {
  opacity: 1;
  transform: none;
  transition: opacity 600ms ease, transform 600ms ease;
}
.js.is-ready .hero-anim > *:nth-child(2) { transition-delay: 80ms; }
.js.is-ready .hero-anim > *:nth-child(3) { transition-delay: 160ms; }
.js.is-ready .hero-anim > *:nth-child(4) { transition-delay: 240ms; }
.js .panel-list .tick path { stroke-dasharray: 24; stroke-dashoffset: 24; }
.js.is-ready .panel-list .tick path { stroke-dashoffset: 0; transition: stroke-dashoffset 420ms ease; }
.js.is-ready .panel-list li:nth-child(1) .tick path { transition-delay: 500ms; }
.js.is-ready .panel-list li:nth-child(2) .tick path { transition-delay: 700ms; }
.js.is-ready .panel-list li:nth-child(3) .tick path { transition-delay: 900ms; }
.js.is-ready .panel-list li:nth-child(4) .tick path { transition-delay: 1100ms; }
.js.is-ready .panel-list li:nth-child(5) .tick path { transition-delay: 1300ms; }

@media (prefers-reduced-motion: reduce) {
  .js .hero-anim > *, .js.is-ready .hero-anim > * { opacity: 1; transform: none; transition: none; }
  .js .panel-list .tick path, .js.is-ready .panel-list .tick path { stroke-dashoffset: 0; transition: none; }
  .btn { transition: none; }
}

/* Check lists */

.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.check-list li {
  position: relative;
  padding-left: 1.85rem;
  font-size: 1rem;
  line-height: 1.55;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.22em;
  width: 1.1rem;
  height: 1.1rem;
  background-color: var(--c-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 10.5l4.2 4.2L17 5' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 10.5l4.2 4.2L17 5' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.check-list-lg li { font-size: 1.0625rem; }

/* Callout */

.callout {
  background: var(--c-callout);
  border-left: 4px solid var(--brass);
  border-radius: 0 12px 12px 0;
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2.25rem);
}
.theme-cannabis .callout { border-left-color: #C4A35A; }
.callout h3 { font-size: 1.375rem; margin-bottom: 0.75rem; }
.callout p { font-size: 1rem; line-height: 1.7; }

/* Cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr));
  gap: 1.25rem;
}
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .cards-3 { grid-template-columns: 1fr; max-width: 40rem; } }

.card {
  background: var(--c-surface);
  border: 1px solid var(--c-rule);
  border-radius: var(--radius-card);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}
.card-featured { border: 2px solid var(--c-accent); }
.card .icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--c-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-heading);
}
.card p { font-size: 1rem; line-height: 1.6; }
.card .card-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--c-accent);
}
.card .who { font-size: 0.9375rem; color: var(--c-text); }
.card .card-foot {
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid var(--c-rule);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--c-heading);
}
.card .card-link { margin-top: auto; padding-top: 0.25rem; font-weight: 600; font-size: 1rem; }
.card .btn { margin-top: auto; }

.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--c-rule);
}
.price .from { font-size: 0.875rem; font-weight: 600; color: var(--c-accent); }
.price .amount {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1;
  color: var(--c-heading);
  font-variant-numeric: lining-nums;
}
.price .unit { font-size: 0.875rem; color: var(--c-text); }

/* Steps (a real sequence, so numbered) */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  counter-reset: step;
}
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps li {
  counter-increment: step;
  padding-top: 1.5rem;
  border-top: 2px solid var(--brass);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.875rem;
  line-height: 1;
  color: var(--brass);
}
.steps h3 { font-size: 1.5rem; }
.steps p { font-size: 1rem; line-height: 1.6; }
.section-dark .steps p { color: var(--c-on-dark-muted); }
.steps-light li { border-top-color: var(--c-accent); }
.steps-light li::before { color: var(--c-accent); }

/* Rows: label and detail pairs */

.rows { border-top: 1px solid var(--c-heading); }
.row {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 1.5rem 3rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--c-rule);
}
.row h3 { font-size: 1.5rem; }
.row .row-price { margin-top: 0.4rem; font-size: 0.9375rem; font-weight: 600; color: var(--c-accent); }
.row p { font-size: 1.0625rem; line-height: 1.7; }
@media (max-width: 760px) { .row { grid-template-columns: 1fr; } }

.price-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--c-heading); }
.price-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--c-rule);
}
.price-list .item { font-weight: 600; color: var(--c-heading); }
.price-list .item small { display: block; font-weight: 400; color: var(--c-text); font-size: 0.9375rem; margin-top: 0.2rem; }
.price-list .val { font-family: var(--font-serif); font-size: 1.25rem; color: var(--c-heading); white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
@media (max-width: 560px) { .price-list li { flex-direction: column; gap: 0.25rem; } }

/* FAQ */

.faq { border-top: 1px solid var(--c-heading); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--c-rule); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.35rem 2.5rem 1.35rem 0;
  position: relative;
  font-family: var(--font-serif);
  font-size: 1.3125rem;
  color: var(--c-heading);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  width: 12px; height: 12px;
  border-right: 2px solid var(--c-accent);
  border-bottom: 2px solid var(--c-accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 200ms ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 1.5rem; max-width: 42em; font-size: 1.0625rem; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* Band and CTA */

.band {
  background: var(--paper);
  border: 1px solid var(--sand);
  border-radius: 16px;
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem 3rem;
  align-items: center;
}
.band h2 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); line-height: 1.3; }
.band p { font-size: 1rem; }
@media (max-width: 820px) { .band { grid-template-columns: 1fr; } }

.cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem 4rem;
  flex-wrap: wrap;
}
.cta .stack { max-width: 44rem; }
.cta p { font-size: 1.125rem; }

/* About */

.portrait {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--sand);
  aspect-ratio: 4 / 5;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }

.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--c-heading); }
.timeline li {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 0.5rem 3rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--c-rule);
}
.timeline strong { font-family: var(--font-serif); font-weight: 500; font-size: 1.25rem; color: var(--c-heading); }
.timeline span { font-size: 1.0625rem; }
@media (max-width: 760px) { .timeline li { grid-template-columns: 1fr; } }

.principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 3rem;
}
.principles div { border-top: 2px solid var(--brass); padding-top: 1.1rem; }
.principles h3 { font-size: 1.375rem; margin-bottom: 0.5rem; }
.principles p { font-size: 1.0625rem; }
@media (max-width: 700px) { .principles { grid-template-columns: 1fr; } }

/* Contact */

.contact-card {
  background: var(--c-surface);
  border: 1px solid var(--c-rule);
  border-radius: 16px;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--c-rule); }
.contact-lines li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--c-rule);
  font-size: 1.0625rem;
}
.contact-lines span:first-child { color: var(--c-accent); font-weight: 600; font-size: 0.9375rem; }

/* Legal page */

.legal { max-width: 44rem; }
.legal h2 { font-size: 1.5rem; margin: 2.25rem 0 0.6rem; }
.legal p { font-size: 1.0625rem; }

/* Footer */

.site-footer {
  background: var(--ink-deep);
  color: var(--sand);
  padding: clamp(3.5rem, 7vw, 4.5rem) 0 2.5rem;
  font-size: 0.9375rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 3fr));
  gap: 2.5rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand { color: var(--linen); }
.site-footer .brand:hover { color: var(--linen); }
.site-footer .brand .seal { width: 44px; height: 44px; }
.footer-col h2 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brass);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a { color: var(--linen); text-decoration: none; }
.footer-col a:hover { color: var(--brass); text-decoration: underline; }
.footer-about { display: flex; flex-direction: column; gap: 1.1rem; line-height: 1.7; }
.footer-legal {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(243, 238, 228, 0.15);
  display: flex;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  line-height: 1.7;
}
.footer-legal p { max-width: 54rem; }

/* 404 */

.notfound { min-height: 60vh; display: flex; align-items: center; }

/* Safety net: if the main script never runs, show the hero anyway */
@keyframes hero-fallback { to { opacity: 1; transform: none; } }
.js:not(.is-ready) .hero-anim > * { animation: hero-fallback 0s linear 2.5s forwards; }
.js:not(.is-ready) .panel-list .tick path { animation: tick-fallback 0s linear 2.5s forwards; }
@keyframes tick-fallback { to { stroke-dashoffset: 0; } }

.legal-date { margin-top: 1rem; }
.contact-card h2 { font-size: 1.75rem; }
