/* Samizdat Publications: design D, "The Press, with the big hero". Newsprint, ink, red stamps; photos in full colour. */
:root {
  --paper: #EEEBE3;
  --paper-2: #F6F4EE;
  --paper-3: #DEDAD0;
  --ink: #1B1B1A;
  --muted: #5E5B55;
  --red: #B3321C;
  --green: #1F6B3A;
  --display: 'Archivo Black', 'Arial Black', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--mono); font-size: 16px; line-height: 1.5; }
a { color: var(--ink); }
a:hover { color: var(--red); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
img, video { display: block; max-width: 100%; }
.wrap { max-width: 1360px; margin: 0 auto; padding: 0 40px; }
.muted { color: var(--muted); }

/* masthead */
.masthead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-top: 28px; padding-bottom: 14px; border-bottom: 3px solid var(--ink); background-clip: content-box; }
.masthead { border-bottom: 0; position: relative; }
.masthead::after { content: ''; position: absolute; left: 40px; right: 40px; bottom: 0; border-bottom: 3px solid var(--ink); }
.brand { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.brand .name { font-family: var(--display); font-size: 26px; text-transform: uppercase; letter-spacing: -0.01em; }
.brand .tag { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; }
nav a { padding: 8px 0; }

/* hero */
.hero { padding-top: 28px; }
.hero figure { margin: 0; }
.hero-frame { position: relative; overflow: hidden; height: clamp(320px, 52vw, 700px); background: var(--paper-3); }
.hero-frame video, .hero-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-frame::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 120px rgba(27, 27, 26, 0.3); pointer-events: none; }
.now-showing { position: absolute; left: 22px; top: 22px; z-index: 1; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; background: var(--ink); color: var(--paper); padding: 6px 10px; }
.stamp { position: absolute; top: 20px; right: 20px; z-index: 1; border: 3px solid currentColor; padding: 6px 13px; font-weight: 600; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; transform: rotate(-5deg); background: rgba(238, 235, 227, 0.92); }
.stamp.v1 { color: var(--green); }
.stamp.dev { color: var(--red); }
.stamp.proto { color: var(--muted); }
.hero-strip { position: relative; z-index: 2; margin: -132px 0 0 clamp(0px, 4vw, 56px); max-width: 980px; background: var(--paper); padding: 26px 30px 24px; border-top: 3px solid var(--ink); display: flex; flex-direction: column; gap: 14px; }
.hero-strip h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(36px, 6.4vw, 92px); line-height: 0.92; letter-spacing: -0.025em; text-transform: uppercase; }
.hero-sub { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: baseline; justify-content: space-between; }
.hero-sub p { margin: 0; font-size: 18px; max-width: 52ch; }
.hero-sub figcaption { font-size: 13px; font-style: italic; max-width: 48ch; }

/* status key */
.key { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; padding: 44px 0 48px; border-bottom: 1px solid var(--ink); }
.key > div { border-top: 2px solid var(--ink); padding-top: 10px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.k { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }
.k.v1, .stamp-text.v1 { color: var(--green); }
.k.dev, .stamp-text.dev { color: var(--red); }
.k.proto, .stamp-text.proto { color: var(--muted); }

/* feature */
.feature { padding: 56px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 40px; border-bottom: 1px solid var(--ink); }
.feature-pic { position: relative; display: block; }
.feature-pic img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.feature-pic .stamp { font-size: 13px; top: 16px; right: 16px; }
.feature-text { display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.eyebrow { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; }
.feature h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(40px, 5vw, 60px); line-height: 0.95; text-transform: uppercase; }
.feature p { margin: 0; font-size: 18px; max-width: 44ch; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 20px; border: 2px solid var(--ink); text-decoration: none; font-weight: 600; }
.btn.solid { background: var(--ink); color: var(--paper); }
.btn.solid:hover { background: var(--red); border-color: var(--red); color: var(--paper); }

/* which Claude models built it */
.built-with { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.dept.dark .built-with { color: #B9B5AC; }

/* departments: one section per category, featured picks first */
.dept { padding-top: 80px; display: flex; flex-direction: column; gap: 28px; }
.dept-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; border-bottom: 3px solid var(--ink); padding-bottom: 12px; }
.dept-no { font-family: var(--display); font-size: 22px; color: var(--red); }
.dept-head h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(32px, 4vw, 52px); line-height: 0.95; text-transform: uppercase; }
.dept.lead .dept-head h2 { font-size: clamp(36px, 5vw, 64px); }
.dept-tag { margin-left: auto; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.dept.dark { margin-top: 80px; padding: 40px clamp(20px, 3vw, 40px) 48px; background: var(--ink); color: var(--paper); }
.dept.dark a { color: var(--paper); }
.dept.dark a:hover { color: #F08A72; }
.dept.dark .dept-head { border-bottom-color: var(--paper); }
.dept.dark .dept-no { color: #F08A72; }
.dept.dark .stamp-text.v1 { color: #7FC79A; }
.dept.dark .stamp-text.dev { color: #F08A72; }
.dept.dark .stamp-text.proto { color: #B9B5AC; }
.dept.dark .muted { color: #B9B5AC; }
.dept.dark + .dept, .dept.dark + .catalogue { padding-top: 80px; }

.picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 32px 24px; }
.pick { display: flex; flex-direction: column; gap: 10px; }
.pick-link { display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.pick-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
.pick h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.02; text-transform: uppercase; }
.pick p { margin: 0; font-size: 14px; }
.pick .plate .stamp { font-size: 13px; top: 14px; right: 14px; }

.lead-row { display: flex; flex-wrap: wrap; gap: 28px; }
.pick-lead { flex: 3 1 560px; min-width: 0; gap: 14px; }
.pick-lead .pick-meta { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.pick-lead h3 { font-size: clamp(30px, 3.4vw, 44px); line-height: 0.98; }
.pick-lead p { font-size: 18px; max-width: 52ch; }
.lead-rest { flex: 2 1 420px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 24px; align-content: start; }

/* reels: one full-width spread per simulation, alternating sides */
.reels { display: flex; flex-direction: column; }
.reel { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 48px; padding: 44px 0; border-bottom: 1px solid var(--ink); }
.reel:first-child { padding-top: 16px; }
.reel-plate { flex: 7 1 560px; min-width: 0; display: block; }
.reel-text { flex: 4 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.reel.flip .reel-text { order: -1; }
.reel-num { font-family: var(--display); font-size: 72px; line-height: 0.8; color: var(--red); }
.reel h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(32px, 3.4vw, 44px); line-height: 0.96; text-transform: uppercase; }
.reel h3 a { text-decoration: none; }
.reel p { margin: 0; font-size: 18px; line-height: 1.55; }

/* catalogue */
.catalogue { padding: 80px 0 0; }
.cat-head { border-bottom: 3px solid var(--ink); padding-bottom: 12px; }
.cat-sub { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: -8px 0 20px; font-size: 14px; }
.cat-sub p, .cat-empty { margin: 0; }
.cat-empty { margin-bottom: 20px; font-size: 14px; }
.toggle { min-height: 44px; padding: 0 16px; font: inherit; font-size: 14px; font-weight: 600; background: transparent; color: var(--ink); border: 2px solid var(--ink); cursor: pointer; }
.toggle[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.cat-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.cat-head h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 40px; text-transform: uppercase; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { min-height: 44px; padding: 0 16px; font: inherit; font-size: 14px; background: transparent; color: var(--ink); border: 2px solid var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); border-top: 2px solid var(--ink); border-left: 1px solid var(--ink); }
.card { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.card[hidden] { display: none; }
.card-top { display: flex; justify-content: space-between; font-size: 13px; }
.stamp-text { font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.card-link { text-decoration: none; display: flex; flex-direction: column; gap: 12px; }
.plate { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-3); }
.plate img, .plate video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.plate video { opacity: 0; transition: opacity 0.2s; }
.plate video.on { opacity: 1; }
.plate.empty { display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; font-family: var(--display); text-transform: uppercase; font-size: 22px; color: var(--muted); border: 1px dashed var(--muted); }
.card h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.05; text-transform: uppercase; }
.card p { margin: 0; font-size: 14px; }
.set-in { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.set-in .label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.set-in ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.set-in li { border: 1px solid var(--ink); padding: 3px 7px; font-size: 12px; line-height: 1.2; background: var(--paper-2); }
.card-links { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; font-weight: 600; }
.card-links a, .card-links span { padding: 6px 0; }

/* colophon */
.colophon { margin-top: 72px; padding-top: 20px; padding-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; position: relative; }
.colophon::before { content: ''; position: absolute; left: 40px; right: 40px; top: 0; border-top: 3px solid var(--ink); }

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .masthead::after, .colophon::before { left: 16px; right: 16px; }
  .hero-strip { margin: -64px 0 0; padding: 18px 16px; }
  .now-showing { left: 12px; top: 12px; }
  .stamp { top: 12px; right: 12px; font-size: 12px; }
  .dept-tag { margin-left: 0; }
  .reel-num { font-size: 52px; }
  .reel.flip .reel-text { order: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .plate video { display: none; }
}
