:root {
  --paper: #f3eee4;
  --panel: #f8f4ec;
  --carbon: #242421;
  --ash: #3c3a36;
  --line: #8a8176;
  --rust: #b66b45;
  --canary: #e4d39a;
  --pinkcopy: #d8b4ac;
  --copyteal: #5e6b67;
  --ivory: #fffaf2;
  --shadow: 0 18px 40px rgba(36, 36, 33, 0.12);
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--carbon);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}
body.opening-active { overflow: hidden; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 80;
  background: var(--carbon);
  color: var(--paper);
  padding: 8px 12px;
}

/* Opening */
.opening {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--paper);
  display: grid;
  place-items: center;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.opening.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.opening-skip {
  position: absolute;
  top: 22px;
  right: 22px;
  border: 0;
  background: transparent;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  cursor: pointer;
}
.stage {
  width: min(720px, 88vw);
  height: min(420px, 58vh);
  position: relative;
}
.foil-sheet,
.under-sheet,
.canary-sheet {
  position: absolute;
  inset: 18% 16% 16% 18%;
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.under-sheet { background: var(--pinkcopy); transform: rotate(-2.4deg); }
.canary-sheet { background: var(--canary); transform: rotate(1.6deg); }
.foil-sheet {
  background: var(--ivory);
  border: 1px solid rgba(36, 36, 33, 0.18);
  overflow: hidden;
}
.pressure {
  position: absolute;
  left: 10%;
  top: 28%;
  width: 0;
  height: 2px;
  background: var(--rust);
  animation: draw 2.4s 1.6s ease forwards;
}
.ghost {
  position: absolute;
  left: 10%;
  top: 36%;
  width: 72%;
  color: var(--copyteal);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  opacity: 0;
  animation: ghostIn 2s 3.2s ease forwards;
}
.smudge {
  position: absolute;
  width: 78px;
  height: 46px;
  right: 14%;
  bottom: 18%;
  background: radial-gradient(circle at 40% 40%, #3c3a36 0 28%, transparent 70%);
  opacity: 0;
  transform: scale(0.4);
  animation: stamp 1.2s 5.1s ease forwards;
}
.wordmark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, 24px);
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 7vw, 72px);
  letter-spacing: 0.08em;
  opacity: 0;
  animation: reveal 1.4s 7.4s ease forwards;
}
.opening-kicker {
  position: absolute;
  left: 50%;
  bottom: 6%;
  transform: translateX(-50%);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  opacity: 0;
  animation: reveal 1s 8.6s ease forwards;
}
@keyframes draw { to { width: 68%; } }
@keyframes ghostIn { to { opacity: 0.86; } }
@keyframes stamp { to { opacity: 0.72; transform: scale(1); } }
@keyframes reveal { to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) {
  .opening { display: none; }
  body.opening-active { overflow: auto; }
}

/* Chrome */
.site { min-height: 100vh; }
.nav {
  position: sticky;
  top: 12px;
  z-index: 20;
  margin: 12px auto 0;
  width: min(1180px, calc(100% - 24px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  background: #1f2320;
  color: var(--paper);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--serif);
  letter-spacing: 0.12em;
  font-size: 15px;
}
.brand svg { display: block; }
.nav-links {
  display: flex;
  gap: 22px;
  font-size: 13px;
}
.nav-links a { text-decoration: none; opacity: 0.86; }
.nav-links a:hover { opacity: 1; }
.nav-cta {
  border: 0;
  border-radius: 999px;
  background: var(--rust);
  color: var(--ivory);
  padding: 8px 14px;
  cursor: pointer;
}

.hero {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
}
.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copyteal);
}

.folio {
  position: relative;
  min-height: 620px;
  background:
    linear-gradient(90deg, #2a2a26 0 28px, transparent 28px),
    var(--panel);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.folio::before {
  content: "";
  position: absolute;
  inset: 18px 18px 18px 46px;
  background-image: url("../assets/foil-spread.png");
  background-size: cover;
  background-position: center;
  opacity: 0.16;
  pointer-events: none;
}
.folio-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.15fr 280px;
  gap: 18px;
  padding: 28px 24px 24px 56px;
  min-height: 620px;
}
.page {
  background: var(--ivory);
  border-radius: 10px;
  border: 1px solid rgba(36, 36, 33, 0.1);
  padding: 20px;
  box-shadow: 0 8px 20px rgba(36, 36, 33, 0.06);
}
.page h2 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 560;
}
.lede { margin: 0 0 16px; color: var(--ash); font-size: 14px; }
.meta-row, .filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.pill {
  border: 1px solid rgba(36, 36, 33, 0.16);
  background: transparent;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  cursor: pointer;
}
.pill.is-active, .pill[aria-pressed="true"] {
  background: var(--carbon);
  color: var(--paper);
  border-color: var(--carbon);
}
.search {
  width: 100%;
  border: 1px solid rgba(36, 36, 33, 0.16);
  border-radius: 999px;
  padding: 9px 14px;
  background: var(--paper);
  margin-bottom: 12px;
}
.slip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
}
.slip-list button {
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: var(--paper);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
}
.slip-list button.is-selected { border-color: var(--rust); background: #fff6ea; }
.slip-list strong { display: block; font-size: 14px; }
.slip-list span { font-family: var(--mono); font-size: 11px; color: var(--copyteal); }

.receipt {
  background:
    linear-gradient(180deg, var(--canary) 0 10px, var(--ivory) 10px);
  position: relative;
}
.receipt::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 84px;
  height: 50px;
  background: radial-gradient(circle at 35% 40%, rgba(60, 58, 54, 0.55), transparent 68%);
  pointer-events: none;
}
.sim-flag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--pinkcopy);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.field { display: grid; gap: 4px; margin-bottom: 12px; }
.field span { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--copyteal); }
.field input, .field textarea {
  border: 0;
  border-bottom: 1px solid rgba(36, 36, 33, 0.22);
  background: transparent;
  padding: 6px 0;
  resize: vertical;
}
.readonly {
  font-family: var(--mono);
  font-size: 13px;
}
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
}
.btn-primary { background: var(--rust); color: var(--ivory); }
.btn-ghost { background: transparent; border: 1px solid rgba(36, 36, 33, 0.2); }
.hint { margin: 10px 0 0; font-size: 12px; color: var(--copyteal); }

.detail {
  background: var(--ivory);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow);
  align-self: start;
}
.detail img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}
.detail h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 22px; }
.detail dl { margin: 0; display: grid; gap: 8px; font-size: 13px; }
.detail dt { color: var(--copyteal); text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; }
.detail dd { margin: 2px 0 0; }
.empty { color: var(--copyteal); font-size: 14px; }

.editorial {
  width: min(1180px, calc(100% - 32px));
  margin: 72px auto 0;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}
.editorial h2 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 68px);
  line-height: 0.95;
  font-weight: 560;
}
.editorial p { margin: 0 0 16px; font-family: var(--serif); font-size: 18px; }
.editorial a { color: var(--rust); }
.spread {
  position: relative;
  min-height: 360px;
}
.spread img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.spread figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(248, 244, 236, 0.92);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
}

.method {
  width: min(1180px, calc(100% - 32px));
  margin: 80px auto 0;
}
.method h2 {
  font-family: var(--serif);
  font-size: 36px;
  margin: 0 0 20px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.step {
  background: var(--panel);
  border-radius: 14px;
  padding: 18px;
}
.step strong { display: block; font-family: var(--mono); font-size: 12px; color: var(--rust); margin-bottom: 8px; }
.step h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 22px; }
.step p { margin: 0; color: var(--ash); }

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 72px auto 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(36, 36, 33, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ash);
}
.site-footer button { background: none; border: 0; cursor: pointer; text-decoration: underline; }

.soon {
  position: fixed;
  inset: 0;
  background: rgba(36, 36, 33, 0.42);
  display: none;
  place-items: center;
  z-index: 40;
  padding: 24px;
}
.soon.is-open { display: grid; }
.soon-card {
  width: min(480px, 100%);
  background: var(--ivory);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.soon-card h2 { font-family: var(--serif); margin: 0 0 8px; }
.soon-card p { margin: 0 0 12px; }
.soon-kicker {
  display: inline-block;
  margin-bottom: 10px;
  letter-spacing: 0.16em;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--rust);
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .folio-grid, .editorial, .steps { grid-template-columns: 1fr; }
  .folio { min-height: 0; }
  .spread img { height: 280px; }
}
