/* Sunrise HQ — site styles. No framework. Mobile first. */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #FBF6EC;
  --sand: #F3EAD8;
  --line: #E3D7C1;
  --ink: #1F1A14;
  --ink-soft: #4A4136;
  --muted: #6B5F50;
  --amber: #D08A1E;      /* decorative only: marks, rules, the sun */
  --amber-deep: #8A4F08; /* text-safe accent: links, eyebrows */
  --dawn: #E9A440;       /* accent on ink backgrounds */
  --tone: var(--amber-deep); /* per-page specialist tone */

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --measure: 38rem;
  --wide: 70rem;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --space: clamp(3.5rem, 9vw, 6.5rem);
}

.theme-steel { --tone: #3B4650; }
.theme-sage  { --tone: #4F6355; }
.theme-magenta { --tone: #A3166F; } /* Sunrise Content: labels, rules, numbers only. 6.72:1 on Paper, 6.06:1 on Sand */

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
}

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

a { color: var(--amber-deep); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--ink); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--ink); color: var(--paper);
  padding: 0.6rem 1rem; z-index: 10; text-decoration: none;
}
.skip:focus { top: 1rem; color: var(--paper); }

.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 560;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 6.4vw, 4.1rem); font-variation-settings: "opsz" 48; font-weight: 540; letter-spacing: 0; }
@media (min-width: 48rem) { h1 { font-variation-settings: "opsz" 144; font-weight: 520; letter-spacing: -0.01em; } }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-variation-settings: "opsz" 40; }
@media (min-width: 48rem) { h2 { font-variation-settings: "opsz" 96; } }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.55rem); font-variation-settings: "opsz" 36; }
p { margin: 0 0 1.1em; max-width: var(--measure); }
.lede { font-size: clamp(1.2rem, 2.3vw, 1.4rem); line-height: 1.5; color: var(--ink-soft); max-width: 36rem; }
.small, small { font-size: 0.95rem; color: var(--muted); }

.eyebrow {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.82rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--tone); margin: 0 0 1.4rem;
}
.eyebrow::before { content: ""; width: 2rem; height: 2px; background: var(--amber); flex: none; }
.theme-steel .eyebrow::before, .theme-sage .eyebrow::before, .theme-magenta .eyebrow::before { background: var(--tone); }

.parent-line { font-size: 0.95rem; color: var(--muted); margin-top: -0.4rem; }
.parent-line a { color: inherit; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem 2rem; padding-top: 1rem; padding-bottom: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-logo { display: block; height: 2.4rem; width: auto; } /* Tile lockup (10 Nov 2026): about 149 x 38 px on phones */
@media (min-width: 48rem) { .brand-logo { height: 2.75rem; } } /* about 171 x 44 px on desktop */

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.4rem; }
.site-nav a {
  display: inline-block; padding: 0.35rem 0; color: var(--ink-soft);
  text-decoration: none; font-weight: 550; font-size: 1.02rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--line); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--amber); }

/* ---------- Sections ---------- */
main { display: block; }
.hero { padding: clamp(3.5rem, 10vw, 7rem) 0 var(--space); position: relative; overflow: hidden; }
.section { padding: var(--space) 0; border-top: 1px solid var(--line); }
.section--sand { background: var(--sand); border-top: 0; }
.section-head { margin-bottom: 2.5rem; }
.section-head p { color: var(--ink-soft); }

/* home hero sunrise: one quiet half-disc on a horizon rule */
.horizon { position: relative; height: clamp(3.5rem, 8vw, 5.5rem); margin-top: 3rem; max-width: var(--wide); }
.horizon::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ink);
}
.horizon::after {
  content: ""; position: absolute; bottom: 2px; right: 18%;
  --sun: clamp(6.5rem, 16vw, 10rem);
  width: var(--sun); height: calc(var(--sun) / 2); border-radius: var(--sun) var(--sun) 0 0; background: var(--amber);
}

/* Sol character version (home only): Sol stands on the horizon where the plain sun was */
.horizon--sol::after { display: none; }
.horizon-sol {
  position: absolute; bottom: 2px; right: calc(18% + 1.5rem);
  height: clamp(4.25rem, 14vw, 6rem); width: auto; display: block;
}

/* ---------- Doors (ruled editorial list) ---------- */
.doors { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.door { border-top: 2px solid var(--ink); padding: 1.75rem 0 2.25rem; display: grid; gap: 0.5rem; }
.door:last-child { border-bottom: 1px solid var(--line); }
.door-label { font-size: 0.82rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber-deep); }
.door h3 { margin: 0.1rem 0 0.4rem; }
.door h3 a { color: var(--ink); text-decoration: none; }
.door h3 a:hover { text-decoration: underline; text-decoration-color: var(--amber); }
.door p { color: var(--ink-soft); margin-bottom: 0.6rem; }
.door .more { font-weight: 600; }
.status {
  display: inline-block; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft);
  border: 1px solid var(--line); background: var(--paper); border-radius: 99px; padding: 0.1rem 0.7rem;
  justify-self: start;
}
.sublinks { list-style: none; margin: 0.2rem 0 0; padding: 0; display: grid; gap: 0.3rem; }
.sublinks a { font-weight: 600; }

@media (min-width: 52rem) {
  .doors { grid-template-columns: repeat(3, 1fr); column-gap: 2.5rem; }
  .door:last-child { border-bottom: 0; }
  .door { align-content: start; }
}

/* ---------- Columns and lists ---------- */
.cols { display: grid; gap: 2.25rem; }
.cols--aside { gap: 0.5rem 4rem; }
@media (min-width: 48rem) {
  .cols--2 { grid-template-columns: 1fr 1fr; column-gap: 3.5rem; }
  .cols--3 { grid-template-columns: repeat(3, 1fr); column-gap: 2.5rem; }
  .cols--aside { grid-template-columns: 1.1fr 1.6fr; }
}
.col h3 { margin-bottom: 0.5rem; }
.col p { color: var(--ink-soft); }
.num { font-family: var(--serif); font-variation-settings: "opsz" 144; font-size: 2.6rem; line-height: 1; color: var(--amber); display: block; margin-bottom: 0.6rem; }
.theme-steel .num, .theme-sage .num, .theme-magenta .num { color: var(--tone); }

.ticks { list-style: none; padding: 0; margin: 0 0 1.5rem; max-width: var(--measure); }
.ticks li { position: relative; padding-left: 1.6rem; margin-bottom: 0.75rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 0.8rem; height: 2px; background: var(--amber); }
.theme-steel .ticks li::before, .theme-sage .ticks li::before, .theme-magenta .ticks li::before { background: var(--tone); }

.example {
  font-family: var(--serif); font-style: normal; font-variation-settings: "opsz" 36;
  font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.35;
  border-left: 3px solid var(--amber); padding: 0.2rem 0 0.2rem 1.25rem; margin: 1.5rem 0 2rem; max-width: 34rem;
}
.theme-steel .example, .theme-sage .example, .theme-magenta .example { border-left-color: var(--tone); }

.note {
  background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--amber);
  padding: 1.25rem 1.5rem; max-width: 44rem; margin: 0;
}
.note p:last-child { margin-bottom: 0; }
.note strong { font-weight: 650; }

.closing { margin: 2.5rem 0 0; max-width: var(--measure); color: var(--ink-soft); }

/* ---------- Contact band ---------- */
.contact-band { background: var(--ink); color: var(--paper); padding: var(--space) 0; }
.contact-band h2 { color: var(--paper); }
.contact-band p { color: #E8DECC; }
.contact-band a { color: var(--dawn); }
.contact-band a:hover { color: var(--paper); }
.contact-band .email {
  font-family: var(--serif); font-variation-settings: "opsz" 72; font-weight: 520;
  font-size: clamp(1.5rem, 5vw, 2.6rem); line-height: 1.2; overflow-wrap: anywhere;
  text-decoration-thickness: 2px;
}

.button {
  display: inline-block; background: var(--ink); color: var(--paper); text-decoration: none;
  font-weight: 650; padding: 0.8rem 1.3rem; border-radius: 3px; border: 2px solid var(--ink);
}
.button:hover { background: var(--paper); color: var(--ink); }
.button--ghost { background: transparent; color: var(--ink); }
.button--ghost:hover { background: var(--ink); color: var(--paper); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; margin-top: 2rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 3rem 0 2.5rem; font-size: 1rem; color: var(--ink-soft); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { font-family: var(--sans); font-size: 0.82rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.site-footer a { color: var(--ink); }
.site-footer .brand { margin-bottom: 0.8rem; }
.site-footer .legal { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--muted); max-width: none; }

.footer-brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.8rem; }
.site-footer .footer-brand .brand { margin-bottom: 0; }
.footer-sol { height: 2.1rem; width: auto; flex: none; }
.site-footer .brand-logo { height: 2.25rem; }

/* ---------- 404 ---------- */
.notfound { padding: clamp(4rem, 14vw, 9rem) 0; }

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

@media print {
  .site-nav, .skip, .horizon { display: none; }
  .contact-band { background: none; color: var(--ink); }
  .contact-band h2, .contact-band p, .contact-band a { color: var(--ink); }
}
.actions + .small { margin-top: 1.25rem; }

/* Sunrise Content team: whole portrait shown, plain rounded square, no effects */
.person .portrait { display: block; width: 112px; height: 112px; border-radius: 14px; margin: 0 0 1rem; }
.person h3 { margin-bottom: 0.2rem; }
.person .role { font-size: 0.95rem; color: var(--muted); margin: 0 0 0.75rem; }
.team-note { margin: 2rem 0 0; }
