/* =========================================================================
   Hearth & Harbor — guild recruitment site
   Design tokens and styles. Colors, type, and spacing follow the design
   handoff (README). All values are the settled, high-fidelity spec.
   ========================================================================= */

:root {
  /* night / dark surfaces */
  --night-top: #0a1a28;
  --night-2: #0c1e2c;
  --night-3: #122430;
  --ember-brown: #241b12;
  --strip-brown-2: #1a1109;

  /* parchment / body surfaces */
  --parchment-deep: #e6dccb;
  --hairline: #cdbd93;

  /* accents */
  --brass: #b08d4f;
  --rust: #9a4e17;
  --deep-rust: #8f4a20;
  --ember: #e8963f;
  --ember-hi: #f4c877;
  --tagline-amber: #eaa653;
  --teal: #14606e;

  /* text — on parchment */
  --ink-heading: #332614;
  --ink-body: #43331d;
  --ink-muted: #6f5c3d;

  /* text — on dark */
  --night-motto: #e7dcc7;
  --night-body: #a6b094;
  --night-italic: #c3c9b8;
  --night-meta: #9aa88c;

  /* fonts */
  --f-wordmark: 'Almendra SC', serif;
  --f-heading: 'Vollkorn', serif;
  --f-label: 'Cardo', serif;
  --f-body: 'EB Garamond', serif;

  /* shared section padding */
  --pad-y: clamp(34px, 7vw, 62px);
  --pad-y-sm: clamp(32px, 6vw, 56px);
  --pad-x: clamp(20px, 8vw, 120px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
/* The hero/footer/strip firelight glows are intentionally wider than the
   viewport and clipped by their parents. On mobile, composited + sub-pixel
   rounding can still let those wide layers pan a few px sideways, so forbid
   horizontal scroll at the document root. */
html, body { overflow-x: hidden; }

body {
  margin: 0;
  /* subtle vignette behind the centered page so the desktop side margins have
     depth instead of a flat fill (matches the page tone at center, darkens
     gently toward the screen edges) */
  background: radial-gradient(ellipse 85% 75% at 50% 30%, #0b1a26 0%, #091622 60%, #07121c 100%);
  color: var(--ink-body);
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* The vignette only shows in the desktop side margins (page caps at 1080px),
   so pin it to the viewport there. Below that the page is full-width and the
   dark body background is not visible, so a fixed background would be pure
   scroll cost on mobile with nothing to show for it. */
@media (min-width: 1081px) {
  body { background-attachment: fixed; }
}

a { color: var(--ember); }
a:hover { color: var(--ember-hi); }

/* Inline reference links to the game. Visually identical to the surrounding
   copy (no underline, same color) — just tappable. On desktop the cursor and
   a faint hover tint hint at it; on mobile they're invisible-but-clickable. */
.mmlink {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color .2s;
}
.mmlink:hover { color: var(--ember); }
/* Underlined variant (used in the Small by Design section). */
.mmlink--u {
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Footer wordmark doubles as a back-to-top link; keep it looking like the
   wordmark, just tappable. */
.to-top {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: filter .2s;
}
.to-top:hover { filter: brightness(1.12); }

/* Keyboard focus: a clear ring, tuned per ground (rust on parchment/overlays,
   warm ember on the dark hero and footer). Only shows for keyboard users. */
:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
  border-radius: 2px;
}
.hero :focus-visible,
.footer :focus-visible {
  outline-color: var(--ember-hi);
}

.page {
  max-width: 1080px;
  margin: 0 auto;
  background: #0b1a26;
  overflow: hidden;
}

/* ---- shared decorative layers ------------------------------------------ */
.starfield {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.7px 1.7px at 7% 11%, rgba(208, 224, 232, .72), transparent),
    radial-gradient(1.4px 1.4px at 19% 5%, rgba(208, 224, 232, .55), transparent),
    radial-gradient(1.9px 1.9px at 32% 16%, rgba(208, 224, 232, .7), transparent),
    radial-gradient(1.4px 1.4px at 69% 5%, rgba(208, 224, 232, .5), transparent),
    radial-gradient(1.8px 1.8px at 80% 17%, rgba(208, 224, 232, .68), transparent),
    radial-gradient(1.4px 1.4px at 90% 9%, rgba(208, 224, 232, .55), transparent),
    radial-gradient(1.6px 1.6px at 95% 22%, rgba(208, 224, 232, .6), transparent),
    radial-gradient(1.4px 1.4px at 13% 23%, rgba(208, 224, 232, .5), transparent),
    radial-gradient(1.7px 1.7px at 38% 27%, rgba(208, 224, 232, .6), transparent),
    radial-gradient(1.4px 1.4px at 62% 25%, rgba(208, 224, 232, .5), transparent),
    radial-gradient(1.8px 1.8px at 85% 30%, rgba(208, 224, 232, .62), transparent),
    radial-gradient(1.5px 1.5px at 25% 13%, rgba(208, 224, 232, .55), transparent),
    radial-gradient(1.4px 1.4px at 73% 21%, rgba(208, 224, 232, .5), transparent),
    radial-gradient(1.5px 1.5px at 6% 18%, rgba(208, 224, 232, .5), transparent),
    radial-gradient(1.6px 1.6px at 30% 34%, rgba(208, 224, 232, .52), transparent),
    radial-gradient(1.4px 1.4px at 15% 30%, rgba(208, 224, 232, .46), transparent),
    radial-gradient(1.5px 1.5px at 70% 32%, rgba(208, 224, 232, .52), transparent),
    radial-gradient(1.6px 1.6px at 88% 33%, rgba(208, 224, 232, .5), transparent),
    radial-gradient(1.4px 1.4px at 96% 15%, rgba(208, 224, 232, .5), transparent),
    radial-gradient(1.5px 1.5px at 54% 30%, rgba(208, 224, 232, .5), transparent),
    radial-gradient(1.4px 1.4px at 42% 33%, rgba(208, 224, 232, .46), transparent),
    radial-gradient(1.5px 1.5px at 12% 44%, rgba(208, 224, 232, .46), transparent),
    radial-gradient(1.4px 1.4px at 34% 47%, rgba(208, 224, 232, .44), transparent),
    radial-gradient(1.6px 1.6px at 60% 43%, rgba(208, 224, 232, .46), transparent),
    radial-gradient(1.4px 1.4px at 82% 46%, rgba(208, 224, 232, .44), transparent),
    radial-gradient(1.5px 1.5px at 92% 41%, rgba(208, 224, 232, .46), transparent),
    radial-gradient(1.4px 1.4px at 24% 41%, rgba(208, 224, 232, .42), transparent),
    radial-gradient(1.5px 1.5px at 71% 49%, rgba(208, 224, 232, .44), transparent);
}

.ember-glow {
  position: absolute;
  left: 50%;
  bottom: -80px;
  width: 132%;
  height: 380px;
  pointer-events: none;
  /* wide, flat firelight rising from the bottom; blur avoids gradient banding */
  background: radial-gradient(ellipse 66% 122% at 50% 103%,
      rgba(255, 221, 142, .85) 0%,
      rgba(254, 176, 84, .56) 20%,
      rgba(247, 130, 55, .27) 44%,
      rgba(223, 92, 37, .1) 63%,
      transparent 80%);
  filter: blur(13px);
  /* Over the near-black hero/footer, normal compositing reads almost identically
     to a screen blend, but without forcing a per-frame backdrop re-composite
     (the main cause of hero scroll jank on mobile). translateZ promotes it to
     its own layer so scrolling just moves a cached texture. */
  transform: translateX(-50%) translateZ(0);
}

/* signature divider: line — dot — line (amber left / teal right) */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
}
.divider__line {
  flex: 1 1 auto;
  height: 1px;
}
.divider__line--amber { background: linear-gradient(90deg, transparent, var(--ember)); }
.divider__line--teal  { background: linear-gradient(270deg, transparent, #5f8f98); }
.divider__dot {
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ember-hi);
  box-shadow: 0 0 8px rgba(244, 200, 119, .9);
}

/* ============ HERO ====================================================== */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(56px, 10vw, 94px) clamp(20px, 6vw, 72px) clamp(52px, 9vw, 88px);
  background: linear-gradient(180deg, #0a1a28 0%, #0b1b2a 25%, #0c1e2c 46%, #0e212e 58%, #122430 70%, #1b1e20 86%, #241b12 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* micro-dither over the dark hero/footer: breaks up gradient banding in the
   blue-into-glow transition. Opacity is tiny — a dither, not visible grain. */
.hero::after,
.footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .022;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='d'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23d)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}
/* Logo mark: one shared glow so every full logo (hero, footer colophon) looks
   identical wherever it appears. A single smooth radial bloom sits behind the
   flame — the light source — with a soft even edge-glow on the arch. Percentage
   sizing keeps it proportional at any glyph size, and one gradient (not stacked
   shadows) means no banding. */
.logo {
  position: relative;
  display: inline-flex;
  line-height: 0;
}
.logo::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 61%;
  width: 84%;
  height: 90%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  /* Concentrated core that feathers out to nothing; the blur dissolves the
     outer edge so the halo reads wide but has no discernible rim. */
  background: radial-gradient(circle,
      rgba(244, 200, 119, .42) 0%,
      rgba(232, 150, 63, .18) 28%,
      rgba(232, 150, 63, .07) 50%,
      rgba(232, 150, 63, .02) 72%,
      transparent 90%);
  filter: blur(4px);
}
.logo svg {
  position: relative;
  filter: drop-shadow(0 0 8px rgba(232, 150, 63, .36));
}
.logo--hero { margin-bottom: 20px; }
.wordmark {
  font-family: var(--f-wordmark);
  color: #f3e9d4;
  line-height: 1.1;
}
.wordmark--hero {
  font-size: clamp(32px, 8vw, 54px);
  text-shadow: 0 0 36px rgba(232, 150, 63, .24);
}
.wordmark__amp { margin: 0 .25em 0 .1em; }

.hero__tagline {
  font-family: var(--f-body);
  font-style: italic;
  font-size: 22px;
  color: var(--tagline-amber);
  margin-top: 14px;
}
.hero__divider {
  margin-top: 24px;
  max-width: 620px;
}
.hero__divider .divider__line { max-width: 280px; }

.motto {
  font-family: var(--f-heading);
  font-size: 20px;
  color: var(--night-motto);
  margin-top: 22px;
  line-height: 1.6;
}
.hero__desc {
  font-family: var(--f-body);
  font-size: 18px;
  color: var(--night-body);
  max-width: 610px;
  margin-top: 18px;
  line-height: 1.65;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 34px;
}

/* warm CTA (hero + join overlay) */
.cta {
  font-family: var(--f-label);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .12em;
  color: var(--ember-hi);
  border: 1.5px solid var(--brass);
  background: rgba(232, 150, 63, .14);
  padding: 16px 40px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all .25s;
  box-shadow: 0 0 16px rgba(232, 150, 63, .2), inset 0 0 12px rgba(232, 150, 63, .1);
}
.cta:hover {
  box-shadow: 0 0 30px rgba(232, 150, 63, .48), inset 0 0 16px rgba(232, 150, 63, .2);
  color: #ffe2ac;
}
.cta:active {
  transform: translateY(1px);
  box-shadow: 0 0 12px rgba(232, 150, 63, .3);
}

/* cool CTA (footer "come sit down") */
.cta--cool {
  font-size: 16px;
  color: #9fd0d8;
  border-color: #3a6068;
  background: rgba(95, 192, 204, .1);
  padding: 17px 42px;
  box-shadow: 0 0 16px rgba(95, 192, 204, .16), inset 0 0 12px rgba(95, 192, 204, .08);
}
.cta--cool:hover {
  box-shadow: 0 0 32px rgba(95, 192, 204, .4), inset 0 0 16px rgba(95, 192, 204, .2);
  color: #f2fcff;
}
.cta--cool:active {
  box-shadow: 0 0 12px rgba(95, 192, 204, .28);
}

/* ============ CULTURAL STRIP =========================================== */
.strip {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 22px clamp(18px, 5vw, 40px);
  background: linear-gradient(180deg, #241b12, #1a1109);
}
.strip__rule {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  pointer-events: none;
}
.strip__rule--top { top: 0; }
.strip__rule--bottom { bottom: 0; }
.rule-brass {
  background: linear-gradient(90deg, transparent, var(--brass) 30%, var(--brass) 70%, transparent);
  box-shadow: 0 0 8px rgba(176, 141, 79, .55);
}
.rule-teal {
  background: linear-gradient(90deg, transparent, #6fb0bb 30%, #6fb0bb 70%, transparent);
  box-shadow: 0 0 8px rgba(111, 176, 187, .55);
}
.strip__glow {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 560px;
  height: 70px;
  pointer-events: none;
  background: radial-gradient(ellipse at top, rgba(232, 150, 63, .14), transparent 72%);
}
.strip__seg {
  position: relative;
  height: 1px;
  flex: 0 1 80px;
}
.strip__seg--l { background: linear-gradient(90deg, transparent, var(--brass)); }
.strip__seg--r { background: linear-gradient(270deg, transparent, var(--brass)); }
.strip__dot {
  position: relative;
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ember-hi);
  box-shadow: 0 0 10px rgba(232, 150, 63, .95);
}
.strip__text {
  position: relative;
  font-family: var(--f-label);
  font-weight: 700;
  font-size: clamp(11px, 3vw, 14.5px);
  letter-spacing: .2em;
  color: #e2a862;
  white-space: nowrap;
}

/* ============ PARCHMENT BODY =========================================== */
.body {
  /* uniform light parchment so every light section is the same tone (the
     alternation reads as exactly two colors: this light and the deep sections).
     Tuned slightly off pure-yellow so warm/vivid monitor presets don't push
     the warm parchment tones into garish yellow. */
  background: #f1e9d7;
}
.section {
  padding: var(--pad-y) var(--pad-x);
  border-bottom: 1px solid var(--hairline);
}
.section--sm { padding: var(--pad-y-sm) var(--pad-x); }
.section--deep { background: var(--parchment-deep); }
.section--center { text-align: center; }

.eyebrow {
  font-family: var(--f-label);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--rust);
  text-align: center;
  margin-bottom: 16px;
}
.section-head { text-align: center; }
.section-head .eyebrow { margin-bottom: 12px; }
.heading {
  font-family: var(--f-heading);
  font-weight: 700;
  font-size: clamp(23px, 5vw, 31px);
  color: var(--ink-heading);
  text-align: center;
  line-height: 1.3;
}
.lede {
  font-family: var(--f-body);
  font-size: 18.5px;
  color: var(--ink-body);
  line-height: 1.8;
  text-align: center;
  margin: 0 auto;
}

/* ---- Meaning cards ----------------------------------------------------- */
.meaning__lede { max-width: 770px; margin-top: 24px; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 36px;
  margin-top: 36px;
}
.card {
  position: relative;
  overflow: hidden;
  padding: 26px 28px;
  border: 1px solid;
  cursor: pointer;
  transition: all .2s;
}
.card--hearth {
  background: linear-gradient(180deg, #f3e9d8, #e2d5bd);
  border-color: #cdbb96;
}
.card--hearth:hover {
  border-color: #c99a4e;
  box-shadow: 0 7px 22px rgba(120, 70, 20, .16);
  transform: translateY(-2px);
}
.card--harbor {
  background: linear-gradient(180deg, #dbe8e5, #bcd2cc);
  border-color: #a2bfba;
}
.card--harbor:hover {
  border-color: #7fa8ad;
  box-shadow: 0 7px 22px rgba(20, 80, 90, .16);
  transform: translateY(-2px);
}
.card__glow {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 64px;
  pointer-events: none;
}
.card--hearth .card__glow { background: linear-gradient(180deg, rgba(217, 143, 52, .15), transparent); }
.card--harbor .card__glow { background: linear-gradient(180deg, rgba(23, 112, 126, .11), transparent); }
.card__title {
  position: relative;
  font-family: var(--f-heading);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 8px;
}
.card--hearth .card__title { color: var(--deep-rust); }
.card--harbor .card__title { color: var(--teal); }
.card__desc {
  position: relative;
  font-family: var(--f-body);
  font-size: 16.5px;
  line-height: 1.6;
}
.card--hearth .card__desc { color: #69563a; } /* darkened from --ink-muted for AA on the card gradient */
.card--harbor .card__desc { color: #485960; } /* darkened for AA on the card gradient */
.read-more {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  font-family: var(--f-label);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .14em;
  transition: gap .2s;
}
.card--hearth .read-more { color: var(--deep-rust); }
.card--harbor .read-more { color: var(--teal); }
.card:hover .read-more { gap: 11px; }
.read-more span { font-size: 14px; }

/* ---- Why we gather ----------------------------------------------------- */
.thesis { max-width: 780px; }
.thesis + .thesis { margin-top: 22px; }

/* ---- The Way (principles) --------------------------------------------- */
.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0 56px;
}
.principle {
  display: flex;
  gap: 18px;
  padding: 15px 0;
  border-top: 1px solid var(--hairline);
}
.principle:nth-last-child(-n+2) { border-bottom: 1px solid var(--hairline); }
.principle__num {
  font-family: var(--f-heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--teal);
  min-width: 32px;
}
.principle__title {
  font-family: var(--f-heading);
  font-weight: 700;
  font-size: 17.5px;
  color: var(--ink-heading);
}
.principle__desc {
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--ink-muted);
  margin-top: 2px;
}

/* dot-line text link (charter / discord) */
.textlink {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 14px);
  cursor: pointer;
  width: 100%;
  transition: filter .25s;
  text-decoration: none;
}
.textlink:hover { filter: brightness(.75); }
.textlink__line {
  flex: 1 1 auto;
  height: 1px;
}
.textlink__line--l { background: linear-gradient(90deg, transparent, #a8946a); }
.textlink__line--r { background: linear-gradient(270deg, transparent, #a8946a); }
.textlink__dot {
  flex: none;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--rust);
}
.textlink__label {
  flex: none;
  font-family: var(--f-heading);
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--rust);
  white-space: nowrap;
}
.charter-wrap {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}
.charter-link {
  max-width: 420px;
}
.charter-link .textlink__label {
  font-size: clamp(12px, 3.4vw, 15px);
}

/* ---- What the company does (list) ------------------------------------- */
.dolist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px 60px;
  font-family: var(--f-body);
  font-size: 17.5px;
  color: var(--ink-body);
}
.dolist__item {
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.mark { color: var(--teal); }
.note {
  text-align: center;
  font-family: var(--f-body);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-muted);
  margin-top: 30px;
}

/* ---- Be good company (pillars) ---------------------------------------- */
.gather-sub {
  font-family: var(--f-body);
  font-size: 17px;
  color: var(--ink-muted);
  line-height: 1.7;
  max-width: 640px;
  margin: 12px auto 0;
}
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px 44px;
  max-width: 820px;
  margin: 0 auto;
}
.pillar {
  display: flex;
  gap: 14px;
}
.pillar__mark {
  color: var(--teal);
  font-size: 18px;
  line-height: 1.3;
}
.pillar__title {
  font-family: var(--f-heading);
  font-weight: 700;
  font-size: 17.5px;
  color: var(--ink-heading);
}
.pillar__desc {
  font-family: var(--f-body);
  font-size: 16px;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-top: 2px;
}

/* ---- Corpse-run quote band -------------------------------------------- */
.quoteband {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(34px, 6vw, 58px) var(--pad-x);
  background: linear-gradient(180deg, #241b12, #1a1109);
  border-top: 2px solid var(--brass);
  border-bottom: 2px solid var(--brass);
}
.quoteband__glow {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 250px;
  pointer-events: none;
  background: radial-gradient(ellipse, rgba(232, 150, 63, .15), transparent 70%);
}
.quoteband__inner { position: relative; }
.quoteband__eyebrow {
  font-family: var(--f-label);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .2em;
  color: var(--tagline-amber);
  margin-bottom: 18px;
}
.quoteband__quote {
  font-family: var(--f-body);
  font-style: italic;
  font-size: clamp(20px, 4.5vw, 28px);
  color: #ecdcbf;
  line-height: 1.5;
  max-width: 740px;
  margin: 0 auto;
}
.quoteband__sub {
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--night-body);
  margin-top: 16px;
}

/* ---- FAQ --------------------------------------------------------------- */
.faq__list { max-width: 760px; margin: 0 auto; }
.faq__item { padding: 4px 0; }
.faq__item + .faq__item { border-top: 1px solid #d8c9a4; }
.faq__q {
  cursor: pointer;
  padding: 18px 4px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.faq__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex: none;
}
.faq__dot--amber { background: var(--rust); box-shadow: 0 0 5px #9a4e1766; }
.faq__dot--teal  { background: var(--teal); box-shadow: 0 0 5px #14606e66; }
.faq__question {
  flex: 1;
  font-family: var(--f-heading);
  font-weight: 600;
  font-size: 16.5px;
  color: var(--ink-heading);
  transition: color .18s;
}
.faq__item--amber .faq__question:hover { color: var(--rust); }
.faq__item--teal  .faq__question:hover { color: var(--teal); }
.faq__icon {
  font-family: var(--f-heading);
  font-weight: 600;
  font-size: 20px;
  line-height: 1;
  flex: none;
}
.faq__item--amber .faq__icon { color: var(--rust); }
.faq__item--teal  .faq__icon { color: var(--teal); }
.faq__a {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .38s ease, opacity .3s ease;
}
.faq__item.is-open .faq__a {
  max-height: 600px;
  opacity: 1;
}
.faq__a-inner {
  padding: 0 4px 18px 25px;
  font-family: var(--f-body);
  font-size: 16.5px;
  color: var(--ink-body);
  line-height: 1.7;
}
.faq__a-inner .em-not { font-style: normal; color: var(--deep-rust); }
.faq__a-inner .aside { font-style: italic; color: var(--ink-muted); }
.faq__a-inner p { margin: 0; }
.faq__a-inner p + p { margin-top: 12px; }

/* ---- Joining ----------------------------------------------------------- */
.join-section { padding-bottom: 70px; border-top: 1px solid var(--hairline); border-bottom: none; }
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}
.step { text-align: center; }
.step__num {
  font-family: var(--f-heading);
  font-weight: 700;
  font-size: 42px;
  color: var(--teal);
  line-height: 1;
}
.step__title {
  font-family: var(--f-heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink-heading);
  margin-top: 12px;
}
.step__desc {
  font-family: var(--f-body);
  font-size: 16.5px;
  color: var(--ink-muted);
  line-height: 1.65;
  margin-top: 8px;
}

/* ============ FOOTER =================================================== */
.footer {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(52px, 9vw, 80px) clamp(20px, 6vw, 72px) 40px;
  background: linear-gradient(180deg, #0a1a28 0%, #0b1b2a 25%, #0c1e2c 46%, #0e212e 58%, #122430 70%, #1b1e20 86%, #241b12 100%);
}
.footer__inner { position: relative; z-index: 2; }
.glyph--footer-flame {
  margin-bottom: 14px;
  filter: drop-shadow(0 0 16px rgba(232, 150, 63, .6));
}
.footer__headline {
  font-family: var(--f-heading);
  font-weight: 700;
  font-size: clamp(26px, 6vw, 35px);
  color: #f3e9d4;
  line-height: 1.3;
}
.footer__body {
  font-family: var(--f-body);
  font-size: 17px;
  color: var(--night-body);
  max-width: 640px;
  margin: 20px auto 0;
  line-height: 1.7;
}
.footer__cta-wrap { margin-top: 32px; }
.footer__reassure {
  font-family: var(--f-body);
  font-style: italic;
  font-size: 15px;
  color: var(--night-body);
  margin-top: 16px;
}
.footer__discord-wrap {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}
.discord-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: filter .25s;
  text-decoration: none;
}
.discord-link:hover {
  filter: brightness(1.3) drop-shadow(0 0 9px rgba(232, 150, 63, .6));
}
.discord-link__line {
  width: 56px;
  height: 1px;
}
.discord-link__line--l { background: linear-gradient(90deg, transparent, #5f8f98); }
.discord-link__line--r { background: linear-gradient(270deg, transparent, #5f8f98); }
.discord-link__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7fbcc4;
  box-shadow: 0 0 8px rgba(127, 188, 196, .9);
}
.discord-link__label {
  font-family: var(--f-heading);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .12em;
  color: #9fd0d8;
}

/* colophon */
.colophon {
  position: relative;
  margin-top: 56px;
  padding-top: 40px;
}
.colophon__divider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.colophon__divider .divider__line { max-width: 44%; }
.colophon__divider .divider__dot {
  width: 6px;
  height: 6px;
  box-shadow: 0 0 9px rgba(244, 200, 119, .9);
}
.wordmark--footer {
  font-size: 30px;
  text-shadow: 0 0 24px rgba(232, 150, 63, .22);
  margin-top: 8px;
}
.colophon__tag {
  font-family: var(--f-body);
  font-style: italic;
  font-size: 17px;
  color: var(--night-italic);
  margin-top: 10px;
}
.colophon__meta {
  font-family: var(--f-label);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--night-meta);
  margin-top: 12px;
}

/* ============ OVERLAYS ================================================== */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(8, 14, 20, .74);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.overlay.is-open { display: flex; }
.overlay__panel {
  position: relative;
  width: 660px;
  max-width: 100%;
  max-height: 82vh;
  max-height: 82dvh; /* accounts for mobile browser toolbars */
  overflow: auto;
  border: 2px solid var(--brass);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .6);
  padding: clamp(32px, 6vw, 52px) clamp(24px, 6vw, 60px);
  background: radial-gradient(ellipse at 50% 0%, #f6ecd6, #ede2c8 70%);
  /* Branded scrollbar (Firefox) */
  scrollbar-width: thin;
  scrollbar-color: rgba(176, 141, 79, .6) transparent;
}
/* Branded scrollbar (WebKit/Blink) */
.overlay__panel::-webkit-scrollbar { width: 11px; }
.overlay__panel::-webkit-scrollbar-track { background: transparent; }
.overlay__panel::-webkit-scrollbar-thumb {
  background: rgba(176, 141, 79, .55);
  border-radius: 7px;
  border: 3px solid transparent;
  background-clip: padding-box;
}
.overlay__panel::-webkit-scrollbar-thumb:hover { background: rgba(176, 141, 79, .82); background-clip: padding-box; }
/* Cool scrollbar for the harbor-toned panels */
.overlay__panel--harbor,
.overlay__panel--join.is-harbor { scrollbar-color: rgba(20, 96, 110, .55) transparent; }
.overlay__panel--harbor::-webkit-scrollbar-thumb,
.overlay__panel--join.is-harbor::-webkit-scrollbar-thumb { background: rgba(20, 96, 110, .5); background-clip: padding-box; }
.overlay__panel--harbor {
  border-color: var(--teal);
  background: radial-gradient(ellipse at 50% 0%, #e7f0ed, #cfe0da 70%);
}
.overlay__panel--join { width: 540px; padding: clamp(32px, 6vw, 52px) clamp(24px, 6vw, 52px); }
.overlay__panel--charter { width: 760px; }
.overlay__panel--plain { background: radial-gradient(ellipse at 50% 0%, #f4ebd6, #ede2c8 70%); }
.overlay__close {
  position: absolute;
  top: 8px;
  right: 12px;
  width: 44px;   /* WCAG-friendly tap target; glyph stays small */
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-label);
  font-size: 20px;
  color: #8a7551;
  cursor: pointer;
  line-height: 1;
  background: none;
  border: none;
  padding: 0;
  transition: color .18s;
}
.overlay__close:hover { color: var(--ink-heading); }
.overlay__panel--harbor .overlay__close { color: #5f7a7e; }
.overlay__panel--harbor .overlay__close:hover { color: var(--teal); }

.overlay__glyph { display: block; margin: 0 auto 14px; }
.overlay__glyph--flame { filter: drop-shadow(0 0 10px rgba(232, 150, 63, .4)); }
.overlay__glyph--join { filter: drop-shadow(0 0 10px rgba(232, 150, 63, .35)); }
.overlay__eyebrow {
  font-family: var(--f-label);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--rust);
  text-align: center;
  margin-bottom: 10px;
}
.overlay__eyebrow--teal { color: var(--teal); }
.overlay__title {
  font-family: var(--f-heading);
  font-weight: 700;
  font-size: 30px;
  color: var(--ink-heading);
  text-align: center;
  margin-bottom: 26px;
}
.overlay__title--harbor { color: #243238; }
.overlay__title--join { font-size: clamp(24px, 5vw, 30px); margin-bottom: 8px; }
.overlay__title--charter { margin-bottom: 30px; }
.overlay__prose {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: var(--f-body);
  font-size: 17.5px;
  color: var(--ink-body);
  line-height: 1.75;
}
.overlay__prose--harbor { color: #33414a; }
.overlay__prose b { color: var(--deep-rust); }
.overlay__prose--harbor b { color: var(--teal); }
.overlay__closing {
  text-align: center;
  font-family: var(--f-heading);
  font-style: italic;
  font-size: 18px;
  color: var(--rust);
  margin-top: 26px;
}
.overlay__closing--harbor { color: var(--teal); }

/* join overlay specifics */
.join-intro {
  font-family: var(--f-body);
  font-style: italic;
  font-size: 17px;
  color: var(--ink-muted);
  text-align: center;
  max-width: 520px;
  margin: 0 auto 28px;
  line-height: 1.6;
}
.join-steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 520px;
  margin: 0 auto;
}
.join-step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.join-step__num {
  font-family: var(--f-heading);
  font-weight: 700;
  font-size: 30px;
  color: var(--rust);
  line-height: 1;
  flex: none;
  min-width: 26px;
}
/* Hearth skin (default): flame glyph shows, lighthouse hidden. */
.join-glyph--harbor { display: none; }
.join-step__title {
  font-family: var(--f-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink-heading);
}
.join-step__desc {
  font-family: var(--f-body);
  font-size: 16.5px;
  color: var(--ink-body);
  line-height: 1.65;
  margin-top: 3px;
}
.join-discord-wrap {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}
.join-discord { max-width: 360px; }
.join-discord .textlink__label { font-size: 15px; }
.join-closing {
  text-align: center;
  font-family: var(--f-body);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-muted);
  margin-top: 18px;
}

/* Harbor skin for the join overlay — same content as the hearth skin, dressed
   to match The Harbor overlay. Applied when opened from the footer "Come sit
   down" (teal) button; the hero "Join the company" button keeps the hearth skin. */
.overlay__panel--join.is-harbor {
  border-color: var(--teal);
  background: radial-gradient(ellipse at 50% 0%, #e7f0ed, #cfe0da 70%);
}
.overlay__panel--join.is-harbor .join-glyph--hearth { display: none; }
.overlay__panel--join.is-harbor .join-glyph--harbor { display: block; }
.overlay__panel--join.is-harbor .overlay__eyebrow { color: var(--teal); }
.overlay__panel--join.is-harbor .overlay__title { color: #243238; }
.overlay__panel--join.is-harbor .join-intro { color: #4f6169; }
.overlay__panel--join.is-harbor .join-step__num { color: var(--teal); }
.overlay__panel--join.is-harbor .join-step__title { color: #243238; }
.overlay__panel--join.is-harbor .join-step__desc { color: #33414a; }
.overlay__panel--join.is-harbor .join-closing { color: #4f6169; }
.overlay__panel--join.is-harbor .overlay__close { color: #5f7a7e; }
.overlay__panel--join.is-harbor .overlay__close:hover { color: var(--teal); }
.overlay__panel--join.is-harbor .join-discord .textlink__label { color: var(--teal); }
.overlay__panel--join.is-harbor .join-discord .textlink__dot { background: var(--teal); }
.overlay__panel--join.is-harbor .join-discord .textlink__line--l { background: linear-gradient(90deg, transparent, #7fa8ad); }
.overlay__panel--join.is-harbor .join-discord .textlink__line--r { background: linear-gradient(270deg, transparent, #7fa8ad); }

/* charter overlay */
.charter-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.charter-item__title {
  font-family: var(--f-heading);
  font-weight: 700;
  font-size: 19px;
  color: var(--ink-heading);
}
.charter-item__title .num { color: var(--rust); }
.charter-item__desc {
  font-family: var(--f-body);
  font-size: 16.5px;
  color: var(--ink-body);
  line-height: 1.7;
  margin-top: 5px;
}

/* ---- reduced motion ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}

/* ---- forced colors (e.g. Windows High Contrast) ------------------------ */
@media (forced-colors: active) {
  /* Glows/shadows are dropped by the OS; keep interactive elements outlined. */
  .cta,
  .card,
  .overlay__panel { border: 1px solid CanvasText; }
  :focus-visible { outline: 2px solid Highlight; outline-offset: 3px; }
}
