/* selftaughtmusician.com, step 1: the audio pages and the one-page site. The book's typefaces
   (Bebas Neue, Source Serif 4, Roboto Condensed), the brand's ink and amber; the full design
   replaces this file in step 2 (docs/prompts/site-design-selftaughtmusician.md). */

@font-face { font-family: "Bebas Neue"; src: url(/fonts/bebas-neue.woff) format("woff"); font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url(/fonts/source-serif-4.woff) format("woff"); font-display: swap; }
@font-face { font-family: "Source Serif 4"; font-weight: 600; src: url(/fonts/source-serif-4-600.woff) format("woff"); font-display: swap; }
@font-face { font-family: "Roboto Condensed"; src: url(/fonts/roboto-condensed.woff) format("woff"); font-display: swap; }
@font-face { font-family: "Roboto Condensed"; font-weight: 700; src: url(/fonts/roboto-condensed-700.woff) format("woff"); font-display: swap; }

:root {
  --paper: #faf7f1;
  --surface: #ffffff;
  --ink: #141414;
  --ink-soft: #4a4640;
  --line: #e4ddd1;
  --accent: #f2a541;
  --accent-ink: #141414;
  --focus: #1f5fbf;
  --heading: "Bebas Neue", "Arial Narrow", sans-serif;
  --text: "Source Serif 4", Georgia, serif;
  --label: "Roboto Condensed", "Arial Narrow", sans-serif;
  --radius: 14px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141414;
    --surface: #1e1d1b;
    --ink: #f3efe8;
    --ink-soft: #bdb6aa;
    --line: #34312c;
    --focus: #8fb4ff;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
}
a { color: inherit; text-underline-offset: 0.18em; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 44rem; margin: 0 auto; padding: 0 1.25rem; }
.wide { max-width: 64rem; }

.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-top: 0.9rem; padding-bottom: 0.8rem; flex-wrap: wrap; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font: 400 1.6rem/1 var(--heading); letter-spacing: 0.04em; }
.brand-by { font: 400 0.8rem/1.3 var(--label); color: var(--ink-soft); letter-spacing: 0.02em; }
.top-book { font: 400 0.85rem/1.3 var(--label); color: var(--ink-soft); text-align: right; }

.label { font: 700 0.8rem/1.2 var(--label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin: 0; }
.label a { text-decoration: none; }
.label + h1, .label + h2 { margin-top: 0.5rem; }
.label a:hover { text-decoration: underline; }
h1, h2 { font-family: var(--heading); font-weight: 400; letter-spacing: 0.02em; line-height: 1; margin: 0; }
h1 { font-size: clamp(3rem, 14vw, 4.75rem); }
h2 { font-size: 2.1rem; }
.example-title { font: 600 1.3rem/1.35 var(--text); margin: 0.35rem 0 0; }
p { margin: 0.75rem 0; }
.muted { color: var(--ink-soft); }
.after { margin-top: 1.75rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

main { padding: 1.75rem 0 3rem; }

/* The player: native controls without JavaScript, the big button with it. */
.player { margin: 1.5rem 0 1.25rem; padding: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.player audio { width: 100%; }
.js .player audio { display: none; }
.controls { display: none; align-items: center; gap: 1rem; }
.js .controls { display: flex; }
.play {
  flex: none; width: 76px; height: 76px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); display: grid; place-items: center;
}
.play svg { width: 34px; height: 34px; }
.play .icon-pause { display: none; }
.playing .play .icon-play { display: none; }
.playing .play .icon-pause { display: block; }
.track { flex: 1; min-width: 0; }
.seek { width: 100%; accent-color: var(--accent); height: 28px; margin: 0; }
.times { display: flex; justify-content: space-between; font: 400 0.85rem/1 var(--label); color: var(--ink-soft); }
.options { display: none; gap: 0.6rem; margin-top: 1rem; }
.js .options { display: flex; }
.toggle {
  font: 700 0.85rem/1 var(--label); letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.75rem 1rem; min-height: 44px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--ink); border: 1px solid var(--line);
}
.toggle[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.notice { margin: 1.5rem 0; padding: 1.1rem 1.25rem; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; }

.hear { margin: 0.25rem 0 1.5rem; }

.step { display: flex; gap: 0.75rem; margin: 1.5rem 0; }
.step a {
  flex: 1; display: flex; flex-direction: column; gap: 0.15rem; text-decoration: none;
  padding: 0.85rem 1rem; min-height: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.step a:hover { border-color: var(--ink-soft); }
.step .next { text-align: right; background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ended .step .next { outline: 3px solid var(--accent); outline-offset: 2px; }
.step small { font: 700 0.75rem/1.2 var(--label); letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.75; }
.step span { font: 400 1.6rem/1 var(--heading); letter-spacing: 0.03em; }

.list { list-style: none; margin: 1rem 0; padding: 0; border-top: 1px solid var(--line); }
.list li { display: flex; align-items: center; gap: 0.85rem; border-bottom: 1px solid var(--line); padding: 0.55rem 0; }
.list a { flex: 1; text-decoration: none; display: flex; flex-direction: column; min-height: 44px; justify-content: center; }
.list a:hover .row-title { text-decoration: underline; }
.list .num { font: 400 1.35rem/1 var(--heading); letter-spacing: 0.03em; }
.list .row-title { font-size: 1rem; line-height: 1.35; }
.list [aria-current="page"] .num::after { content: " · now"; font: 700 0.7rem/1 var(--label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.mini {
  display: none; flex: none; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); place-items: center;
}
.js .mini { display: grid; }
.mini svg { width: 18px; height: 18px; }
.mini .icon-pause { display: none; }
.mini.playing { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.mini.playing .icon-play { display: none; }
.mini.playing .icon-pause { display: block; }
.mini:disabled { opacity: 0.35; cursor: default; }

.find { display: none; gap: 0.5rem; margin: 1rem 0; }
.js .find { display: flex; }
.find input {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 1rem; font: 400 1.05rem var(--text);
  border: 1px solid var(--ink-soft); border-radius: 999px; background: var(--surface); color: var(--ink);
}
.button {
  min-height: 48px; padding: 0 1.4rem; border: 0; border-radius: 999px; cursor: pointer;
  font: 700 0.9rem/1 var(--label); letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--ink); color: var(--paper); text-decoration: none; display: inline-flex; align-items: center;
}

.parts { display: grid; gap: 0.75rem; margin: 1rem 0; padding: 0; list-style: none; }
.parts a {
  display: flex; gap: 1rem; align-items: center; text-decoration: none; padding: 0.9rem 1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.parts a:hover { border-color: var(--ink-soft); }
.parts .part-num { font: 400 2.4rem/1 var(--heading); min-width: 2.2rem; }
.parts .part-name { display: flex; flex-direction: column; }
.parts small { font: 400 0.85rem/1.3 var(--label); color: var(--ink-soft); }

/* The one-page site */
.hero { padding: 2.5rem 0 1rem; }
.hero h1 { font-size: clamp(2.8rem, 11vw, 5.25rem); max-width: 14ch; }
.hero p { font-size: 1.2rem; max-width: 34rem; }
section { padding: 1.75rem 0; }
.books { display: grid; gap: 1.5rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
@media (min-width: 40rem) { .books { grid-template-columns: repeat(3, 1fr); } }
.book { display: flex; flex-direction: column; gap: 0.75rem; }
.book img { border-radius: 4px; box-shadow: 0 10px 28px rgb(0 0 0 / 0.18); aspect-ratio: 2 / 3; object-fit: cover; width: 100%; max-width: 15rem; }
.book h3 { font: 600 1.15rem/1.3 var(--text); margin: 0.25rem 0 0; }
.book p { margin: 0; font-size: 0.98rem; color: var(--ink-soft); }
.formats { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.25rem; }
.formats a {
  font: 700 0.78rem/1 var(--label); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  padding: 0.7rem 0.9rem; min-height: 44px; display: inline-flex; align-items: center;
  border: 1px solid var(--ink); border-radius: 999px;
}
.formats a:hover { background: var(--ink); color: var(--paper); }

.foot { border-top: 1px solid var(--line); padding: 1.5rem 0 2.5rem; font: 400 0.9rem/1.5 var(--label); color: var(--ink-soft); }
.foot p { margin: 0.2rem 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.list small { font: 400 0.8rem/1.3 var(--label); margin-top: 0.15rem; }
