/*
 * Octotune's site: the pages outside the app (tools/site, docs/site.md).
 * Friendly and quick, in the brand's colours (docs/brand.md) and its own
 * signature (docs/brand-strategy.md §5): paper, ink and the sea. Cream
 * paper, navy ink, teal and coral; the five-line staff and noteheads as
 * ornament; buttons shaped like the front of a piano key. Light and dark.
 * Two faces, served from the site itself (public/fonts/, the same files and
 * rules as the app's src/styles/fonts.css): no script, no font service, no
 * images but the mark and the diagrams.
 *
 * Text colours are chosen for contrast (4.5:1 for body text, 3:1 for large
 * type): the brand teal itself is for surfaces and pictures; links, small
 * teal text and the buttons use its darker shades.
 */

/*
 * Fraunces (optical size 9–144, weight 300–900) for titles; Atkinson
 * Hyperlegible Next (weight 200–800, and an italic) for everything else.
 * Latin only, as the files are; sharps, flats and arrows come from the
 * fallback in each stack below. `swap`: the page reads at once in the
 * fallback, never blank.
 */
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces.woff") format("woff");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2070-209F, U+20AC;
}

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/atkinson-hyperlegible-next.woff") format("woff");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2070-209F, U+20AC;
}

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/atkinson-hyperlegible-next-italic.woff") format("woff");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2070-209F, U+20AC;
}

:root {
  --teal: #2fb5a3;
  --teal-dark: #1d8f81;
  --teal-behind: #177a6e;
  --teal-deep: #146b61;
  --teal-shine: #8fe3d5;
  --orange: #f28a2e;
  --navy: #16334a;
  --cream: #f6efdd;
  --bg: var(--cream);
  --surface: #fffdf7;
  --line: #e6dcc3;
  --text: var(--navy);
  --muted: #4f6272;
  --link: #0f6b60;
  --accent: var(--teal-dark);
  --accent-soft: rgba(47, 181, 163, 0.18);
  --paper: #ffffff;
  --paper-ink: var(--navy);
  --todo: #fde7c8;
  --todo-line: var(--orange);
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(22, 51, 74, 0.08), 0 8px 24px -12px rgba(22, 51, 74, 0.28);
  --measure: 44rem;

  /* Type: two roles (brand-strategy §5.3), each face first, then a fallback close to it that has the symbols it leaves out. */
  --font-ui: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", "Segoe UI Symbol", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Segoe UI Symbol", serif;

  /*
   * The piano-key button (brand-strategy §5.4): the front of a key, square
   * at the top and rounded below, on a soft shadow; pressed, it dips a
   * little and the shadow shortens. Never a raised face on a darker lip.
   * White on the brand's darker teal (#177a6e, 5.2:1); the body teal is
   * too light for white words.
   */
  --key-bg: var(--teal-behind);
  --key-bg-hover: var(--teal-deep);
  --key-text: #ffffff;
  --key-radius: 3px 3px 12px 12px;
  --key-radius-big: 4px 4px 14px 14px;
  --key-shadow: 0 1px 2px rgba(22, 51, 74, 0.2), 0 10px 18px -8px rgba(22, 51, 74, 0.45);
  --key-shadow-pressed: 0 1px 1px rgba(22, 51, 74, 0.25), 0 3px 6px -3px rgba(22, 51, 74, 0.35);
  --key-press: 2px;
  --key-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  --key-outline: var(--teal-behind);
  --key-outline-text: var(--teal-deep);
  --key-outline-bg: var(--surface);
  --key-black-bg: var(--navy);
  --key-black-hover: #0d2233;
  --key-black-text: #ffffff;

  /* The home page's pictures (tools/site/illustrations.tsx) and bands. */
  --art-blob: #d3efe8;
  --art-blob-warm: #fde3c8;
  --art-case: var(--navy);
  --art-paper: #ffffff;
  --art-ink: var(--navy);
  --art-shadow: var(--navy);
  --art-shadow-opacity: 0.12;
  --art-trail: var(--teal-dark);
  --art-staff: var(--navy);
  --art-chip: #ece3cc;
  --art-chip-ink: #6b7c89;
  /* The octopus's note: the brand's coral, as on the app icon, in both themes (navy on the coral band). */
  --octo-note: var(--orange);
  --staff-line: rgba(22, 51, 74, 0.22);
  --spot-bg: var(--navy);
  --spot-text: var(--cream);
  --spot-muted: #c9d6de;
  --spot-accent: var(--teal-shine);
  --finale-bg: var(--orange);
  --finale-text: var(--navy);
  /* The focus ring: navy on the cream and white (11.4:1 and 13.1:1); the orange on the night (6.9:1) and on the dark band (4:1 or more). */
  --focus-ring: var(--navy);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1c29;
    --focus-ring: var(--orange);
    --surface: #16334a;
    --line: #28475f;
    --text: var(--cream);
    --muted: #b7c3cc;
    --link: var(--teal-shine);
    --accent: var(--teal-shine);
    --accent-soft: rgba(143, 227, 213, 0.16);
    --paper: var(--cream);
    --paper-ink: var(--navy);
    --todo: #3d2c14;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 26px -12px rgba(0, 0, 0, 0.6);

    --key-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 18px -8px rgba(0, 0, 0, 0.7);
    --key-shadow-pressed: 0 1px 1px rgba(0, 0, 0, 0.45), 0 3px 6px -3px rgba(0, 0, 0, 0.6);
    --key-outline: var(--teal-shine);
    --key-outline-text: var(--teal-shine);
    --key-outline-bg: transparent;

    --art-blob: #173a4f;
    --art-blob-warm: #3a2c20;
    --art-case: #0a1722;
    --art-paper: var(--cream);
    --art-shadow: #000000;
    --art-shadow-opacity: 0.3;
    --art-trail: var(--teal-shine);
    --art-staff: var(--cream);
    --art-chip: #28475f;
    --art-chip-ink: #b7c3cc;
    --staff-line: rgba(246, 239, 221, 0.2);
    --spot-bg: #0f4a45;
    --spot-muted: #cfe3df;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  line-height: 1.6;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 6px;
}

img,
svg {
  max-width: 100%;
}

.wrap {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 16px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.skip:focus {
  left: 8px;
  z-index: 10;
}

/* --- Header and footer ------------------------------------------------------------ */

.site-header {
  background: var(--surface);
  border-bottom: 2px solid var(--line);
}

.site-header__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  min-height: 64px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}

/* The mark has no tile (config.ts SITE_MARK), so nothing is rounded off: the outer keys reach the corners. */
.mark {
  display: block;
}

.site-nav {
  flex: 1 1 auto;
  order: 3;
  width: 100%;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--text);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.signin {
  padding: 6px 4px;
  color: var(--link);
  font-weight: 800;
  text-decoration: none;
}

.signin:hover {
  text-decoration: underline;
}

/*
 * A phone: the name and the two ways in on the first row, the sections on a
 * row of their own that never wraps, so "FAQ" can never sit on a line alone.
 * All five fit from 360 px; narrower, the row scrolls sideways, running to
 * the screen's edges so the last link is cut there, which says so. The
 * padding round the list keeps a link's focus ring clear of the scroller's
 * edge.
 */
@media (max-width: 759px) {
  .site-header__row {
    gap: 8px 10px;
  }

  .site-nav {
    width: calc(100% + 32px);
    margin: -6px -16px;
  }

  .site-nav ul {
    flex-wrap: nowrap;
    gap: 2px;
    padding: 6px 16px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .site-nav ul::-webkit-scrollbar {
    display: none;
  }

  .site-nav li {
    flex: none;
  }

  .site-nav a {
    padding: 6px 9px;
    font-size: 0.95rem;
    white-space: nowrap;
  }
}

/* A narrow phone: the first row a little tighter, so the name, "Sign in" and the button share it from 360 px. */
@media (max-width: 420px) {
  .brand {
    gap: 8px;
    font-size: 1.1rem;
  }

  .site-header .mark {
    width: 30px;
    height: 30px;
  }

  .site-header__actions {
    gap: 8px;
  }

  .signin {
    padding: 6px 2px;
    font-size: 0.9rem;
  }

  .site-header .button--small {
    padding: 7px 10px;
    font-size: 0.85rem;
  }
}

@media (min-width: 760px) {
  .site-nav {
    order: 0;
    width: auto;
  }
}

.site-footer {
  margin-top: 64px;
  border-top: 2px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 20px;
  padding-bottom: 28px;
}

.site-footer__name {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--muted);
}

/* --- The page ------------------------------------------------------------------------ */

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  color: var(--muted);
}

.crumbs li + li::before {
  content: "›";
  margin-right: 4px;
}

.main {
  padding-top: 24px;
}

.main > * {
  max-width: var(--measure);
}

.main > .cards,
.main > .notes,
.main > section,
.main > nav,
.main > .table-wrap,
.main > .opening {
  max-width: none;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 6vw, 3rem);
}

h2 {
  margin: 40px 0 12px;
  font-size: 1.6rem;
}

h3 {
  margin: 24px 0 8px;
  font-size: 1.22rem;
}

.lede,
.answer {
  font-size: 1.2rem;
  color: var(--text);
}

.muted {
  color: var(--muted);
  font-weight: 500;
}

.aside,
.byline {
  color: var(--muted);
  font-size: 0.95rem;
}

.byline {
  margin-top: 40px;
}

.tip {
  margin: 20px 0;
  padding: 12px 16px;
  border-left: 6px solid var(--teal);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
}

.tip p {
  margin: 6px 0;
}

/* Kept in the page (the build and check:dist count them, and the page stays
   noindex while any is left), but never shown to a visitor: a page waiting
   for its words reads as a shorter page, not as a note to ourselves. Delete
   the display rule to see them while writing. */
.todo-copy {
  display: none;
  margin: 20px 0;
  padding: 12px 16px;
  border: 2px dashed var(--todo-line);
  border-radius: var(--radius-sm);
  background: var(--todo);
}

.todo-copy p {
  margin: 0;
}

/* --- Buttons: the front of a piano key ------------------------------------------------ */

.button {
  display: inline-block;
  padding: 12px 22px;
  border: 0;
  border-radius: var(--key-radius);
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.3;
  text-decoration: none;
  text-align: center;
  transition: transform 156ms cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow 156ms cubic-bezier(0.2, 0.9, 0.3, 1), background-color 156ms ease;
}

.button:active {
  transform: translateY(var(--key-press));
}

.button--go {
  background: var(--key-bg);
  color: var(--key-text);
  box-shadow: var(--key-highlight), var(--key-shadow);
}

.button--go:hover {
  background: var(--key-bg-hover);
}

.button--go:active {
  box-shadow: var(--key-highlight), var(--key-shadow-pressed);
}

/* A secondary action: an outlined key. */
.button--outline {
  background: var(--key-outline-bg);
  color: var(--key-outline-text);
  box-shadow: inset 0 0 0 2px var(--key-outline), var(--key-shadow);
}

.button--outline:hover {
  background: var(--accent-soft);
}

.button--outline:active {
  box-shadow: inset 0 0 0 2px var(--key-outline), var(--key-shadow-pressed);
}

/* A black key: the main action on a coloured band. */
.button--dark {
  background: var(--key-black-bg);
  color: var(--key-black-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), var(--key-shadow);
}

.button--dark:hover {
  background: var(--key-black-hover);
}

.button--dark:active {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), var(--key-shadow-pressed);
}

.button--small {
  padding: 8px 16px;
  font-size: 0.95rem;
}

.button--big {
  display: block;
  width: 100%;
  padding: 16px 24px;
  border-radius: var(--key-radius-big);
  font-size: 1.15rem;
}

.cta-row {
  margin: 24px 0;
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }

  .button:active {
    transform: none;
  }
}

/* --- Cards and lists ----------------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: 14px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.card__link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 18px 18px 20px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.card__link:hover {
  border-color: var(--teal);
}

.card__title {
  font-weight: 850;
  font-size: 1.12rem;
  color: var(--accent);
}

.card__text {
  color: var(--muted);
}

.song-list,
.guide-list {
  padding-left: 1.4em;
}

.song-list li,
.guide-list li {
  margin: 6px 0;
}

.song-list__meta {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.steps li {
  margin: 6px 0;
}

.around {
  margin-top: 32px;
}

/* --- Tables ---------------------------------------------------------------------------- */

.table-wrap {
  overflow-x: auto;
  margin: 16px 0;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

tr:last-child th,
tr:last-child td {
  border-bottom: 0;
}

thead th {
  font-size: 0.9rem;
  color: var(--muted);
}

tbody th {
  font-weight: 750;
}

.facts th {
  width: 9.5rem;
  color: var(--muted);
  font-weight: 700;
}

/* --- Music: notes on the staff, a song's opening, the letters ------------------------ */

.notes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: 14px;
  margin: 16px 0;
}

.note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  scroll-margin-top: 16px;
}

.note h3 {
  margin: 4px 0 6px;
}

.note dl {
  margin: 0;
  font-size: 0.95rem;
}

/* A small label: letter-spaced small capitals, never capitals. */
.note dt {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.05em;
}

.note dd {
  margin: 0 0 6px;
}

.staff {
  flex: none;
  width: 96px;
  height: auto;
  border-radius: var(--radius-sm);
  background: var(--paper);
}

.staff__accidental {
  fill: var(--paper-ink);
  font-size: 22px;
  font-family: var(--font-ui);
}

.opening {
  margin: 24px 0;
}

.opening__art {
  max-width: 36rem;
  padding: 10px 14px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.opening__svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 200 / 60;
}

.opening figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.letters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr));
  gap: 8px;
  padding: 0;
  list-style: none;
}

.letters li {
  padding: 8px 12px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.letters__bar {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.letters__notes {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  font-size: 1.3rem;
  font-weight: 850;
}

.letters__note sub {
  margin-left: 1px;
  color: var(--muted);
  font-size: 0.62em;
  font-weight: 700;
}

.credits {
  padding-left: 1.2em;
}

.faq__item h3 {
  margin-bottom: 4px;
}

/* The app's engraving classes (src/components/SongCover.tsx), drawn here on paper in both themes. */
.sg-engr__line {
  stroke: var(--paper-ink);
  stroke-width: 0.75;
  opacity: 0.75;
}

.staff .sg-engr__line {
  stroke-width: 1.2;
}

.sg-engr__line--bar,
.sg-engr__line--ledger {
  opacity: 1;
}

.sg-engr__ink {
  fill: var(--paper-ink);
}

.sg-engr__paper {
  fill: var(--paper);
}

.sg-engr__stem {
  stroke: var(--paper-ink);
  stroke-width: 0.95;
}

.sg-engr__clef {
  color: var(--paper-ink);
}

.sg-engr__glyph line,
.sg-engr__glyph path {
  fill: none;
  stroke: var(--paper-ink);
  stroke-width: 0.85;
  stroke-linecap: round;
}

.sg-engr__glyph .sg-engr__glyph-bar {
  stroke-width: 1.8;
  stroke-linecap: butt;
}

.sg-engr__rest {
  fill: none;
  stroke: var(--paper-ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sg-engr__time text {
  fill: var(--paper-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
}

/* --- Pictures: the home page's inline SVG (tools/site/illustrations.tsx) ---------------- */

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.art {
  display: block;
  width: 100%;
  height: auto;
}

.art-blob {
  fill: var(--art-blob);
}

.art-blob-warm {
  fill: var(--art-blob-warm);
}

.art-case {
  fill: var(--art-case);
}

.art-paper {
  fill: var(--art-paper);
}

.art-ink {
  fill: var(--art-ink);
}

.art-ink-line {
  stroke: var(--art-ink);
}

.art-shadow {
  fill: var(--art-shadow);
  opacity: var(--art-shadow-opacity);
}

.art-trail {
  stroke: var(--art-trail);
}

.art-staff-line {
  stroke: var(--art-staff);
}

.art-chip {
  fill: var(--art-chip);
}

.art-chip-ink {
  fill: var(--art-chip-ink);
}

.octo-note {
  fill: var(--octo-note);
}

.octo-note-line {
  stroke: var(--octo-note);
}

/* --- The home page: full-width bands ------------------------------------------------------ */

.landing {
  overflow-x: clip;
}

.landing + .site-footer {
  margin-top: 0;
}

/* In the dark, a picture's ground must stay lighter than the band it sits on, and the hero's keyboard needs a case that shows. */
@media (prefers-color-scheme: dark) {
  .band--tint {
    --art-blob: #1f4a62;
  }

  .hero {
    --art-case: var(--navy);
  }
}

.band {
  padding: 64px 0;
}

.band--tint {
  background: var(--surface);
}

.band__title {
  margin: 0 0 12px;
  text-align: center;
  font-size: clamp(1.9rem, 2.6vw + 1rem, 2.75rem);
}

/* The staff as ornament: five hairlines under a band's title (brand-strategy §5.4). */
.band__title::after {
  content: "";
  display: block;
  width: 72px;
  height: 17px;
  margin: 14px auto 32px;
  background: repeating-linear-gradient(to bottom, var(--staff-line) 0 1px, transparent 1px 4px);
}

.band__more {
  margin: 32px 0 0;
  text-align: center;
}

.more-link {
  font-weight: 800;
}

.more-link::after {
  content: " →";
}

/* Noteheads as bullets: a tilted oval before each line. */
.noteheads {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.noteheads li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-weight: 700;
}

.noteheads li::before {
  content: "";
  flex: none;
  width: 14px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  transform: rotate(-20deg) translateY(-1px);
}

/* The hero: one promise, two big keys to press, and the octopus on the page's own ground. */
.hero {
  padding: 32px 0 56px;
}

.hero__row {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.hero__art {
  order: -1;
  width: min(260px, 68vw);
}

.hero__text {
  max-width: 36rem;
}

/* The tagline over the h1 (config.ts TAGLINE). */
.hero__eyebrow {
  margin: 0 0 10px;
  color: var(--link);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 0.5vw + 1rem, 1.3rem);
  font-weight: 600;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.4rem, 5vw + 1rem, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.hero__lede {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: clamp(1.15rem, 0.6vw + 1rem, 1.35rem);
  line-height: 1.5;
}

.hero__actions {
  display: grid;
  gap: 14px;
  width: min(100%, 22rem);
  margin: 0 auto;
}

.hero__note {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

@media (min-width: 880px) {
  .hero {
    padding: 72px 0 96px;
  }

  .hero__row {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
    justify-items: start;
    gap: 48px;
    text-align: left;
  }

  .hero__art {
    order: 0;
    justify-self: center;
    width: min(100%, 440px);
  }

  .hero__actions {
    margin: 0;
  }
}

/* Made for a real piano: the one dark band, the piano and its cable. */
.spotlight {
  --focus-ring: var(--orange);
  --art-blob: #21506a;
  --art-case: #0b1b28;
  background: var(--spot-bg);
  color: var(--spot-text);
}

.spotlight__row {
  display: grid;
  gap: 32px;
  align-items: center;
}

.spotlight__art {
  justify-self: center;
  width: min(100%, 560px);
}

.spotlight h2 {
  margin: 0 0 14px;
  color: var(--spot-text);
  font-size: clamp(2rem, 3vw + 1rem, 3rem);
}

.spotlight__lede {
  margin: 0 0 22px;
  color: var(--spot-muted);
  font-size: 1.2rem;
}

@media (prefers-color-scheme: dark) {
  .spotlight {
    --art-blob: #17605a;
  }
}

.spotlight .noteheads li::before {
  background: var(--spot-accent);
}

.spotlight a {
  color: var(--spot-accent);
}

@media (min-width: 880px) {
  .spotlight__row {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 56px;
  }
}

/* The features, alternating sides; stacked, picture first, on a phone. */
.feature__row {
  display: grid;
  justify-items: center;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.feature__art {
  width: min(100%, 420px);
}

.feature__text {
  max-width: 30rem;
}

.feature h2 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 2vw + 1rem, 2.5rem);
}

.feature p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 1.12rem;
}

/* Centred as a block on a phone, its lines still ranged left beside their noteheads. */
.feature .noteheads {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  justify-items: start;
  text-align: left;
}

@media (min-width: 768px) {
  .feature__row {
    grid-template-columns: 1fr 1fr;
    justify-items: stretch;
    gap: 56px;
    text-align: left;
  }

  .feature__art {
    justify-self: center;
  }

  .feature--flip .feature__art {
    order: 2;
  }

  .feature .noteheads {
    margin-inline: 0;
  }
}

/* How it works: three steps on one staff. */
.how {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.how li {
  position: relative;
  padding: 26px 22px 24px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.band--tint .how li {
  background: var(--bg);
}

/* Each number sits in a notehead: a coral oval, tilted, with the figure upright. */
.how__number {
  position: relative;
  isolation: isolate;
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 44px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
}

.how__number::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: var(--orange);
  transform: rotate(-20deg);
}

.how h3 {
  margin: 14px 0 6px;
  font-size: 1.35rem;
}

.how p {
  margin: 0;
  color: var(--muted);
}

@media (min-width: 768px) {
  .how {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }
}

/* Pieces to play: each with its opening, engraved. */
.song-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.song-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 14px 14px 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
}

.band:not(.band--tint) .song-card {
  background: var(--surface);
}

.song-card:hover {
  border-color: var(--teal);
}

.song-card__art {
  display: block;
  margin-bottom: 4px;
  padding: 6px 8px;
  border-radius: 12px;
  background: var(--paper);
}

.song-card__svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 200 / 60;
}

.song-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.25;
}

.song-card__meta {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Guides: four cards, each with a staff along its top edge. */
.guide-cards {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 600px) {
  .guide-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .guide-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.guide-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 36px 18px 20px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface) repeating-linear-gradient(to bottom, var(--staff-line) 0 1px, transparent 1px 4px) no-repeat 18px 16px / calc(100% - 36px) 17px;
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
}

.band--tint .guide-card {
  background-color: var(--bg);
}

.guide-card:hover {
  border-color: var(--teal);
}

.guide-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.25;
}

.guide-card__text {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Questions: three, answered in full. */
.faq-cards {
  display: grid;
  gap: 16px;
  margin: 0;
}

@media (min-width: 880px) {
  .faq-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.faq-card {
  padding: 22px 22px 20px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.band--tint .faq-card {
  background: var(--bg);
}

.faq-card dt {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.3;
}

.faq-card dd {
  margin: 0;
  color: var(--muted);
}

/* More about Octotune: the written words, as a readable column. */
.more__wrap .prose {
  max-width: var(--measure);
  margin: 0 auto;
}

.prose h2 {
  font-size: 1.55rem;
}

.prose h3 {
  margin-top: 32px;
  font-size: 1.3rem;
}

.prose > :first-child {
  margin-top: 0;
}

/* The last call: the octopus cheering on the coral band, with a black key to press. */
.finale {
  --focus-ring: var(--navy);
  position: relative;
  background: var(--finale-bg);
  color: var(--finale-text);
  --octo-note: var(--navy);
}

/* A staff along the band's top edge. */
.finale::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  height: 17px;
  background: repeating-linear-gradient(to bottom, rgba(22, 51, 74, 0.28) 0 1px, transparent 1px 4px);
}

.finale__row {
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
}

.art--cheer {
  width: 120px;
}

.finale h2 {
  margin: 0;
  color: var(--finale-text);
  font-size: clamp(2rem, 3vw + 1rem, 3rem);
}

.finale__text {
  margin: 0;
  font-size: 1.15rem;
}

.finale .button--big {
  width: min(100%, 22rem);
  margin-top: 8px;
}
