/* songbook-md site. A green-felt stage (the inside of a guitar case),
   paper sheets laid on it, brass for the accents, and chords set above
   the words of the headline, the way the product sets them. */
:root {
  --felt: #0f1f19;
  --felt-2: #16291f;
  --felt-line: #284236;
  --paper: #f3f4ef;
  --paper-2: #e8eae2;
  --ink: #111713;
  --muted: #4f5c55;
  --on-felt: #eef2ec;
  --on-felt-muted: #a7b8ae;
  --brass: #e9b44c;
  --brass-ink: #1a1405;
  --red: #c8321d;
  --display: "Young Serif", "Iowan Old Style", Georgia, serif;
  --text: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--text); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--brass); text-decoration-thickness: 2px; text-underline-offset: .2em; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -.01em; }
h3 { font-size: 21px; }
p { margin: 0; }
code, pre { font-family: var(--mono); font-size: .86em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }
.section-lede { color: var(--muted); font-size: 19px; max-width: 640px; margin-top: 14px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--brass); color: var(--brass-ink); padding: 10px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.top { background: var(--felt); color: var(--on-felt); border-bottom: 1px solid var(--felt-line); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font: 700 17px/1 var(--mono); text-decoration: none; letter-spacing: -.01em; }
.mark { width: 22px; height: 26px; border: 2px solid var(--brass); border-top-width: 5px; border-radius: 2px; position: relative;
  background: linear-gradient(90deg, transparent 5px, var(--brass) 5px 6.5px, transparent 6.5px 11px, var(--brass) 11px 12.5px, transparent 12.5px); }
.mark::after { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--red); left: 7px; top: 6px; box-shadow: 0 0 0 1.5px var(--felt); }
.nav { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; padding: 0; font-size: 15px; }
.nav a { text-decoration: none; color: var(--on-felt-muted); padding: 6px 0; }
.nav a:hover { color: var(--on-felt); }

/* Hero */
.hero { background: radial-gradient(900px 500px at 80% 30%, #1d3a2d, transparent 70%), var(--felt); color: var(--on-felt); padding: 72px 0 104px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.eyebrow { font: 500 14px/1.4 var(--mono); color: var(--brass); letter-spacing: .02em; }
.chorded { font-size: clamp(40px, 5.4vw, 68px); line-height: 1.62; margin-top: 18px; letter-spacing: -.015em; }
.chorded .c { position: relative; display: inline-block; }
.chorded .c b { position: absolute; left: 0; bottom: 78%; font: 700 .34em/1 var(--mono); color: var(--brass); letter-spacing: 0; white-space: nowrap; }
.lede { font-size: 19px; color: var(--on-felt-muted); max-width: 560px; margin-top: 18px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-block; background: var(--brass); color: var(--brass-ink); font-weight: 700; text-decoration: none; padding: 13px 22px; border-radius: 999px; border: 2px solid var(--brass); }
.btn:hover { background: #f3c766; }
.btn-quiet { background: transparent; color: inherit; border-color: currentColor; }
.btn-quiet:hover { background: rgba(233, 180, 76, .14); }
.one-liner { margin-top: 22px; }
.one-liner code { display: inline-block; background: rgba(0, 0, 0, .28); border: 1px solid var(--felt-line); color: var(--on-felt); padding: 9px 14px; border-radius: 8px; overflow-wrap: anywhere; }

.hero-art { position: relative; min-height: 600px; }
.sheet, .phone { position: absolute; display: block; }
.sheet img { border-radius: 2px; box-shadow: 0 2px 3px rgba(0, 0, 0, .3), 0 30px 60px rgba(0, 0, 0, .45); }
.sheet-back { width: 62%; right: 0; top: 0; transform: rotate(4deg); }
.sheet-front { width: 66%; left: 6%; top: 60px; transform: rotate(-3deg); }
.hero .phone { width: 34%; left: -2%; bottom: -40px; }
.phone img { border-radius: 26px; border: 7px solid #050807; box-shadow: 0 30px 60px rgba(0, 0, 0, .5); }
.sheet, .phone { transition: transform .25s ease; }
.sheet:hover { transform: rotate(0) translateY(-6px); z-index: 3; }

/* Pitch */
.pitch { background: var(--paper); padding: 88px 0 72px; }
.pitch-line { font-size: clamp(26px, 3vw, 38px); line-height: 1.28; max-width: 980px; }
.facts { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.facts li { border-top: 3px solid var(--ink); padding-top: 14px; color: var(--muted); font-size: 16px; }
.facts b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }

/* How */
.how { background: var(--paper-2); }
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.steps li { background: var(--paper); border: 1px solid #d4d8cc; border-radius: 14px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.steps p { color: var(--muted); }
.num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--felt); color: var(--brass); font: 700 16px/1 var(--mono); margin-inline-end: 8px; vertical-align: 3px; }
.snippet, .code { margin: auto 0 0; background: var(--felt); color: var(--on-felt); border-radius: 10px; padding: 14px 16px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.snippet code, .code code { font-size: 14px; }

/* Themes */
.themes { background: var(--felt); color: var(--on-felt); }
.themes .section-lede { color: var(--on-felt-muted); }
.gallery { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; }
.gallery a { display: block; }
.gallery img { border-radius: 2px; box-shadow: 0 18px 36px rgba(0, 0, 0, .4); transition: transform .2s ease; }
.gallery a:hover img { transform: translateY(-6px); }
.gallery h3 { font: 700 16px/1.2 var(--mono); color: var(--brass); margin-top: 18px; }
.gallery p { color: var(--on-felt-muted); font-size: 15px; margin-top: 6px; }

/* Songbook */
.book-head { max-width: 760px; }
.covers { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.covers img, .spread img, .langs img { box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 16px 34px rgba(17, 23, 19, .18); }
.covers li:nth-child(odd) { transform: translateY(14px); }
.spread { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; max-width: 760px; margin: 56px auto 0; }

/* Phone */
.play { background: var(--paper-2); }
.play-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 26px 0 28px; display: grid; gap: 12px; }
.ticks li { padding-inline-start: 34px; position: relative; }
.ticks li::before { content: "♪"; position: absolute; left: 0; top: -1px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--felt); color: var(--brass); font-size: 13px; }
.play .btn-quiet { color: var(--ink); }
.phones { display: flex; gap: 22px; justify-content: center; }
.phones .phone { position: relative; width: 46%; max-width: 270px; }
.phones .phone:nth-child(2) { transform: translateY(40px); }

/* Install */
.install { background: var(--felt); color: var(--on-felt); }
.install-grid { display: grid; gap: 16px; margin-top: 36px; }
.install-grid > div { border: 1px solid var(--felt-line); border-radius: 14px; padding: 22px 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); grid-template-rows: auto 1fr; column-gap: 28px; row-gap: 6px; align-items: center; background: var(--felt-2); }
.install-grid h3 { grid-column: 1; }
.install-grid p { grid-column: 1; color: var(--on-felt-muted); font-size: 15px; align-self: start; }
.install .code { grid-column: 2; grid-row: 1 / span 2; background: rgba(0, 0, 0, .32); margin: 0; }
.ask { margin-top: 32px; color: var(--on-felt-muted); font-size: 18px; }
.ask q { color: var(--on-felt); font-style: italic; }

/* Examples */
.ex-table { width: 100%; border-collapse: collapse; margin-top: 36px; font-size: 16px; }
.ex-table th, .ex-table td { text-align: start; padding: 12px 12px 12px 0; border-bottom: 1px solid #d4d8cc; vertical-align: top; }
.ex-table thead th { font: 500 13px/1.2 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.ex-table tbody th { font-family: var(--display); font-weight: 400; font-size: 18px; }
.ex-table td { color: var(--muted); }
.links a { display: inline-block; font: 500 14px/1.2 var(--mono); color: var(--ink); margin: 0 10px 6px 0; }
.langs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 48px; }

/* 404 */
.page-404 { background: var(--felt); }
.lost { background: var(--felt); color: var(--on-felt); padding: 96px 0 120px; min-height: 60vh; }
.lost .chorded { margin-top: 28px; }

/* Footer */
.foot { background: var(--felt); color: var(--on-felt-muted); padding: 56px 0; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; }
.foot .wordmark { color: var(--on-felt); margin-bottom: 12px; }
.foot h2 { font: 500 13px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--brass); }
.foot ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.foot nav a { color: var(--on-felt); font-family: var(--mono); font-size: 14px; margin-inline-end: 6px; }

@media (max-width: 1020px) {
  .hero-grid, .play-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 0; aspect-ratio: 1 / .92; max-width: 640px; width: 100%; margin: 0 auto; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery, .covers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .install-grid > div { grid-template-columns: 1fr; }
  .install .code { grid-column: 1; grid-row: auto; margin-top: 8px; }
}
@media (max-width: 640px) {
  section { padding: 64px 0; }
  .wrap { padding: 0 18px; }
  .hero { padding: 44px 0 72px; }
  .chorded { font-size: 36px; line-height: 1.75; }
  .hero .phone { left: 0; width: 36%; }
  .facts, .langs, .foot-grid { grid-template-columns: 1fr; }
  .gallery, .covers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .covers li:nth-child(odd) { transform: none; }
  .ex-table thead { display: none; }
  .ex-table tr { display: block; border-bottom: 1px solid #d4d8cc; padding: 12px 0; }
  .ex-table th, .ex-table td { display: block; border: 0; padding: 2px 0; }
  .nav { gap: 2px 16px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
