@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Barlow+Condensed:wght@600;700;800&family=DM+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  --ink: #201b16;
  --paper: #f3e9d4;
  --white: #fff6e3;
  --orange: #ff6c39;
  --red: #a53d20;
  --muted: #665847;
  --display: "Archivo Black", Impact, sans-serif;
  --condensed: "Barlow Condensed", "Arial Narrow", sans-serif;
  --mono: "IBM Plex Mono", monospace;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "DM Sans", Arial, sans-serif; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background-image: radial-gradient(#65472924 .65px, transparent .75px); background-size: 5px 5px; pointer-events: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px dashed var(--red); outline-offset: 5px; }
#main:focus { outline: none; }
.wrap { width: min(1272px, calc(100% - 88px)); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; z-index: 10; padding: 1rem; background: var(--white); }
.masthead { background: var(--ink); color: var(--white); border-bottom: 5px solid var(--orange); }
.bar, .foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.bar { min-height: 67px; }
.wordmark { font: 800 21px/.95 var(--condensed); letter-spacing: .055em; display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.wordmark .accent { color: var(--orange); }
.foot .wordmark { gap: .24em; }
.mark { display: inline-grid; place-items: center; width: 27px; height: 27px; transform: rotate(-8deg); background: var(--orange); color: var(--ink); font: 22px/1 var(--display); }
.bar nav { display: flex; flex-wrap: wrap; min-width: 0; align-items: center; gap: 12px clamp(14px, 3vw, 40px); padding-block: 12px; font: 700 16px/1 var(--condensed); letter-spacing: .06em; text-transform: uppercase; }
.bar nav a { max-width: 100%; overflow-wrap: anywhere; }
.bar nav a:hover, .bar nav a[aria-current] { color: var(--orange); }
.bar .random { border: 1px solid #c7b79c; padding: 9px 12px; }
.hero { padding-top: 34px; }
.cover { position: relative; display: grid; grid-template-columns: 42% 58%; min-height: 510px; border: 4px solid var(--ink); background: var(--ink); box-shadow: 7px 7px 0 var(--ink); color: var(--white); isolation: isolate; }
.cover-copy { position: relative; z-index: 2; align-self: stretch; padding: clamp(22px, 3.1vw, 44px); padding-right: 0; display: flex; flex-direction: column; justify-content: center; }
.cover-copy::before { content: ""; position: absolute; inset: 0 -17% 0 0; z-index: -1; background: radial-gradient(#e7d4ac25 .65px, transparent .8px) 0 0 / 5px 5px, var(--ink); clip-path: polygon(0 0, 100% 0, 83% 100%, 0 100%); }
.eyebrow { font: 600 12px/1.25 var(--mono); letter-spacing: .11em; color: var(--red); }
.cover .eyebrow { color: #ffc29a; white-space: nowrap; }
.cover .eyebrow span { display: inline-block; width: 8px; height: 8px; background: var(--orange); border-radius: 50%; margin-right: 6px; box-shadow: 0 0 12px #ff7d3a8c; animation: signal 3s ease-in-out infinite; }
@keyframes signal { 50% { opacity: .48; } }
.cover h1 { font: 900 clamp(46px, 7.05vw, 107px)/.83 var(--display); letter-spacing: -.085em; margin: 25px 0 19px; transform: skew(-6deg); width: max-content; }
.cover h1 > span { display: block; }
.cover h1 > span:last-child { color: var(--orange); }
.bang { display: inline-block; margin-left: .055em; transform: rotate(9deg); }
.intro { font-size: clamp(15px, 1.4vw, 20px); line-height: 1.4; max-width: 29ch; color: #eadcc5; }
.hero-image { position: absolute; inset: 0 0 0 40%; overflow: hidden; background: #ad4c26; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: 64% center; }
.cover-caption { position: absolute; z-index: 3; bottom: 16px; right: 17px; background: #f7d17e; border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); color: var(--ink); padding: 7px 9px; font: 600 11px/1.2 var(--mono); transform: rotate(-2deg); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 23px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .65em; min-height: 42px; padding: 7px 13px; border: 2px solid currentColor; font: 800 17px/1 var(--condensed); text-transform: uppercase; letter-spacing: .045em; text-align: center; }
.orange { background: var(--orange); color: var(--ink); border-color: var(--ink); }
.cover .orange { border-color: var(--orange); }
.button:hover, .filters button:hover { background: var(--ink); color: var(--white); }
.cover .button:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.shelf { margin-top: 57px; margin-bottom: 62px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; margin-bottom: 20px; padding-bottom: 13px; border-bottom: 3px solid var(--ink); }
.section-head h2 { font: 900 clamp(33px, 5.4vw, 65px)/.95 var(--display); letter-spacing: -.075em; margin-top: 7px; }
.text-link { font: 800 17px/1.2 var(--condensed); text-transform: uppercase; letter-spacing: .06em; text-decoration: underline; text-underline-offset: .24em; }
.text-link:hover { color: var(--red); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tile { display: block; border: 3px solid var(--ink); background: var(--white); box-shadow: 4px 4px 0 var(--ink); transition: translate .18s, box-shadow .18s; }
.tile:hover { translate: -2px -3px; box-shadow: 7px 7px 0 var(--ink); }
.tile-art { position: relative; aspect-ratio: 1.85; overflow: hidden; background: #443b2e; }
.tile-art img { width: 100%; height: 100%; object-fit: cover; }
.palette-definitions { position: absolute; overflow: hidden; pointer-events: none; }
.ink-art { filter: url(#ink-palette); }
.issue-stamp { position: absolute; top: 11px; left: 11px; border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); background: #f9d583; padding: 5px 9px; font: 700 14px/1 var(--mono); z-index: 1; }
.tile-copy { min-height: 65px; padding: 10px 14px; border-top: 3px solid var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tile-copy h3 { font: 800 clamp(20px, 2.5vw, 33px)/1 var(--condensed); text-transform: uppercase; }
.tile-copy > span { color: var(--red); font-size: 22px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 23px; }
.filters button { cursor: pointer; padding: 7px 13px; border: 2px solid var(--ink); background: var(--white); color: var(--ink); font: 700 17px/1 var(--condensed); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.reader { max-width: 1080px; padding-block: 38px 50px; }
.reader-head { text-align: center; margin-bottom: 19px; }
.reader-head h1 { font: 900 clamp(33px, 7vw, 84px)/.95 var(--display); letter-spacing: -.075em; text-transform: uppercase; margin: 10px 0; overflow-wrap: anywhere; }
.reader-head > p:last-child { color: var(--muted); }
.issue-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-block: 20px; }
.issue-nav > :first-child { justify-self: start; }
.issue-nav > :last-child { justify-self: end; }
.original-strip { display: block; max-width: max-content; margin: auto; background: var(--ink); border: 3px solid var(--ink); }
.uploaded-pages { display: grid; gap: 12px; list-style: none; padding: 0; margin: 0; }
.strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0; gap: 12px; }
.panel { position: relative; isolation: isolate; display: flex; flex-direction: column; min-width: 0; border: 3px solid var(--ink); background: #41392e; overflow: hidden; }
.panel-lettering { flex: 1; padding: 8px 9px 12px; background: radial-gradient(#d3bf922d .65px, transparent .8px) 0 0 / 5px 5px, #3e372e; }
.caption { display: inline-block; border: 1px solid var(--ink); background: #e6cc94; color: var(--ink); padding: 4px 6px; font: 600 10px/1.15 var(--mono); }
.device-caption { background: #e3ddbd; }
.bubbles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 8px; margin-top: 6px; }
.bubbles.reversed > :first-child { grid-area: 1 / 2; }
.bubbles.reversed > :last-child { grid-area: 1 / 1; margin-top: 18px; }
.bubble { position: relative; z-index: 2; padding: 7px 9px 8px; border: 2px solid var(--ink); border-radius: 20px 16px 18px 15px / 14px 16px 13px 15px; background: #fff9e9; box-shadow: 2px 2px 0 var(--ink); font-size: clamp(13px, 1.55vw, 17px); font-style: italic; font-weight: 700; line-height: 1.2; }
.bubble.machine { border-radius: 2px; background: #ebd6a5; font: 600 clamp(12px, 1.4vw, 15px)/1.2 var(--mono); }
.speaker { display: block; margin-bottom: 3px; color: #70412e; font: 600 11px/1.2 var(--mono); letter-spacing: .075em; text-transform: uppercase; }
.illustration { flex: none; width: 100%; height: auto; aspect-ratio: auto 1.5; background: var(--ink); }
.bubble-tails { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.bubble-tails path { fill: #fff9e9; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.bubble-tails .machine-tail { fill: #ebd6a5; }
.page-links { display: contents; }
.content-page { max-width: 820px; margin-block: 38px 60px; }
.content-page h1 { font: 900 clamp(30px, 5vw, 62px)/1.05 var(--display); letter-spacing: -.065em; margin-bottom: 25px; }
.page-body { font-size: 18px; line-height: 1.7; }
.page-body p { margin-bottom: 20px; white-space: pre-line; }
.page-body h2 { font: 800 30px/1.2 var(--condensed); margin-block: 30px 14px; }
.newsletter { border-top: 3px solid var(--ink); padding-block: 25px 32px; margin-top: 35px; }
.newsletter h2, #newsletter-popup h2 { font: 800 32px/1.1 var(--condensed); margin-bottom: 10px; }
.newsletter-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-top: 16px; }
.newsletter-form label { display: grid; gap: 5px; flex: 1 1 220px; font-size: 14px; }
.newsletter-form input { width: 100%; min-height: 42px; border: 2px solid var(--ink); background: var(--white); padding: 8px; font: inherit; }
.newsletter-form button { cursor: pointer; }
.newsletter-form button:disabled { opacity: .6; }
.newsletter-status { flex-basis: 100%; }
.newsletter-honeypot { position: absolute; left: -10000px; }
.newsletter-form[hidden] { display: none; }
#newsletter-popup { width: min(510px, calc(100% - 28px)); padding: 30px 24px; border: 3px solid var(--ink); background: var(--paper); color: var(--ink); box-shadow: 8px 8px 0 var(--ink); }
#newsletter-popup::backdrop { background: #201b16b8; }
.newsletter-close { position: absolute; top: 3px; right: 8px; font-size: 27px; border: 0; color: var(--ink); background: transparent; cursor: pointer; }
footer { background: var(--ink); color: var(--white); border-top: 4px solid var(--orange); }
.foot { min-height: 88px; }
.foot p, .foot > a:last-child { font-size: 13px; }
.foot > a:last-child { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 900px) {
  .wrap { width: calc(100% - 44px); }
  .cover { min-height: 430px; }
  .cover h1 { font-size: clamp(45px, 8.4vw, 80px); }
  .cover-copy { padding-left: 22px; }
  .hero-actions { width: 115%; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 28px); }
  .bar { min-height: 68px; gap: 12px; flex-wrap: wrap; padding-block: 11px; }
  .bar nav { gap: 13px; font-size: 14px; }
  .bar .random { padding: 5px 7px; }
  .hero { padding-top: 18px; }
  .cover { display: flex; flex-direction: column-reverse; min-height: 0; box-shadow: 4px 4px 0 var(--ink); }
  .cover-copy { padding: 14px 14px 19px; margin-top: -18px; background: var(--ink); clip-path: polygon(0 18px, 100% 0, 100% 100%, 0 100%); padding-top: 28px; }
  .cover-copy::before { inset: 0; clip-path: none; }
  .cover h1 { font-size: clamp(36px, 9.2vw, 62px); margin: 14px 0 12px; }
  .intro { max-width: none; }
  .hero-image { position: relative; inset: auto; aspect-ratio: 1.85; }
  .cover-caption { top: 9px; bottom: auto; right: 9px; font-size: 8px; }
  .hero-actions { width: auto; margin-top: 16px; }
  .shelf { margin-block: 36px; }
  .section-head { align-items: flex-end; }
  .section-head .text-link { font-size: 13px; text-align: right; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tile-copy { min-height: 52px; padding: 7px; }
  .issue-stamp { font-size: 10px; top: 5px; left: 5px; padding: 3px 5px; }
  .strip { grid-template-columns: 1fr; }
  .issue-nav .button { font-size: 15px; padding-inline: 8px; white-space: nowrap; }
  .bubble { font-size: 14px; }
  .bubble.machine { font-size: 12px; }
  .foot { flex-wrap: wrap; padding-block: 18px; gap: 10px; }
  .foot p { order: 1; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
