/* Cold Boot, the front page. Each issue keeps its own zine.css; this one
   borrows its palette, faces and halftone desk, so the front page is the
   desk the issues lie on. */

:root {
  --ink: #141414;
  --paper: #ffffff;
  --spot: #ff48b0;        /* riso Fluorescent Pink */
  --spot-tint: #ffd3ec;
  --desk: #e6e0e4;

  --display: "Dela Gothic One", "Noto Sans CJK JP", "Arial Black", sans-serif;
  --voice: "Zen Maru Gothic", "Noto Sans CJK JP", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Noto Sans Mono", monospace;

  --line: 3px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--voice);
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink);
  background-color: var(--desk);
  background-image: radial-gradient(rgba(20, 20, 20, 0.13) 1px, transparent 1.4px);
  background-size: 7px 7px;
  padding-block: 2.5rem 3rem;
  padding-inline: 1rem;
}

a { color: inherit; }
a:focus-visible { outline: 3px solid var(--spot); outline-offset: 3px; }
p { margin: 0; text-wrap: pretty; }

.front { max-width: 60rem; margin-inline: auto; display: grid; gap: 3rem; }

.eyebrow {
  justify-self: start;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--spot);
  color: var(--ink);
  padding: 0.05rem 0.4rem;
}

/* ---------- masthead ---------- */

.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: start;
}
.masthead-text { display: grid; gap: 0.9rem; }

.masthead h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 3.6rem;
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-wrap: balance;
  text-shadow: 0.07em 0.05em 0 var(--spot);   /* second drum, slightly off */
}
.lede { max-width: 34rem; font-size: 1rem; font-weight: 700; }

.vertical {
  writing-mode: vertical-rl;
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: 0.1em;
  line-height: 1;
}

@media (min-width: 52rem) {
  .masthead h1 { font-size: 6rem; }
  .vertical { font-size: 2rem; }
}

/* ---------- issues ---------- */

.issues { display: grid; gap: 2rem; }

.issue { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem; align-items: start; }
@media (min-width: 44rem) {
  .issue { grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: 2.5rem; }
}

/* the issue's own cover, which build.sh renders from page 1 of the PDF */
.sheet {
  display: block;
  justify-self: start;
  width: min(100%, 18rem);
  background: var(--paper);
  rotate: -1.5deg;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08), 0 14px 30px -18px rgba(40, 20, 35, 0.45);
  transition: rotate 160ms ease, translate 160ms ease, box-shadow 160ms ease;
}
.sheet img { display: block; width: 100%; max-width: 100%; height: auto; }
.sheet:hover {
  rotate: 0deg;
  translate: 0 -4px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08), 0 22px 36px -18px rgba(40, 20, 35, 0.5);
}

.slip {
  display: grid;
  gap: 1rem;
  align-content: start;
  background: var(--paper);
  border: var(--line) solid var(--ink);
  padding: 1.1rem 1.25rem 1.25rem;
}
.slip header { display: grid; gap: 0.35rem; }
.slip h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1;
  text-shadow: 0.06em 0.05em 0 var(--spot);
}
.specs { font-family: var(--mono); font-size: 0.78rem; }
.blurb { max-width: 34rem; font-size: 1rem; font-weight: 700; }

.contents { display: grid; gap: 0.5rem; }
.toc { margin: 0; padding: 0; list-style: none; display: grid; }
.toc a {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: baseline;
  padding-block: 0.3rem 0.25rem;
  border-bottom: 2px dotted var(--ink);
  text-decoration: none;
}
.toc .ep, .toc .pg { font-family: var(--mono); font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.toc .nm { font-family: var(--display); font-size: 1rem; line-height: 1.2; }
.toc a:hover .nm { background: var(--spot-tint); box-shadow: 0 0 0 0.15rem var(--spot-tint); }

/* links drawn as Lisp Machine keys */
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; padding-top: 0.25rem; }
.key {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--ink);
  border-bottom-width: 5px;
  border-radius: 4px;
  padding: 0.4rem 0.8rem 0.3rem;
}
.key.lm { background: var(--spot-tint); color: var(--ink); }
.key:hover { background: var(--spot); color: var(--ink); }
.key:active { border-bottom-width: 2px; translate: 0 3px; }

.next {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1rem;
  border: var(--line) dashed var(--ink);
  padding: 0.9rem 1.2rem;
}
.next .jp { font-family: var(--display); font-size: 1.45rem; line-height: 1; text-shadow: 0.06em 0.05em 0 var(--spot); }
.next p { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; }

/* ---------- colophon and who-line ---------- */

.end { display: grid; gap: 1rem; }
.colophon { display: grid; gap: 0.2rem; font-size: 0.78rem; }
.colophon a { text-decoration-color: var(--spot); text-decoration-thickness: 2px; text-underline-offset: 2px; }

.wholine { font-family: var(--mono); font-size: 0.72rem; line-height: 1.2; }
.wholine .label { padding-block: 0.1rem 0.15rem; }
.wholine .bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.2rem 0.75rem;
  border-top: 4px solid var(--ink);
  padding-top: 0.15rem;
  font-variant-numeric: tabular-nums;
}
.wholine .bar span:last-child { background: var(--spot); color: var(--ink); padding-inline: 0.3rem; }

@media (prefers-reduced-motion: reduce) {
  .sheet, .key { transition: none; }
  .sheet:hover { translate: none; }
}
