:root {
  --parchment: #f1e3c6;
  --page: #f9f1e1;
  --ink: #2b1e14;
  --muted: #6b5843;
  --rule: #cdb78f;
  --red: #9e3a2f;
  --red-dark: #87302a;
  --blue: #3e5a7a;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font: 400 1.2rem/1.55 "EB Garamond", Garamond, Georgia, serif;
}
a { color: var(--red); }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.4rem); font-weight: 600; line-height: 1.08; margin: 24px 0 14px; }
h2 { font-size: 1.9rem; font-weight: 600; line-height: 1.15; margin: 0 0 10px; }
h3 { font-size: 1.35rem; font-weight: 600; margin: 22px 0 6px; }
.small, .how, .checked { font-size: 1rem; color: var(--muted); }
.answer { font-size: 1.3rem; max-width: 42em; }
.center { text-align: center; }
button {
  font: inherit; font-weight: 600; background: var(--blue); color: #fff; border: 0;
  border-radius: 8px; padding: 8px 20px; cursor: pointer;
}
button:disabled { opacity: .5; cursor: default; }

/* header */
header.top { border-bottom: 1px solid var(--rule); background: var(--page); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.3rem; }
.brand img { border-radius: 8px; }
header nav { display: flex; align-items: center; gap: 18px; font-size: 1.05rem; }
header nav a { color: var(--ink); text-decoration: none; }
header nav a:hover { text-decoration: underline; }
header nav a.navcta { background: var(--red); color: #fff; padding: 6px 14px; border-radius: 8px; }
.crumbs { font-size: .95rem; color: var(--muted); padding-top: 14px; }
.crumbs a { color: var(--muted); }

/* home */
.hero { padding: 24px 0 48px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.heroimg { width: 100%; height: auto; display: block; border-radius: 4px; }
.lede { font-size: 1.35rem; color: var(--muted); margin: 0 0 22px; }
.badge img { width: 200px; height: auto; display: block; margin-left: -12px; }
.qr { display: flex; gap: 14px; align-items: center; margin-top: 18px; font-size: .95rem; color: var(--muted); max-width: 26em; }
.qr img { border-radius: 6px; flex: none; }
@media (hover: none), (max-width: 760px) { .qr { display: none; } }
.band { padding: 48px 0; border-top: 1px solid var(--rule); }
.intro { color: var(--muted); margin: 0 0 28px; max-width: 40em; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.shots figure { margin: 0; }
.shots img { width: 100%; height: auto; display: block; border-radius: 18px; border: 6px solid var(--ink); background: var(--parchment); }
.shots figcaption { margin-top: 12px; font-size: 1.05rem; }
.shots figcaption b { display: block; font-size: 1.2rem; }
.tunes { columns: 2; column-gap: 40px; padding: 0; margin: 0 0 24px; list-style: none; }
.tunes li { padding: 4px 0; break-inside: avoid; }
.tunes li::before { content: "\2766"; color: var(--red); margin-right: 10px; }
.tunes a { color: var(--ink); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 40px; }
.two h3 { margin-top: 10px; }
.two p { margin: 0; }
.center .badge img { margin: 0 auto; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 14px 0; }
.card { display: block; background: var(--page); border: 1px solid var(--rule); border-radius: 10px; padding: 12px 16px; color: var(--ink); text-decoration: none; }
.card:hover { border-color: var(--red); }
.card b { display: block; font-size: 1.2rem; }
.card span { font-size: 1rem; color: var(--muted); }

/* song pages */
main.song section, main.note section, main section[id^="level-"] { padding: 28px 0; border-top: 1px solid var(--rule); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 24px; margin: 18px 0 28px; padding: 14px 18px; background: var(--page); border: 1px solid var(--rule); border-radius: 10px; }
.facts dt { font-size: .9rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.facts dd { margin: 0; }
.line { margin: 14px 0; }
.line h3 { font-size: 1rem; color: var(--muted); margin: 0 0 4px; font-weight: 400; }
.chips { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px; }
.ch { width: max(2.2rem, calc(var(--b) * 2.6rem)); background: var(--page); border: 1px solid var(--rule); border-radius: 6px; padding: 2px 0 4px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.ch b { font-size: 1.25rem; line-height: 1.2; }
.ch.rest { opacity: .6; } .ch.rest b { font-size: .9rem; font-weight: 400; padding-top: 4px; }
.bl { width: 2px; align-self: stretch; background: var(--rule); margin: 0 3px; }
svg.mini { width: 13px; height: 46px; }
.plain { margin-top: 18px; font-size: 1.05rem; }
.plain summary { cursor: pointer; color: var(--blue); }
.plain ol { font-family: Georgia, serif; letter-spacing: .02em; }
.player { display: flex; gap: 18px; align-items: center; margin: 10px 0; }
.score { background: #fffdf8; border: 1px solid var(--rule); border-radius: 10px; padding: 6px; min-height: 120px; overflow-x: auto; }
.score .abcjs-highlight { fill: var(--red); }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.fcard { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto 1fr; column-gap: 12px; background: var(--page); border: 1px solid var(--rule); border-radius: 10px; padding: 10px 14px; color: var(--ink); text-decoration: none; }
.fcard svg { grid-row: 1 / 3; width: 34px; height: 120px; }
.fcard b { font-size: 1.25rem; }
.fcard span { font-size: .95rem; color: var(--muted); line-height: 1.35; }
svg .fb { fill: #fffdf8; stroke: var(--ink); stroke-width: 1.2; }
svg .fs { stroke: var(--muted); stroke-width: .8; stroke-dasharray: 2 2; }
svg .hc { fill: var(--ink); stroke: var(--ink); stroke-width: 1.2; }
svg .ho { fill: #fffdf8; stroke: var(--ink); stroke-width: 1.2; }
svg.dg { width: 34px; height: 120px; }
svg.big { width: 68px; height: 240px; }

/* app card */
.appcard { display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: center; background: var(--page); border: 2px solid var(--red); border-radius: 14px; padding: 20px 24px; margin: 28px 0; }
.appcard > img { width: 150px; height: auto; border-radius: 12px; border: 4px solid var(--ink); }
.appcard h2 { font-size: 1.6rem; }
.appcard p { margin: 6px 0; }

/* chart */
.chart { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin: 16px 0; }
.cell { background: var(--page); border: 1px solid var(--rule); border-radius: 10px; padding: 8px; text-align: center; color: var(--ink); text-decoration: none; display: flex; flex-direction: column; align-items: center; }
.cell:hover { border-color: var(--red); }
.cell b { font-size: 1.1rem; line-height: 1.2; }
.dn { font-size: .9rem; color: var(--muted); }
.pair { display: flex; gap: 10px; justify-content: center; }
.pair > div { display: flex; flex-direction: column; align-items: center; }
.pair i { font-size: .8rem; color: var(--muted); }

/* note pages */
.notehead { display: grid; grid-template-columns: 90px 1fr; gap: 24px; align-items: start; }
.holes { border-collapse: collapse; width: 100%; max-width: 560px; }
.holes th, .holes td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--rule); }
.holes th { font-size: .95rem; color: var(--muted); font-weight: 400; }
.notenav { font-size: 1.05rem; }
.prose { max-width: 760px; }

/* sticky mobile CTA */
.sticky { display: none; }
@media (max-width: 760px) {
  .sticky { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; background: var(--page); border-top: 1px solid var(--rule); font-size: 1rem; }
  .sticky a { background: var(--red); color: #fff; text-decoration: none; font-weight: 600; padding: 8px 14px; border-radius: 8px; white-space: nowrap; }
  body { padding-bottom: 64px; }
  header nav a:not(.navcta) { display: none; }
  .hero .wrap, .two { grid-template-columns: 1fr; gap: 24px; }
  .heroimg { order: -1; max-width: 360px; margin: 0 auto; }
  .shots { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
  .tunes { columns: 1; }
  .appcard { grid-template-columns: 1fr; text-align: left; }
  .appcard > img { display: none; }
  .notehead { grid-template-columns: 70px 1fr; gap: 16px; }
  svg.big { width: 56px; height: 198px; }
}
footer { padding: 28px 0 40px; border-top: 1px solid var(--rule); font-size: 1rem; color: var(--muted); }
footer a { color: var(--muted); margin-right: 16px; }

@media print {
  header.top, footer, .sticky, .appcard, .noprint, .crumbs { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .chart { grid-template-columns: repeat(7, 1fr); gap: 4px; }
  .cell { border-color: #999; break-inside: avoid; }
  section { break-inside: avoid; }
}

/* Link-in-bio page */
.linkpage { max-width: 30rem; text-align: center; padding-top: 1.5rem; }
.linkpiper { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; }
.linkpage h1 { margin: .4rem 0 .2rem; }
.paths { display: flex; flex-direction: column; gap: 1rem; margin: 1.2rem 0; }
.ios .android, .droid .iphone { display: none; }
.path .badge { display: inline-block; }
.path { background: var(--page); border: 1px solid var(--rule); border-radius: 12px; padding: .9rem 1rem; }
.path h2 { margin: 0 0 .3rem; font-size: 1.3rem; }
.path p { margin: .3rem 0; }
.path .badge img { width: 200px; height: auto; }
.waitlist .row { display: flex; gap: .5rem; flex-wrap: wrap; }
.waitlist input[type=email] { flex: 1 1 12rem; min-width: 0; font: inherit; font-size: 16px; padding: .6rem .7rem; border: 1px solid var(--rule); border-radius: 8px; background: #fff; color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formmsg { color: var(--red); }
