/* Fonts are self-hosted (SIL Open Font License; see /fonts/LICENSE.txt), so visitors'
   browsers never contact a third party. Latin subset covers every character the site uses. */
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("/fonts/cinzel-latin.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("/fonts/eb-garamond-latin.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/eb-garamond-italic-latin.woff2") format("woff2"); }

:root {
  --bg: #0b1a30;
  --bg-2: #102542;
  --panel: #13294a;
  --ink: #ece6d8;
  --muted: #b9b2a2;
  --gold: #d4b25f;
  --gold-deep: #b8943f;
  --blue: #7f9ef0; /* GAP blue #4A73E8, lifted for contrast on navy */
  --line: rgba(212, 178, 95, 0.25);
  --measure: 38rem;
  --display: "Cinzel", "Times New Roman", serif;
  --body: "EB Garamond", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.25rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-underline-offset: 0.18em; }
a:hover { color: #ead08a; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--bg); padding: 0.5rem 1rem; }
.skip:focus { left: 1rem; z-index: 10; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; color: var(--gold); line-height: 1.2; letter-spacing: 0.02em; }
h1 { font-size: clamp(2rem, 7vw, 3.4rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.45rem, 4.5vw, 2rem); margin: 0 0 1rem; }
h3 { font-size: 1.2rem; margin: 0 0 0.5rem; }
p { margin: 0 0 1rem; }

/* header */
.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.wordmark { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.06em; color: var(--gold); }
.wordmark .mark { width: 1.6rem; height: 2rem; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; }
.site-header nav a { color: var(--ink); text-decoration: none; font-size: 1.05rem; display: inline-flex; align-items: center; min-height: 44px; border-bottom: 2px solid transparent; }
.menu-toggle { display: none; }
.site-header nav a:hover { color: var(--gold); }
.site-header nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }

/* layout */
main { display: block; }
.section { padding: clamp(2.5rem, 7vw, 4.5rem) clamp(1rem, 4vw, 2.5rem); }
.section.alt { background: var(--bg-2); }
.wrap { max-width: var(--measure); margin: 0 auto; }
.wide { max-width: 64rem; margin: 0 auto; }
.center { text-align: center; }
.lede { font-size: 1.45rem; line-height: 1.55; }
.eyebrow { font-family: var(--display); letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.75rem; }

/* hero */
.hero { text-align: center; padding-top: clamp(3rem, 10vw, 6rem); }
.hero .mark { width: 4.5rem; height: 5.6rem; margin: 0 auto 1.5rem; color: var(--gold); }
.hero .tagline { font-family: var(--display); letter-spacing: 0.12em; color: var(--muted); }

/* buttons */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 1.75rem; }
.button {
  display: inline-block; font-family: var(--display); font-weight: 700; letter-spacing: 0.06em; font-size: 0.95rem;
  text-decoration: none; padding: 0.8rem 1.4rem; border-radius: 3px;
  background: var(--gold); color: var(--bg); border: 1px solid var(--gold);
}
.button:hover { background: #e2c372; color: var(--bg); }
.button.ghost { background: transparent; color: var(--gold); }
.button.ghost:hover { background: rgba(212, 178, 95, 0.1); }

/* creed */
.creed { font-size: 1.35rem; font-style: italic; text-align: center; }
.creed-close { font-family: var(--display); letter-spacing: 0.12em; color: var(--gold); }
blockquote { margin: 1.5rem 0; padding: 0 0 0 1.25rem; border-left: 2px solid var(--gold); font-style: italic; }
blockquote footer { font-style: normal; color: var(--muted); margin-top: 0.5rem; }

/* pillars, books, coin */
.pillars { display: grid; gap: 1.5rem; }
@media (min-width: 46rem) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar h3, .book h3 { color: var(--gold); }
.books { display: grid; gap: 1.25rem; }
.book { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 1.5rem; }
.book .button { margin-top: 0.5rem; }
.coin { display: grid; gap: 2rem; align-items: center; }
.coin-faces { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (min-width: 46rem) { .coin { grid-template-columns: 1fr 1fr; } }

/* faq */
.qa { border-bottom: 1px solid var(--line); padding: 1.25rem 0; }
.qa h2 { font-size: 1.2rem; margin: 0 0 0.5rem; }
.qa p { margin: 0; }

/* questions + form */
.asks { list-style: none; padding: 0; margin: 1.5rem 0; }
.asks li { padding: 0.6rem 0; border-bottom: 1px solid var(--line); font-size: 1.3rem; }
form.join { display: grid; gap: 1.1rem; margin-top: 1.5rem; }
.row { display: grid; gap: 1.1rem; }
@media (min-width: 40rem) { .row { grid-template-columns: 1fr 1fr; } }
label { display: grid; gap: 0.35rem; font-size: 1.05rem; color: var(--muted); }
input, textarea, select {
  font: inherit; font-size: 1.1rem; color: var(--ink); background: var(--panel);
  border: 1px solid var(--line); border-radius: 3px; padding: 0.7rem 0.8rem; width: 100%;
}
textarea { min-height: 10rem; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--gold); outline: none; }
.req { color: var(--gold); }
form.join .button { justify-self: start; cursor: pointer; }
.next { counter-reset: n; list-style: none; padding: 0; }
.next li { counter-increment: n; padding: 0.5rem 0 0.5rem 2.25rem; position: relative; }
.next li::before { content: counter(n); position: absolute; left: 0; top: 0.5rem; font-family: var(--display); color: var(--gold); }

/* footer */
.site-footer { text-align: center; padding: 2.5rem 1rem 3rem; border-top: 1px solid var(--line); background: var(--bg-2); color: var(--muted); font-size: 1.05rem; }
.site-footer .mark { width: 1.8rem; height: 2.25rem; margin: 0 auto 0.75rem; color: var(--gold); }
.site-footer p { margin: 0.35rem 0; }
.site-footer .social { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 0.5rem; }
.site-footer .social a, .site-footer .foot-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.6rem; }
.site-footer .fine { font-size: 0.9rem; margin-top: 1rem; }

@media (max-width: 30rem) {
  body { font-size: 1.15rem; }
  .site-header nav { justify-content: center; }
}

@media (max-width: 24rem) {
  .wordmark { font-size: 1rem; gap: 0.45rem; }
}

/* phones: one compact row, nav behind a Menu button (only when JS can open it) */
@media (max-width: 47.99rem) {
  .site-header { padding-top: 0.5rem; padding-bottom: 0.5rem; gap: 0.5rem 0.75rem; }
  .wordmark { min-height: 44px; }
  .js .menu-toggle {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem;
    font-family: var(--display); font-weight: 700; letter-spacing: 0.08em; font-size: 0.9rem;
    color: var(--gold); background: transparent; border: 1px solid var(--line); border-radius: 2px; cursor: pointer;
  }
  .js .site-header nav { display: none; flex-basis: 100%; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
  .js .menu-toggle[aria-expanded="true"] + nav { display: flex; }
  .js .site-header nav a { justify-content: center; font-size: 1.15rem; border-bottom: 1px solid var(--line); }
  .js .site-header nav a[aria-current="page"] { border-bottom-color: var(--line); }
}

/* the Door: the one call to act on Home */
.door { background: #07090d; text-align: center; padding: clamp(3rem, 9vw, 5.5rem) 0 clamp(3rem, 8vw, 5rem); }
.door-head { padding: 0 1rem; margin-bottom: 2rem; }
.door-head h2 { font-size: clamp(1.9rem, 5vw, 2.8rem); letter-spacing: 0.08em; margin: 0; }
.door-ref { color: var(--muted); letter-spacing: 0.12em; margin: 0.5rem 0 0; }
.door-img { display: block; width: 100%; max-width: 34rem; height: auto; margin: 0 auto; }
.door-foot { padding: 0 1rem; margin-top: 2rem; }
.door-foot p { max-width: var(--measure); margin: 0 auto 1.5rem; color: var(--muted); }
.door .button { font-size: 1.1rem; padding-left: 2.75rem; padding-right: 2.75rem; }

/* honeypot field: off-screen for people, still in the form for bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Join Us: speak instead of typing */
.speak { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-top: -0.35rem; }
.speak[hidden] { display: none; }
.speak-btn { cursor: pointer; min-height: 44px; font-size: 0.9rem; padding: 0.55rem 1.1rem; }
.speak-btn[aria-pressed="true"] { background: var(--gold); color: var(--bg); }
.speak-status { color: var(--gold); font-size: 1rem; }
.speak-note { flex-basis: 100%; margin: 0; color: var(--muted); font-size: 0.95rem; }

.actions.start { justify-content: flex-start; }
.privacy-note { color: var(--muted); font-size: 0.95rem; margin: 0; }
