/* Tokens are the app's (src/theme/index.ts, SCREEN 37). */
@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: 600; font-display: swap; src: url("/fonts/LibreFranklin-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Libre Franklin"; font-weight: 900; font-display: swap; src: url("/fonts/LibreFranklin-Black.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;
  --rose: #fb7185;
  --sans: "Libre Franklin", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
  color-scheme: dark;
}

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

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

/* The masthead grid: 1pt panel lines every 15pt; only the lines fade. */
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 600px;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, var(--panel) 1px, transparent 1px),
    linear-gradient(to bottom, var(--panel) 1px, transparent 1px);
  background-size: 15px 15px;
  background-position: calc(50% + 0.5px) 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
}

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

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; }

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

/* Masthead */
h1 {
  margin: 0;
  font: 900 44px/45px var(--sans);
  letter-spacing: -1.1px;
  color: #fff;
  text-shadow: 5px 5px 0 var(--rule);
}
.blurb { margin: 20px 0 25px; font: 600 17px/20px var(--sans); color: #fff; }

.records { list-style: none; margin: 0; padding: 0; }
.records li { display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 5px 0; flex-wrap: wrap; }
.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; }
.records b { font-weight: 600; }
.records .gap { width: 12px; }
.mono { font-family: var(--mono); font-size: 14px; letter-spacing: 0.02em; text-transform: uppercase; }

/* Nav track: the app's pill nav, first chip is the page */
nav.track {
  display: flex;
  gap: 4px;
  margin: 30px 0 15px;
  padding: 3px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  width: max-content;
  max-width: 100%;
}
nav.track a { padding: 5px 14px; border-radius: 999px; color: var(--ink); line-height: 20px; }
nav.track a:hover { text-decoration: none; background: var(--panel); }
nav.track a[aria-current] { background: var(--rule); color: #fff; }

/* Cards */
.card { background: var(--panel); border-radius: 28px; padding: 20px; margin: 10px 0 0; }
.card h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font: 600 20px/24px var(--sans); color: var(--rose); }
.card h2 svg { width: 22px; height: 22px; fill: currentColor; }
.card p { margin: 0; }
.card b { font-weight: 600; }
.card p + p, .card ul + p { margin-top: 10px; }
.card ul { list-style: none; margin: 0; padding: 0; }
.card li { display: flex; gap: 8px; align-items: center; padding: 5px 0; min-height: 30px; }
.card li + li { border-top: 1px solid var(--rule); }

footer { margin-top: 30px; font: 400 13px/20px var(--sans); color: #a3a3a3; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer a { color: #a3a3a3; }

/* Second paragraph under the blurb */
.lede { margin: -10px 0 25px; color: #d4d4d4; }

/* Screens from the app */
.shots {
  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;
  border: 1px solid var(--rule);
  box-shadow: 5px 5px 0 var(--rule);
  background: var(--panel);
}
.shots figcaption { margin-top: 14px; display: grid; gap: 4px; }
.shots figcaption .mono { color: var(--rose); }
@media (min-width: 1180px) { .shots { justify-content: center; overflow: visible; } }

.sheet.foot { padding-top: 0; }

/* Everything sits above the grid layer */
.sheet, .shots { position: relative; z-index: 1; }
