/* ============================================================
   North Fork Club — Design System
   Palette: spruce (deep river-forest), parchment (ledger paper),
   river (slate blue-green), brass (reel/lamp accent), clay (rare accent)
   Type: Fraunces (display), Public Sans (body/UI), IBM Plex Mono (data/dates)
   Signature: a single hand-drawn contour line motif — the river's course —
   used once boldly in the hero, then quietly as section dividers.
   ============================================================ */

:root {
  --ink: #202b21;
  --parchment: #f4efe2;
  --parchment-dim: #ece4d2;
  --spruce: #1f3a30;
  --spruce-dark: #142720;
  --river: #3c5a68;
  --brass: #b8863f;
  --brass-light: #d9ab63;
  --clay: #8a4a30;
  --line: rgba(32, 43, 33, 0.14);
  --max: 44rem;
  --wide: 72rem;
}

@media (prefers-color-scheme: dark) {
  /* Site is intentionally single-theme (parchment) — old ledger-book feel
     reads oddly inverted, so we keep it consistent regardless of system theme. */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  color: var(--spruce-dark);
}

h1 { font-size: clamp(2.3rem, 6vw, 3.8rem); font-weight: 560; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; }

a { color: var(--river); text-decoration-color: var(--brass); text-underline-offset: 3px; }
a:hover { color: var(--spruce-dark); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 2px;
}

.eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  display: block;
  margin-bottom: 0.9em;
}

/* ---------- Header / Nav ---------- */

.site-header {
  background: var(--spruce);
  color: var(--parchment);
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(244, 239, 226, 0.12);
}

.nav-wrap {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
}

.brand {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--parchment);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--brass-light); }
.brand .sub {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-top: 2px;
}

nav.primary { display: flex; gap: 1.75rem; }
nav.primary a {
  color: var(--parchment);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 0.86;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
}
nav.primary a:hover,
nav.primary a[aria-current="page"] {
  opacity: 1;
  border-bottom-color: var(--brass);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(244,239,226,0.3);
  border-radius: 6px;
  color: var(--parchment);
  width: 42px;
  height: 38px;
  font-size: 1.1rem;
  cursor: pointer;
}

@media (max-width: 720px) {
  nav.primary {
    display: none;
    position: absolute;
    top: 4.25rem;
    left: 0;
    right: 0;
    background: var(--spruce);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    border-bottom: 1px solid rgba(244,239,226,0.12);
  }
  nav.primary.open { display: flex; }
  nav.primary a { padding: 0.85rem 0; border-bottom: 1px solid rgba(244,239,226,0.1); }
  .menu-toggle { display: block; }
}

/* ---------- Hero ---------- */

.hero {
  background: var(--spruce);
  color: var(--parchment);
  padding: 5.5rem 1.25rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: var(--wide);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.hero h1 { color: var(--parchment); max-width: 18ch; }
.hero .lede {
  font-size: 1.15rem;
  color: var(--parchment);
  opacity: 0.88;
  max-width: 38ch;
  margin-top: 1rem;
}
.hero .eyebrow { color: var(--brass-light); }

.contour {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.5;
}

.contour-divider {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

/* ---------- Page (non-hero) header ---------- */

.page-head {
  background: var(--spruce);
  color: var(--parchment);
  padding: 3.25rem 1.25rem 2.75rem;
}
.page-head-inner { max-width: var(--wide); margin: 0 auto; }
.page-head h1 { color: var(--parchment); }
.page-head .eyebrow { color: var(--brass-light); }

/* ---------- Sections ---------- */

main { display: block; }

.section {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
}
.section.narrow { max-width: var(--max); }
.section.tight { padding-top: 2rem; padding-bottom: 2rem; }

.section + .section { border-top: 1px solid var(--line); }

.prose { max-width: var(--max); font-size: 1.05rem; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Cards / lists ---------- */

.doc-list, .link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.doc-list li, .link-list li {
  border-bottom: 1px solid var(--line);
}
.doc-list a, .link-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0.1rem;
  text-decoration: none;
  color: var(--ink);
}
.doc-list a:hover, .link-list a:hover {
  color: var(--river);
}
.doc-list .name, .link-list .name {
  font-weight: 600;
  font-size: 1.02rem;
}
.doc-list .meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  color: var(--river);
  white-space: nowrap;
  opacity: 0.8;
}
.doc-list .arrow {
  font-family: "IBM Plex Mono", monospace;
  color: var(--brass);
  opacity: 0.7;
}

.doc-group-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--river);
  margin: 2.2rem 0 0.4rem;
}
.doc-group-label:first-child { margin-top: 0; }

/* ---------- Info / contact blocks ---------- */

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2.25rem;
  margin-top: 1rem;
}
.info-block h3 {
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--brass);
  margin-bottom: 0.6rem;
}
.info-block p { margin: 0 0 0.3em; font-size: 0.98rem; }

.board-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  columns: 2;
  column-gap: 2.5rem;
}
.board-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  break-inside: avoid;
  font-size: 0.98rem;
}
.board-list .role {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--river);
  margin-bottom: 0.15rem;
}
@media (max-width: 560px) { .board-list { columns: 1; } }

/* ---------- Gated notice (documents) ---------- */

.gate-note {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: var(--parchment-dim);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  margin-bottom: 2.25rem;
  font-size: 0.92rem;
  color: var(--spruce-dark);
}
.gate-note .mark {
  font-family: "IBM Plex Mono", monospace;
  color: var(--brass);
  font-size: 1.1rem;
  line-height: 1;
}

/* ---------- Embed frame (Who's at the Club) ---------- */

.embed-frame {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.embed-frame iframe {
  display: block;
  width: 100%;
  height: 70vh;
  min-height: 420px;
  border: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brass);
  color: var(--spruce-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.3rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--brass-light); color: var(--spruce-dark); }
.btn.ghost {
  background: transparent;
  border: 1px solid rgba(244,239,226,0.4);
  color: var(--parchment);
}
.btn.ghost:hover { border-color: var(--brass-light); color: var(--brass-light); }

/* ---------- Footer ---------- */

footer.site-footer {
  background: var(--spruce-dark);
  color: var(--parchment);
  padding: 2.75rem 1.25rem 2.25rem;
  margin-top: 2rem;
}
.footer-inner {
  max-width: var(--wide);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: flex-end;
}
.footer-inner .brand-line {
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
}
.footer-inner .meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  color: rgba(244,239,226,0.55);
  letter-spacing: 0.02em;
}

/* ---------- Utility ---------- */

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