/* Tokens and geometry are the app's (src/theme, CLAUDE.md "SCREEN 38"). */
@font-face { font-family: "Libre Franklin"; font-weight: 400; font-display: swap; src: url("/fonts/LibreFranklin-Regular.woff2") format("woff2"); }
@font-face { font-family: "Libre Franklin"; font-weight: 500; font-display: swap; src: url("/fonts/LibreFranklin-Medium.woff2") format("woff2"); }
@font-face { font-family: "Libre Franklin"; font-weight: 600; font-display: swap; src: url("/fonts/LibreFranklin-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Libre Franklin"; font-weight: 700; font-display: swap; src: url("/fonts/LibreFranklin-Bold.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-weight: 400; font-display: swap; src: url("/fonts/DMMono-Regular.woff2") format("woff2"); }

:root {
  --ground: #171717;
  --panel: #262626;
  --rule: #404040;
  --text: #f5f5f5;
  --ink: #fecdd3;
  --muted: #a3a3a3;
  --yellow: #facc15;
  --sans: "Libre Franklin", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
  --grid: 15px;
  /* Emblem centre, measured from the page centre: 9 grid cells, 8 on a narrow phone. */
  --ec: 135px;
  color-scheme: dark;
}
@media (max-width: 419px) { :root { --ec: 120px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ground) url("/grain.png?v=2") repeat;
  background-size: 512px 512px;
  color: var(--text);
  font: 400 17px/20px var(--sans);
}

a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
b { font-weight: 600; }

svg.i { width: 20px; height: 20px; flex: none; fill: currentColor; }

.sheet { position: relative; max-width: 442px; margin: 0 auto; padding: 0 20px; }

/* ---------- Masthead ---------- */
.mast { position: relative; padding-top: 60px; z-index: 1; }

h1 {
  margin: 0;
  max-width: 325px;
  font: 700 44px/45px var(--sans);
  letter-spacing: -1.1px;
  color: #fff;
}

/* The blurb stops one grid box short of the emblem's ring. */
.blurb {
  margin: 20px 0 0;
  width: calc(50% + var(--ec) - 60px - var(--grid));
  font: 400 17px/20px var(--sans);
  color: #fff;
}

/* THE RULE: full width, broken by the emblem. */
.rule {
  position: relative;
  height: 0;
  margin-top: 20px;
}
/* The grid: 1pt panel lines every 15pt, anchored to THE RULE so the rule always sits on a line;
   verticals centred on the page. Only the lines fade (over 300 below the rule); the ground stays. */
.rule::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -1200px;
  height: 1500px;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--panel) 1px, transparent 1px),
    linear-gradient(to bottom, var(--panel) 1px, transparent 1px);
  background-size: var(--grid) var(--grid);
  background-position: calc(50% + 0.5px) 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 1200px, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 1200px, transparent 100%);
}
.rule::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(to right,
    var(--text) 0 calc(50% + var(--ec) - 60px),
    transparent 0 calc(50% + var(--ec) + 60px),
    var(--text) 0);
}

.emblem {
  position: absolute;
  top: -60px;
  left: calc(50% + var(--ec) - 60px);
  width: 120px;
  height: 120px;
  overflow: visible;
  color: var(--text);
}
.emblem circle { fill: none; stroke: currentColor; stroke-width: 1; }
.emblem text {
  font: 500 10px var(--sans);
  text-transform: uppercase;
  fill: currentColor;
}

/* Records: a 30pt pitch, 15 under the rule, rules between them landing on grid lines. */
.records {
  list-style: none;
  margin: 0;
  padding: 15px 0 0;
  width: calc(50% + var(--ec) - 60px - var(--grid));
}
.records li { display: flex; align-items: center; gap: 8px; height: 30px; padding: 5px 0; }
.records li + li { border-top: 1px solid var(--rule); }
.records .ring { width: 12px; height: 12px; border: 1.5px solid #fff; border-radius: 50%; margin: 0 2px 0 4px; flex: none; }
.records .open { width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); margin: 0 2px 0 4px; flex: none; }
.records .mono { font: 400 14px/20px var(--mono); color: var(--muted); }

/* ---------- Nav: Liquid Glass track, 44 tall ---------- */
.navbar { position: sticky; top: 15px; z-index: 5; margin-top: 35px; }
nav.track {
  display: flex;
  gap: 2px;
  height: 44px;
  padding: 5px;
  width: max-content;
  max-width: 100%;
  border-radius: 22px;
  background: rgba(38, 38, 38, 0.55);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 8px 24px rgba(0, 0, 0, 0.35);
}
nav.track a {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 15px;
  border-radius: 17px;
  color: var(--ink);
  font: 400 15px/20px var(--sans);
  white-space: nowrap;
}
nav.track a:hover { text-decoration: none; background: rgba(255, 255, 255, 0.06); }
nav.track a[aria-current] { background: rgba(64, 64, 64, 0.85); color: #fff; }
nav.track .radio {
  display: grid;
  place-items: center;
  width: 16.25px;
  height: 16.25px;
  border: 1.25px solid currentColor;
  border-radius: 50%;
}
nav.track .radio svg { width: 9px; height: 9px; fill: currentColor; }

/* ---------- Cards ---------- */
.cards { padding-top: 15px; }
.card { background: var(--panel); border-radius: 25px; padding: 15px; }
.card + .card { margin-top: 15px; }
.card h2 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 20px;
  font: 600 20px/20px var(--sans);
  letter-spacing: 0.4px;
  color: #fff;
}
.card h2 .tile { width: 20px; height: 20px; display: grid; place-items: center; flex: none; }
.card h2 svg { width: 24px; height: 24px; margin: -2px; fill: #fff; }
.card p { margin: 0; font: 400 16px/21px var(--sans); }
.card p + p { margin-top: 10px; }
.card ul { list-style: none; margin: 0; padding: 0; }
.card li { display: flex; align-items: center; height: 40px; font: 400 17px/20px var(--sans); }
.card li + li { border-top: 1px solid var(--rule); }

/* ---------- Screens from the app ---------- */
.shots {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 20px;
  max-width: 1160px;
  margin: 30px auto 0;
  padding: 0 20px 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.shots::-webkit-scrollbar { display: none; }
.shots figure { flex: 0 0 260px; margin: 0; scroll-snap-align: center; }
.shots img {
  display: block;
  width: 260px;
  height: auto;
  border-radius: 34px;
  box-shadow: inset 0 0 0 1px var(--rule), 0 0 0 1px var(--rule);
  background: var(--panel);
}
.shots figcaption { margin-top: 15px; display: grid; gap: 5px; font: 400 16px/21px var(--sans); }
.shots figcaption b { font: 600 20px/20px var(--sans); letter-spacing: 0.4px; color: #fff; }
@media (min-width: 1180px) { .shots { justify-content: center; overflow: visible; } }

/* ---------- Footer ---------- */
footer.sheet {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding-top: 40px;
  padding-bottom: 40px;
  font: 400 13px/20px var(--sans);
  color: var(--muted);
}
footer a { color: var(--muted); }

/* Everything after the masthead paints above its grid. */
main, footer.sheet { position: relative; z-index: 2; }

/* A small dated note above a page's cards (Privacy). */
.sheet.note { padding-top: 15px; font: 400 14px/20px var(--mono); color: var(--muted); }
.sheet.note + .cards { padding-top: 10px; }
