@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("assets/fonts/newsreader-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
/* Palette follows the app icon (deep green, brass) and the app surfaces in lib/app/theme. */
:root {
  color-scheme: light dark;
  --green: #24433d;
  --green-deep: #1b3430;
  --brass: #d9a95c;
  --on-green: #f3eee2;
  --on-green-muted: color-mix(in srgb, var(--on-green) 76%, var(--green));
  --surface: #faf8f3;
  --tint: #e6eee3;
  --ink: #1f2523;
  --accent: #315c54;
  --line: color-mix(in srgb, var(--ink) 14%, var(--surface));
  --muted: color-mix(in srgb, var(--ink) 74%, var(--surface));
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: system-ui, -apple-system, Roboto, sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--surface);
}
@media (prefers-color-scheme: dark) {
  :root {
    --surface: #111412;
    --tint: #18201d;
    --ink: #f0ede5;
    --accent: #8dc7b9;
  }
}

* { box-sizing: border-box; }
body, h1, h2, h3, p, figure { margin: 0; }
body { background: var(--surface); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; z-index: 2; top: -5em; left: 1em; padding: .75em 1em; background: var(--surface); color: var(--ink); }
.skip:focus { top: 1em; }
.wrap { width: min(100% - 2.5rem, 70rem); margin-inline: auto; }

/* Header and hero share the brand green. */
.stage {
  color: var(--on-green);
  background:
    radial-gradient(60rem 40rem at 85% 30%, color-mix(in srgb, var(--brass) 14%, transparent), transparent 70%),
    linear-gradient(var(--green), var(--green-deep));
}
.masthead, .footer-layout, nav, .brand, .stores { display: flex; align-items: center; flex-wrap: wrap; }
.masthead, .footer-layout { justify-content: space-between; gap: .25rem 1.5rem; }
.masthead { min-height: 5rem; }
.brand { gap: .65rem; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; letter-spacing: -.01em; }
nav { gap: 0 clamp(1rem, 2.5vw, 2.25rem); font-size: .95rem; font-weight: 500; }
nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-green-muted); }
nav a:hover { color: var(--on-green); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 6px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem);
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 5.6vw, 4.75rem); line-height: 1.6; letter-spacing: -.02em; padding-top: .35em; }

/* Chord names sit above the syllables, as in the Versh editor. */
.chord-line [data-chord] { position: relative; display: inline-block; }
.chord-line [data-chord]::before {
  content: attr(data-chord);
  position: absolute;
  left: .05em;
  bottom: 96%;
  font-family: var(--sans);
  font-size: max(.3em, .9rem);
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1;
  color: var(--brass);
}

.intro { margin-top: 1.25rem; max-width: 34em; font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.6; color: var(--on-green-muted); }
.stores { gap: .75rem; margin-top: 2rem; }
.stores a { border-radius: 8px; }
.stores img { width: auto; height: 3rem; }
.platforms { margin-top: .9rem; font-size: .9rem; color: var(--on-green-muted); }

/* Full phone screens in a dark frame, never cropped. */
.phone {
  width: 100%;
  padding: 2.4%;
  background: #050505;
  border-radius: 13% / 6%;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .08), 0 1.5rem 3rem -1rem rgb(0 0 0 / .35);
}
.phone img { width: 100%; height: auto; border-radius: 11% / 5.1%; }
.hero-phone { max-width: 20rem; justify-self: center; transform: rotate(2deg); }

/* Inside Versh */
.notebook { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.1; letter-spacing: -.02em; }
.section-intro { margin-top: .9rem; max-width: 36em; font-size: 1.1rem; line-height: 1.6; color: var(--muted); }
.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: clamp(2rem, 4vw, 3.5rem); }
.tools .phone { max-width: 17rem; margin-inline: auto; }
h3 { font-size: 1.55rem; line-height: 1.2; letter-spacing: -.01em; }
.tools h3 { margin: 1.75rem 0 .5rem; }
.tools p, .library-point p { line-height: 1.6; color: var(--muted); max-width: 34em; }

/* Song library */
.library { padding-block: clamp(3.5rem, 8vw, 6.5rem); background: var(--tint); }
.library-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.library-point { margin-top: 2.25rem; padding-left: 1.25rem; border-left: 3px solid var(--brass); }
.library-point h3 { margin-bottom: .5rem; }
.library-phones { display: grid; grid-template-columns: repeat(2, minmax(0, 15rem)); justify-content: center; align-items: start; gap: clamp(1rem, 3vw, 2rem); }
.library-phones .phone:last-child { margin-top: 3.5rem; }

.footer { padding-block: 1.75rem; color: var(--on-green); background: var(--green-deep); }
.footer nav a { min-height: 44px; }

@media (max-width: 52rem) {
  .hero, .library-layout { grid-template-columns: minmax(0, 1fr); }
  .hero-phone { max-width: 17rem; }
  .tools {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(78%, 17rem);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: -1.25rem;
    padding: 0 1.25rem 1rem;
    scroll-padding-inline: 1.25rem;
  }
  .tools article { scroll-snap-align: start; }
  .library-copy { order: -1; }
}
@media (max-width: 30rem) {
  .masthead { padding-block: .5rem; }
  nav { font-size: .9rem; }
  .stores img { height: 2.6rem; }
  .library-phones .phone:last-child { margin-top: 2rem; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Reading layout for support and legal documents. */
.document { max-width: 72ch; padding-block: clamp(2rem, 5vw, 4rem); line-height: 1.65; overflow-wrap: anywhere; }
.document h1 { padding: 0; font-size: clamp(2.25rem, 4vw, 3.25rem); line-height: 1.1; }
.document h2 { margin-top: 1.5em; font-size: 1.8rem; }
.document h3 { margin-top: 1.25em; }
.document p, .document ul, .document aside { margin-block: 1em; }
.document li + li { margin-top: .35em; }
.document a { color: var(--accent); text-decoration: underline; text-underline-offset: .15em; }
.document aside { border-inline-start: 3px solid var(--brass); padding-inline: 1rem; color: var(--muted); }
