
@font-face {
  font-family: "Press Start 2P";
  src: url("/press-start-2p.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #f5f2e9;
  --muted: #aaa79f;
  --paper: #090909;
  --accent: #5dfdcb;
  font-family: "Press Start 2P", ui-monospace, monospace;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

a { color: inherit; }

.archive-corner {
  position: absolute;
  z-index: 10;
  top: 1rem;
  right: 1rem;
  padding: .65rem;
  color: #b9b9b9;
  font-size: .55rem;
  line-height: 1;
  text-transform: uppercase;
  text-underline-offset: .25rem;
}

.archive-corner:hover,
.archive-corner:focus-visible { color: #fff; }

/* Standby */
.standby-page {
  overflow: hidden;
  width: 100vw;
  height: 100dvh;
  background: #000;
}

.dvd-stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.dvd-logo {
  --logo-color: #5dfdcb;
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: clamp(6rem, 18vw, 11rem);
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--logo-color);
  line-height: 0;
  appearance: none;
  cursor: pointer;
  user-select: none;
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}

.dvd-logo svg {
  display: block;
  width: 100%;
  height: auto;
  fill: currentColor;
}

.dvd-logo:focus-visible {
  outline: .18rem dashed currentColor;
  outline-offset: .2rem;
}

.countdown {
  position: fixed;
  z-index: 5;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  gap: .65rem;
  justify-items: center;
  width: max-content;
  color: #fff;
  text-align: center;
  pointer-events: none;
}

.countdown-label {
  margin: 0;
  color: #aaa;
  font-size: clamp(.42rem, 1.4vw, .58rem);
  line-height: 1;
}

.countdown-value {
  font-size: clamp(.58rem, 2vw, .85rem);
  line-height: 1;
  letter-spacing: .08em;
  white-space: nowrap;
}

/* Weekend edition */
.edition-page { --accent: #5dfdcb; }

.edition-shell {
  width: min(58rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 5rem) 0 5rem;
}

.edition-header {
  margin-bottom: clamp(2.75rem, 6vw, 4rem);
  text-align: center;
}

.edition-title {
  margin: 0;
  line-height: 0;
}

.edition-logo {
  display: block;
  width: clamp(4.5rem, 12vw, 7rem);
  margin: 0 auto;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--accent);
  line-height: 0;
  cursor: pointer;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.edition-logo svg {
  display: block;
  width: 100%;
  height: auto;
  fill: currentColor;
}

.edition-logo:focus-visible {
  outline: .15rem dashed currentColor;
  outline-offset: .3rem;
}

.edition-range {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: clamp(.5rem, 1.25vw, .65rem);
  line-height: 1.6;
}

.day-section { margin-top: clamp(2.5rem, 6vw, 4rem); }

.day-heading {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin: 0 0 .75rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: .7rem;
  color: var(--accent);
  font-size: clamp(.82rem, 2.8vw, 1.15rem);
  line-height: 1.35;
}

.day-date {
  margin-left: auto;
  color: var(--muted);
  font-size: .45rem;
}

.story-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.story {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: .55rem .75rem;
  border-bottom: 1px solid #292929;
  padding: 1rem 0;
}

.story-number {
  color: #4d4d4d;
  font-size: .55rem;
  line-height: 1.65;
}

.story-title {
  margin: 0;
  font-size: clamp(.62rem, 1.8vw, .78rem);
  line-height: 1.7;
}

.story-title a {
  text-decoration-color: transparent;
  text-underline-offset: .28em;
  transition: color 120ms ease, text-decoration-color 120ms ease;
}

.story-title a:hover,
.story-title a:focus-visible {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.story-meta {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .75rem;
  margin: 0;
  color: var(--muted);
  font-size: .43rem;
  line-height: 1.6;
}

.story-domain {
  overflow: hidden;
  max-width: 100%;
  color: #747474;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discussion-link {
  color: var(--accent);
  text-underline-offset: .22rem;
}

@media (max-width: 38rem) {
  .story { grid-template-columns: 1.6rem minmax(0, 1fr); }
  .day-heading { align-items: flex-start; flex-direction: column; }
  .day-date { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .dvd-logo { will-change: auto; }
  .story-title a { transition: none; }
}
