/* Latent — one stylesheet, no webfonts, no framework, no JavaScript.
   System fonts only, so the page has no external requests at all. */

:root {
  --ink:        #f2ede6;
  --ink-dim:    #a9a29a;
  --ink-faint:  #6f6963;
  --bg:         #14120f;
  --bg-raise:   #1c1a16;
  --bg-sink:    #0d0c0a;
  --line:       #2e2a24;
  --film:       #d9a441;   /* the canister: warm gold            */
  --card:       #6fa8d6;   /* the SD card: cool blue             */
  --bleed:      #e0644a;   /* halation: the red that film bleeds */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* A faint grain over the whole page, made from an inline SVG turbulence —
   a nod to the subject, and it costs one line and no requests. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap, header, main, footer { max-width: 50rem; margin: 0 auto; padding: 0 1.5rem; }

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

.hero {
  padding-top: 4.5rem;
  padding-bottom: 3rem;
  text-align: center;
}

.mark {
  width: 100%;
  max-width: 26rem;
  height: auto;
  border-radius: .75rem;
  display: block;
  margin: 0 auto 2rem;
  box-shadow: 0 1.5rem 3rem rgba(0,0,0,.55), 0 0 0 1px var(--line);
}

/* The logo is the wordmark, so the visible hero text is the tagline and the
   headline is here for structure and screen readers. */
.vh {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

h1 {
  font-size: clamp(2.75rem, 11vw, 4.5rem);
  line-height: 1;
  letter-spacing: .22em;
  text-indent: .22em;            /* balances the tracking on the last letter */
  margin: 0 0 .5rem;
  font-weight: 700;
  background: linear-gradient(170deg, var(--ink) 20%, var(--film) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@supports not ((background-clip: text) or (-webkit-background-clip: text)) {
  h1 { background: none; color: var(--ink); }
}

.tagline {
  margin: 0 0 2rem;
  color: var(--film);
  font-size: 1.0625rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.lede {
  font-size: 1.25rem;
  color: var(--ink-dim);
  margin: 0;
  text-wrap: balance;
}

/* ---- sections --------------------------------------------------------- */

main { padding-bottom: 2rem; }

section {
  padding: 3.5rem 0 1rem;
  border-top: 1px solid var(--line);
}

h2 {
  font-size: 1.75rem;
  letter-spacing: -.01em;
  margin: 0 0 1.5rem;
}

h3 {
  font-size: 1.0625rem;
  margin: 2rem 0 .6rem;
  color: var(--ink);
}

p { margin: 0 0 1.15rem; text-wrap: pretty; }

.sub { color: var(--ink-dim); margin-top: -1rem; }

strong { color: var(--ink); font-weight: 600; }

em { color: var(--film); font-style: italic; }

/* ---- the cost table --------------------------------------------------- */

.numbers {
  margin: 2rem 0;
  padding: 1.5rem 1.5rem .5rem;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: .6rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  margin-bottom: .75rem;
}

caption {
  text-align: left;
  color: var(--ink-dim);
  font-size: .875rem;
  padding-bottom: .9rem;
}

th, td { padding: .7rem .5rem; text-align: right; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child { text-align: left; }

thead th {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--ink-faint);
  font-weight: 500;
  border-bottom-color: var(--ink-faint);
}

tbody th { font-weight: 400; color: var(--ink-dim); }
.total { color: var(--ink); font-weight: 600; }

tr.ours td, tr.ours th { color: var(--card); border-bottom: none; }
tr.ours .total { color: var(--card); }

.fine {
  font-size: .8125rem;
  line-height: 1.6;
  color: var(--ink-faint);
}

/* ---- the failings list ------------------------------------------------ */

.failings { list-style: none; padding: 0; margin: 1.5rem 0; }

.failings li {
  padding: 1rem 0 1rem 1.5rem;
  border-left: 2px solid var(--bleed);
  margin-bottom: .75rem;
  color: var(--ink-dim);
}

.failings strong { display: block; color: var(--ink); margin-bottom: .15rem; }

/* ---- the four steps --------------------------------------------------- */

.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }

.steps > li {
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.steps > li:last-child { border-bottom: none; }

.steps h3 { margin-top: 0; display: flex; align-items: baseline; gap: .6rem; font-size: 1.25rem; }

.n {
  display: inline-grid;
  place-items: center;
  width: 1.6rem; height: 1.6rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--film);
  color: var(--bg-sink);
  font-size: .8125rem;
  font-weight: 700;
}

/* ---- terminal blocks -------------------------------------------------- */

.cli {
  background: var(--bg-sink);
  border: 1px solid var(--line);
  border-left: 2px solid var(--card);
  border-radius: .35rem;
  padding: .9rem 1rem;
  margin: 1rem 0;
  overflow-x: auto;
  font: 400 .8125rem/1.75 ui-monospace, SFMono-Regular, "SF Mono", Menlo,
        Consolas, "Liberation Mono", monospace;
  color: var(--ink-dim);
  white-space: pre;
}

.prompt { color: var(--film); user-select: none; }

/* ---- figures ---------------------------------------------------------- */

figure { margin: 1.5rem 0 0; }

figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  border-radius: .4rem;
}

figcaption {
  font-size: .8125rem;
  color: var(--ink-faint);
  padding-top: .6rem;
}

/* ---- the cards -------------------------------------------------------- */

.cards { display: grid; gap: 1rem; margin-top: 1.5rem; }

@media (min-width: 44rem) { .cards { grid-template-columns: 1fr 1fr; } }

.cards article {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: .6rem;
  padding: 1.25rem 1.25rem .5rem;
}

.cards h3 { margin-top: 0; color: var(--film); }

.cards p { font-size: .9375rem; color: var(--ink-dim); }

/* ---- the photo placeholders ------------------------------------------- */

.gallery {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  margin-top: 1.5rem;
}

.slot {
  aspect-ratio: 3 / 2;
  border: 1px dashed var(--line);
  border-radius: .4rem;
  background: var(--bg-sink);
}

/* ---- status ----------------------------------------------------------- */

.status { margin: 0 0 1.25rem; }

.status dt {
  color: var(--film);
  font-weight: 600;
  font-size: .9375rem;
  margin-top: 1rem;
}

.status dd {
  margin: .15rem 0 0;
  color: var(--ink-dim);
  font-size: .9375rem;
}

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

footer {
  padding-top: 2rem;
  padding-bottom: 4rem;
  color: var(--ink-faint);
  font-size: .875rem;
  border-top: 1px solid var(--line);
}

footer strong { color: var(--film); font-weight: 600; }

/* ---- respect the reader's choices ------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  body::before { display: none; }
  body { background: #fff; color: #000; }
}
