/* Every Minute Played — the public site.
 *
 * Two pages and this file. No generator, no framework, no hosted font: the
 * whole selling point of the recorder is that it needs none of those, and a
 * site that quietly needed a CDN would be making a claim the app does not.
 *
 * System fonts only. A coach reads this on a phone in a car park.
 */

:root {
  --bg: #faf5fd;
  --surface: #fff;
  --border: #e6d2f0;
  --text: #32213f;
  --muted: #6d5880;
  --accent: #8b3fc9;
  --accent-2: #e05a95;
  --warn: #8a4b12;
  --warn-bg: #fdf3e6;
  --measure: 34rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0 16px 64px;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.wrap { max-width: var(--measure); margin: 0 auto; }

header { padding: 40px 0 8px; }

.mark {
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 6px;
}

h1 {
  font-size: clamp(28px, 7vw, 40px);
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -.02em;
}

h2 {
  font-size: 21px;
  margin: 40px 0 10px;
  letter-spacing: -.01em;
}

h3 { font-size: 17px; margin: 28px 0 6px; }

p, li { color: var(--text); }
p { margin: 0 0 14px; }

.lede { font-size: 19px; color: var(--muted); }

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

.cta {
  display: inline-block;
  margin: 8px 0 6px;
  padding: 15px 26px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  border-radius: 12px;
}

.cta-note { font-size: 15px; color: var(--muted); margin: 0 0 8px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 22px 0;
}

.note {
  background: var(--warn-bg);
  border: 1px solid #efd9bc;
  border-radius: 12px;
  padding: 16px 18px;
  margin: 22px 0;
  color: var(--warn);
}

.note strong { color: var(--warn); }

ol.steps { padding-left: 0; list-style: none; counter-reset: step; margin: 0; }

ol.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 4px 44px;
  margin: 0 0 26px;
}

ol.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: grid;
  place-items: center;
}

ol.steps h3 { margin: 2px 0 6px; }

.ui {
  font-weight: 700;
  color: var(--accent-2);
  font-style: normal;
  white-space: nowrap;
}

figure.shot { margin: 14px 0 0; }

figure.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}

figure.shot figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* `table-layout: fixed`, because a control name is `white-space: nowrap` in
   prose and that is right there — but inside a three-column table on a 390px
   phone it forced the whole page 10px wider than the screen. Names wrap in a
   cell; they do not wrap in a sentence. */
table { border-collapse: collapse; width: 100%; font-size: 16px; table-layout: fixed; }
td .ui, th .ui { white-space: normal; }
td, th { overflow-wrap: anywhere; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }

footer {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 15px;
  color: var(--muted);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1320;
    --surface: #241a2c;
    --border: #3d2d49;
    --text: #f2e9f7;
    --muted: #b49cc4;
    --accent: #c08ae8;
    --accent-2: #f087b4;
    --warn: #f0c48a;
    --warn-bg: #2e2417;
  }
  .cta { color: #241a2c; }
  .note { border-color: #4a3a22; }
}
