:root {
  --ink: #18182b;
  --muted: #66677d;
  --paper: #fffdf8;
  --paper-2: #f7f2e9;
  --line: #e7dfd1;
  --night: #15152a;
  --night-2: #262442;
  --amber: #ffbd59;
  --coral: #ff6b57;
  --mint: #7ad8bc;
  --violet: #9187f4;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(35, 28, 18, .09);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(circle at 6% 18%, rgba(255,189,89,.15), transparent 22rem), radial-gradient(circle at 92% 42%, rgba(122,216,188,.12), transparent 24rem);
}
img { max-width: 100%; height: auto; }
a { color: #7a4211; text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover { color: #b63e2f; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { margin: 0 0 .55em; line-height: 1.12; letter-spacing: -.035em; }
h1 { font-size: clamp(2.25rem, 6vw, 5.4rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.5rem); }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1.1em; }
code, pre { font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 1000; transform: translateY(-160%); padding: .65rem 1rem; border-radius: 10px; background: white; color: var(--night); }
.skip-link:focus { transform: none; }
.eyebrow { display: inline-flex; align-items: center; gap: .45rem; margin-bottom: 1rem; color: #aa4f31; font-size: .76rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }

.site-header { position: sticky; top: 0; z-index: 50; color: white; background: rgba(21,21,42,.95); box-shadow: 0 1px 0 rgba(255,255,255,.1); backdrop-filter: blur(14px); }
.header-glow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.header-glow::after { content: ""; position: absolute; right: 16%; top: -120px; width: 360px; height: 220px; border-radius: 50%; background: rgba(255,189,89,.18); filter: blur(55px); }
.header-inner { position: relative; display: grid; grid-template-columns: auto 1fr minmax(240px, 320px); align-items: center; gap: 2rem; width: min(1220px, calc(100% - 40px)); min-height: 82px; margin: auto; }
.brand { display: inline-flex; align-items: center; gap: .75rem; color: white; text-decoration: none; }
.brand img { width: 46px; height: 46px; }
.brand span { display: grid; line-height: 1.08; }
.brand strong { font-size: 1.3rem; letter-spacing: -.04em; }
.brand small { margin-top: .28rem; color: #cbc9da; font-size: .68rem; letter-spacing: .02em; }
.site-nav { display: flex; justify-content: center; align-items: center; gap: clamp(.7rem, 2vw, 1.6rem); }
.site-nav a { color: #eeeef5; font-size: .88rem; font-weight: 760; text-decoration: none; }
.site-nav a:hover { color: var(--amber); }
.header-search { display: flex; min-width: 0; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.header-search input { width: 100%; min-width: 0; padding: .62rem .3rem .62rem 1rem; border: 0; outline: 0; color: white; background: transparent; font-size: .82rem; }
.header-search input::placeholder { color: #aaa9ba; }
.header-search button { border: 0; padding: .62rem 1rem; color: var(--night); background: var(--amber); font-size: .78rem; font-weight: 850; cursor: pointer; }
.menu-toggle { display: none; }

.site-main { width: min(1220px, calc(100% - 40px)); min-height: 70vh; margin: 0 auto; padding: 26px 0 90px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .55rem; margin: 0 0 22px; color: var(--muted); font-size: .78rem; }
.breadcrumbs a { color: var(--muted); }

.home-page .site-main { padding-top: 0; }
.home-hero { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; min-height: 660px; margin: 0 calc(50% - 50vw) 34px; padding: 84px max(32px, calc((100vw - 1220px)/2)); color: white; background: var(--night); overflow: hidden; }
.home-hero::before { content: ""; position: absolute; inset: 0; opacity: .28; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(to right, black, transparent 78%); }
.home-hero-copy { position: relative; z-index: 2; align-self: center; max-width: 680px; }
.home-hero .eyebrow { color: var(--amber); }
.home-hero h1 { margin-bottom: .28em; font-size: clamp(3.4rem, 6.5vw, 6.3rem); letter-spacing: -.065em; }
.home-hero h1 em { color: var(--amber); font-family: Georgia, serif; font-weight: 500; }
.home-hero-copy > p { max-width: 610px; color: #d5d3df; font-size: clamp(1.05rem, 1.7vw, 1.28rem); }
.hero-search { display: flex; max-width: 620px; margin: 2rem 0 1.7rem; padding: 7px; border-radius: 16px; background: white; box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.hero-search input { flex: 1; min-width: 0; padding: .9rem 1rem; border: 0; outline: 0; color: var(--ink); }
.hero-search button { border: 0; border-radius: 11px; padding: .82rem 1.25rem; background: var(--coral); color: white; font-weight: 850; cursor: pointer; }
.hero-stats { display: flex; gap: clamp(1.2rem, 4vw, 3rem); }
.hero-stats div { display: grid; }
.hero-stats strong { color: white; font-size: 1.5rem; line-height: 1; }
.hero-stats span { margin-top: .4rem; color: #aaa9ba; font-size: .73rem; }
.home-hero-art { position: relative; align-self: center; min-width: 0; }
.home-hero-art::before { content: ""; position: absolute; inset: 12% 2% 8% 16%; border-radius: 50%; background: radial-gradient(circle, rgba(145,135,244,.42), rgba(255,107,87,.08) 50%, transparent 70%); filter: blur(20px); }
.home-hero-art img { position: relative; z-index: 1; width: 100%; filter: drop-shadow(0 32px 60px rgba(0,0,0,.38)); }
.sound-pill { position: absolute; z-index: 2; padding: .45rem .75rem; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(32,31,57,.82); color: white; font-size: .73rem; font-weight: 750; backdrop-filter: blur(10px); }
.sound-pill.one { top: 20%; left: 3%; transform: rotate(-7deg); }
.sound-pill.two { top: 41%; right: 0; transform: rotate(6deg); }
.sound-pill.three { bottom: 14%; left: 17%; transform: rotate(4deg); }
.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin: -72px 0 90px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); overflow: hidden; position: relative; z-index: 3; }
.trust-strip div { display: grid; gap: .3rem; padding: 1.4rem 1.6rem; border-right: 1px solid var(--line); }
.trust-strip div:last-child { border-right: 0; }
.trust-strip b { font-size: .9rem; }
.trust-strip span { color: var(--muted); font-size: .75rem; line-height: 1.45; }
.home-section { margin: 0 0 96px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 28px; }
.section-heading .eyebrow { margin-bottom: .6rem; }
.section-heading h2 { margin: 0; }
.section-heading > a { font-size: .86rem; font-weight: 800; }
.song-card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.song-card { position: relative; display: grid; min-height: 140px; align-content: end; padding: 1.2rem; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: white; text-decoration: none; transition: .2s ease; }
.song-card::before { content: "♪"; position: absolute; top: .8rem; right: 1rem; color: var(--amber); font-size: 1.4rem; }
.song-card:hover { transform: translateY(-3px); border-color: #dfb56c; color: var(--ink); box-shadow: 0 12px 30px rgba(45,35,20,.09); }
.song-card span { color: var(--muted); font-size: .7rem; }
.song-card strong { margin-top: .18rem; line-height: 1.25; }
.song-card b { position: absolute; right: 1rem; bottom: .9rem; color: var(--coral); opacity: 0; transition: .2s; }
.song-card:hover b { opacity: 1; }
.tone-section { margin-inline: calc(50% - 50vw); padding: 90px max(32px, calc((100vw - 1220px)/2)); background: var(--paper-2); }
.home-guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.home-guide-card { display: block; border-radius: var(--radius); color: var(--ink); background: white; box-shadow: 0 1px 0 var(--line); text-decoration: none; overflow: hidden; transition: .2s ease; }
.home-guide-card:hover { color: var(--ink); transform: translateY(-4px); box-shadow: var(--shadow); }
.home-guide-card img { display: block; width: 100%; aspect-ratio: 1.65; object-fit: cover; background: var(--night); }
.home-guide-card span, .home-guide-card h3, .home-guide-card p { display: block; margin-inline: 1.3rem; }
.home-guide-card span { margin-top: 1.2rem; color: #a24b32; font-size: .7rem; font-weight: 850; text-transform: uppercase; letter-spacing: .1em; }
.home-guide-card h3 { margin-top: .45rem; }
.home-guide-card p { margin-bottom: 1.4rem; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.letter-nav { display: flex; flex-wrap: wrap; gap: .38rem; margin-bottom: 24px; }
.letter-nav a { min-width: 34px; padding: .35rem .55rem; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: white; font-size: .78rem; font-weight: 800; text-align: center; text-decoration: none; }
.letter-nav a:hover { border-color: var(--coral); background: #fff6f1; }
.artist-groups { columns: 3 260px; column-gap: 20px; }
.artist-group { break-inside: avoid; display: inline-block; width: 100%; margin: 0 0 20px; padding: 1.15rem 1.25rem; border: 1px solid var(--line); border-radius: 16px; background: white; }
.artist-group h2 { margin-bottom: .7rem; color: var(--coral); font-size: 1.45rem; }
.artist-group > div { display: grid; gap: .24rem; }
.artist-group a { color: #4e3b2c; font-size: .85rem; text-decoration: none; }
.artist-group a:hover { color: var(--coral); text-decoration: underline; }

.site-footer { color: #dcdae7; background: var(--night); }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1.25fr 1fr; gap: 3rem; width: min(1220px, calc(100% - 40px)); margin: auto; padding: 64px 0; }
.footer-brand { display: flex; gap: 1rem; }
.footer-brand strong { color: white; font-size: 1.3rem; }
.footer-brand p { max-width: 270px; margin: .45rem 0 0; color: #aaa9ba; font-size: .8rem; line-height: 1.5; }
.site-footer nav, .footer-contact { display: grid; align-content: start; gap: .45rem; }
.site-footer nav strong, .footer-contact strong { margin-bottom: .35rem; color: white; font-size: .82rem; }
.site-footer a { color: #c8c6d4; font-size: .76rem; text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.footer-contact span { margin-top: .6rem; color: #858398; font-size: .7rem; }

.hub-hero { position: relative; margin: 22px 0 42px; padding: clamp(2rem, 6vw, 5rem); border-radius: 32px; color: white; background: linear-gradient(125deg, var(--night), #302953 72%, #614249); overflow: hidden; }
.hub-hero::after { content: "♪"; position: absolute; right: 7%; bottom: -36%; color: rgba(255,255,255,.08); font: 17rem/1 Georgia, serif; transform: rotate(-12deg); }
.hub-hero h1 { max-width: 900px; font-size: clamp(2.7rem, 6vw, 5rem); }
.hub-hero > p { max-width: 760px; color: #d8d6e4; font-size: 1.05rem; }
.hub-hero .eyebrow { color: var(--amber); }
.hero-pills { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.5rem; }
.hero-pills span { padding: .35rem .7rem; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: #e9e7f0; background: rgba(255,255,255,.07); font-size: .72rem; }
.hub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.hub-card { display: grid; grid-template-columns: minmax(170px, .72fr) 1.28fr; min-height: 270px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: white; text-decoration: none; overflow: hidden; transition: .2s ease; }
.hub-card:hover { color: var(--ink); transform: translateY(-4px); box-shadow: var(--shadow); }
.hub-card img { width: 100%; height: 100%; object-fit: cover; background: var(--night); }
.hub-card > div { display: flex; flex-direction: column; align-items: flex-start; padding: 1.5rem; }
.hub-card span { color: #a24b32; font-size: .66rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.hub-card h2 { margin: .55rem 0 .65rem; font-size: 1.35rem; }
.hub-card p { color: var(--muted); font-size: .78rem; line-height: 1.5; }
.hub-card b { margin-top: auto; color: #9f4933; font-size: .76rem; }

.article-hero { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(2rem, 6vw, 6rem); margin: 20px 0 50px; padding: clamp(2rem, 5vw, 4.5rem); border-radius: 34px; color: white; background: var(--night); overflow: hidden; }
.article-hero-copy { position: relative; z-index: 1; }
.article-hero .eyebrow { color: var(--amber); }
.article-hero h1 { font-size: clamp(2.6rem, 5vw, 4.8rem); }
.article-hero-copy > p { color: #d5d3df; font-size: 1.02rem; }
.article-hero img { width: 100%; border-radius: 23px; box-shadow: 0 30px 70px rgba(0,0,0,.35); transform: rotate(2deg); }
.article-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; color: #aeadbc; font-size: .7rem; }
.article-layout { display: grid; grid-template-columns: 250px minmax(0, 760px); justify-content: center; gap: clamp(2rem, 5vw, 5rem); }
.article-aside { min-width: 0; }
.article-aside > * { position: sticky; top: 110px; }
.toc { border: 1px solid var(--line); border-radius: 16px; background: white; }
.toc summary { padding: 1rem 1.15rem; color: var(--ink); font-weight: 850; cursor: pointer; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; float: right; color: var(--coral); font-size: 1.2rem; }
.toc[open] summary::after { content: "−"; }
.toc ol { margin: 0; padding: 0 1.15rem 1rem 2.2rem; }
.toc li { margin: .35rem 0; color: var(--muted); font-size: .73rem; line-height: 1.35; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--coral); }
.aside-tip { margin-top: 14px; padding: 1rem 1.1rem; border-radius: 16px; background: #eef8f4; }
.aside-tip strong { font-size: .78rem; }
.aside-tip p { margin: .35rem 0 0; color: #4e7165; font-size: .72rem; line-height: 1.45; }
.article-body { min-width: 0; }
.article-intro { padding: 0 0 2.2rem; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.article-intro p:first-child { font-size: 1.23rem; font-weight: 650; line-height: 1.55; }
.article-section { position: relative; padding: 3.6rem 0 2.6rem; border-bottom: 1px solid var(--line); }
.article-section h2 { max-width: 640px; }
.article-section p { color: #3f4051; }
.section-number { display: inline-grid; width: 38px; height: 38px; margin-bottom: 1rem; place-items: center; border-radius: 50%; color: var(--night); background: var(--amber); font-size: .72rem; font-weight: 900; }
.practice-note { display: flex; gap: 1rem; align-items: flex-start; margin-top: 1.5rem; padding: 1.1rem 1.2rem; border-left: 4px solid var(--mint); border-radius: 0 14px 14px 0; background: #eef8f4; }
.practice-note strong { color: #276a57; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; }
.practice-note span { color: #365f54; font-size: .8rem; line-height: 1.5; }
.mistake-list { display: grid; gap: .75rem; padding: 0; list-style: none; }
.mistake-list li { padding: 1rem 1.1rem; border: 1px solid #f0d8d2; border-radius: 13px; background: #fff8f5; font-size: .84rem; }
.practice-list { display: grid; gap: .8rem; padding: 0; list-style: none; }
.practice-list li { display: grid; grid-template-columns: 42px 1fr; gap: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: white; }
.practice-list li > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: white; background: var(--night); font-size: .72rem; font-weight: 850; }
.practice-list strong { font-size: .88rem; }
.practice-list p { margin: .25rem 0 0; color: var(--muted); font-size: .76rem; line-height: 1.45; }
.faq details { margin: .7rem 0; border: 1px solid var(--line); border-radius: 14px; background: white; }
.faq summary { padding: 1rem 1.1rem; font-weight: 800; cursor: pointer; }
.faq details p { padding: 0 1.1rem 1rem; margin: 0; font-size: .86rem; }
.picks .song-card-grid { grid-template-columns: repeat(2, 1fr); }
.related-section { margin: 80px 0 0; padding: 42px; border-radius: 26px; background: var(--paper-2); }
.related-section > div:first-child { margin-bottom: 1.5rem; }
.related-section h2 { margin: 0; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related-card { display: flex; flex-direction: column; min-height: 190px; padding: 1.2rem; border-radius: 16px; color: var(--ink); background: white; text-decoration: none; }
.related-card span { color: #a24b32; font-size: .66rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.related-card strong { margin: .7rem 0; line-height: 1.35; }
.related-card b { margin-top: auto; color: #9f4933; font-size: .75rem; }

.song-hero { margin: 20px 0 26px; padding: clamp(2rem, 5vw, 4.5rem); border-radius: 32px; color: white; background: linear-gradient(125deg, var(--night), #282443 65%, #3c2d45); }
.song-kicker { display: flex; gap: .6rem; margin-bottom: 1.2rem; color: #c6c3d2; font-size: .72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; }
.song-kicker a { color: var(--amber); }
.song-hero h1 { max-width: 980px; font-size: clamp(2.7rem, 6vw, 5.2rem); }
.song-hero h1 small { display: inline-block; padding: .32rem .55rem; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: var(--amber); font-size: .72rem; letter-spacing: 0; vertical-align: middle; }
.song-hero p { max-width: 770px; color: #d1cfdb; }
.song-workspace { margin-bottom: 28px; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: var(--shadow); overflow: hidden; }
.song-toolbar { position: sticky; top: 82px; z-index: 10; display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(8px); }
.song-toolbar > div { display: flex; align-items: center; gap: .45rem; }
.song-toolbar button { min-width: 38px; min-height: 36px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: white; font-size: .76rem; font-weight: 850; cursor: pointer; }
.song-toolbar button:hover { border-color: var(--coral); color: var(--coral); }
#transpose-value { min-width: 135px; color: var(--muted); font-size: .72rem; text-align: center; }
.song-sheet { overflow-x: auto; padding: clamp(1.2rem, 4vw, 2.5rem); }
.song-sheet pre { margin: 0; color: #242236; background: transparent; font-size: clamp(.84rem, 1.6vw, 1rem); line-height: 1.55; white-space: pre; tab-size: 4; }
.song-help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; }
.song-help-grid article { padding: 1.4rem; border-radius: 18px; background: var(--paper-2); }
.song-help-grid article span { color: var(--coral); font-size: .72rem; font-weight: 900; }
.song-help-grid h2 { margin: .45rem 0 .65rem; font-size: 1.2rem; }
.song-help-grid p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.correction-note { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 1.5rem; border: 1px solid #cde8de; border-radius: 18px; background: #eef8f4; }
.correction-note p { margin: .25rem 0 0; color: #4d6d63; font-size: .78rem; }
.correction-note > a { flex: 0 0 auto; padding: .7rem 1rem; border-radius: 10px; color: white; background: #267660; font-size: .76rem; font-weight: 850; text-decoration: none; }

.author-hero { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3rem; margin: 20px 0 28px; padding: clamp(2rem, 5vw, 4.5rem); border-radius: 32px; color: white; background: linear-gradient(120deg, var(--night), #35284b); }
.author-hero .eyebrow { color: var(--amber); }
.author-hero h1 { font-size: clamp(3rem, 7vw, 6rem); }
.author-hero p { max-width: 760px; color: #d1cfdb; }
.artist-monogram { display: grid; width: clamp(130px, 18vw, 220px); aspect-ratio: 1; place-items: center; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; color: var(--amber); background: radial-gradient(circle at 35% 30%, rgba(255,189,89,.18), rgba(145,135,244,.1)); font: 600 clamp(4rem, 10vw, 8rem)/1 Georgia, serif; }
.filter-row { display: grid; grid-template-columns: auto minmax(220px, 520px) auto; align-items: center; gap: 1rem; margin: 0 0 26px; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 15px; background: white; }
.filter-row label { font-size: .76rem; font-weight: 850; }
.filter-row input { width: 100%; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 9px; outline: 0; }
.filter-row span { color: var(--muted); font-size: .75rem; }
.author-song-list { display: grid; gap: 22px; }
.author-letter { display: grid; grid-template-columns: 60px 1fr; gap: 1rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: 18px; background: white; }
.author-letter h2 { margin: 0; color: var(--coral); font: 600 2rem/1 Georgia, serif; }
.author-letter > div { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .45rem 1rem; }
.author-letter a { display: flex; justify-content: space-between; gap: .5rem; padding: .38rem .45rem; border-radius: 7px; color: #493b31; font-size: .79rem; line-height: 1.35; text-decoration: none; }
.author-letter a:hover { color: var(--coral); background: #fff5ef; }
.author-letter a b { color: var(--coral); opacity: 0; }
.author-letter a:hover b { opacity: 1; }
.author-letter[hidden], .author-letter a[hidden] { display: none; }

.toc.standalone { max-width: 760px; margin: 0 auto 36px; }
.accords-hero { background: linear-gradient(125deg, #1a1930, #49314b 70%, #774936); }
.chord-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin: 0 0 46px; }
.chord-card { position: relative; padding: 1.35rem; border: 1px solid var(--line); border-radius: 18px; background: white; overflow: hidden; }
.chord-card::after { content: ""; position: absolute; right: -20px; top: -20px; width: 90px; height: 90px; border-radius: 50%; background: rgba(255,189,89,.16); }
.chord-card > span { color: var(--muted); font-size: .68rem; }
.chord-card h2 { margin: .2rem 0; font-size: 2.4rem; }
.chord-card code { display: inline-block; margin-bottom: .8rem; padding: .25rem .45rem; border-radius: 6px; color: #583e21; background: #fff1d7; font-size: .85rem; }
.chord-card p { color: var(--muted); font-size: .74rem; line-height: 1.45; }
.chord-card button { padding: .45rem .65rem; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); font-size: .7rem; cursor: pointer; }
.chord-card.is-active { border-color: var(--amber); box-shadow: 0 8px 24px rgba(130,90,20,.12); }
.guide-copy { max-width: 820px; margin: auto; }
.guide-copy section { padding: 2.7rem 0; border-bottom: 1px solid var(--line); }
.guide-copy p { color: #414252; }

.legal-document { max-width: 880px; margin: 20px auto; }
.legal-document > header { margin-bottom: 32px; padding: clamp(2rem, 5vw, 4rem); border-radius: 28px; color: white; background: var(--night); }
.legal-document > header .eyebrow { color: var(--amber); }
.legal-document > header h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
.legal-document > header h1 { overflow-wrap: anywhere; hyphens: auto; }
.legal-document > header p { margin: 0; color: #b9b7c7; font-size: .76rem; }
.legal-document > section { padding: 2.3rem 0; border-bottom: 1px solid var(--line); }
.legal-document > section h2 { font-size: 1.55rem; }
.legal-document > section p { color: #3e3f50; }
.legal-document > aside { margin-top: 30px; padding: 1.4rem; border-radius: 16px; background: #eef8f4; }
.legal-document > aside p { margin: .35rem 0 0; color: #45665c; font-size: .82rem; }

.search-hero { max-width: 880px; margin: 20px auto 34px; padding: clamp(2rem, 5vw, 4rem); border-radius: 30px; color: white; background: linear-gradient(125deg, var(--night), #3f3153); }
.search-hero .eyebrow { color: var(--amber); }
.search-hero h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
.big-search label { display: block; margin-bottom: .45rem; color: #c8c6d4; font-size: .72rem; }
.big-search > div { display: flex; padding: 6px; border-radius: 14px; background: white; }
.big-search input { flex: 1; min-width: 0; padding: .8rem; border: 0; outline: 0; }
.big-search button { border: 0; border-radius: 9px; padding: .7rem 1.1rem; color: white; background: var(--coral); font-weight: 850; cursor: pointer; }
#search-status { margin: .8rem 0 0; color: #aaa9ba; font-size: .72rem; }
.search-results { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 880px; margin: auto; }
.search-result { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 95px; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: white; text-decoration: none; }
.search-result:hover { border-color: var(--amber); color: var(--ink); }
.search-result span { color: var(--muted); font-size: .68rem; }
.search-result strong { display: block; margin-top: .2rem; line-height: 1.3; }
.search-result b { color: var(--coral); }
.search-placeholder { grid-column: 1 / -1; padding: 4rem 2rem; border: 1px dashed #d8cfbf; border-radius: 20px; color: var(--muted); text-align: center; }
.search-placeholder > span { color: var(--amber); font-size: 4rem; }
.search-placeholder h2 { color: var(--ink); }

.archive-list { display: grid; gap: 30px; max-width: 900px; margin: auto; }
.archive-song { padding: clamp(1.2rem, 4vw, 2.4rem); border: 1px solid var(--line); border-radius: 18px; background: white; }
.archive-song h2 { font-size: 1.35rem; }
.archive-song pre { max-width: 100%; overflow-x: auto; font-size: .82rem; line-height: 1.45; white-space: pre; }
.legacy-clean { max-width: 960px; margin: auto; }
.legacy-body { max-width: 100%; padding: 1.5rem; border: 1px solid var(--line); border-radius: 18px; background: white; overflow: auto; }
.legacy-body table { max-width: 100%; }
.legacy-body img { max-width: 100%; height: auto; }
.legacy-body pre { overflow-x: auto; white-space: pre-wrap; }

.not-found { max-width: 760px; margin: 70px auto; padding: clamp(2rem, 6vw, 5rem); border-radius: 30px; color: white; background: var(--night); text-align: center; }
.not-found > strong { display: block; color: var(--amber); font: 600 clamp(5rem, 17vw, 10rem)/.9 Georgia, serif; }
.not-found h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
.not-found p { color: #c5c3d0; }
.not-found > div { display: flex; justify-content: center; flex-wrap: wrap; gap: .7rem; }
.button-primary, .button-secondary { padding: .7rem 1rem; border-radius: 10px; font-size: .78rem; font-weight: 850; text-decoration: none; }
.button-primary { color: var(--night); background: var(--amber); }
.button-secondary { color: white; border: 1px solid rgba(255,255,255,.24); }

@media (max-width: 980px) {
  .header-inner { grid-template-columns: auto auto 1fr; gap: 1rem; }
  .menu-toggle { display: inline-grid; grid-template-columns: repeat(3, 18px); gap: 3px; align-items: center; justify-content: center; padding: .5rem .65rem; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; color: white; background: transparent; cursor: pointer; }
  .menu-toggle span { grid-column: 1; width: 18px; height: 2px; background: currentColor; }
  .menu-toggle b { grid-column: 2; grid-row: 1 / 4; margin-left: .2rem; font-size: .68rem; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; display: none; align-items: stretch; padding: 1rem 20px; border-top: 1px solid rgba(255,255,255,.1); background: var(--night); }
  .site-nav.is-open { display: grid; grid-template-columns: repeat(4,1fr); }
  .site-nav a { padding: .7rem; border-radius: 8px; text-align: center; }
  .home-hero { grid-template-columns: 1fr .75fr; min-height: 610px; }
  .home-hero h1 { font-size: clamp(3.2rem, 7.5vw, 5.1rem); }
  .sound-pill { display: none; }
  .song-card-grid { grid-template-columns: repeat(2, 1fr); }
  .home-guide-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-contact { grid-column: 1 / -1; }
  .hub-grid { grid-template-columns: 1fr; }
  .article-hero { grid-template-columns: 1fr; }
  .article-hero img { max-width: 620px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .article-aside > * { position: static; margin-top: 0; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .chord-grid { grid-template-columns: repeat(2, 1fr); }
  .author-letter > div { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  html { scroll-padding-top: 90px; }
  .header-inner, .site-main, .footer-inner { width: min(100% - 24px, 1220px); }
  .header-inner { grid-template-columns: auto auto; min-height: 70px; }
  .brand small { display: none; }
  .brand img { width: 40px; height: 40px; }
  .menu-toggle { justify-self: end; }
  .header-search { grid-column: 1 / -1; margin-bottom: 10px; }
  .site-nav.is-open { grid-template-columns: 1fr 1fr; }
  .site-main { padding-top: 15px; padding-bottom: 58px; }
  .home-page .site-main { padding-top: 0; }
  .home-hero { display: block; min-height: auto; margin-bottom: 26px; padding-top: 56px; padding-bottom: 120px; }
  .home-hero::after { content: ""; position: absolute; right: -80px; bottom: -90px; width: 280px; height: 280px; border-radius: 50%; background: rgba(145,135,244,.17); }
  .home-hero-art { display: none; }
  .home-hero h1 { font-size: clamp(3rem, 15vw, 4.4rem); }
  .home-hero-copy > p { font-size: .96rem; }
  .hero-search { display: grid; margin-top: 1.3rem; }
  .hero-search button { width: 100%; }
  .hero-stats { gap: 1.2rem; }
  .hero-stats strong { font-size: 1.2rem; }
  .trust-strip { grid-template-columns: 1fr; margin: -76px 0 60px; }
  .trust-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-strip div:last-child { border-bottom: 0; }
  .home-section { margin-bottom: 62px; }
  .section-heading { align-items: flex-start; }
  .section-heading > a { display: none; }
  .song-card-grid, .home-guide-grid, .search-results { grid-template-columns: 1fr; }
  .tone-section { padding-top: 60px; padding-bottom: 60px; }
  .artist-groups { columns: 1; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
  .footer-brand, .footer-contact { grid-column: 1 / -1; }
  .hub-hero, .article-hero, .song-hero, .author-hero, .legal-document > header, .search-hero { border-radius: 22px; }
  .hub-card { grid-template-columns: 1fr; }
  .hub-card img { aspect-ratio: 1.8; }
  .article-hero { padding: 1.4rem; }
  .article-hero h1 { font-size: clamp(2.35rem, 11vw, 3.7rem); }
  .article-aside { grid-template-columns: 1fr; }
  .practice-note { display: grid; }
  .picks .song-card-grid { grid-template-columns: 1fr; }
  .related-section { padding: 1.25rem; }
  .related-grid { grid-template-columns: 1fr; }
  .song-hero h1 { font-size: clamp(2.45rem, 12vw, 4rem); }
  .song-toolbar { top: 110px; display: grid; }
  .song-toolbar > div { justify-content: space-between; }
  .song-sheet { padding: 1rem; }
  .song-sheet pre { font-size: .78rem; }
  .song-help-grid { grid-template-columns: 1fr; }
  .correction-note { align-items: flex-start; flex-direction: column; }
  .author-hero { grid-template-columns: 1fr; }
  .artist-monogram { display: none; }
  .filter-row { grid-template-columns: 1fr auto; }
  .filter-row label { grid-column: 1 / -1; }
  .author-letter { grid-template-columns: 38px 1fr; padding: .9rem; }
  .author-letter > div { grid-template-columns: 1fr; }
  .chord-grid { grid-template-columns: 1fr; }
  .big-search > div { display: grid; }
  .legal-document > section p { font-size: .94rem; }
}

@media print {
  .site-header, .site-footer, .breadcrumbs, .song-toolbar, .correction-note, .related-section, .article-aside { display: none !important; }
  body, .site-main { width: 100%; margin: 0; padding: 0; color: black; background: white; }
  .song-workspace, .archive-song { border: 0; box-shadow: none; break-inside: avoid; }
  .song-sheet pre { font-size: 10pt; }
}
