/* BEINU shared design tokens & components — coordinator-owned */
:root {
  --bg: #1D1813;
  --surface: #2A221B;
  --paper: #EDE3D3;
  --text: #F0E8DC;
  --muted: rgba(240, 232, 220, 0.66);
  --accent: #C98F4E;
  --accent-soft: rgba(201, 143, 78, 0.18);
  --stitch: #C98F4E;
  --font-heading: "Noto Serif SC", serif;
  --font-body: "Noto Sans SC", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --font-western: "Rye", serif;
}
html[data-theme="halloween"] {
  --accent: #E8862B;
  --stitch: #E8862B;
  --accent-soft: rgba(232, 134, 43, 0.2);
}
html[data-theme="christmas"] {
  --accent: #7FA98C;
  --stitch: #7FA98C;
  --accent-soft: rgba(127, 169, 140, 0.2);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1200px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 48px); }

/* Typography roles */
.display {
  font-family: var(--font-heading);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
h1.display { font-size: clamp(40px, 6vw, 76px); }
h2.display { font-size: clamp(30px, 4.2vw, 52px); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}
.body-copy { max-width: 65ch; color: var(--muted); }
.mono-label { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; }

/* Saddle-stitch double seam (recurring brand motif) */
.seam {
  height: 7px;
  border-top: 2px dashed var(--stitch);
  border-bottom: 2px dashed var(--stitch);
  opacity: 0.85;
}
.seam--soft { opacity: 0.5; }

/* CTAs — each section carries its own treatment */
.btn-stitch {
  display: inline-block;
  padding: 14px 34px;
  border: 2px dashed var(--stitch);
  border-radius: 10px;
  color: var(--text);
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: background 0.25s ease, color 0.25s ease;
}
.btn-stitch:hover { background: var(--accent-soft); }
.btn-tag {
  display: inline-block;
  padding: 16px 42px;
  background: var(--paper);
  color: #2A221B;
  font-weight: 700;
  border-radius: 3px;
  outline: 2px dashed rgba(42, 34, 27, 0.35);
  outline-offset: -8px;
  transition: transform 0.2s ease;
}
.btn-tag:hover { transform: translateY(-2px); }
.link-stitched {
  position: relative;
  padding-bottom: 6px;
  color: var(--accent);
  font-weight: 500;
  background-image: repeating-linear-gradient(90deg, var(--stitch) 0 6px, transparent 6px 10px);
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 100% 2px;
}

/* Focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(29, 24, 19, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(240, 232, 220, 0.12);
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}
.wordmark {
  font-family: var(--font-western);
  font-size: 22px;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.wordmark small {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.34em;
  color: var(--muted);
}
.site-nav { display: flex; gap: clamp(16px, 2.5vw, 32px); flex-wrap: wrap; }
.site-nav a { font-size: 15px; color: var(--muted); transition: color 0.2s; }
.site-nav a:hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 1px solid rgba(240,232,220,0.3); color: var(--text); padding: 8px 12px; border-radius: 6px; cursor: pointer; }
@media (max-width: 760px) {
  .site-nav { display: none; width: 100%; flex-direction: column; padding-bottom: 14px; }
  .site-nav.open { display: flex; }
  .nav-toggle { display: block; }
}

/* Footer */
.site-footer { border-top: none; }
.site-footer .inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 40px 0 48px;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 14px; color: var(--muted); }
.site-footer nav a:hover { color: var(--text); }
/* inert placeholder for pages not yet built */
.nav-soon { opacity: .55; cursor: help; text-decoration: none; }
nav a.nav-soon, .site-nav .nav-soon { display: inline-block; padding: inherit; color: var(--text); }
.site-nav .nav-soon { font-size: 15px; letter-spacing: .06em; }
.site-footer .nav-soon { color: var(--text); }
