/* Nullzine — one style for every page.
   White paper strips laid over the collage wall, EB Garamond, black buttons, red star. */

:root {
  --night: #141016;      /* behind the wall */
  --paper: #ffffff;      /* strips */
  --ink: #141414;        /* text, buttons */
  --muted: #6b6470;      /* quiet notes */
  --star: #7a1d1d;       /* the Null star */
  --shade: rgba(16, 12, 20, 0.18);   /* over the video on the home page */
  --shade-deep: rgba(16, 12, 20, 0.62); /* over the wall everywhere else */
  --gutter: clamp(16px, 3vw, 28px);
  --serif: 'EB Garamond', Garamond, 'Times New Roman', Georgia, serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.45;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
a:hover { color: #000; }
:focus-visible { outline: 2px solid var(--star); outline-offset: 3px; }

/* the wall: a fixed collage behind every inner page and below the home hero */
.wall {
  position: fixed; inset: 0; z-index: -1;
  background: var(--night) url("media/wall.jpg") center / cover no-repeat;
}
.wall::after { content: ""; position: absolute; inset: 0; background: var(--shade-deep); }

/* ---------- strips ---------- */
.strip {
  display: inline-block;
  background: var(--paper);
  color: var(--ink);
  padding: 6px 16px;
  margin: 0;
}
/* a strip that wraps keeps each line on its own paper */
.strip-wrap {
  display: inline;
  background: var(--paper);
  padding: 4px 12px;
  line-height: 1.75;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.caps {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.it { font-style: italic; }
.stack { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.stack.center { align-items: center; text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  background: var(--ink); color: var(--paper);
  font-family: var(--serif); font-size: 20px;
  text-decoration: none; border: 0; cursor: pointer;
}
.btn:hover { background: #000; color: var(--paper); }
.btn.light { background: var(--paper); color: var(--ink); }
.btn.light:hover { background: #f1eee8; color: var(--ink); }
.btn[aria-disabled="true"] { background: var(--paper); color: var(--muted); font-style: italic; cursor: default; }
.btn.small { min-height: 46px; padding: 0 20px; font-size: 18px; }

/* ---------- header ---------- */
.top {
  position: absolute; top: calc(24px + env(safe-area-inset-top, 0px)); left: 0; right: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding-right: var(--gutter);
}
.top nav { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.tab {
  background: var(--paper); color: var(--ink);
  padding: 9px 16px; font-size: 17px; text-decoration: none;
}
.tab.home { padding-left: calc(var(--gutter) + 4px); font-weight: 800; }
.tab[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.top.flow { position: relative; top: auto; padding-top: calc(24px + env(safe-area-inset-top, 0px)); }

/* ---------- home hero ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px;
  overflow: hidden; background: var(--night);
}
.hero video, .hero .poster {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero .shade { position: absolute; inset: 0; background: var(--shade); }
.hero .center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 0 var(--gutter); text-align: center;
}
.star { background: var(--paper); padding: 11px; width: 88px; height: 88px; }
.star.sm { width: 54px; height: 54px; padding: 7px; }
.logo {
  margin: 0; background: var(--paper);
  padding: 0 clamp(18px, 3vw, 34px) 10px;
  font-weight: 500; font-size: clamp(64px, 11vw, 152px);
  line-height: 1; letter-spacing: -0.02em;
}
.hero .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 14px; }
.price-tag {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 22px;
  background: var(--paper); font-size: 20px;
}
.pause {
  position: absolute; left: var(--gutter); bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  width: 56px; height: 56px; border: 0; border-radius: 50%;
  background: var(--paper); color: var(--ink);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.corner {
  position: absolute; right: var(--gutter); bottom: calc(30px + env(safe-area-inset-bottom, 0px));
  background: var(--paper); padding: 7px 14px; font-size: 15px; margin: 0;
}

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 110px) var(--gutter); }
.wrap { max-width: 1120px; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }
.h2 {
  margin: 0; background: var(--paper); align-self: flex-start;
  padding: 0 20px 8px; font-weight: 500;
  font-size: clamp(42px, 6vw, 60px); line-height: 1; letter-spacing: -0.01em;
}

/* ---------- issue cards ---------- */
.issues { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.card .cover { width: 100%; aspect-ratio: 876 / 1240; display: block; }
.card .cover img { width: 100%; height: 100%; object-fit: cover; }
.card h3 {
  margin: 0; font-weight: 500; font-size: 23px; line-height: 1.25; text-wrap: balance;
}
.card .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.empty {
  width: 100%; aspect-ratio: 876 / 1240;
  border: 1.5px dashed rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.04);
  display: flex; align-items: center; justify-content: center;
}

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.step { background: var(--paper); padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 6px; }
.step .n { font-style: italic; font-size: 34px; line-height: 1; color: var(--star); }
.step h3 { margin: 0; font-size: 24px; font-weight: 500; }
.step p { margin: 0; }

/* ---------- issue page ---------- */
.issue-head {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(28px, 5vw, 64px); align-items: start;
}
.issue-head .cover img { width: 100%; }
.title-strips { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.title-strips span {
  background: var(--paper); padding: 2px 18px 8px;
  font-size: clamp(36px, 4.6vw, 58px); line-height: 1.05; font-weight: 500;
}
.title-strips span + span { font-style: italic; }
.blurb { max-width: 56ch; margin: 0; }
.paper-block { background: var(--paper); padding: 20px 24px; max-width: 56ch; }
.paper-block ul { margin: 6px 0 0; padding-left: 20px; }
.paper-block li + li { margin-top: 4px; }
.buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.note { font-size: 15px; }
.inside { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }

/* ---------- fold page ---------- */
.fold-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.fold-steps .step svg { width: 100%; height: auto; max-width: 220px; margin: 4px 0 10px; }

/* ---------- footer ---------- */
.foot {
  padding: 40px var(--gutter) calc(48px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
}
.foot .links { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.foot .strip { font-size: 15px; }

/* ---------- narrow screens ---------- */
@media (max-width: 900px) {
  .issues { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .steps, .fold-steps { grid-template-columns: minmax(0, 1fr); }
  .issue-head { grid-template-columns: minmax(0, 1fr); }
  .issue-head .cover { max-width: 420px; }
  .inside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .tab { padding: 8px 12px; font-size: 15px; }
  .top nav { gap: 6px; }
  .issues { grid-template-columns: minmax(0, 1fr); }
  .card .cover, .card .empty { max-width: 300px; }
  .star { width: 70px; height: 70px; padding: 9px; }
  .pause { width: 52px; height: 52px; }
  .corner { font-size: 14px; }
}
