:root {
  --ink: #101522;
  --paper: #f3ead7;
  --yellow: #f5d43b;
  --blue: #14a6d8;
  --pink: #e94f91;
  --red: #ef5c3b;
  --white: #fff;
  --green: #43df7b;
  --youtube: #ff0000;
  --discord: #5865f2;
  --line: rgba(16, 21, 34, .18);
  --display: "Barlow Condensed", Impact, sans-serif;
  --mono: "Space Mono", "Courier New", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--mono); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.page-width { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.hero { position: relative; min-height: 100svh; overflow: hidden; color: var(--white); background: var(--ink); isolation: isolate; }
.hero__image { position: absolute; inset: 0; z-index: -3; background: linear-gradient(90deg, rgba(7, 12, 23, .9) 0%, rgba(7, 12, 23, .43) 52%, rgba(7, 12, 23, .14)), url("Assets/Screenshots/hero-shop-workbench.webp") 62% center / cover; filter: saturate(1.15); }
.hero__scanlines { position: absolute; inset: 0; z-index: -2; pointer-events: none; opacity: .22; background: repeating-linear-gradient(0deg, transparent 0 4px, rgba(255,255,255,.16) 5px, transparent 6px); mix-blend-mode: screen; }
.hero__content { padding-top: clamp(150px, 28vh, 280px); }
.eyebrow, .section__label { font: 700 13px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.eyebrow { color: var(--yellow); font-size: 11px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); letter-spacing: 0; text-transform: uppercase; }
h1 { margin: 28px 0 12px; font-size: clamp(92px, 17vw, 210px); line-height: .68; font-weight: 900; letter-spacing: -.035em; }
h1 em { color: var(--yellow); font-style: normal; }
.hero__dek { margin: 40px 0 28px; font-size: clamp(14px, 1.5vw, 19px); }
.button { display: inline-flex; align-items: center; gap: 28px; padding: 15px 18px; font: 700 13px var(--mono); text-transform: uppercase; border: 1px solid currentColor; transition: transform .2s, box-shadow .2s; }
.button:hover { transform: translate(4px, -4px); box-shadow: 5px 5px 0 var(--ink); }
.button--yellow { color: var(--ink); background: var(--yellow); border-color: var(--yellow); }
.hero__stamp { position: absolute; right: 6%; top: 18%; transform: rotate(7deg); padding: 16px 24px; color: var(--yellow); border: 3px solid var(--yellow); font: 700 clamp(16px, 1.9vw, 26px)/1.2 var(--mono); letter-spacing: .1em; text-align: center; }
.hero__caption { position: absolute; right: 6%; bottom: 124px; width: min(520px, 42%); color: rgba(255,255,255,.88); font-size: 17px; line-height: 1.7; }

.site-nav { position: absolute; z-index: 10; bottom: 0; left: 0; display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 84px; padding: 0 6%; color: var(--white); background: var(--ink); border-bottom: 1px solid rgba(255,255,255,.16); transition: box-shadow .25s; }
.site-nav--page { position: sticky; top: 0; bottom: auto; box-shadow: 0 8px 20px color-mix(in srgb, var(--ink) 20%, transparent); }
.site-nav.is-stuck { position: fixed; top: 0; bottom: auto; box-shadow: 0 8px 20px color-mix(in srgb, var(--ink) 20%, transparent); }
.site-nav__brand, .footer__logo { display: flex; flex-direction: column; font: 900 32px/.72 var(--display); letter-spacing: -.04em; }
.site-nav__brand span { color: var(--yellow); font-size: 17px; letter-spacing: .1em; }
.footer__logo span { color: var(--blue); font-size: 17px; letter-spacing: .1em; }
.site-nav__links { display: flex; align-items: center; gap: clamp(16px, 3.4vw, 44px); margin-left: auto; margin-right: clamp(18px, 4vw, 64px); font: 700 13px var(--mono); text-transform: uppercase; }
.site-nav__links a { opacity: .72; }
.site-nav__icon { display: inline-flex; }
.site-nav__icon svg { display: block; width: 24px; height: 24px; }
.site-nav__status { display: flex; align-items: center; gap: 8px; font: 12px var(--mono); color: var(--yellow); white-space: nowrap; }
.site-nav__status span { width: 7px; height: 7px; background: var(--green); border-radius: 50%; }

.section { padding-block: clamp(76px, 11vw, 150px); }
.section__label { color: var(--red); }
.section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
h2 { margin: 18px 0 0; font-size: clamp(58px, 9vw, 120px); line-height: .78; font-weight: 800; }
h2 span { color: var(--red); }
.text-link { display: inline-flex; align-items: center; gap: 16px; padding-bottom: 7px; color: var(--red); font: 700 13px var(--mono); border-bottom: 1px solid currentColor; text-transform: uppercase; white-space: nowrap; }
.text-link span { font-size: 17px; }
.about__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 10%; margin-top: 70px; }
.about__copy { padding-top: 12px; max-width: 430px; font-size: 13px; line-height: 1.8; }
.lede { font: 500 22px/1.25 var(--display); text-transform: uppercase; }
.about__copy .lede { font-size: 26px; }
.about__copy .text-link { margin-top: 20px; }
.ticker { display: flex; justify-content: space-between; gap: 20px; margin-top: 100px; padding-block: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font: 700 13px var(--mono); text-transform: uppercase; }
.ticker span:nth-child(2) { color: var(--blue); }
.ticker span:nth-child(3) { color: var(--pink); }
.ticker span:nth-child(4) { color: var(--red); }

.section--ink { color: var(--white); background: var(--ink); }
.section--ink .section__label { color: var(--yellow); }
.text-link--light { color: var(--yellow); }
.blog h2 span { color: var(--blue); }
.post-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 18px; margin-top: 64px; }
.post-card { position: relative; min-height: 310px; padding: 24px; color: var(--ink); background: var(--yellow); }
.post-card--blue { background: var(--blue); }
.post-card--pink { color: var(--white); background: var(--pink); }
.post-card__meta { display: flex; justify-content: space-between; font: 10px var(--mono); text-transform: uppercase; opacity: .74; }
.post-card h3 { max-width: 330px; margin-top: 72px; font-size: clamp(30px, 3.4vw, 47px); line-height: .86; }
.post-card p { max-width: 340px; margin-bottom: 0; font-size: 11px; line-height: 1.65; }
.post-card__arrow { position: absolute; right: 22px; bottom: 17px; font-size: 28px; }

.media { background: var(--paper); }
.media__intro { display: grid; grid-template-columns: 1fr .5fr; align-items: end; gap: 10%; margin-top: 44px; }
.media__intro p { max-width: 330px; margin-bottom: 5px; font-size: 13px; line-height: 1.8; }
.media-grid { display: grid; grid-template-columns: 1.35fr .8fr .8fr; align-items: start; gap: 18px; margin-top: 70px; }
.media-tile { margin: 0; background: var(--ink); }
.media-tile img { width: 100%; height: auto; aspect-ratio: 1.35; object-fit: cover; filter: saturate(1.1); }
.media-tile--large img { aspect-ratio: 1.25; }
.media-tile--offset { margin-top: 54px; }
.media-tile figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 12px; color: var(--white); font: 10px var(--mono); text-transform: uppercase; }
.media-tile figcaption span { color: var(--yellow); }

.section--yellow { background: var(--yellow); }
.section--yellow .section__label { color: var(--ink); }
.forum__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 10%; margin-top: 58px; }
.forum__grid h2 span { color: var(--pink); }
.forum__grid .lede { max-width: 300px; margin-top: 28px; font-size: 20px; }
.forum-list { border-top: 1px solid var(--ink); }
.forum-row { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--ink); }
.forum-row__icon { font-size: 22px; }
.forum-row strong, .forum-row small { display: block; }
.forum-row strong { font: 700 15px var(--display); letter-spacing: .02em; text-transform: uppercase; }
.forum-row small, .forum-row time { font: 9px var(--mono); text-transform: uppercase; }
.forum-row small { margin-top: 6px; opacity: .65; }
.forum-row time { opacity: .65; }

.blog-page, .story-page, .media-page { padding-top: 90px; padding-bottom: 120px; }
.story-page { padding-bottom: 96px; }
.blog-page__header, .story-page__header, .media-page__header { padding-top: 40px; }
.blog-page__header h1,
.story-page__header h1,
.media-page__header h1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 18px;
  max-width: none;
  font-size: clamp(58px, 9vw, 120px);
  line-height: .78;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}
.blog-page__header h1 span,
.story-page__header h1 span,
.media-page__header h1 span {
  display: block;
  color: var(--ink);
  white-space: nowrap;
}
.blog-page__header h1 span:last-child,
.story-page__header h1 span:last-child,
.media-page__header h1 span:last-child { color: var(--red); }
.blog-page__header h1 span:last-child { color: var(--blue); }
.story-page__header .lede, .media-page__header .lede, .blog-page__header .lede { max-width: none; font-size: 30px; }
@media (min-width: 721px) {
  .media-page__header h1, .blog-page__header h1 { flex-direction: row; gap: .25em; }
  .blog-page__header h1 { font-size: min(clamp(58px, 9vw, 120px), calc(min(1180px, 100vw - 100px) / 11)); }
}
.blog-entries { display: grid; gap: 18px; }
.blog-page { padding-bottom: clamp(56px, 8vw, 96px); }
.story-blocks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 56px;
}
.story-block {
  min-height: 240px;
  padding: 24px 26px 22px;
}
/* About page hero */
.hero--story { display: flex; align-items: flex-end; }
.hero--story .hero__image { background: linear-gradient(0deg, rgba(7, 12, 23, .92) 0%, rgba(7, 12, 23, .55) 45%, rgba(7, 12, 23, .2) 100%), linear-gradient(90deg, rgba(7, 12, 23, .6) 0%, rgba(7, 12, 23, 0) 70%), url("Assets/Screenshots/about-hero.webp") 50% center / cover; }
.hero--story .hero__content { width: min(1180px, calc(100% - 48px)); padding: 0 0 calc(84px + 56px); }
.hero--story .story-page__header { padding-top: 0; }
.hero--story .section__label { color: var(--yellow); }
.hero--story h1 span { color: var(--white); }
.hero--story h1 span:last-child { color: var(--yellow); }
.hero--story .lede { color: var(--white); }
.story-page { padding-top: clamp(64px, 9vw, 120px); }

/* Media page bands */
.media-page { padding-bottom: clamp(56px, 8vw, 96px); }
.media-band { padding-block: clamp(64px, 9vw, 120px); }
.media-band--blue { background: var(--blue); }
.media-band--ink { background: var(--ink); }
.media-band .media-section { margin-top: 0; }
.media-band h2 { color: var(--white); }
.media-band .text-link { color: var(--yellow); }
.video-card { border: 0; }
.video-card h3 a { transition: color .2s, transform .2s; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 2px solid currentColor; }
.video-card h3 a span { flex: none; font: 700 .75em var(--mono); line-height: 1; padding-bottom: .1em; }
.video-card h3 a:is(:hover, :focus-visible) { color: var(--blue); transform: translate(3px, -3px); }
.video-card--blue h3 a:is(:hover, :focus-visible) { color: var(--white); }
.video-card--pink h3 a:is(:hover, :focus-visible) { color: var(--yellow); }
.video-card--yellow h3 a:is(:hover, :focus-visible) { color: var(--pink); }
@media (prefers-reduced-motion: reduce) { .video-card h3 a { transition: color .2s; transform: none !important; } }

/* Scroll-in reveal: cards rise from below, staggered left to right */
.story-blocks.is-armed .story-block { opacity: 0; transform: translateY(48px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.story-blocks.is-armed.is-visible .story-block { opacity: 1; transform: none; }
.story-blocks.is-armed .story-block:nth-child(2) { transition-delay: .15s; }
.story-blocks.is-armed .story-block:nth-child(3) { transition-delay: .3s; }
.story-blocks.is-armed .story-block:nth-child(4) { transition-delay: .45s; }
@media (prefers-reduced-motion: reduce) { .story-blocks.is-armed .story-block { opacity: 1; transform: none; transition: none; } }
@media (min-width: 721px) and (max-width: 960px) { .story-blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.story-block--ink { background: var(--ink); color: var(--white); }
.story-block--yellow { background: var(--yellow); }
.story-block--blue { background: var(--blue); }
.story-block--pink { background: var(--pink); color: var(--white); }
.story-block__label {
  margin-bottom: 18px;
  font: 700 13px/1.2 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.story-block p {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  max-width: 440px;
}
.story-copy {
  max-width: 860px;
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.story-copy p {
  margin: 0 0 20px;
  font: 13px/1.9 var(--mono);
}
.media-section { margin-top: 72px; }
.media-section__head { margin-bottom: 36px; }
.status-note { display: flex; align-items: center; gap: 8px; margin: 0; font: 12px var(--mono); color: var(--yellow); white-space: nowrap; pointer-events: none; user-select: none; }
.status-note span { width: 7px; height: 7px; background: var(--green); border-radius: 50%; }
.media-section__head h2 {
  margin: 0;
  font-size: clamp(38px, 6vw, 76px);
  line-height: .82;
}
.media-gallery {
  display: grid;
  grid-template-columns: 1.35fr .8fr .8fr;
  gap: 18px;
  align-items: start;
}
.media-tile { margin: 0; background: var(--ink); }
.media-tile img { width: 100%; height: auto; aspect-ratio: 1.35; object-fit: cover; filter: saturate(1.1); }
.media-tile--large img { aspect-ratio: 1.25; }
.media-tile--offset { margin-top: 54px; }
.media-tile figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  color: var(--white);
  font: 10px var(--mono);
  text-transform: uppercase;
}
.media-tile figcaption span { color: var(--yellow); }
.media-section--video { margin-top: 92px; }
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.video-card {
  background: var(--paper);
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  padding: 18px;
}
.video-card--blue { background: var(--blue); }
.video-card--yellow { background: var(--yellow); }
.video-card--pink { background: var(--pink); color: var(--white); }
.video-card__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink);
}
.video-card__link, .video-card__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card__link img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .2s; }
.video-card__link:hover img, .video-card__link:focus-visible img { opacity: 1; }
.video-card__link:focus-visible { outline: 3px solid var(--yellow); outline-offset: -3px; }
.video-card__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 28px;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0,0,0,.6);
}
.video-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  font: 700 10px var(--mono);
  text-transform: uppercase;
}
.video-card h3 {
  margin: 18px 0 10px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: .9;
}
.video-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
}
.blog-entry { overflow: hidden; border: 0; background: var(--yellow); color: var(--ink); }
.blog-entry--blue { background: var(--blue); }
.blog-entry--pink { color: var(--white); background: var(--pink); }
.blog-entry--featured { background: var(--yellow); }
.blog-entry--paper { background: var(--paper); }
.blog-entry summary { display: grid; gap: 14px; padding: 24px 28px 20px; cursor: pointer; list-style: none; }
.blog-entry summary::-webkit-details-marker { display: none; }
.blog-entry__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 12px; border-bottom: 2px solid currentColor; transition: color .2s, transform .2s; }
.blog-entry summary:is(:hover, :focus-visible) .blog-entry__row { color: var(--blue); transform: translate(3px, -3px); }
.blog-entry--blue summary:is(:hover, :focus-visible) .blog-entry__row { color: var(--white); }
.blog-entry--pink summary:is(:hover, :focus-visible) .blog-entry__row { color: var(--yellow); }
.blog-entry--featured summary:is(:hover, :focus-visible) .blog-entry__row { color: var(--pink); }
@media (prefers-reduced-motion: reduce) { .blog-entry__row { transition: color .2s; } .blog-entry summary:is(:hover, :focus-visible) .blog-entry__row { transform: none; } }
.blog-entry__meta { display: flex; justify-content: space-between; gap: 20px; font: 700 10px var(--mono); text-transform: uppercase; opacity: .8; }
.blog-entry h2 { margin: 0; color: inherit; max-width: 760px; font-size: clamp(36px, 4vw, 58px); line-height: .86; }
.blog-entry p { margin: 0; max-width: 720px; font-size: 12px; line-height: 1.7; }
.blog-entry__toggle { display: inline-flex; align-items: center; justify-content: flex-end; flex: none; padding-bottom: .5em; font: 700 13px var(--mono); text-transform: uppercase; letter-spacing: .12em; white-space: nowrap; }
.blog-entry__toggle::before { content: "+"; margin-right: 10px; font-size: 18px; }
.blog-entry[open] .blog-entry__toggle::before { content: "−"; }
.blog-entry__content { padding: 0 28px 28px; }
.blog-entry__content p + p { margin-top: 20px; }
.blog-entry__content p { font: 13px/1.9 var(--mono); max-width: 760px; }

.footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 48px; padding-block: 36px; font-size: 12px; }
.footer__text { flex: 1; max-width: none; }
.footer p { margin: 0; opacity: .7; line-height: 1.7; }
.footer__text p + p { margin-top: 12px; }
.footer__top { display: inline-block; padding-bottom: 7px; border-bottom: 1px solid currentColor; font: 700 13px var(--mono); text-transform: uppercase; white-space: nowrap; }

/* Clickable text: blue + slight lift on hover/focus, matching the buttons */
.text-link, .footer__top, .site-nav__links a, .site-nav__status, .site-nav__brand, .footer__logo, .forum-row strong { transition: color .2s, transform .2s, opacity .2s; }
.text-link:is(:hover, :focus-visible), .footer__top:is(:hover, :focus-visible), .site-nav__links a:is(:hover, :focus-visible), .site-nav__status:is(:hover, :focus-visible), .site-nav__brand:is(:hover, :focus-visible), .site-nav__brand:is(:hover, :focus-visible) span, .footer__logo:is(:hover, :focus-visible), .footer__logo:is(:hover, :focus-visible) span, .forum-row:is(:hover, :focus-visible) strong { color: var(--blue); opacity: 1; }
.text-link:is(:hover, :focus-visible), .footer__top:is(:hover, :focus-visible), .site-nav__links a:is(:hover, :focus-visible), .site-nav__status:is(:hover, :focus-visible), .site-nav__brand:is(:hover, :focus-visible), .footer__logo:is(:hover, :focus-visible), .forum-row:is(:hover, :focus-visible) strong { transform: translate(3px, -3px); }
/* Brand colors for the social icons */
.site-nav__links a.site-nav__icon[href*="youtube.com"]:is(:hover, :focus-visible) { color: var(--youtube); }
.site-nav__links a.site-nav__icon[href*="discord.gg"]:is(:hover, :focus-visible) { color: var(--discord); }
@media (prefers-reduced-motion: reduce) { .text-link, .footer__top, .site-nav__links a, .site-nav__status, .site-nav__brand, .footer__logo, .forum-row strong { transition: color .2s; transform: none !important; } }

/* About page: "About the game" dark section */
.about-game { padding-block: clamp(64px, 9vw, 120px); }
.about-game__head h2 { margin-top: 0; }
.about-game__head h2 span { color: var(--blue); }
.about-sec { padding-top: 40px; margin-top: 40px; }
.about-game__head + .about-sec { margin-top: 56px; }
.about-sec__label { margin: 0 0 24px; color: var(--yellow); font: 700 13px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.about-sec__copy p { margin: 0 0 18px; color: var(--white); font: 16px/1.85 var(--mono); }
.about-sec__copy p:last-child { margin-bottom: 0; }
.about-sec--fig .about-sec__body { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 0; align-items: start; }
.about-sec--fig .about-sec__copy { padding-right: 56px; }
.about-sec__fig { margin: 0; background: #000; }
.about-sec__fig img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.about-sec__fig figcaption { padding: 10px 12px; color: var(--yellow); font: 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 960px) {
  .about-sec--fig .about-sec__body { grid-template-columns: 1fr; gap: 28px; }
  .about-sec--fig .about-sec__copy { padding-right: 0; }
}
@media (max-width: 720px) {
  .about-sec { padding-top: 28px; margin-top: 28px; }
  .about-sec__label { margin-bottom: 16px; }
  .about-sec__copy p { font-size: 15px; }
}

@media (min-width: 721px) {
  .hero__content { --dek: clamp(14px, 1.5vw, 19px); }
  .hero__dek { font-size: var(--dek); }
  h1 { font-size: calc(var(--dek) * var(--h1-ratio, 13.75)); }
  .eyebrow { font-size: max(10px, calc(var(--dek) * var(--eye-ratio, .72))); }
}

@media (max-width: 720px) {
  .page-width { width: min(100% - 32px, 560px); }
  .hero__content { padding-top: 190px; }
  .hero__stamp { top: 96px; right: 18px; padding: 10px 14px; font-size: 14px; border-width: 2px; }
  .hero__caption { right: 16px; bottom: 112px; width: 50%; font-size: 12.5px; }
  .site-nav { min-height: 68px; padding: 0 16px; }
  .site-nav__links { gap: 12px; margin: 0 0 0 auto; font-size: 11px; }
  .site-nav__brand, .site-nav__status { display: none; }
  .about__grid, .media__intro, .forum__grid { grid-template-columns: 1fr; gap: 30px; }
  .about__grid { margin-top: 48px; }
  .about__copy { padding-top: 0; }
  .ticker { flex-wrap: wrap; margin-top: 60px; }
  .ticker span { width: calc(50% - 10px); }
  .post-grid, .media-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 42px; }
  .post-card { min-height: 250px; }
  .post-card h3 { margin-top: 60px; }
  .media-tile--offset { margin-top: 0; }
  .media-tile img, .media-tile--large img { aspect-ratio: 1.45; }
  .forum-row { grid-template-columns: 28px 1fr; }
  .forum-row time { grid-column: 2; }
  .blog-page, .story-page, .media-page { padding-top: 60px; }
  .blog-page__header h1, .story-page__header h1, .media-page__header h1 { display: block; white-space: normal; }
  .blog-page__header h1 span, .story-page__header h1 span, .media-page__header h1 span { display: block; white-space: normal; }
  .story-blocks, .media-gallery, .video-grid { grid-template-columns: 1fr; }
  .media-tile--offset { margin-top: 0; }
  .blog-entry summary { padding: 20px 18px 16px; }
  .blog-entry__content { padding: 0 18px 18px; }
  .blog-entry__meta { flex-wrap: wrap; }
  .blog-entry__toggle { justify-content: flex-start; }
  .footer { flex-wrap: wrap; }
}
/* Image gallery */
.gallery { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); gap: 24px; height: var(--gallery-h); --gallery-h: max(320px, calc(100vh - 2 * clamp(64px, 9vw, 120px) - 100px)); }
.gallery__stage { display: flex; flex-direction: column; min-height: 0; }
.gallery__frame { flex: 1 1 0; min-height: 0; display: flex; align-items: flex-start; justify-content: flex-start; }
.gallery__open { display: block; max-width: 100%; cursor: zoom-in; line-height: 0; background: var(--ink); }
.gallery__open img { box-sizing: border-box; border: 2px solid var(--white); display: block; width: auto; height: auto; max-width: 100%; max-height: calc(var(--gallery-h) - 84px); }
.gallery__caption { flex: none; margin: 16px 0 0; display: grid; gap: 6px; color: var(--white); font: 13px/1.7 var(--mono); }
.gallery__caption strong { color: var(--yellow); font: 700 13px var(--mono); text-transform: uppercase; }
.gallery__side { position: relative; min-height: 0; background: var(--ink); border: 4px solid var(--ink); }
.gallery__thumbs { list-style: none; margin: 0; padding: 12px; position: absolute; inset: 0; overflow-y: auto; display: grid; gap: 12px; align-content: start; scrollbar-color: var(--yellow) transparent; }
.gallery__thumb { display: block; width: 100%; padding: 0; border: 0; background: var(--ink); cursor: pointer; line-height: 0; outline: 3px solid transparent; outline-offset: 0; }
.gallery__thumb img { box-sizing: border-box; border: 2px solid var(--white); width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; opacity: .6; transition: opacity .2s; }
.gallery__thumb:hover img, .gallery__thumb:focus-visible img { opacity: 1; }
.gallery__thumb[aria-current="true"] { outline-color: var(--yellow); }
.gallery__thumb[aria-current="true"] img { opacity: 1; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
.lightbox::backdrop { background: color-mix(in srgb, var(--ink) 92%, transparent); }
.lightbox img { display: block; max-width: 96vw; max-height: 96vh; width: auto; height: auto; cursor: zoom-out; }
.lightbox__close { position: fixed; top: 16px; right: 20px; border: 0; background: none; color: var(--white); font: 700 40px/1 var(--mono); cursor: pointer; }
@media (max-width: 720px) and (orientation: portrait) {
  .gallery { grid-template-columns: 1fr; grid-template-rows: auto auto; height: auto; gap: 18px; }
  .gallery__frame { flex: none; }
  .gallery__open img { max-height: 52vh; }
  .gallery__side { height: 130px; }
  .gallery__thumbs { overflow: auto hidden; grid-auto-flow: column; grid-auto-columns: 140px; align-content: stretch; }
  .gallery__thumbs li { min-width: 0; }
  .gallery__thumb { height: 100%; }
  .gallery__thumb img { height: 100%; aspect-ratio: auto; }
}
