/* Super 8mm Log, support site.
   Tokens and type roles come from design/design-tokens.md and the v2 export
   (design/SCREENS-v2.html). Nothing here is styled from memory. */

/* Fonts, self-hosted. SIL Open Font License, see fonts/OFL-*.txt. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/BricolageGrotesque-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/DMSans-Variable.ttf") format("truetype");
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: "Fragment Mono";
  src: url("/fonts/FragmentMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

/* Color tokens, light. Values verbatim from design-tokens.md. */
:root {
  color-scheme: light dark;
  --bg: #f8f6ef;
  --card: #fffffe;
  --ink: #16150f;
  --ink2: #6b6a5f;
  --ink3: #76756a;
  --line: #e6e3d8;
  --fill: #f1eee2;
  --fill2: #e6e3d8;
  --bar: #16150f;
  --orange: #ff4d00;
  --on-orange: #16150f;
  --orange-text: #b5450a;
  --orange-line: #f0cdb4;

  --display: "Bricolage Grotesque", -apple-system, system-ui, sans-serif;
  --body: "DM Sans", -apple-system, system-ui, sans-serif;
  --mono: "Fragment Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

/* Dark is its own scheme (cool blue-black), not light inverted. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --card: #1b1f26;
    --ink: #e8eaee;
    --ink2: #9aa3b2;
    --ink3: #7c8595;
    --line: #2a303a;
    --fill: #14171c;
    --fill2: #2a303a;
    --bar: #e8eaee;
    --orange: #ff5a0a;
    --on-orange: #0f1115;
    --orange-text: #ff8a4d;
    --orange-line: #ff8a4d;
  }
}

/* Page */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
.page {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 16px 56px;
}

/* Links: orange as text is always orange-text, never #ff4d00 on the cream. */
a { color: var(--orange-text); text-decoration: underline; text-decoration-color: var(--orange-line); text-underline-offset: 2px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }

/* Masthead: the wordmark on the support page, a back link elsewhere. */
.masthead { padding: 44px 0 0; }
.wordmark { display: inline-block; line-height: 0; }
.wordmark img { width: 240px; max-width: 100%; height: auto; display: block; }
.nav { display: flex; align-items: center; min-height: 44px; margin: 0 -4px; }
.nav a { display: inline-flex; align-items: center; gap: 6px; padding: 0 4px; color: var(--ink); text-decoration: none; font-size: 17px; font-weight: 500; }
.nav a .chev { font-size: 28px; line-height: 1; margin-top: -4px; }

/* Type roles */
.title {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 41px;
  margin: 28px 0 0;
}
.meta {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--ink2);
}
.title + .meta { margin-top: 6px; }
.intro { margin-top: 14px; }
.intro p { margin: 0; }
.intro p + p { margin-top: 10px; }
.meta + .card, .intro + .card { margin-top: 16px; }
.note { margin: 10px 16px 0; }

/* Section cap: 10px mono, 0.09em, uppercase. ink2, not ink3 (4.5:1 rule). */
.cap {
  margin: 24px 16px 6px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink2);
}
.cap.live { color: var(--orange-text); }

/* Card: card fill, 10 radius, inset hairline. */
.card {
  background: var(--card);
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.card + .card { margin-top: 12px; }
.card .body { padding: 16px 16px 14px; }
.card .body > * { margin: 0; }
.card .body > * + * { margin-top: 10px; }
.card .body h2, .card .body h3 {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 20px;
}
.card .body h3 { font-size: 15px; }
.card .body > h2 + *, .card .body > h3 + * { margin-top: 6px; }
.card .body ul, .card .body ol { padding-left: 20px; }
.card .body li + li { margin-top: 4px; }
.mono { font-family: var(--mono); font-size: 13px; }

/* Row: name over a mono meta line, chevron at the end. Whole row is the link. */
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 12px 16px 14px;
  color: inherit;
  text-decoration: none;
}
.row:hover { background: var(--fill); }
.row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row .name { font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 20px; }
.row .meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .chev { color: var(--ink3); font-size: 22px; line-height: 1; flex: none; }
.hairline { height: 1px; background: var(--line); margin-left: 16px; }

/* Footer */
.foot {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink2);
}
.foot a { color: var(--ink2); text-decoration-color: var(--line); }
.foot a:hover { color: var(--ink); }
.foot .spacer { flex: 1; }
.foot .org { color: var(--ink2); }
