:root {
  --paper: #efe6d6;
  --card: #f7f1e4;
  --ink: #1a1612;
  --muted: #5c5348;
  --line: #1a1612;
  --signal: #c81d12;
  --stamp: #1a1612;
  --display: "Archivo Black", "Arial Black", Impact, sans-serif;
  --sans: "Schibsted Grotesk", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  --shadow: 6px 6px 0 var(--stamp);
  --shadow-sm: 3px 3px 0 var(--stamp);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --paper: #12110e;
  --card: #1c1a16;
  --ink: #f3eadc;
  --muted: #b7ab9a;
  --line: #f3eadc;
  --signal: #ff5a45;
  --stamp: #f3eadc;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --paper: #12110e;
    --card: #1c1a16;
    --ink: #f3eadc;
    --muted: #b7ab9a;
    --line: #f3eadc;
    --signal: #ff5a45;
    --stamp: #f3eadc;
    color-scheme: dark;
  }
}

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

html {
  background: var(--paper);
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
}

h1, h2, h3, p, ul, blockquote { margin: 0; }
h1, h2, h3 { overflow-wrap: break-word; text-wrap: balance; }
ul { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
input, textarea, select { font-size: 16px; }

::selection { background: var(--signal); color: #fff; }

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

.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: -48px;
  z-index: 50;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.site { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1; }

.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}

.bar { width: 72px; height: 8px; background: var(--signal); margin: 14px 0; }

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--paper);
  border-bottom: 2px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.nav::after { content: ""; display: block; height: 4px; background: var(--signal); }
.nav-row { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }

.brand,
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.04em;
  font-size: 1.45rem;
  text-transform: uppercase;
  line-height: 1;
}

.mark,
.mono-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  font-size: 1.15rem;
  flex: none;
}

.links { display: flex; align-items: center; gap: 4px; }
.links > .btn-solid { margin-left: 8px; }

.nav-link {
  color: inherit;
  text-decoration: none;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 10px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-link.on { background: var(--ink); color: var(--paper); }

.count {
  display: inline-grid;
  place-items: center;
  min-width: 1.4em;
  padding: 0 4px;
  background: var(--signal);
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--line);
  background: var(--card);
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border: 2px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out), background-color 160ms ease, color 160ms ease;
}
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-line { background: var(--card); }
.btn-text { border: 0; box-shadow: none; background: transparent; padding: 0; text-decoration: underline; text-underline-offset: 4px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.btn:active:not(:disabled) { transform: scale(0.97); }

button, a, .chip, .nav-link, .nav-toggle, .stepper button {
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.card {
  background: var(--card);
  color: var(--ink);
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
}
.lift { transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out); }

.hero {
  min-height: calc(100vh - 74px);
  min-height: calc(100svh - 74px);
  display: grid;
  align-items: stretch;
  padding: 0;
}
.hero .wrap { width: 100%; max-width: none; margin: 0; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 0;
  align-items: stretch;
  min-height: calc(100svh - 74px);
}
.hero-grid > :first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 64px 64px max(20px, calc((100vw - 1120px) / 2));
}

.display {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.4rem, 9vw, 7.4rem);
  line-height: 0.84;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.display span { display: block; }
.display .shift { padding-left: 0.42em; color: var(--signal); }

.lead { font-size: 1.15rem; max-width: 36ch; margin-top: 22px; }
.lede-rule { border-left: 4px solid var(--signal); padding-left: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.stage {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 22px;
  background: var(--ink);
  color: var(--paper);
  padding: 48px 36px;
  box-shadow: inset 4px 0 0 var(--signal);
}
.hero-cover, .stage .pull { width: min(100%, 340px); }
.stage .pull {
  background: transparent;
  color: var(--paper);
  border: 0;
  border-left: 4px solid var(--signal);
  box-shadow: none;
  padding: 2px 0 2px 14px;
}
.stage .pull p { color: var(--paper); }
.stage .pull footer { color: color-mix(in srgb, var(--paper) 72%, transparent); }
.stage .cover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 8px 8px 0 var(--signal);
}

.pull p { font-family: Georgia, "Liberation Serif", Times New Roman, serif; font-size: 1.35rem; line-height: 1.25; }
.pull footer {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.band { background: #1a1612; color: #f7f1e4; border-top: 8px solid var(--signal); }
.band .kicker { color: #f4e7a5; }
.section { padding: 72px 0; }
.section-head { max-width: 36rem; margin-bottom: 28px; }
.section-head h2,
.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 0.88;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.section-head p { margin-top: 12px; max-width: 42ch; }

.arrivals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.arrival { text-decoration: none; color: inherit; display: grid; gap: 12px; }
.arrival h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 0.95;
}
.arrival p {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d9c7a5;
}

.cover {
  aspect-ratio: 3 / 4;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 200ms var(--ease-out);
}
.cover.paper { background: var(--card); color: var(--ink); }
.band .cover.paper {
  background: #f7f1e4;
  color: #1a1612;
  border-color: #1a1612;
  box-shadow: 6px 6px #000;
}
.cover-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cover-meta span:first-child { min-width: 0; overflow-wrap: break-word; }
.cover strong {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.hero-cover .cover strong { font-size: 2.4rem; }
.book .cover { box-shadow: none; }

.page { padding: 36px 0 72px; }
.page-head h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.2rem, 9vw, 6.2rem);
  line-height: 0.84;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.page-head p { max-width: 46ch; }

.catalog-top { display: grid; gap: 8px; margin-bottom: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid var(--line);
  background: transparent;
  color: var(--ink);
  min-height: 44px;
  padding: 0 12px;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, color 160ms ease;
}
.chip.on { background: var(--ink); color: var(--paper); }
.chip:active { transform: scale(0.97); }

.shelf { display: grid; gap: 22px; }
.book { display: grid; grid-template-columns: 180px 1fr; gap: 22px; padding: 16px; }
.book > div { display: flex; flex-direction: column; min-width: 0; }
.book h2,
.person h2,
.bag-line h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.9;
}
.by { font-family: var(--mono); font-size: 13px; color: var(--muted); margin: 8px 0; letter-spacing: 0.04em; }
.book-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 16px; }
.price, .total { font-family: var(--display); font-weight: 400; font-size: 1.6rem; letter-spacing: -0.03em; }

.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.person { padding: 16px; }
.person .mono-mark { width: 72px; height: 72px; font-size: 1.6rem; margin-bottom: 14px; }
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: center; margin-top: 56px; }
.rules { display: grid; gap: 8px; margin-top: 16px; }
.rules li { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.rules li::before { content: "■ "; color: var(--signal); }
.ethos {
  min-height: 260px;
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  background: var(--card);
}
.ethos span {
  font-family: var(--display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  letter-spacing: -0.04em;
  color: color-mix(in srgb, var(--ink) 18%, transparent);
}

.pitch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.pitch-grid > :last-child { min-width: 0; }
.sheet { padding: 18px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field span { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.field input, .field textarea {
  width: 100%;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--line);
  padding: 12px;
  font-size: 16px;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.hint, .err { font-family: var(--mono); font-size: 13px; margin: 0 0 8px; }
.hint { color: var(--muted); }
.err { color: var(--signal); }

.report {
  background: #f4e7a5;
  color: #1a1612;
  border: 2px solid #1a1612;
  box-shadow: 6px 6px #1a1612;
  padding: 22px;
  display: grid;
  gap: 14px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}
@starting-style {
  .report { opacity: 0; transform: translateY(8px); }
}
.report-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--display); font-size: 2rem; }
.stamp {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2px solid #1a1612;
  padding: 4px 8px;
  color: #1a1612;
}
.stamp.desk { background: #1a1612; color: #f4e7a5; }
.stamp.pass { background: #c81d12; color: #fff; border-color: #c81d12; }
.report h2 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-top: 2px solid #1a1612;
  padding-top: 12px;
}
.blurb { font-family: Georgia, "Liberation Serif", Times New Roman, serif; font-size: 1.25rem; line-height: 1.35; }

.waiting {
  min-height: 420px;
  border: 2px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  padding: 24px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  gap: 16px;
}
.waiting::before { content: ""; width: 72px; height: 8px; background: var(--signal); }

.slips { display: grid; gap: 8px; margin-top: 18px; }
.slips button {
  text-align: left;
  border: 2px solid var(--line);
  background: var(--card);
  padding: 10px 12px;
  min-height: 44px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  transition: transform 160ms var(--ease-out);
}
.slips button:active { transform: scale(0.98); }
.slips button span { font-family: var(--mono); font-size: 12px; color: var(--muted); }

.empty { padding: 28px 0 12px; display: grid; gap: 12px; justify-items: start; }
.empty h2 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 8vw, 4rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.bag { padding: 8px 18px 18px; }
.bag-line { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; border-bottom: 2px solid var(--line); padding: 16px 0; }
.stepper { display: flex; align-items: center; gap: 8px; font-family: var(--mono); }
.stepper button { width: 44px; height: 44px; border: 2px solid var(--line); background: var(--paper); color: var(--ink); }
.stepper button:disabled { opacity: 0.4; cursor: not-allowed; }
.stepper button:active:not(:disabled) { transform: scale(0.97); }
.bag-foot { display: flex; justify-content: space-between; align-items: end; gap: 16px; padding-top: 16px; }
.total { display: flex; gap: 18px; align-items: baseline; font-size: 2rem; }

.footer {
  background: #1a1612;
  color: #f7f1e4;
  padding: 40px 0 calc(28px + env(safe-area-inset-bottom, 0px));
}
.footer .kicker { color: #f4e7a5; }
.footer .wordmark { color: #f7f1e4; font-size: 2rem; margin-bottom: 10px; }
.footer a { color: #f7f1e4; text-decoration: none; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.footer ul { display: grid; gap: 6px; }
.fine { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: #cbbfa8; line-height: 1.45; }
.foot-end { margin-top: 28px; padding-top: 14px; border-top: 1px solid #3a332b; }

@media (prefers-reduced-motion: no-preference) {
  .arrival {
    animation: rise 280ms var(--ease-out) both;
  }
  .arrival:nth-child(2) { animation-delay: 50ms; }
  .arrival:nth-child(3) { animation-delay: 100ms; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (hover: hover) and (pointer: fine) {
  .btn:not(:disabled):hover,
  .lift:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 var(--stamp);
  }
  .btn:not(:disabled):hover:active { transform: translate(-2px, -2px) scale(0.97); }
  .arrival:hover .cover { transform: translate(-2px, -2px); }
  .footer a:hover { text-decoration: underline; }
  .nav-link:not(.on):hover { color: var(--signal); }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .lift, .cover, .chip, .arrival, .report, .slips button { transition: none; animation: none; }
  .btn:hover, .btn:active, .lift:hover, .arrival:hover .cover, .chip:active, .slips button:active { transform: none; }
  .btn:active:not(:disabled) { opacity: 0.85; }
}

@media (min-width: 981px) {
  .pitch-grid > :last-child { position: sticky; top: 96px; }
  .waiting { min-height: min(520px, calc(100svh - 140px)); }
}

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 2px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    gap: 2px;
  }
  .links[data-open="true"] { display: flex; }
  .links .btn { margin-top: 8px; margin-left: 0; }
  .hero, .hero-grid { min-height: 0; }
  .hero-grid,
  .pitch-grid,
  .split,
  .people,
  .arrivals,
  .footer-grid { grid-template-columns: 1fr; }
  .hero-grid > :first-child { padding: 32px 20px 12px; }
  .stage {
    justify-items: start;
    padding: 32px 20px 40px;
    box-shadow: inset 0 4px 0 var(--signal);
  }
  .hero .actions { flex-direction: column; align-items: stretch; }
  .people { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .book, .bag-line, .people { grid-template-columns: 1fr; }
  .book .cover { width: min(200px, 100%); }
  .slips button { flex-direction: column; }
  .bag-foot, .book-actions, .actions { align-items: stretch; flex-direction: column; }
}
