/* Wasteland Stories comic site. One vertical column, dark bunker poster look. */
@font-face { font-family: "Big Shoulders Display"; src: url(fonts/bigshoulders-var.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(fonts/barlow-400.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(fonts/barlow-500.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(fonts/barlow-600.woff2) format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Share Tech Mono"; src: url(fonts/sharetechmono-400.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --bg: #0e0d0c;
  --bg-2: #141210;
  --bg-3: #1b1815;
  --line: #2c2722;
  --line-2: #433b33;
  --text: #ece5d9;
  --muted: #a0978a;
  --dim: #756d62;
  --rust: #d9601f;
  --rust-d: #a6430f;
  --amber: #ffa446;
  --paper: #e3d3a8;
  --ink: #17120d;
  --f-display: "Big Shoulders Display", "Oswald", "Arial Narrow", Impact, sans-serif;
  --f-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Share Tech Mono", ui-monospace, Menlo, Consolas, monospace;
  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 .88  0 0 0 0 .75  0 0 0 .09 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg) var(--noise);
  color: var(--text);
  font: 400 17px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px));
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- buttons and small plates ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: 15px 26px 14px;
  border: 0;
  background: var(--rust);
  color: #150e08;
  font: 800 21px/1 var(--f-display);
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 13px 100%, 0 calc(100% - 13px));
  transition: background .2s;
}
.btn:hover { background: var(--amber); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  clip-path: none;
  box-shadow: inset 0 0 0 2px var(--line-2);
  padding: 13px 22px 12px;
}
.btn--ghost:hover { background: transparent; box-shadow: inset 0 0 0 2px var(--amber); color: var(--amber); }
.btn--small { font-size: 17px; padding: 11px 18px 10px; }
.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 400 13px/1.3 var(--f-mono);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--amber);
}
.kicker::before { content: ""; width: 30px; height: 3px; background: var(--rust); flex: none; }
.mono { font-family: var(--f-mono); letter-spacing: .12em; text-transform: uppercase; font-size: 13px; color: var(--muted); }
.hazard {
  height: 10px;
  background: repeating-linear-gradient(-45deg, var(--rust) 0 10px, transparent 10px 20px);
  opacity: .5;
}

/* ---------- site nav (home, about) ---------- */
.nav {
  position: absolute;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 18px;
}
.brand {
  font: 400 14px/1 var(--f-mono);
  letter-spacing: .26em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
}
.nav-links { display: flex; gap: 22px; }
.nav-links a {
  font: 400 14px/1 var(--f-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  padding-block: 8px;
}
.nav-links a:hover { color: var(--amber); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: calc(env(safe-area-inset-top, 0px) + 112px) clamp(64px, 9vw, 120px);
}
.hero--small { padding-block: calc(env(safe-area-inset-top, 0px) + 112px) clamp(48px, 8vw, 90px); }
.hero-art { position: absolute; inset: 0; z-index: -2; background: #0b0908; }
.hero-art svg { width: 100%; height: 100%; display: block; max-width: none; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(14, 13, 12, 0) 62%, var(--bg) 100%),
    linear-gradient(90deg, rgba(14, 13, 12, .9) 0%, rgba(14, 13, 12, .55) 48%, rgba(14, 13, 12, 0) 82%);
}
.has-bg-hero .hero--home .hero-art { background: #0b0908 url(bg/hero.jpg) center / cover no-repeat; }
.has-bg-hero .hero--home .hero-art svg { display: none; }
.has-bg-about .hero--small .hero-art { background: #0b0908 url(bg/about.jpg) center / cover no-repeat; }
.has-bg-about .hero--small .hero-art svg { display: none; }
.hero-in { display: grid; gap: 22px; max-width: 1120px; }
.hero-in > * { max-width: 640px; }
.hero-in > .h-collection { max-width: 100%; }
.h-collection {
  font: 900 clamp(64px, 19vw, 156px)/.84 var(--f-display);
  overflow-wrap: break-word;
  letter-spacing: -.005em;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 4px 40px rgba(0, 0, 0, .6);
}
.h-collection--small { font-size: clamp(48px, 9vw, 96px); }
.lede { font: 600 clamp(20px, 3.2vw, 26px)/1.25 var(--f-body); color: var(--text); }
.sub { color: var(--muted); max-width: 46ch; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 8px; }
.resume {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  border-left: 3px solid var(--amber);
  background: rgba(20, 18, 16, .8);
  text-decoration: none;
  width: fit-content;
}
.resume[hidden] { display: none; }
.resume b { font: 800 22px/1.1 var(--f-display); letter-spacing: .05em; text-transform: uppercase; }
.resume:hover b { color: var(--amber); }

.glow { transform-origin: 1300px 252px; animation: flick 5.5s infinite steps(1, end); }
@keyframes flick {
  0%, 100% { opacity: 1; }
  38% { opacity: .92; }
  40% { opacity: .72; }
  42% { opacity: .96; }
  71% { opacity: .88; }
  73% { opacity: 1; }
}
.mote { animation: drift 9s ease-in-out infinite alternate; }
.mote:nth-child(2n) { animation-duration: 12s; animation-delay: -4s; }
.mote:nth-child(3n) { animation-duration: 15s; animation-delay: -8s; }
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(14px, -22px); } }

@media (max-width: 700px) {
  .has-bg-hero .hero--home::after, .has-bg-about .hero--small::after {
    background:
      linear-gradient(180deg, rgba(14, 13, 12, .55) 0%, rgba(14, 13, 12, .8) 70%, var(--bg) 100%);
  }
}

/* ---------- issues grid ---------- */
.issues { padding-block: clamp(40px, 7vw, 80px) clamp(48px, 8vw, 100px); }
.sec-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 24px;
  padding-bottom: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.sec-head h2 { font: 900 clamp(40px, 7vw, 64px)/.95 var(--f-display); text-transform: uppercase; letter-spacing: .01em; }
.order-note { color: var(--muted); margin-bottom: 28px; max-width: 60ch; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
  gap: 22px 14px;
}
@media (min-width: 640px) { .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 32px 20px; } }
.card { min-width: 0; }
.card > a, .card > div.card-in { display: block; text-decoration: none; }
.card-art {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #000;
  overflow: hidden;
  outline: 1px solid var(--line);
  outline-offset: 0;
}
.card-art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease, filter .3s; }
.card > a:hover .card-art, .card > a:focus-visible .card-art { outline: 2px solid var(--amber); }
.card > a:hover .card-art img { transform: scale(1.035); }
.stamp {
  position: absolute;
  left: 0;
  top: 12px;
  z-index: 2;
  padding: 6px 14px 6px 9px;
  background: var(--rust);
  color: #150e08;
  font: 400 12px/1 var(--f-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.card.is-read .stamp::after { content: " \2713"; }
.card-pages {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 6px 9px 5px;
  background: rgba(8, 7, 6, .82);
  font: 400 12px/1 var(--f-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text);
}
.card-body { padding-top: 12px; display: grid; gap: 4px; }
.card h3 { font: 800 clamp(24px, 4.4vw, 32px)/.95 var(--f-display); text-transform: uppercase; letter-spacing: .015em; text-wrap: balance; }
.card p { font-size: 14.5px; line-height: 1.4; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card.soon .card-art { background: var(--bg-2); }
.card.soon h3 { color: var(--dim); }

/* placeholder cover (no image yet) */
.card-ph, .title-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(90% 55% at 75% 8%, rgba(255, 164, 70, .42), rgba(217, 96, 31, .14) 45%, transparent 72%),
    linear-gradient(180deg, #1a120c, #0d0b0a 88%);
}
.card-ph { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 14px 12px; }
.card-ph b { font: 900 clamp(26px, 6vw, 40px)/.88 var(--f-display); text-transform: uppercase; text-wrap: balance; }
.card-ph i { font: 400 11px/1.2 var(--f-mono); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.card-ph::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: repeating-linear-gradient(-45deg, var(--rust) 0 8px, transparent 8px 16px); opacity: .55; }

/* ---------- about teaser, follow, footer ---------- */
.band { background: var(--bg-2); border-block: 1px solid var(--line); padding-block: clamp(40px, 7vw, 76px); }
.band-in { display: grid; gap: 28px 56px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 820px) { .band-in { grid-template-columns: 1.3fr 1fr; } }
.band h2 { font: 900 clamp(36px, 6vw, 54px)/.95 var(--f-display); text-transform: uppercase; margin-bottom: 14px; }
.band p + p { margin-top: 12px; }
.follow { display: flex; flex-wrap: wrap; gap: 12px; }
.follow-label { margin-bottom: 14px; }
.foot { padding-block: 28px calc(36px + env(safe-area-inset-bottom, 0px)); color: var(--dim); font: 400 13px/1.5 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.foot a { text-decoration: none; }
.producer { margin-top: 18px; }
.producer a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--rust); }
.producer a:hover { color: var(--amber); border-color: var(--amber); }
.foot a:hover { color: var(--amber); }

/* ---------- about page prose ---------- */
.prose { padding-block: clamp(32px, 6vw, 64px) clamp(48px, 8vw, 100px); }
.prose .col-text { max-width: 66ch; display: grid; gap: 18px; }
.prose h2 { font: 900 clamp(34px, 5vw, 46px)/1 var(--f-display); text-transform: uppercase; margin-top: 22px; color: var(--amber); }
.prose p { font-size: 19px; line-height: 1.6; }

/* ---------- reader ---------- */
.reader { background: #080706; }
.bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  height: calc(52px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
  background: rgba(10, 9, 8, .92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: transform .25s ease;
}
.bar.hide { transform: translateY(-100%); }
.bar-back {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 400 13px/1 var(--f-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  padding-block: 12px;
}
.bar-back:hover { color: var(--amber); }
.bar-back span { display: none; }
@media (min-width: 560px) { .bar-back span { display: inline; } }
.bar-title {
  flex: 1;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font: 400 13px/1 var(--f-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.bar-count { flex: none; min-width: 5.5em; text-align: right; font: 400 13px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--amber); }
.bar-prog { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--amber); transform-origin: 0 50%; transform: scaleX(0); }

.col { max-width: 800px; margin-inline: auto; padding-top: calc(52px + env(safe-area-inset-top, 0px)); }
.sheet { margin: 0 0 6px; background: var(--paper); line-height: 0; }
.sheet img { display: block; width: 100%; height: auto; }
.sheet--cover { background: #000; }
.sheet svg { display: block; width: 100%; height: auto; }
.sheet figcaption { display: block; padding: 13px max(20px, env(safe-area-inset-right, 0px)) 15px max(20px, env(safe-area-inset-left, 0px)); background: #0d0b0a; border-top: 1px solid var(--line); color: var(--text); font-size: 16px; line-height: 1.45; }
.sheet figcaption .mono { display: block; margin-bottom: 3px; color: var(--amber); }

.title-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: calc(100svh - 52px);
  min-height: 460px;
  padding: 28px max(20px, env(safe-area-inset-left, 0px)) 36px;
  margin-bottom: 6px;
}
.title-card .tc-art { position: absolute; inset: 0; z-index: -1; }
.title-card .tc-art svg { width: 100%; height: 100%; display: block; max-width: none; }
.title-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 7, 6, 0) 35%, rgba(8, 7, 6, .94) 100%); }
.tc-num { font: 900 clamp(120px, 30vw, 230px)/.78 var(--f-display); color: transparent; -webkit-text-stroke: 2px var(--amber); letter-spacing: .01em; }
.tc-title { font: 900 clamp(54px, 13vw, 112px)/.86 var(--f-display); text-transform: uppercase; text-wrap: balance; text-shadow: 0 4px 30px rgba(0, 0, 0, .7); }
.tc-line { max-width: 34ch; color: var(--text); font-size: clamp(17px, 2.6vw, 21px); line-height: 1.35; }
.tc-cue { font: 400 13px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

.ph-label { fill: #3a2c16; }

/* intro strip: the story's post text */
.intro { display: grid; gap: 10px; margin: 0 0 6px; padding: 26px max(20px, env(safe-area-inset-left, 0px)) 28px; background: #0d0b0a; border-block: 1px solid var(--line); line-height: 1.5; }
.intro p { max-width: 56ch; color: var(--muted); }
.intro .mono { color: var(--amber); }
.intro .intro-lead { font: 800 clamp(26px, 5vw, 36px)/1 var(--f-display); text-transform: uppercase; color: var(--text); text-wrap: balance; }
.end .end-q { font: 800 clamp(26px, 6vw, 36px)/1.05 var(--f-display); text-transform: uppercase; color: var(--text); text-wrap: balance; max-width: 20ch; }

/* end of issue */
.end { position: relative; isolation: isolate; overflow: hidden; margin-top: 18px; padding: 64px max(16px, env(safe-area-inset-right, 0px)) calc(150px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: linear-gradient(180deg, #080706, #15100c 70%, #1b120b); text-align: center; }
.has-bg-divider .end { background: linear-gradient(180deg, #080706 0%, rgba(8, 7, 6, .55) 40%, rgba(8, 7, 6, .9) 100%), url(bg/divider.jpg) center / cover no-repeat; }
.end-art { position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; height: 180px; }
.end-art svg { width: 100%; height: 100%; display: block; max-width: none; }
.has-bg-divider .end-art { display: none; }
.end-in { max-width: 560px; margin-inline: auto; display: grid; gap: 22px; justify-items: center; }
.end-stamp { font: 400 14px/1 var(--f-mono); letter-spacing: .3em; text-transform: uppercase; color: var(--amber); border: 2px solid var(--amber); padding: 9px 14px 8px; transform: rotate(-2deg); }
.end h2 { font: 900 clamp(40px, 9vw, 64px)/.9 var(--f-display); text-transform: uppercase; text-wrap: balance; }
.end p { color: var(--muted); }
.next-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  align-items: center;
  width: 100%;
  padding: 12px;
  background: rgba(20, 18, 16, .88);
  border: 1px solid var(--line-2);
  text-decoration: none;
  text-align: left;
}
.next-card:hover { border-color: var(--amber); }
.next-thumb { position: relative; aspect-ratio: 3 / 4; background: #000; overflow: hidden; }
.next-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.next-meta { display: grid; gap: 6px; min-width: 0; }
.next-meta b { font: 800 clamp(28px, 7vw, 38px)/.92 var(--f-display); text-transform: uppercase; text-wrap: balance; }
.next-meta span { font-size: 15px; color: var(--muted); line-height: 1.35; }
.end-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; }

@media (max-width: 380px) {
  .btn { font-size: 19px; padding: 14px 20px 13px; }
  .next-card { grid-template-columns: 88px 1fr; }
}

.studio { margin: 56px 0 24px; padding: 28px 0 0; border-top: 1px solid var(--line); max-width: 720px; }
.studio h2 { font: 800 clamp(26px, 5vw, 36px)/1.05 var(--f-display); text-transform: uppercase; letter-spacing: .02em; margin: 0 0 12px; }
.studio p { color: var(--muted); line-height: 1.6; margin: 0 0 14px; }
