/* ==========================================================================
   Pikkola Lab — pikkola.com
   One page, set like a small printed catalogue.
   Type: Source Serif 4 (reading), Inter (interface), JetBrains Mono (machine).
   No framework. No external requests. Hand-written, Seoul.
   ========================================================================== */

/* ---------- type ---------- */

@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter var";
  src: url("/fonts/inter.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens ---------- */

:root {
  --paper: #f7f4ea;
  --paper-lift: #fbf9f1;
  --paper-sink: #f1ece0;
  --ink: #1c1914;
  --ink-soft: #393429;
  --muted: #6c6555;
  --faint: #726b5b;
  --rule: #d5cdb9;
  --rule-soft: #e4ddcb;
  --rubric: #8a3221;
  --live: #3f6247;

  --serif: "Source Serif 4", "Iowan Old Style", "AppleMyungjo", Georgia, "Times New Roman", serif;
  --sans: "Inter var", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo",
    "Noto Sans KR", "Hiragino Sans", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --measure: 38rem;
  --wrap: 1140px;
  --gut: clamp(1.25rem, 5vw, 3.5rem);
  --hair: 1px solid var(--rule);
}

[data-theme="dark"] {
  --paper: #16140f;
  --paper-lift: #1c1914;
  --paper-sink: #100e0a;
  --ink: #ece5d3;
  --ink-soft: #d8cfba;
  --muted: #a49a83;
  --faint: #8f8775;
  --rule: #322d23;
  --rule-soft: #26221a;
  --rubric: #cd7053;
  --live: #8fb79a;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  font-feature-settings: "kern" 1, "calt" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* a very faint tooth, so the page reads as paper and not as a white void */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .45;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
[data-theme="dark"] body::before { mix-blend-mode: screen; opacity: .22; }

body > * { position: relative; z-index: 1; }

::selection { background: var(--rubric); color: var(--paper-lift); }

a { color: inherit; text-decoration-color: var(--rule); text-underline-offset: .18em; }
a:hover { text-decoration-color: var(--rubric); }

:focus-visible {
  outline: 2px solid var(--rubric);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: .6rem 1rem;
  font: 500 13px/1 var(--mono);
  z-index: 50;
}
.skip:focus { left: 1rem; top: 1rem; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gut);
  padding-right: var(--gut);
}

/* ---------- small type helpers ---------- */

.label {
  font: 500 10.5px/1.4 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.label .num { color: var(--rubric); }

.hand {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
}

em { font-style: italic; }

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

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: var(--hair);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .masthead { background: var(--paper); }
}

.mast-inner {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 3vw, 2.5rem);
  min-height: 61px;
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  flex: none;
}
.stamp {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1.5px solid var(--rubric);
  color: var(--rubric);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 17px;
  line-height: 1;
  padding-bottom: 2px;
  transform: rotate(-2.5deg);
  box-shadow: inset 0 0 0 2px var(--paper);
}
.brand-text {
  font-family: var(--serif);
  font-size: 17.5px;
  letter-spacing: -.01em;
}
.brand-text b { font-weight: 600; }
.brand-text span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: .35rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(.75rem, 2.2vw, 1.6rem);
  margin-left: auto;
}
.nav a {
  font: 400 12.5px/1 var(--sans);
  letter-spacing: .01em;
  color: var(--ink-soft);
  text-decoration: none;
  padding: .35rem 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--rubric); border-bottom-color: var(--rubric); }
.nav a[aria-current] { color: var(--rubric); border-bottom-color: var(--rubric); }

.mast-tools {
  display: flex;
  align-items: center;
  gap: .9rem;
  flex: none;
  padding-left: .2rem;
}
.clock {
  font: 400 11px/1 var(--mono);
  color: var(--muted);
  letter-spacing: .06em;
  white-space: nowrap;
}
.clock b { font-weight: 400; color: var(--ink-soft); }

.theme {
  appearance: none;
  background: none;
  border: var(--hair);
  color: var(--ink-soft);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
}
.theme:hover { border-color: var(--rubric); color: var(--rubric); }
.theme svg { width: 14px; height: 14px; }
[data-theme="dark"] .theme .moon { display: none; }
[data-theme="light"] .theme .sun { display: none; }

@media (max-width: 860px) {
  .mast-inner { flex-wrap: wrap; min-height: 0; padding-top: .7rem; padding-bottom: .55rem; gap: .35rem .9rem; }
  .nav { order: 3; margin-left: 0; width: 100%; gap: 1.1rem; }
  .nav a { font-size: 12px; }
  .mast-tools { margin-left: auto; }
  .clock { display: none; }
}

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

/* the whole page sits on one two-column grid: a margin for labels, a column for reading */
.grid {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 0 clamp(1.5rem, 3.4vw, 3.25rem);
  align-items: start;
}
.grid > .body { min-width: 0; }

.hero {
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  border-bottom: var(--hair);
}
.hero .eyebrow {
  padding-bottom: clamp(1.6rem, 3.4vw, 2.8rem);
  border-bottom: 1px solid var(--rule-soft);
  margin-bottom: clamp(1.8rem, 3.4vw, 2.8rem);
}

.hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 33rem) 14rem;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  justify-content: space-between;
}

h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.9rem, 7.4vw, 5.1rem);
  line-height: .98;
  letter-spacing: -.028em;
  margin: 0 0 clamp(1.5rem, 3vw, 2.2rem);
  text-wrap: balance;
}
h1 .l2 {
  display: block;
  padding-left: clamp(0rem, 3.5vw, 3.2rem);
  color: var(--ink-soft);
}
h1 em {
  font-weight: 400;
  color: var(--rubric);
}

.hero .dek {
  font-size: clamp(1.02rem, 1.35vw, 1.15rem);
  line-height: 1.62;
  max-width: 34rem;
  color: var(--ink-soft);
  margin: 0;
}
.hero .dek strong { font-weight: 500; color: var(--ink); }

.hero-note {
  border-top: 1px solid var(--ink);
  padding-top: .85rem;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}
.hero-note .label { margin-bottom: .5rem; }
.hero-note b { font-weight: 500; color: var(--ink-soft); }
.hero-note .dot-live {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--live);
  margin-right: .35rem;
  vertical-align: 1px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.9rem;
  margin: clamp(2.4rem, 5vw, 3.6rem) 0 0;
  padding: 0;
  list-style: none;
  font: 400 11.5px/1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
}
.hero-facts li { display: flex; align-items: baseline; gap: .45rem; }
.hero-facts b { font-weight: 500; color: var(--ink); letter-spacing: .06em; }

.hero-note { max-width: 26rem; }

/* ---------- section frame ---------- */

.section {
  padding: clamp(3.2rem, 6vw, 5.4rem) 0;
  border-bottom: var(--hair);
}

.rail { position: relative; }
.rail .label { position: sticky; top: 5.2rem; display: block; }
.rail .label .num { display: block; font-size: 13px; margin-bottom: .55rem; letter-spacing: .02em; }

p { text-wrap: pretty; }

.section .body { position: relative; }

.section h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.85rem, 3.4vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 .8rem;
  text-wrap: balance;
}
.section .intro {
  font-size: 1.02rem;
  color: var(--ink-soft);
  max-width: var(--measure);
  margin: 0 0 clamp(2rem, 4vw, 2.9rem);
}

@media (max-width: 780px) {
  .grid { grid-template-columns: 1fr; }
  .section { padding: 2.9rem 0; }
  .rail { margin-bottom: 1.1rem; }
  .rail .label { position: static; }
  .rail .label .num { display: inline; margin: 0 .5rem 0 0; }
  .rail:empty { display: none; }
}

@media (max-width: 700px) {
  .hero-foot { grid-template-columns: 1fr; }
}

/* ---------- manifesto ---------- */

.manifesto p {
  max-width: var(--measure);
  margin: 0 0 1.25rem;
  font-size: 1.045rem;
  line-height: 1.72;
}
.manifesto h2 + p {
  font-size: 1.12rem;
  color: var(--ink);
}
/* the drop cap: printed, not decorated */
.manifesto h2 + p::first-letter {
  float: left;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 3.55em;
  line-height: .84;
  padding: .06em .12em 0 0;
  color: var(--rubric);
}

/* a note in the outer margin, for wide screens only */
p.marginalia {
  position: absolute;
  right: 0;
  top: -.15rem;
  width: 11.5rem;
  margin: 0;
  max-width: none;
  font-family: var(--serif);
  font-style: italic;
  font-size: .84rem;
  line-height: 1.5;
  color: var(--faint);
  text-align: right;
  text-wrap: pretty;
}
@media (max-width: 1280px) { p.marginalia { display: none; } }

.rules {
  list-style: none;
  margin: clamp(2.2rem, 4vw, 3rem) 0 0;
  padding: 0;
  max-width: 42rem;
  border-top: var(--hair);
}
.rules li {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 0 1rem;
  padding: .95rem 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: .965rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.rules .n {
  font: 400 11px/1.9 var(--mono);
  color: var(--rubric);
  letter-spacing: .06em;
}
.rules b { font-weight: 500; color: var(--ink); }

.footnote {
  max-width: 42rem;
  margin: 1.6rem 0 0;
  font-size: .84rem;
  line-height: 1.55;
  color: var(--faint);
  padding-left: 1rem;
  border-left: 1px solid var(--rule);
}
.footnote sup { color: var(--rubric); font-family: var(--mono); font-size: .72em; }

.signature {
  margin: clamp(2.4rem, 4vw, 3.2rem) 0 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.signature .seal {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--rubric);
  color: var(--rubric);
  display: grid;
  place-items: center;
  transform: rotate(-4deg);
  box-shadow: inset 0 0 0 2.5px var(--paper);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  line-height: .95;
  text-align: center;
  letter-spacing: .02em;
}
.signature .hand { font-size: 1rem; }
.signature .hand b { font-weight: 400; color: var(--ink-soft); }

/* ---------- the shelf ---------- */

.shelf {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: var(--hair);
  border-left: var(--hair);
}
.card {
  border-right: var(--hair);
  border-bottom: var(--hair);
  padding: 1.5rem 1.55rem 1.35rem;
  background: var(--paper-lift);
  display: flex;
  flex-direction: column;
  gap: .6rem;
  text-decoration: none;
  position: relative;
  transition: background .18s ease;
}
.card:hover { background: var(--paper); }
.card:hover .card-open { color: var(--rubric); }
.card:hover .card-open svg { transform: translate(2px, -2px); }

.card-top {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  font: 400 10.5px/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: .1rem;
}
.card-top .num { color: var(--rubric); }
.card-top .host { margin-left: auto; letter-spacing: .05em; text-transform: none; font-size: 11px; }

.card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.42rem;
  letter-spacing: -.015em;
  margin: 0;
  line-height: 1.2;
}
.card h3 .glyph {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: .5rem;
  vertical-align: -2px;
  color: var(--muted);
}
.card:hover h3 .glyph { color: var(--rubric); }

.card p { margin: 0; font-size: .93rem; line-height: 1.6; color: var(--ink-soft); }

.card .why {
  font-family: var(--serif);
  font-style: italic;
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.55;
  margin-top: .15rem;
}
.card .why .why-tag {
  font: 400 9.5px/1 var(--mono);
  font-style: normal;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--faint);
  margin-right: .45rem;
  vertical-align: 1px;
}

.card-foot {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-top: auto;
  padding-top: .9rem;
  font: 400 10.5px/1 var(--mono);
  letter-spacing: .06em;
  color: var(--faint);
}
.card-open {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: var(--ink-soft);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.card-open svg { width: 10px; height: 10px; transition: transform .18s ease; }

@media (max-width: 700px) {
  .shelf { grid-template-columns: 1fr; }
  .card { padding: 1.3rem 1.2rem 1.2rem; }
}

/* ---------- field guides ---------- */

.guides {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  align-items: stretch;
}
.book {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--paper-lift);
  border: var(--hair);
  padding: 1.35rem 1.3rem 1.15rem 1.45rem;
  position: relative;
  box-shadow: 0 1px 0 var(--rule-soft), 0 14px 22px -20px rgba(40, 32, 18, .55);
  transition: box-shadow .2s ease, transform .2s ease;
}
.book::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--book, var(--rule));
}
.book:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 0 var(--rule), 0 20px 26px -20px rgba(40, 32, 18, .6);
}
.book .series {
  font: 400 9.5px/1 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: .85rem;
}
.book h3 {
  font-family: var(--serif);
  font-size: 1.16rem;
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: -.01em;
  margin: 0 0 .55rem;
}
.book h3 em { color: var(--muted); }
.book p { margin: 0; font-size: .875rem; line-height: 1.55; color: var(--ink-soft); }
.book-foot {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  margin-top: auto;
  padding-top: .8rem;
  border-top: 1px solid var(--rule-soft);
  font: 400 10.5px/1 var(--mono);
  letter-spacing: .04em;
  color: var(--faint);
}
.book-foot .price {
  margin-left: auto;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: 0;
}
/* one-line notes that sit under a grid of cards */
.note {
  margin: 1.3rem 0 0;
  font-size: .885rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 46rem;
}
.note.hand { font-family: var(--serif); font-style: italic; font-size: .95rem; }

/* small headings inside a section body */
.label.subhead { margin: 2.7rem 0 .5rem; }

.section .intro { margin-bottom: clamp(1.8rem, 3.4vw, 2.6rem); }

@media (max-width: 880px) {
  .guides { grid-template-columns: 1fr; }
}

/* ---------- colophon ---------- */

.colophon-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(1.8rem, 4vw, 3.4rem);
}
.colophon p { max-width: 34rem; margin: 0 0 1.05rem; font-size: .965rem; line-height: 1.68; color: var(--ink-soft); }
.colophon p:first-of-type { margin-top: 0; }

.spec {
  margin: 0;
  font-size: .875rem;
  border-top: 1px solid var(--ink);
}
.spec > div {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  padding: .5rem 0;
  border-bottom: 1px solid var(--rule-soft);
}
.spec dt { color: var(--muted); white-space: nowrap; }
.spec dt::after {
  content: "";
  display: block;
}
.spec dd {
  margin: 0 0 0 auto;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .02em;
  color: var(--ink);
  text-align: right;
}
.spec dd.plain { font-family: var(--sans); font-size: .875rem; }

.notlist {
  margin: clamp(2rem, 4vw, 2.6rem) 0 0;
  padding: 0;
  list-style: none;
  max-width: 40rem;
}
.notlist li {
  position: relative;
  padding: .42rem 0 .42rem 1.5rem;
  font-size: .93rem;
  color: var(--ink-soft);
}
.notlist li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--rubric);
}

@media (max-width: 880px) {
  .colophon-grid { grid-template-columns: 1fr; }
}

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

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.table caption {
  text-align: left;
  font: 400 10.5px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
  padding-bottom: .7rem;
}
.table th {
  text-align: left;
  font: 500 10px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 500;
  padding: 0 0 .5rem;
  border-bottom: 1px solid var(--ink);
}
.table td {
  padding: .66rem 0;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: baseline;
  color: var(--ink-soft);
}
.table td.mono { font-family: var(--mono); font-size: 11.5px; color: var(--faint); letter-spacing: .02em; }
.table td.right { text-align: right; }
.table tr:last-child td { border-bottom: 1px solid var(--rule); }
.table .svc { color: var(--ink); }
.table .svc a { text-decoration: none; }
.table .svc a:hover { text-decoration: underline; }
.table .ok { color: var(--live); white-space: nowrap; }
.table .ok::before {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--live);
  margin-right: .45rem;
  vertical-align: 1px;
}

.ledger { margin-top: clamp(2.2rem, 4vw, 3rem); }
.status-wrap { margin-top: clamp(2.2rem, 4vw, 3rem); }
.status-note {
  margin: .9rem 0 0;
  font-size: .85rem;
  color: var(--faint);
  max-width: 40rem;
}

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

.foot {
  padding: clamp(2.6rem, 5vw, 3.6rem) 0 clamp(2rem, 4vw, 2.6rem);
}
.foot-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.6rem 2.5rem;
}
.foot-brand { display: flex; align-items: center; gap: .6rem; }
.foot-brand .stamp { width: 24px; height: 24px; font-size: 15px; }
.foot-brand .name { font-family: var(--serif); font-size: 16px; }
.foot-addr { margin: .55rem 0 0 2.1rem; font: 400 11px/1.6 var(--mono); color: var(--faint); letter-spacing: .04em; }

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.4rem;
  font-size: 13px;
  color: var(--ink-soft);
}
.foot-links a { text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 1px; }
.foot-links a:hover { border-color: var(--rubric); color: var(--rubric); }
.foot-mail { font-size: 14.5px; text-decoration: none; border-bottom: 1px solid var(--rule); align-self: flex-start; }
.foot-mail:hover { border-color: var(--rubric); color: var(--rubric); }
.foot-small { font: 400 10.5px/1.5 var(--mono); color: var(--faint); letter-spacing: .02em; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  align-self: flex-start;
  padding: .3rem .6rem .3rem .5rem;
  border: 1px solid var(--rule);
  font: 400 10.5px/1 var(--mono);
  letter-spacing: .05em;
  color: var(--ink-soft);
}
.badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--live);
}

.foot-col { display: flex; flex-direction: column; gap: .5rem; }
.foot-col .label { margin-bottom: .2rem; }
.foot-clock { font: 400 12px/1.5 var(--mono); color: var(--muted); letter-spacing: .04em; }
.foot-clock b { color: var(--ink-soft); font-weight: 400; }

.foot-legal {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.2rem;
  justify-content: space-between;
  align-items: baseline;
  margin-top: clamp(2.2rem, 4vw, 3rem);
  padding-top: 1rem;
  border-top: var(--hair);
  font: 400 10.5px/1.7 var(--mono);
  letter-spacing: .05em;
  color: var(--faint);
}
.foot-legal .folio { letter-spacing: .2em; }

/* ---------- inner pages (privacy, 404) ---------- */

.page { max-width: 40rem; padding: clamp(3rem, 6vw, 4.6rem) 0 1rem; }
.page h1 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); line-height: 1.04; margin-bottom: 1.4rem; }
.page h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.22rem;
  margin: 2.4rem 0 .6rem;
  letter-spacing: -.01em;
}
.page p, .page li { font-size: .97rem; line-height: 1.68; color: var(--ink-soft); }
.page ul { padding-left: 1.15rem; }
.page li { margin-bottom: .35rem; }
.page .meta { font: 400 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 1rem; }
.page code { font-family: var(--mono); font-size: .86em; background: var(--paper-sink); padding: .1em .35em; }

.big-404 {
  font-family: var(--serif);
  font-size: clamp(4.5rem, 16vw, 9rem);
  line-height: .9;
  letter-spacing: -.04em;
  color: var(--rule);
  margin: 0 0 1.4rem;
}

/* ---------- motion ---------- */

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

/* ---------- print: it is a paper site, so it should print as one ---------- */

@media print {
  body { background: #fff; color: #000; font-size: 10.5pt; }
  body::before, .masthead, .theme, .clock, .skip, .card-open { display: none !important; }
  .wrap { max-width: none; padding: 0; }
  .section, .hero { border-color: #999; }
  .card, .book { box-shadow: none; }
  .card { break-inside: avoid; }
  .book { break-inside: avoid; }
  a { text-decoration: none; }
  h1 { font-size: 30pt; }
}
