/* ==========================================================================
   Talk to Strangers — shared site stylesheet (built once, imported by every page)
   Color is the spec: SIGNAL_DIGITAL_ROLE_ASSIGNMENT__v2.md.
   Raw hex appears ONLY in :root. Everywhere else uses var(--token).
   Light text on dark grounds. No bright fills. No white text on gold.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Nunito:wght@400;500;600;700&display=swap');

:root {
  /* grounds — dark end */
  --ground:              #022020;  /* primary page ground */
  --ground-deep:         #182566;  /* Deep Blue section ground */
  --ground-forest:       #32520A;  /* Forest section ground */
  --ground-rose:         #944467;  /* Rose section ground */

  /* text — light end */
  --ink-body:            #FFFFFF;  /* body text */
  --ink-bright:          #90F6CA;  /* Mint — bright accent text */
  --ink-muted:           #CBACFB;  /* Lavender — secondary/muted text (large only on Rose) */

  /* interactive */
  --link:                #1C8FA7;  /* Teal */
  --frame:               #1C8FA7;  /* Teal — outlines, borders */
  --anchor:              #C89536;  /* Gold — primary action, focus, alert */
  --anchor-ink:          #022020;  /* text on a gold button — never white */
  --focus:               #C89536;
  --alert:               #C89536;

  /* fields */
  --field-fill:          #022020;
  --field-border:        #1C8FA7;
  --field-border-focus:  #C89536;

  /* function */
  --white:               #FFFFFF;  /* must be declared — prevents dark-on-dark failures */
}

/* ---- scrims (hover/active): translucent White/Black, no new hex ---- */
:root {
  --scrim-light: rgba(255, 255, 255, 0.10);
  --scrim-dark:  rgba(0, 0, 0, 0.22);
  --measure: 64ch;
}

/* ==========================================================================
   Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink-body);
  font-family: 'Nunito', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink-body);
}

p { margin: 0 0 1.15em; max-width: var(--measure); }

a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { color: var(--ink-bright); }

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

/* Visible focus — gold ring, never removed */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--anchor); color: var(--anchor-ink);
  padding: 0.6rem 1rem; font-weight: 700; z-index: 100; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

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

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }

/* ==========================================================================
   Buttons (shared)
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 0.85rem 1.4rem;
  min-height: 44px;              /* mobile tap target */
  border-radius: 8px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
  cursor: pointer;
}

/* Primary — Gold fill, Dark-Teal ink. Never white text on gold. */
.btn--primary {
  background: var(--anchor);
  color: var(--anchor-ink);
  border-color: var(--anchor);
}
.btn--primary:hover { background: var(--anchor); box-shadow: inset 0 0 0 999px var(--scrim-dark); color: var(--anchor-ink); }
.btn--primary:active { box-shadow: inset 0 0 0 999px var(--scrim-dark); }

/* Secondary — Teal outline, transparent fill, body-white text. */
.btn--secondary {
  background: transparent;
  color: var(--ink-body);
  border-color: var(--frame);
}
.btn--secondary:hover { background: var(--scrim-light); color: var(--ink-body); }
.btn--secondary:active { background: var(--scrim-dark); }

/* ==========================================================================
   Global header
   ========================================================================== */
.site-header {
  border-bottom: 1px solid color-mix(in srgb, var(--frame) 45%, transparent);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding-block: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink-body); }
.brand img { width: 52px; height: 52px; border-radius: 50%; }
.brand .brand-name { font-family: 'Lora', serif; font-weight: 600; font-size: 1.15rem; letter-spacing: 0.01em; }

.header-actions { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }

/* ==========================================================================
   Port / hero
   ========================================================================== */
main { display: block; }

.hero { padding-block: clamp(2.5rem, 6vw, 5rem); }
.hero .wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.8rem, 4vw, 3rem);
  align-items: center;
}
@media (min-width: 820px) {
  .hero .wrap { grid-template-columns: minmax(220px, 0.8fr) 1.2fr; }
}
.hero-cover img {
  width: 100%; max-width: 360px; margin-inline: auto;
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.45);
}
.hero-title { margin-bottom: 1.2rem; }
.hero-kicker {
  display: block;
  font-family: 'Lora', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.1rem, 1rem + 1vw, 1.6rem);
  color: var(--ink-bright);
  margin-bottom: 0.15em;
}
.hero-main {
  display: block;
  font-size: clamp(2.1rem, 1.4rem + 3.4vw, 4rem);
  font-weight: 700;
}
.hero .btn { margin-top: 0.5rem; }

/* ==========================================================================
   Prose section
   ========================================================================== */
.prose { padding-block: clamp(2rem, 5vw, 3.5rem); }
.prose .wrap { max-width: 760px; }
.prose h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); margin-top: 0; }
.tagline {
  font-family: 'Lora', serif; font-style: italic;
  color: var(--ink-muted);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.section-cta { margin-top: 1.5rem; }

/* Helm quote block */
.helm-quote { text-align: center; padding-block: clamp(2rem, 5vw, 3.5rem); }
.helm-quote .glyph { font-size: 1.6rem; color: var(--ink-bright); line-height: 1; margin: 0; }
.helm-quote blockquote {
  margin: 0.6rem auto; max-width: 40ch;
  font-family: 'Lora', serif; font-style: italic;
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.5rem);
  color: var(--ink-body);
}

/* ==========================================================================
   Global footer
   ========================================================================== */
.site-footer {
  margin-top: clamp(2.5rem, 6vw, 5rem);
  background: var(--ground);
  border-top: 1px solid color-mix(in srgb, var(--frame) 45%, transparent);
}
.site-footer .wrap {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 1rem; padding-block: 2.2rem;
}
.footer-logo { width: 64px; height: 64px; border-radius: 50%; }
.footer-contact a { color: var(--link); }
.social { display: flex; gap: 1.2rem; }
.social a { color: var(--ink-body); text-decoration: none; font-weight: 600; }
.social a:hover { color: var(--ink-bright); }

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