/* Outline — site tokens.
   Colours are transcribed from Outline/Design/Palette.swift so the site and the
   app are one object. Keep them in step: the app is the source of truth. */

:root {
  color-scheme: dark;

  /* Surfaces */
  --ground: #0E1216;
  --surface: #25292E;

  /* Lines */
  --line: #202429;
  --line-strong: #373B40;
  --line-active: #51565B;
  --line-target: #3E4348;

  /* Text */
  --text: #F3F2EE;
  --text-2: #9A9FA5;
  --label: #82878C;

  /* Accent */
  --yellow: #F0CC00;
  --yellow-pressed: #C0A300;
  --on-yellow: #0E1216;

  /* Score zones */
  --perfect: #F0CC00;
  --great: #5BB661;
  --good: #6DA3DA;
  --ok: #E2805E;
  --miss: #7C8186;
  --penalty: #E04F6B;

  /* Type. SF Mono for anything that reads as an instrument, SF Pro for prose —
     the same split Typography.swift makes in the app. */
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --page: 680px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--yellow); }

/* ---- Header: the mark, the name, and a link back to the top level ---- */

.masthead {
  max-width: var(--page);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.masthead a.home {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}

.wordmark {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.34em;
  /* Tracking also adds a gap after the final letter; pull it back so the word
     sits optically square against the mark. Same fix Wordmark.swift makes. */
  margin-right: -0.34em;
  color: var(--text);
}

/* Two yellow bars — PauseMark, in ratios rather than numbers. */
.mark {
  display: inline-flex;
  gap: 0.17em;
  font-size: var(--mark-size, 28px);
}
.mark i {
  display: block;
  width: 0.24em;
  height: 1em;
  background: var(--yellow);
  border-radius: 0.108em; /* barWidth * 0.45 */
}

/* ---- Shared blocks ---- */

main {
  max-width: var(--page);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

.label {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--label);
  margin: 0 0 0.7rem;
}

h1 {
  font-size: 2.1rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin: 0 0 0.8rem;
}

h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2.4rem 0 0.6rem;
}

p { margin: 0 0 1rem; color: var(--text-2); }
p.lead { color: var(--text); font-size: 1.1rem; max-width: 46ch; }

.panel {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: transparent;
  padding: 1.5rem 1.6rem;
}

.panel h2 { margin-top: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.2rem;
  border-radius: 8px;
  border: 1.5px solid transparent;
}
.btn-fill { background: var(--yellow); color: var(--on-yellow); }
.btn-fill:hover { background: var(--yellow-pressed); }
.btn-quiet { color: var(--text); border-color: var(--line-strong); }
.btn-quiet:hover { border-color: var(--line-active); }

footer {
  max-width: var(--page);
  margin: 0 auto;
  padding: 2rem 1.5rem 3.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--label);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
}
footer a { color: var(--label); text-decoration: none; }
footer a:hover { color: var(--text-2); }

@media (max-width: 480px) {
  h1 { font-size: 1.7rem; }
}
