/* tone6point0.com — DESIGN.md rev 3 (dark tier). Fonts are self-hosted (OFL, see /assets/fonts/OFL.txt). */

@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/IBMPlexSans-Regular.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/IBMPlexSans-Medium.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/IBMPlexSans-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/IBMPlexMono-Regular.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/IBMPlexMono-Medium.woff2") format("woff2"); }

:root {
  --ground: #141414;
  --text: #EDEBE6;
  --text-2: #CFCCC5;
  --muted: #A3A09A;
  --rule: #2E2D2A;
  --rule-strong: #EDEBE6;
  --accent: #F08A4B;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --pad: 32px;
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--ground); -webkit-text-size-adjust: 100%; }

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

a { color: inherit; text-decoration: none; transition: color 150ms; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--pad); }

/* Header */
.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--rule);
}
.wordmark { display: flex; align-items: baseline; gap: 10px; }
.wm-name { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.accent { color: var(--accent); }
.wm-sub { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.wordmark:hover .wm-sub { color: var(--muted); }
.site-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; }

/* Hero */
.hero { padding: 96px 0 80px; }
.eyebrow {
  margin: 0 0 20px; font-family: var(--mono); font-size: 13px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.hero h1 {
  margin: 0; max-width: 860px; font-size: 60px; line-height: 1.05;
  font-weight: 600; letter-spacing: -0.025em;
}
.hero-sub { margin: 28px 0 0; max-width: 620px; font-size: 19px; line-height: 1.55; color: var(--text-2); }

/* Section labels */
.section-label { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }

/* Work: the product row */
.work { padding: 0 0 96px; }
.section-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  border-bottom: 1px solid var(--rule-strong); padding-bottom: 14px;
}
.count { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { border-bottom: 1px solid var(--rule); }
/* Rev 3: phones and narrow screens stack the row: index + name, then description, then status. */
.row {
  display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: baseline;
  gap: 12px 16px; padding: 32px 0;
}
.row-index { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.row-name { min-width: 0; font-size: 32px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.row-desc { grid-column: 1 / -1; min-width: 0; font-size: 17px; line-height: 1.5; color: var(--text-2); transition: color 150ms; }
.row-meta {
  grid-column: 1 / -1; font-family: var(--mono); font-size: 13px;
  color: var(--muted); overflow-wrap: anywhere; transition: color 150ms;
}
.row:hover .row-meta { color: var(--accent); }
/* About */
.about { display: flex; flex-wrap: wrap; gap: 24px 64px; padding: 0 0 96px; }
.about .section-label { flex: 1 1 220px; }
.about-lead { flex: 3 1 480px; min-width: 0; margin: 0; font-size: 22px; line-height: 1.5; }

/* Rev 3, wide screens: every row shares one column grid (index · name · description · status)
   so the columns line up row to row. The status column fits "Course · singingfromscratch.com →" on one line. */
@media (min-width: 760px) {
  .row,
  .about { display: grid; grid-template-columns: 32px minmax(0, 1fr) minmax(0, 1.6fr) 17rem; column-gap: 32px; }
  .row-desc, .row-meta { grid-column: auto; }
  .row-meta { text-align: right; overflow-wrap: normal; white-space: nowrap; }
  .about .section-label { grid-column: 1 / 3; }
  .about-lead { grid-column: 3 / 5; }
}

/* Footer */
.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  padding: 32px 0 48px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--muted);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: var(--text-2); }
.footer-links a:hover { color: var(--accent); }

/* Text pages (Privacy, Terms) */
.text-page { max-width: 720px; padding: 96px 0; color: var(--text-2); font-size: 17px; line-height: 1.65; }
.text-page h1 { margin: 0; color: var(--text); font-size: 40px; line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; }
.text-page .meta { margin: 12px 0 40px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.text-page h2 { margin: 48px 0 12px; color: var(--text); font-size: 22px; line-height: 1.3; font-weight: 600; }
.text-page p { margin: 0 0 16px; }
.text-page ul { margin: 0 0 16px; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.text-page a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

/* Phones */
@media (max-width: 700px) {
  .hero h1 { font-size: 40px; }
}
@media (max-width: 600px) {
  :root { --pad: 20px; }
}
