/* TWIG Christmas — shared styles (Cloudflare Pages static) */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --cream: #f5efe6;
  --cream-soft: #ebe4d8;
  --forest: #1a3a2a;
  --forest-deep: #0f2419;
  --soft-red: #c45c4a;
  --soft-red-bright: #d46555;
  --ink: #111111;
  --veil: linear-gradient(90deg, rgba(0,0,0,.58) 0%, rgba(0,0,0,.18) 48%, rgba(0,0,0,.06) 100%);
  --veil-strong: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.28) 50%, rgba(0,0,0,.1) 100%);
  --focus: #f5d76e;
  --tap: 48px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  background: #0b0b0b;
  color: #fff;
  font-family: Inter, system-ui, -apple-system, sans-serif;
}

html.snap {
  scroll-snap-type: y mandatory;
  height: 100%;
}

body {
  min-height: 100%;
  background: #0b0b0b;
  color: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.page-doc {
  background: var(--cream);
  color: var(--ink);
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* Skip link */
.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  background: #fff;
  color: #111;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}
.skip-link:focus {
  top: 12px;
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* Top nav */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  gap: 12px;
}
.site-header.blend { mix-blend-mode: difference; }
.site-header.solid {
  mix-blend-mode: normal;
  background: rgba(15, 36, 25, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(245, 239, 230, 0.12);
}

.brand {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 22px;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: #fff;
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.7);
  color: #fff;
  min-width: var(--tap);
  min-height: var(--tap);
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px 20px;
  list-style: none;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
  padding: 4px 2px;
}
.nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(11,11,11,.96);
    padding: 8px 16px 16px;
    border-bottom: 1px solid rgba(255,255,255,.12);
    mix-blend-mode: normal;
  }
  .site-header.nav-open .nav-links { display: flex; }
  .site-header.blend.nav-open { mix-blend-mode: normal; background: rgba(11,11,11,.96); }
  .nav-links a {
    font-size: 14px;
    padding: 14px 8px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
}

/* Section rail */
.rail {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rail a {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.9);
  background: transparent;
  text-indent: -9999px;
  overflow: hidden;
  min-width: 10px;
  min-height: 10px;
}
.rail a.on { background: #fff; }
.rail a:focus-visible { outline-offset: 4px; }
@media (max-width: 720px) {
  .rail { right: 10px; gap: 8px; }
  .rail a { width: 8px; height: 8px; }
}

/* Full-bleed panels */
.panel {
  height: 100vh;
  height: 100dvh;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
}
.panel img.bg,
.panel .bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.veil {
  position: absolute;
  inset: 0;
  background: var(--veil);
  pointer-events: none;
}
.veil.strong { background: var(--veil-strong); }

.copy {
  position: absolute;
  left: 5vw;
  bottom: 9vh;
  max-width: min(460px, 88vw);
  z-index: 2;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 12px;
  color: var(--cream);
}
.copy h1,
.copy h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(36px, 6.2vw, 68px);
  line-height: 1.04;
  margin-bottom: 12px;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.copy h1 em,
.copy h2 em { font-style: italic; }
.copy p {
  font-size: 15px;
  line-height: 1.55;
  opacity: 0.92;
  margin-bottom: 20px;
  max-width: 36ch;
  color: var(--cream);
}

.hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
  color: #fff;
  pointer-events: none;
}

/* CTAs */
.cta,
.buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 14px 24px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.04em;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(0,0,0,.28);
  transition: transform 0.15s ease, background 0.15s ease;
}
.cta:hover,
.buy-btn:hover { transform: translateY(-1px); background: var(--cream); }
.cta:active,
.buy-btn:active { transform: translateY(0); }
.cta.secondary,
.buy-btn.secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.85);
  box-shadow: none;
}
.cta.secondary:hover,
.buy-btn.secondary:hover { background: rgba(255,255,255,.12); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.price { opacity: 0.75; margin-left: 4px; font-weight: 600; }
.checkout-note {
  display: none;
  font-size: 12px;
  opacity: 0.75;
  margin-top: 10px;
  color: var(--cream);
}
.checkout-note.is-live { display: block; }

/* Jump panel (end of tree) */
.panel.jump {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(196,92,74,.25), transparent 55%),
    radial-gradient(ellipse at 70% 60%, rgba(26,58,42,.55), transparent 50%),
    var(--forest-deep);
}
.jump-inner {
  text-align: center;
  padding: 32px 24px;
  max-width: 640px;
  z-index: 2;
}
.jump-inner h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(36px, 7vw, 64px);
  line-height: 1.05;
  margin-bottom: 14px;
}
.jump-inner p {
  opacity: 0.88;
  margin: 0 auto 28px;
  max-width: 40ch;
  font-size: 16px;
  color: var(--cream);
}
.jump-inner .cta-row { justify-content: center; }

/* Stage controls (sweaters / barn) */
.stage-controls {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 35;
  display: flex;
  gap: 12px;
  align-items: center;
}
.stage-btn {
  min-width: 120px;
  min-height: 52px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.9);
  background: rgba(11,11,11,.72);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.stage-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.stage-btn:hover:not(:disabled) { background: rgba(255,255,255,.15); }
.stage-count {
  font-size: 13px;
  letter-spacing: 0.08em;
  opacity: 0.85;
  min-width: 64px;
  text-align: center;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
}

/* Buy button on stage — extra giant */
.buy-btn.giant {
  min-height: 64px;
  padding: 16px 28px;
  font-size: 16px;
  background: var(--cream);
  color: var(--ink);
}
.buy-btn.giant:hover { background: #fff; }

/* Document pages (about) */
.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 110px 24px 80px;
}
.doc h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.08;
  color: var(--forest);
  margin-bottom: 20px;
}
.doc h1 em { font-style: italic; color: var(--soft-red); }
.doc p {
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 18px;
  color: #2a2a2a;
}
.doc .lede {
  font-size: 19px;
  color: var(--forest);
}
.doc a.inline {
  color: var(--soft-red);
  font-weight: 600;
}
.doc-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(26,58,42,.2);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.doc .cta {
  background: var(--forest);
  color: var(--cream);
}
.doc .cta:hover { background: var(--forest-deep); color: #fff; }

.site-footer {
  padding: 28px 24px 40px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
}
.page-doc .site-footer { color: var(--forest); opacity: 0.7; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta, .buy-btn { transition: none; }
}
