/* The Cabin Critic: shared styles */
:root {
  --ink: #241d19;
  --ink-deep: #0f0b09;
  --paper: #fffaf1;
  --cream: #f5eee0;
  --sand: #efe4cf;
  --red: #d8261c;
  --red-dark: #ae1800;
  --orange: #f2621f;
  --amber: #f7941d;
  --muted: #6b5d52;
  --muted-light: #d8cdb8;
  --rule-dark: #5a4d43;
  --footer: #968878; /* design #8a7d6e, lifted to 4.8:1 for WCAG AA */
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: 'Archivo', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--red-dark); }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.on-red :focus-visible, .on-red:focus-visible { outline-color: var(--ink); }
h1, h2, h3, p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px;
  font-weight: 800; text-decoration: none;
}
.skip:focus { top: 12px; color: var(--paper); }

/* ---------- Shared type ---------- */
.eyebrow {
  font-size: 13px; font-weight: 700; font-stretch: 125%;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber);
}
.h-section {
  font-weight: 900; font-stretch: 125%; text-transform: uppercase;
  font-size: clamp(30px, 4vw, 48px); line-height: 0.95; letter-spacing: -0.02em;
  text-wrap: balance;
}
.h-card { font-size: 22px; font-weight: 900; font-stretch: 112%; line-height: 1.1; }
.body-muted { font-size: 16px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.tag {
  align-self: flex-start; font-size: 12px; font-weight: 800; font-stretch: 125%;
  letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 800; font-stretch: 125%; font-size: 13px;
  padding: 10px 18px; border: none; border-radius: 999px; cursor: pointer;
  text-decoration: none; white-space: nowrap;
}
.btn-red { background: var(--red); color: var(--paper); }
.btn-red:hover { background: var(--red-dark); color: var(--paper); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink-deep); color: var(--paper); }
.btn-lg { font-size: 14px; padding: 16px 26px; }
.btn .arrow { display: none; }
.btn[disabled] { cursor: progress; opacity: 0.8; }

/* ---------- Brand mark ---------- */
.brand { display: flex; align-items: center; gap: 16px; color: var(--cream); text-decoration: none; }
.brand:hover { color: var(--cream); }
.brand svg { display: block; flex: none; width: 90px; height: 48px; }
.brand-name {
  font-weight: 900; font-stretch: 125%; text-transform: uppercase;
  font-size: clamp(22px, 2.6vw, 30px); line-height: 1; letter-spacing: -0.01em; white-space: nowrap;
}

/* ---------- Stripes ---------- */
.stripes { display: flex; flex-direction: column; gap: 4px; background: var(--ink); }
.stripes i { display: block; }
.stripes i:nth-child(1) { height: 12px; background: var(--red); }
.stripes i:nth-child(2) { height: 8px; background: var(--orange); }
.stripes i:nth-child(3) { height: 5px; background: var(--amber); }

/* ---------- Split-flap board ---------- */
.board { display: flex; flex-direction: column; gap: calc(var(--w) * 0.14); }
.board-line { display: flex; gap: 3px; }
.flap {
  position: relative; overflow: hidden; flex: none;
  width: var(--w); height: calc(var(--w) * 1.38);
  display: grid; place-items: center; border-radius: 4px;
  background: linear-gradient(180deg, #3a302b 0 49%, var(--ink-deep) 49% 52%, #2f2723 52% 100%);
  color: var(--paper); font-weight: 800; font-stretch: 100%;
  font-size: calc(var(--w) * 0.86); line-height: 1;
}
.flap > span { display: block; transform-origin: 50% 50%; }
.flap::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  height: 2px; margin-top: -1px; background: var(--ink-deep);
}
.board-line.amber .flap { color: var(--amber); }

/* ---------- Phone mockup ---------- */
.phone-clip { width: var(--pw); height: var(--ph); overflow: hidden; flex: none; }
.phone {
  width: var(--pw);
  padding: calc(var(--pw) * 12 / 414);
  background: var(--ink-deep);
  border-radius: calc(var(--pw) * 56 / 414);
}
.phone-screen {
  position: relative; overflow: hidden; background: var(--paper);
  border-radius: calc(var(--pw) * 44 / 414);
  aspect-ratio: 390 / 844;
}
.phone-screen img { display: block; width: 100%; height: 100%; }
.phone-screen::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  top: calc(var(--pw) * 10 / 414);
  width: calc(var(--pw) * 110 / 414); height: calc(var(--pw) * 30 / 414);
  border-radius: 20px; background: var(--ink-deep);
}

/* ---------- Waitlist form status ---------- */
.form-status { font-size: 14px; font-weight: 600; line-height: 1.4; }
.form-status:empty { display: none; }
.form-status .pill {
  display: inline-block; margin-right: 8px; font-size: 11px; font-weight: 800; font-stretch: 125%;
  letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
  background: var(--ink); color: var(--amber); vertical-align: 1px;
}

/* ---------- Simple page header (privacy, 404, confirmed) ---------- */
.page-footer {
  background: var(--ink); color: var(--footer); padding: 28px var(--gutter); font-size: 13px;
}
.page-footer a { color: var(--footer); text-decoration: none; }
.page-footer a:hover { color: var(--amber); }
