/* Citrus & Stone
   The page runs through one in-game day: morning on the beach at the top,
   sunset in the middle, night through the screenshots, dawn at the bottom.

   Pixel fonts are only set at whole multiples of their grids so edges stay sharp:
   Citrus Title (headings) at 18 / 36px, Birch (body) at 16 / 24px. */

@font-face {
  font-family: 'Citrus Title';
  src: url('assets/fonts/citrus-title.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Birch';
  src: url('assets/fonts/birch.woff2') format('woff2');
  font-display: swap;
}

:root {
  /* day */
  --cream: #f6ebd1;
  --sand-dot: #e9d8b0;
  --paper: #fff8e6;
  --paper-line: #efdfbb;
  --ink: #34251b;
  --ink-soft: #5b4637;
  --orange: #ef7f27;
  --orange-hi: #ffa850;
  --orange-lo: #a4461a;
  /* night */
  --night: #1b1f17;
  --night-2: #23281d;
  --night-3: #2f3526;
  --night-edge: #4b523a;
  --moon: #f1e6c9;
  --moon-soft: #c4bd9f;
  --moon-dim: #9d977c;
  --fire: #ffb44f;
  --plum: #6e2c46;

  --header-h: 64px;
  --px: 3px;
  --wrap: min(1120px, 100% - 48px);
}

/* ---------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font: 16px/28px 'Birch', ui-monospace, monospace;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: unset;
  font-synthesis: none;
}
body.modal-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
.px { image-rendering: pixelated; }

h1, h2, h3, p, figure, dl, dd, ul { margin: 0; padding: 0; }
ul { list-style: none; }

h2, h3, .tagline, .label, .btn, .text-link, .clock, .site-nav, .brand, .dusk-line,
.platform, .lb-btn, .lightbox-count {
  font-family: 'Citrus Title', 'Birch', monospace;
  font-weight: 400;
}

h2 { font-size: 36px; line-height: 44px; text-wrap: balance; }
h3 { font-size: 18px; line-height: 24px; }

a { color: inherit; }
::selection { background: var(--orange); color: var(--ink); }

:focus-visible {
  outline: var(--px) solid var(--orange);
  outline-offset: 5px;
}

.container { width: var(--wrap); margin-inline: auto; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  color: var(--paper);
  background: var(--ink);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-160%);
}
.skip-link:focus { opacity: 1; pointer-events: auto; transform: none; }

.icon { display: block; width: 18px; height: 18px; fill: currentColor; flex: none; }

/* ---------------------------------------------------------------- pixel UI */

/* A notched, 3px pixel border. Box-shadows leave the four corners empty,
   which is what gives panels and buttons their in-game look. */
.panel, .btn, .frame, .slot, .shot a, .socials a, .lb-btn, .lightbox {
  --edge: var(--ink);
  --depth: 0 0 transparent;
  box-shadow:
    0 calc(var(--px) * -1) 0 var(--edge),
    0 var(--px) 0 var(--edge),
    calc(var(--px) * -1) 0 0 var(--edge),
    var(--px) 0 0 var(--edge),
    var(--depth);
}

.panel {
  --depth: 0 15px 0 rgba(27, 20, 14, .22);
  background: var(--paper);
  color: var(--ink);
  outline: var(--px) solid var(--paper-line);
  outline-offset: calc(var(--px) * -2);
  padding: 30px 32px 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  margin: 3px 3px 6px;
  padding: 15px 20px 15px;
  color: var(--ink);
  background: var(--orange);
  border: 0;
  font-size: 18px;
  line-height: 18px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow:
    inset 0 var(--px) 0 var(--orange-hi),
    inset 0 calc(var(--px) * -1) 0 var(--orange-lo),
    0 calc(var(--px) * -1) 0 var(--edge),
    0 calc(var(--px) * 2) 0 var(--edge),
    calc(var(--px) * -1) 0 0 var(--edge),
    var(--px) 0 0 var(--edge);
  transition: transform .08s steps(2), background-color .15s;
}
.btn:hover { background: var(--orange-hi); }
.btn:active {
  transform: translateY(var(--px));
  box-shadow:
    inset 0 var(--px) 0 var(--orange-lo),
    0 calc(var(--px) * -1) 0 var(--edge),
    0 var(--px) 0 var(--edge),
    calc(var(--px) * -1) 0 0 var(--edge),
    var(--px) 0 0 var(--edge);
}

.btn-small { min-height: 40px; padding: 11px 16px; margin-block: 0 3px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0 8px;
  font-size: 18px;
  line-height: 18px;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% var(--px) no-repeat;
}
.text-link:hover { color: var(--orange-lo); }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 30px;
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--ink);
  background: var(--cream);
  box-shadow: 0 var(--px) 0 var(--ink);
  transition: background-color .5s, color .5s, box-shadow .5s;
}
.site-header[data-theme='night'] {
  color: var(--moon);
  background: var(--night);
  box-shadow: 0 var(--px) 0 var(--night-edge);
}

.header-inner {
  width: min(1200px, 100% - 32px);
  height: var(--header-h);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  line-height: 18px;
  white-space: nowrap;
  text-decoration: none;
}
.brand img { width: 32px; height: 32px; image-rendering: pixelated; }

.clock {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 10px;
  font-size: 18px;
  line-height: 18px;
  white-space: nowrap;
  color: var(--ink-soft);
  background: rgba(52, 37, 27, .07);
  transition: color .5s, background-color .5s;
}
.clock .icon { color: var(--orange-lo); }
.clock .icon-moon { display: none; }
.clock[data-phase='night'] .icon-sun { display: none; }
.clock[data-phase='night'] .icon-moon { display: block; }
.clock-day { opacity: .65; }
.site-header[data-theme='night'] .clock { color: var(--moon-soft); background: rgba(241, 230, 201, .07); }
.site-header[data-theme='night'] .clock .icon { color: var(--fire); }

.site-nav {
  margin-left: auto;
  display: flex;
  gap: 28px;
  font-size: 18px;
  line-height: 18px;
}
.site-nav a { padding-block: 12px; text-decoration: none; }
.site-nav a:hover { color: var(--orange-lo); }
.site-header[data-theme='night'] .site-nav a:hover { color: var(--fire); }
.site-header .btn { --edge: var(--ink); }
.site-header[data-theme='night'] .btn { --edge: #0d0f0b; }

/* ---------------------------------------------------------------- hero */

/* The game's Steam library art (assets/img/hero.png, 768 x 248 art pixels) is
   always drawn at a whole number of screen pixels per art pixel (--s) so every
   pixel stays square and sharp. --s is the smallest multiple that fills the
   width (see the responsive section); narrow screens crop the sides. */
.hero { --s: 2; position: relative; }

.hero-scene {
  position: relative;
  height: calc(248px * var(--s));
  overflow: hidden;
  background: #d8a868;
  border-bottom: var(--px) solid var(--ink);
}
.hero-art {
  position: absolute;
  inset: 0;
  background: url('assets/img/hero.png') 50% 100% / calc(768px * var(--s)) calc(248px * var(--s)) no-repeat;
  image-rendering: pixelated;
}

.hero-logo {
  position: absolute;
  top: calc(12px * var(--s));
  left: 50%;
  width: calc(99px * (var(--s) + 1));    /* 3x at the normal size, 4x on big screens */
  transform: translateX(-50%);
  filter: drop-shadow(0 calc(var(--s) * 3px) 0 rgba(20, 50, 60, .35));
}
.hero-logo img { width: 100%; image-rendering: pixelated; }

.platforms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
  margin-top: 28px;
}
.platforms li {
  padding: 8px 12px 7px;
  font: 18px/18px 'Citrus Title', 'Birch', monospace;
  color: var(--ink-soft);
  background: rgba(52, 37, 27, .07);
}


/* The pitch box. Stacked and centred under the video by default; on wide screens it
   becomes one long dialog box across the bottom of the video (see the media query). */
.hero-card {
  position: relative;
  z-index: 2;
  width: min(620px, 100% - 32px);
  margin: -64px auto 0;
}
.kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  color: var(--ink-soft);
}
/* small inverse label, e.g. COUCH CO-OP */
.tag {
  padding: 7px 10px 6px;
  font-family: 'Citrus Title', 'Birch', monospace;
  font-size: 18px;
  line-height: 18px;
  white-space: nowrap;
  color: var(--paper);
  background: var(--ink);
}
.tagline { margin: 10px 0 14px; font-size: 36px; line-height: 44px; }
.pitch { color: var(--ink-soft); }
.hero-card .actions { margin-top: 24px; }

/* ---------------------------------------------------------------- by day */

.day {
  padding: 96px 0 96px;
  background-color: var(--cream);
  /* the same scattered dots as the in-game sand */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' shape-rendering='crispEdges'%3E%3Cg fill='%23e9d8b0'%3E%3Crect x='8' y='10' width='3' height='3'/%3E%3Crect x='44' y='4' width='3' height='3'/%3E%3Crect x='26' y='34' width='3' height='3'/%3E%3Crect x='62' y='30' width='3' height='3'/%3E%3Crect x='14' y='58' width='3' height='3'/%3E%3Crect x='50' y='52' width='3' height='3'/%3E%3C/g%3E%3C/svg%3E");
}

.section-head { margin-bottom: 56px; }
.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 18px;
  line-height: 18px;
  color: var(--orange-lo);
}

.feature-lead {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 64px;
  align-items: center;
  margin-bottom: 88px;
}
.feature-lead h3 { margin-bottom: 14px; font-size: 36px; line-height: 44px; }
.feature-lead p { font-size: 24px; line-height: 36px; max-width: 22em; }
.feature-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: start;
}
.feature-pair h3 { margin: 34px 0 10px; }
.feature p { max-width: 44ch; color: var(--ink-soft); }

/* couch co-op: the one feature that gets its own panel */
.feature-coop {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: center;
  margin: 96px var(--px) 0;
  padding: 40px 44px 44px;
  scroll-margin-top: calc(var(--header-h) + 28px);
}
.feature-coop .label { margin-bottom: 14px; }
.feature-coop h3 { margin-bottom: 14px; font-size: 36px; line-height: 44px; }
.feature-coop p:not(.label) { font-size: 24px; line-height: 36px; color: var(--ink-soft); }
.feature-coop p.feature-note { margin-top: 16px; font-size: 16px; line-height: 28px; }
.feature-coop .frame { --depth: 0 0 transparent; }

.frame {
  --depth: 0 15px 0 rgba(52, 37, 27, .16);
  margin: var(--px);
  background: var(--ink);
}
.frame img { width: 100%; }

.intro { max-width: 820px; }
.day .lede { color: var(--ink-soft); font-size: 24px; line-height: 36px; }

.row {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 56px;
  align-items: center;
  margin-bottom: 96px;
}
.row-flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.row-flip .media { order: 2; }
.row-text h3 { margin-bottom: 14px; font-size: 36px; line-height: 44px; }
.row-text p { font-size: 24px; line-height: 36px; max-width: 22em; color: var(--ink-soft); }
.row-text p + p { margin-top: 14px; font-size: 16px; line-height: 28px; }
.media img { aspect-ratio: 16 / 9; object-fit: cover; }

.clip {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #10130d;
  image-rendering: pixelated;
}

/* ---------------------------------------------------------------- dusk */

.dusk {
  position: relative;
  height: 360px;
  overflow: hidden;
  background: linear-gradient(
    var(--cream) 0 34%,
    #f5e0b9 34% 45%,
    #f3d09a 45% 54%,
    #f0bb79 54% 62%,
    #eb9f5b 62% 70%,
    #e18446 70% 78%,
    #d26b36 78% 100%
  );
}
.dusk-line {
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  padding-inline: 20px;
  text-align: center;
  font-size: 36px;
  line-height: 44px;
  text-wrap: balance;
}
.dusk-time { display: block; font-size: 18px; line-height: 24px; color: var(--orange-lo); }
.horizon {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 192px;
}
.horizon .land { fill: var(--night); }
.horizon .sun { fill: #ffd46f; }
.horizon .glow { fill: #f4a555; }

/* ---------------------------------------------------------------- by night */

.night, .gallery, .follow {
  color: var(--moon);
  background: var(--night);
}
.night { padding: 48px 0 104px; }
.night .label { color: var(--fire); }
.night-head { max-width: 760px; }
.lede { max-width: 60ch; margin-top: 20px; color: var(--moon-soft); }

.slots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.slot {
  --edge: var(--plum);
  margin: var(--px);
  padding: 10px 10px 22px;
  background: var(--night-2);
}
.slot img {
  width: 100%;
  max-width: 240px;
  margin-inline: auto;
  outline: var(--px) solid #110f0b;
}
.slot h3 { margin: 18px 4px 6px; color: var(--moon); }
.slot p { margin-inline: 4px; color: var(--moon-soft); }

.night-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  margin-bottom: 72px;
}
.frame-night { --edge: var(--plum); --depth: 0 0 transparent; background: #0d0f0b; }
.night-media figcaption { margin-top: 20px; color: var(--moon-soft); }
.night-media h3 { margin-bottom: 8px; color: var(--moon); }

.panel-night {
  --edge: var(--night-edge);
  box-shadow:
    0 calc(var(--px) * -1) 0 var(--edge),
    0 var(--px) 0 var(--edge),
    calc(var(--px) * -1) 0 0 var(--edge),
    var(--px) 0 0 var(--edge);
  margin: var(--px);
  padding: 34px 38px 38px;
  background: var(--night-2);
}
.rest {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
}
.rest h3 { margin-bottom: 18px; color: var(--moon); }
.ticks { display: grid; gap: 12px; }
.ticks li {
  position: relative;
  padding-left: 26px;
  color: var(--moon-soft);
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 9px;
  height: 9px;
  background: var(--fire);
  box-shadow: 3px 3px 0 #8a4b1d;
}
.ticks b { font-weight: 400; color: var(--moon); }

/* ---------------------------------------------------------------- screenshots */

.gallery { padding: 24px 0 104px; }
.section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 32px;
  margin-bottom: 40px;
}
.hint { color: var(--moon-dim); }

.shots {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 32px 28px;
}
.shot { grid-column: span 2; }
.shot-main { grid-column: 1 / -1; }
.shot-wide { grid-column: span 3; }
.shot a {
  --edge: var(--night-edge);
  position: relative;
  display: block;
  margin: var(--px);
  background: #10130d;
  transition: box-shadow .15s;
}
.shot a:hover, .shot a:focus-visible { --edge: var(--fire); }
.shot a:focus-visible { outline: none; }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.shot a::after {
  content: '+';
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding-top: 2px;
  font: 18px/18px 'Citrus Title', monospace;
  color: var(--ink);
  background: var(--fire);
  opacity: 0;
  transition: opacity .15s;
}
.shot a:hover::after, .shot a:focus-visible::after { opacity: 1; }
.shot figcaption { margin-top: 14px; color: var(--moon-soft); }

/* ---------------------------------------------------------------- wishlist */

.wishlist { padding: 24px 0 96px; color: var(--ink); background: var(--night); }
.wishlist-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px 48px;
  align-items: center;
  margin: var(--px);
  padding: 40px 44px 44px;
}
.wishlist-logo { width: 297px; image-rendering: pixelated; }     /* 3x */
.wishlist-text h2 { margin-bottom: 14px; }
.wishlist-text p { font-size: 24px; line-height: 36px; color: var(--ink-soft); max-width: 30em; }
.wishlist-text .actions { margin-top: 24px; }

/* ---------------------------------------------------------------- follow */

.follow { padding: 24px 0 120px; }
.socials { display: grid; gap: 22px; }
.socials a {
  --edge: var(--night-edge);
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin: var(--px);
  padding: 24px 28px;
  text-decoration: none;
  background: var(--night-2);
  transition: background-color .15s;
}
.socials a:hover, .socials a:focus-visible { --edge: var(--fire); background: var(--night-3); }
.socials a:focus-visible { outline: none; }
.platform { font-size: 36px; line-height: 36px; }
.handle { color: var(--fire); overflow-wrap: anywhere; }
.what { color: var(--moon-soft); }
.go { font-family: 'Citrus Title', monospace; font-size: 36px; line-height: 36px; color: var(--moon-dim); transition: color .15s, transform .15s steps(2); }
.socials a:hover .go { color: var(--fire); transform: translate(3px, -3px); }

/* ---------------------------------------------------------------- footer */

.site-footer { background: var(--cream); }
.dawn {
  height: 260px;
  padding-top: 34px;
  text-align: center;
  background: linear-gradient(
    var(--night) 0 38%,
    #23262a 38% 46%,
    #343240 46% 53%,
    #54414f 53% 60%,
    #7d5357 60% 67%,
    #b06b58 67% 74%,
    #de925e 74% 81%,
    #f1bd85 81% 88%,
    #f5dbb3 88% 94%,
    var(--cream) 94% 100%
  );
}
.dawn .btn { --edge: #0d0f0b; }
.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 18px 0 32px;
  color: var(--ink-soft);
}
.foot-row a { padding-block: 8px; text-underline-offset: 5px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 22px; }
.foot-row a:hover { color: var(--orange-lo); }

/* ---------------------------------------------------------------- lightbox */

.lightbox {
  --edge: var(--night-edge);
  width: min(1320px, 100% - 32px);
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 14px 18px;
  color: var(--moon);
  background: var(--night-2);
  border: 0;
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(10, 12, 8, .92); }
.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.lightbox-count { font-size: 18px; line-height: 18px; color: var(--moon-dim); }
.lightbox-image {
  width: 100%;
  height: auto;
  max-height: calc(100dvh - 190px);
  margin: 16px auto;
  object-fit: contain;
  image-rendering: pixelated;
  touch-action: pan-y;
}
.lightbox-caption { text-align: center; color: var(--moon-soft); }
.lb-btn {
  --edge: var(--night-edge);
  min-height: 44px;
  margin: var(--px);
  padding: 13px 14px 12px;
  font-size: 18px;
  line-height: 18px;
  color: var(--moon);
  background: transparent;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}
.lb-btn:hover { --edge: var(--fire); background: var(--night-3); }

/* ---------------------------------------------------------------- responsive */

/* The key art always covers the full width: the scale steps up a whole
   number at a time as soon as the screen is wider than the picture
   (768 art px x --s), so there are never empty bands at the sides. */
@media (min-width: 1537px) { .hero { --s: 3; } }
@media (min-width: 2305px) { .hero { --s: 4; } }
@media (min-width: 3073px) { .hero { --s: 5; } }
@media (min-width: 3841px) { .hero { --s: 6; } }

/* wide screens: the pitch box is a strip along the bottom of the key art */
@media (min-width: 1181px) {
  .hero-card {
    position: relative;
    width: min(1160px, 100% - 48px);
    margin: -88px auto 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 44px;
    padding: 26px 38px 28px;
  }
  .hero-card .tagline { margin-bottom: 0; }
  .hero-card .actions { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 0; }
}

@media (max-width: 960px) {
  .site-nav { gap: 20px; }
  .row, .row-flip { grid-template-columns: 1fr; gap: 30px; margin-bottom: 72px; }
  .row-flip .media { order: 0; }
  .night-pair { grid-template-columns: 1fr; gap: 48px; }
  .rest { grid-template-columns: 1fr; gap: 36px; }
  .wishlist-card { grid-template-columns: 1fr; padding: 32px 32px 36px; }
  .clock-day { display: none; }
  .feature-lead { grid-template-columns: 1fr; gap: 34px; margin-bottom: 72px; }
  .feature-coop { grid-template-columns: 1fr; gap: 30px; margin-top: 72px; padding: 32px 32px 36px; }
  .feature-coop .frame { order: -1; }
  .feature-lead .feature-text { max-width: 560px; }
  .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .socials a { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 20px; }
  .platform { grid-column: 1; }
  .go { grid-column: 2; grid-row: 1 / span 3; }
  .handle, .what { grid-column: 1; }
}

@media (max-width: 760px) {
  :root { --wrap: calc(100% - 32px); }
  .site-nav { display: none; }
  .clock { margin-left: auto; }
  .brand span { display: none; }
  .feature-pair { grid-template-columns: 1fr; gap: 64px; }
  .feature-pair h3 { margin-top: 28px; }
  .section-head { margin-bottom: 44px; }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .shot, .shot-wide { grid-column: span 1; }
  .shot-main, .shots .shot:last-child { grid-column: 1 / -1; }
  .dusk { height: 320px; }
  .dusk-line { top: 48px; }
}

@media (max-width: 600px) {
  .hero-logo { width: 297px; top: 20px; }   /* 3x */
  .hero-card { width: calc(100% - 24px); margin-top: -64px; padding: 22px 22px 26px; }
  .row-text h3 { font-size: 18px; line-height: 24px; margin-bottom: 10px; }
  .row-text p { font-size: 16px; line-height: 28px; }
  .panel-night { padding: 24px 22px 26px; }
  .wishlist-logo { width: 198px; }
  .wishlist-text p { font-size: 16px; line-height: 28px; }
  .tagline { margin-top: 8px; }
  .actions { gap: 14px 24px; }
  .day { padding: 80px 0 72px; }
  .feature-lead h3 { font-size: 18px; line-height: 24px; margin-bottom: 10px; }
  .feature-lead p { font-size: 16px; line-height: 28px; }
  .feature-coop { margin-top: 64px; padding: 20px 20px 26px; gap: 24px; }
  .feature-coop p:not(.label) { font-size: 16px; line-height: 28px; }
  .feature-coop p.feature-note { margin-top: 8px; }
  .slots { gap: 20px 16px; }
  .slot { padding: 8px 8px 18px; }
  .slot h3 { margin: 14px 2px 4px; }
  .slot p { margin-inline: 2px; }
  .shots { grid-template-columns: 1fr; }
  .shot, .shot-wide { grid-column: 1 / -1; }
  .shot img, .shot-main img, .shot-wide img { aspect-ratio: auto; }
  .panel { padding: 24px 22px 26px; }
  .socials a { padding: 20px; }
  .foot-links { gap: 0 14px; }
  .dawn { height: 240px; padding-top: 30px; }
  .lightbox { width: calc(100% - 16px); padding: 10px; }
  .lightbox-bar:last-child { flex-wrap: wrap; }
  .lightbox-caption { order: -1; width: 100%; }
  .lightbox-image { max-height: calc(100dvh - 230px); }
}

@media (max-width: 380px) {
  .hero-logo { width: 198px; }
  .dawn { height: 280px; padding-top: 18px; }
  .header-inner { gap: 12px; }
  .clock { padding-inline: 8px; gap: 8px; }
  .btn-small { padding-inline: 12px; }
  .slots { grid-template-columns: 1fr; }
  .slot img { max-width: none; }
}

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

@media print {
  .site-header, .horizon, .lightbox, .clip { display: none; }
  .night, .gallery, .follow { color: #000; background: #fff; }
}

/* ================================================================ blog
   /blog/ and its posts are built from Markdown by build-blog.mjs. The pages
   use the daytime look (cream, ink, orange); the footer turns to dusk. */

.site-nav a[aria-current='page'] { color: var(--orange-lo); background: linear-gradient(currentColor, currentColor) 0 100% / 100% var(--px) no-repeat; }

.blog {
  padding: 72px 0 104px;
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' shape-rendering='crispEdges'%3E%3Cg fill='%23e9d8b0'%3E%3Crect x='8' y='10' width='3' height='3'/%3E%3Crect x='44' y='4' width='3' height='3'/%3E%3Crect x='26' y='34' width='3' height='3'/%3E%3Crect x='62' y='30' width='3' height='3'/%3E%3Crect x='14' y='58' width='3' height='3'/%3E%3Crect x='50' y='52' width='3' height='3'/%3E%3C/g%3E%3C/svg%3E");
}
.blog h1 {
  margin: 0;
  font: 400 36px/44px 'Citrus Title', 'Birch', monospace;
  text-wrap: balance;
}
.blog .lede { color: var(--ink-soft); font-size: 24px; line-height: 36px; max-width: 34em; }

/* the list */
.blog-head { max-width: 820px; margin-bottom: 48px; }
.blog-subscribe { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: 18px; }
.tag-filter { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.chip {
  padding: 9px 12px 8px;
  font: 18px/18px 'Citrus Title', 'Birch', monospace;
  color: var(--ink-soft);
  background: rgba(52, 37, 27, .07);
  border: 0;
  cursor: pointer;
}
.chip:hover { color: var(--ink); background: rgba(52, 37, 27, .12); }
.chip[aria-pressed='true'] { color: var(--paper); background: var(--ink); }

.post-list { display: grid; gap: 56px; }
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 40px; }
.post-grid:empty { display: none; }
.post-card { display: grid; gap: 22px; align-content: start; }
.post-card[hidden] { display: none; }
.post-card-media { display: block; }
.post-card-media img { aspect-ratio: 16 / 9; object-fit: cover; transition: filter .15s; }
.post-card-media:hover img { filter: brightness(1.06); }
.post-card-title { font-size: 18px; line-height: 24px; }
.post-card-title a { text-decoration: none; }
.post-card-title a:hover { color: var(--orange-lo); }
.post-card-summary { margin-top: 10px; color: var(--ink-soft); }
.post-card-more { margin-top: 6px; }
.post-card-featured {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  align-items: center;
}
.post-card-featured .post-card-title { font-size: 36px; line-height: 44px; }
.post-card-featured .post-card-summary { font-size: 24px; line-height: 36px; }
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-bottom: 10px;
  font: 18px/18px 'Citrus Title', 'Birch', monospace;
  color: var(--orange-lo);
}
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.post-tags li {
  padding: 7px 9px 6px;
  font: 18px/18px 'Citrus Title', 'Birch', monospace;
  color: var(--ink-soft);
  background: rgba(52, 37, 27, .07);
}
.empty { color: var(--ink-soft); }

/* a post */
.post-head { max-width: 820px; }
.post-head h1 { margin-bottom: 4px; }
.back-link {
  display: inline-flex;
  gap: 10px;
  margin-bottom: 28px;
  padding-block: 8px;
  font: 18px/18px 'Citrus Title', 'Birch', monospace;
  color: var(--ink-soft);
  text-decoration: none;
}
.back-link:hover { color: var(--orange-lo); }
.post-cover { margin-top: 44px; max-width: 1000px; }
.post-cover .frame img { aspect-ratio: 16 / 9; object-fit: cover; }

.post-body {
  width: min(720px, 100% - 48px);
  margin: 56px auto 0;
  font-size: 18px;
}
.post-body > * + * { margin-top: 24px; }
.post-body p, .post-body li { color: var(--ink); font-size: 16px; line-height: 28px; }
.post-body h2 { margin-top: 56px; font-size: 36px; line-height: 44px; }
.post-body h3 { margin-top: 40px; }
.post-body h4 { margin: 32px 0 0; font: 400 18px/24px 'Citrus Title', 'Birch', monospace; color: var(--ink-soft); }
.post-body h2 + *, .post-body h3 + *, .post-body h4 + * { margin-top: 14px; }
.post-body a:not(.btn):not(.frame) { color: var(--orange-lo); text-underline-offset: 4px; }
.post-body a:not(.btn):not(.frame):hover { color: var(--ink); }
.post-body strong { font-weight: 400; color: var(--orange-lo); }
.post-body em { font-style: normal; background: rgba(239, 127, 39, .16); }
.post-body ul, .post-body ol { display: grid; gap: 12px; }
.post-body ul li { position: relative; padding-left: 26px; }
.post-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 9px;
  height: 9px;
  background: var(--orange);
  box-shadow: 3px 3px 0 var(--orange-lo);
}
.post-body ol { padding-left: 1.6em; list-style: decimal; }
.post-body ol li::marker { font-family: 'Citrus Title', monospace; color: var(--orange-lo); }
.post-body blockquote {
  margin: 32px 0 0;
  padding: 6px 0 6px 24px;
  border-left: var(--px) solid var(--orange);
}
.post-body blockquote p { font-size: 24px; line-height: 36px; color: var(--ink-soft); }
.post-body hr { height: var(--px); margin: 48px 0; border: 0; background: var(--paper-line); }
.post-body code { padding: 1px 6px; background: rgba(52, 37, 27, .08); font: inherit; }
.post-body pre { overflow-x: auto; padding: 18px 20px; color: var(--moon); background: var(--night); }
.post-body pre code { padding: 0; background: none; }
.post-body img { max-width: 100%; }
.post-figure, .post-embed { margin-top: 40px; margin-bottom: 8px; }
.post-figure .frame { display: block; }
.post-figure figcaption { margin-top: 16px; color: var(--ink-soft); }
.post-figure .media img { aspect-ratio: auto; height: auto; }
.post-embed { position: relative; aspect-ratio: 16 / 9; }
.post-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.post-cta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px 32px;
  align-items: center;
  margin: 56px var(--px) 0;
}
.post-cta h2 { margin: 0 0 8px; font-size: 18px; line-height: 24px; }
.post-body .post-cta p { color: var(--ink-soft); }
.post-cta .btn { margin-top: 18px; }
.post-cta-logo { width: 198px; }   /* 2x */

.post-share { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; margin-top: 48px; }
.post-share .label { margin: 0 8px 0 0; }
.post-share button.text-link { padding-inline: 0; border: 0; background-color: transparent; color: var(--orange-lo); font-family: 'Citrus Title', 'Birch', monospace; cursor: pointer; }
.post-share button.text-link:hover { color: var(--ink); }

.post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 40px;
  max-width: 1000px;
  margin: 72px auto 0;
}
.post-nav-link { display: grid; gap: 4px; text-decoration: none; margin: var(--px); padding: 22px 26px 24px; }
.post-nav-link .label { margin-bottom: 6px; }
.post-nav-newer { text-align: right; }
.post-nav-newer .label { justify-self: end; }
.post-nav-title { font: 18px/24px 'Citrus Title', 'Birch', monospace; }
.post-nav-link:hover { --edge: var(--orange-lo); }

/* the blog's footer: the page ends at dusk instead of dawn */
.blog-footer { color: var(--moon-soft); background: var(--night); }
.blog-footer .dawn {
  background: linear-gradient(
    var(--cream) 0 34%,
    #f5dbb3 34% 41%,
    #f1bd85 41% 48%,
    #de925e 48% 56%,
    #b06b58 56% 64%,
    #7d5357 64% 72%,
    #54414f 72% 80%,
    #343240 80% 88%,
    #23262a 88% 94%,
    var(--night) 94% 100%
  );
}
.blog-footer .dawn .btn { --edge: var(--ink); }
.blog-footer .foot-row { color: var(--moon-soft); }
.blog-footer .foot-row a:hover { color: var(--fire); }

/* home page: "From the devlog" (night) */
.devlog { padding: 24px 0 96px; color: var(--moon); background: var(--night); }
.devlog .post-grid-home { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.devlog .post-card-media { --edge: var(--plum); --depth: 0 0 transparent; background: #0d0f0b; }
.devlog .post-meta { color: var(--fire); }
.devlog .post-card-title a:hover { color: var(--fire); }
.devlog .post-card-summary { color: var(--moon-soft); }
.devlog .post-tags li { color: var(--moon-soft); background: rgba(241, 230, 201, .07); }
.devlog .text-link:hover { color: var(--fire); }
.follow .hint a { color: var(--fire); text-underline-offset: 4px; }

@media (max-width: 960px) {
  .post-card-featured { grid-template-columns: 1fr; gap: 22px; }
  .post-card-featured .post-card-title { font-size: 18px; line-height: 24px; }
  .post-card-featured .post-card-summary { font-size: 16px; line-height: 28px; }
  .devlog .post-grid-home { grid-template-columns: 1fr; max-width: 560px; }
}
@media (max-width: 760px) {
  /* phones keep one link in the header: the blog */
  .site-nav { display: flex; margin-left: auto; gap: 0; }
  .site-nav a:not(.nav-blog) { display: none; }
  .site-header .clock + .site-nav { margin-left: 16px; }
  .post-grid { grid-template-columns: 1fr; }
  .blog { padding-top: 48px; }
  .blog .lede { font-size: 16px; line-height: 28px; }
  .post-body { width: var(--wrap); margin-top: 40px; }
  .post-body h2 { font-size: 18px; line-height: 24px; margin-top: 44px; }
  .post-body blockquote p { font-size: 16px; line-height: 28px; }
  .post-cta { grid-template-columns: 1fr; }
  .post-cta-logo { width: 198px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-newer { text-align: left; }
  .post-nav-newer .label { justify-self: start; }
}
@media (max-width: 380px) {
  .blog h1 { font-size: 18px; line-height: 24px; }
}

/* ---------------------------------------------------------------- blog comments */
.comments { margin-top: 72px; }
.comments h2 { font-size: 36px; line-height: 44px; }
.comment-count { color: var(--ink-soft); }
.comments-note, .comments-state { margin-top: 10px; color: var(--ink-soft); }
.comments-state[hidden] { display: none; }
.post-body ol.comment-list { display: grid; gap: 18px; margin-top: 28px; list-style: none; padding: 0; }
.comment {
  margin: var(--px);
  padding: 18px 22px 16px;
  background: var(--paper);
  box-shadow:
    0 calc(var(--px) * -1) 0 var(--paper-line),
    0 var(--px) 0 var(--paper-line),
    calc(var(--px) * -1) 0 0 var(--paper-line),
    var(--px) 0 0 var(--paper-line);
}
.comment-dev { box-shadow: 0 calc(var(--px) * -1) 0 var(--orange), 0 var(--px) 0 var(--orange), calc(var(--px) * -1) 0 0 var(--orange), var(--px) 0 0 var(--orange); }
.comment-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.comment-name { font: 400 18px/24px 'Citrus Title', 'Birch', monospace; }
.comment-badge { padding: 4px 6px 3px; font: 18px/18px 'Citrus Title', 'Birch', monospace; color: var(--paper); background: var(--orange-lo); }
.comment-time { color: var(--ink-soft); }
.post-body .comment-text { margin-top: 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.reply-btn { padding: 8px 0 4px; border: 0; background-color: transparent; color: var(--orange-lo); cursor: pointer; font-family: 'Citrus Title', 'Birch', monospace; }
.reply-btn:hover { color: var(--ink); }
.post-body ol.comment-replies { display: grid; gap: 14px; margin: 14px 0 4px; padding: 0 0 0 22px; list-style: none; border-left: var(--px) solid var(--paper-line); }
.comment-replies .comment { background: var(--cream); }

.comment-form { display: grid; gap: 16px; margin: 36px var(--px) 0; }
.comment-form .field { display: grid; gap: 8px; }
.comment-form .field span { font: 18px/18px 'Citrus Title', 'Birch', monospace; }
.comment-form input, .comment-form textarea {
  width: 100%;
  padding: 10px 12px;
  font: 16px/28px 'Birch', ui-monospace, monospace;
  color: var(--ink);
  background: #fffdf5;
  border: var(--px) solid var(--ink);
  border-radius: 0;
  -webkit-font-smoothing: none;
}
.comment-form textarea { resize: vertical; min-height: 120px; }
.comment-form input:focus-visible, .comment-form textarea:focus-visible { outline: var(--px) solid var(--orange); outline-offset: 2px; }
.comment-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.comment-form .form-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.comment-form .btn[disabled] { opacity: .6; cursor: wait; }
.post-body .form-status { color: var(--ink-soft); }
.replying { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; color: var(--ink-soft); }
.replying[hidden] { display: none; }
.replying .text-link { padding: 6px 0 4px; border: 0; background-color: transparent; color: var(--orange-lo); cursor: pointer; font-family: 'Citrus Title', 'Birch', monospace; }
@media (max-width: 760px) {
  .comments h2 { font-size: 18px; line-height: 24px; }
  .comment { padding: 14px 16px 12px; }
  .post-body ol.comment-replies { padding-left: 14px; }
}
