/* The Chord Wheel — site styles, in Jim Fleser's brand (as on songwheel.ai):
   black, Satoshi headlines, EB Garamond italic taglines in periwinkle, violet
   buttons, pill nav, 24px cards. Dark only, like the brand. */
:root {
  --bg: #0a0a0a;
  --bg-2: #0d0d0d;
  --surface: #121212;
  --ink: #fcfcfa;
  --ink-2: #b4b4b4;
  --ink-3: #999999;
  --line: rgb(255 255 255 / 9%);
  --line-strong: rgb(255 255 255 / 18%);
  --violet: #6214d9;
  --violet-hi: #7a2ff0;
  --blue: #4590db;
  --accent: #4590db;
  --accent-ink: #ffffff;
  --accent-soft: rgb(69 144 219 / 12%);
  --focus: #4590db;
  --good: #3ecf8e;
  --bad: #ff6b5b;
  --shadow: 0 0 0 1px var(--line);
  --radius: 16px;
  --radius-lg: 24px;
  --font-display: 'Satoshi', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'EB Garamond', Garamond, Georgia, serif;
  --maxw: 1120px;
  --gutter: 16px;
  color-scheme: dark;
}
@media (min-width: 720px) { :root { --gutter: 28px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.65 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.1; letter-spacing: -0.04em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); letter-spacing: -0.05em; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -0.045em; }
h3 { font-size: 1.35rem; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-3); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.tagline { font: italic 500 clamp(1.6rem, 3.6vw, 3.1rem)/1.15 var(--font-serif); color: var(--blue); margin: 0; }
.eyebrow { font: italic 500 1.35rem/1.2 var(--font-serif); color: var(--blue); margin-bottom: 12px; display: block; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.5; color: var(--ink-3); max-width: 38em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px;
  border-radius: 10px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink);
  font: 500 .98rem/1.25 var(--font-body); text-decoration: none; cursor: pointer; text-align: center; transition: background .15s, border-color .15s;
}
.btn:hover { border-color: rgb(255 255 255 / 35%); background: rgb(255 255 255 / 4%); }
.btn-primary { background: var(--violet); border-color: var(--violet); color: #fff; }
.btn-primary:hover { background: var(--violet-hi); border-color: var(--violet-hi); }
.btn-blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-blue:hover { background: #5aa0e6; border-color: #5aa0e6; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header: the songwheel.ai nav, measured from the live page (2026-10-20):
   content-sized pill, rgba(13,13,13,.5) + 10px blur, 1px rgba(255,255,255,.1)
   ring, 12px 24px padding, 16px gaps; Satoshi 500 14px links (8px 14px, 8px
   radius); 32px buttons with 9px radius in violet and blue. */
.site-header { position: sticky; top: 0; z-index: 20; display: flex; justify-content: center; padding: 24px var(--gutter) 0; pointer-events: none; }
.site-header .wrap {
  position: relative; pointer-events: auto; display: inline-flex; align-items: center; gap: 16px; max-width: none; width: auto; margin: 0;
  padding: 12px 24px; border-radius: 999px; background: rgb(13 13 13 / 50%);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.site-header .wrap::before { content: ''; position: absolute; inset: 0; border: 1px solid rgb(255 255 255 / 10%); border-radius: 999px; pointer-events: none; }
.brand { display: flex; align-items: center; gap: 6px; text-decoration: none; white-space: nowrap; }
.brand-logo { height: 30px; width: auto; flex: none; }
.nav { display: flex; align-items: center; gap: 16px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav a { color: #fbfafc; text-decoration: none; font: 500 14px/16.8px 'Satoshi', var(--font-body); letter-spacing: -0.28px; white-space: nowrap; }
.nav-links a { padding: 8px 14px; border-radius: 8px; transition: background-color .15s; }
.nav-links a:hover, .nav-links a[aria-current='page'] { background: rgb(255 255 255 / 6%); }
.nav-buttons { display: flex; align-items: center; gap: 16px; }
.nav .btn { min-height: 32px; height: 32px; padding: 0 14px; border-radius: 9px; border: 0; color: #fff; letter-spacing: normal; white-space: nowrap; }
.nav .btn-primary { background: #6214d9; }
.nav .btn-blue { background: #4590db; }
.nav .btn-primary:hover { background: #7426e8; }
.nav .btn-blue:hover { background: #579ee3; }
.icon-btn { width: 36px; height: 36px; border-radius: 999px; border: 1px solid rgb(255 255 255 / 10%); background: transparent; color: #fbfafc; display: inline-grid; place-items: center; cursor: pointer; flex: none; }
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .site-header .wrap { display: flex; width: 100%; justify-content: space-between; padding: 10px 12px 10px 20px; }
  .menu-btn { display: inline-grid; }
  .nav { display: none; position: absolute; top: calc(100% + 10px); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 10px; padding: 12px; background: rgb(13 13 13 / 92%); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgb(255 255 255 / 10%); border-radius: 24px; }
  .nav.open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; }
  .nav-links a { padding: 13px 14px; font-size: 16px; }
  .nav-buttons .btn { flex: 1; height: 44px; }
}

/* Hero: centered, like the brand */
.hero { padding: clamp(56px, 9vw, 110px) 0 24px; text-align: center; }
.hero .wrap { display: grid; justify-items: center; }
.hero h1 { max-width: 13em; margin-bottom: 18px; }
.hero .lead { margin: 0 auto 30px; }
.hero .btn-row { justify-content: center; }
.hero .tagline { margin-top: 18px; }
.hero-proof { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-top: 26px; color: var(--ink-3); font-size: .92rem; }
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof span::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }

/* Cover wheel (animated, display only). Printed colors in both themes, like the book. */
.wheel-stage { display: grid; gap: 14px; justify-items: center; margin: clamp(40px, 6vw, 72px) 0 0; }
.wheel-box { width: min(100%, 560px); aspect-ratio: 1; }
.wheel-caption { max-width: 34em; text-align: center; color: var(--ink-3); font-size: .95rem; margin: 0; }
.cw { width: 100%; height: 100%; display: block; filter: drop-shadow(0 0 28px rgb(150 130 255 / 28%)) drop-shadow(0 0 70px rgb(90 160 255 / 16%)); }
.cw-rim { fill: none; }
.cw-cell { stroke: #0a0a0a; stroke-width: 3; }
.cw-name { font-family: 'Jost', 'Futura', 'Century Gothic', var(--font-body); font-weight: 500; fill: #111; text-anchor: middle; }
.cw-acc { font-weight: 600; }
.cw-hub { fill: #fff; stroke: #d9dce1; stroke-width: 2; }
.cw-hub-ring { fill: none; stroke: #e3e5e9; stroke-width: 2; }
.cw-sig { font: 600 19px var(--font-body); fill: #2a2a2a; text-anchor: middle; }
.cw-rivet { fill: #d7dade; stroke: #b9bdc3; stroke-width: 2; }
.cw-rivet-hole { fill: #5c6066; }
.cw-film { fill: rgb(255 255 255 / 0%); }
.cw-outline { fill: none; stroke: #111; stroke-width: 9; stroke-linejoin: round; }
.cw-second { fill: none; stroke: #8f949b; stroke-width: 8; stroke-linejoin: round; }
.cw-div { stroke: #111; stroke-opacity: .55; stroke-width: 2; }
.cw-roman { font: 600 18px Georgia, 'Times New Roman', serif; fill: #111; text-anchor: middle; }
.cw-chordword { font-family: var(--font-body); font-weight: 700; letter-spacing: .06em; }
.cw-prompt { font: 600 11.5px var(--font-body); fill: #111; text-anchor: middle; opacity: .78; }
.cw-keybox, .cw-arrow { fill: #111; }
.cw-keyword { font: 800 20px var(--font-body); fill: #fff; text-anchor: middle; letter-spacing: .16em; }
.cw-sigwin { fill: none; stroke: #111; stroke-width: 3; }
.cw-sigword { font: 800 11px var(--font-body); fill: #111; text-anchor: middle; letter-spacing: .12em; }

/* Sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.section-head .lead { margin-inline: auto; }
.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card p { color: var(--ink-2); }
.card .more { margin-top: auto; font-weight: 600; text-decoration: none; }
.card .more::after { content: ' →'; }
.card-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; }
.card-icon svg { width: 24px; height: 24px; }

/* Testimonials */
.quotes { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.quote { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow); }
.quote blockquote { margin: 0; font: 400 1.08rem/1.6 var(--font-body); color: var(--ink-2); }
.quote blockquote::before { content: '“'; display: block; font-size: 3.2rem; line-height: .6; color: var(--blue); margin-bottom: 8px; font-family: var(--font-serif); }
.quote figcaption { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.quote figcaption img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; }
.quote figcaption strong { display: block; }
.quote figcaption span { color: var(--ink-3); font-size: .9rem; line-height: 1.35; display: block; }
.quote .creds { margin: 0; padding: 0 0 0 18px; color: var(--ink-2); font-size: .92rem; }

/* Feature (Metheny) */
.feature { display: grid; gap: 28px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 44px); box-shadow: var(--shadow); }
@media (min-width: 820px) { .feature { grid-template-columns: 300px 1fr; } }
.feature img { border-radius: var(--radius); width: 100%; }

/* Buy */
.buy { display: grid; gap: 22px; }
@media (min-width: 900px) { .buy { grid-template-columns: 1.2fr 1fr; } }
.buy-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); display: grid; gap: 22px; align-items: center; }
@media (min-width: 560px) { .buy-book { grid-template-columns: 200px 1fr; } }
.buy-book img { width: 100%; max-width: 220px; margin: 0 auto; filter: drop-shadow(0 18px 24px rgb(0 0 0 / 22%)); }
.price { font: 600 2.4rem/1 var(--font-display); margin: 4px 0 10px; }
.price small { font: 500 .95rem var(--font-body); color: var(--ink-3); margin-left: 6px; }
.ticks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; color: var(--ink-2); }
.ticks li { display: flex; gap: 10px; }
.ticks li::before { content: '✓'; color: var(--good); font-weight: 700; }
.buy-app img { border-radius: var(--radius); }

/* Article pages */
.page-head { padding: clamp(40px, 6vw, 80px) 0 28px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.page-head .lead { margin: 0; }
.article-layout { display: grid; gap: 40px; padding-block: 48px 80px; }
@media (min-width: 980px) { .article-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 64px; } }
.toc { font-size: .93rem; }
@media (min-width: 980px) { .toc { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; } }
.toc h2 { font: 700 .76rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; border-left: 2px solid transparent; }
.toc a:hover { background: var(--bg-2); color: var(--ink); }
.toc a.active { color: var(--accent); border-left-color: var(--accent); background: var(--accent-soft); }
@media (max-width: 979px) { .toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--surface); } .toc ol { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); } }
.prose { max-width: 720px; }
.prose section { padding-bottom: 28px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.prose section:last-child { border-bottom: 0; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose figure { margin: 26px 0; }
.prose figure img { border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.prose figcaption { font-size: .9rem; color: var(--ink-3); margin-top: 10px; }
.callout { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 16px 20px; border-radius: 0 12px 12px 0; margin: 22px 0; color: var(--ink); }
.callout p:last-child { margin: 0; }
.table-wrap { overflow-x: auto; margin: 20px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { padding: 10px 12px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
thead th { background: var(--bg-2); font-weight: 700; color: var(--ink-2); font-size: .82rem; letter-spacing: .04em; }
tbody th { text-align: left; font-family: var(--font-display); font-weight: 600; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
.chart { font: 600 1.05rem/1.9 var(--font-body); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; display: grid; gap: 4px; }
.chart b { font: 700 .76rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-top: 8px; }
.chart .bars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.chart .bars span { border-left: 2px solid var(--line-strong); padding-left: 10px; font-family: var(--font-display); }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }

/* Quiz */
.quiz { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; margin: 24px 0; box-shadow: var(--shadow); }
.quiz dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 12px 0 18px; }
.quiz dt { font-weight: 700; color: var(--ink); }
.quiz dd { margin: 0; color: var(--ink-2); }
.quiz .btn[aria-pressed='true'] { border-color: var(--accent); background: var(--accent-soft); }
.quiz-result { margin-top: 18px; padding: 16px; border-radius: 12px; }
.quiz-result.right { background: color-mix(in srgb, var(--good) 12%, transparent); }
.quiz-result.wrong { background: color-mix(in srgb, var(--bad) 12%, transparent); }
.quiz-verdict { font-weight: 700; margin-right: 6px; }

/* About */
.about-grid { display: grid; gap: 40px; padding-block: 48px 80px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; } }
.about-side { display: grid; gap: 18px; align-content: start; }
.about-side figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px; }
.about-side img { border-radius: 12px; width: 100%; }
.about-side figcaption { font-size: .9rem; color: var(--ink-3); padding: 10px 4px 2px; }
.pull { font: 400 italic clamp(1.4rem, 2.6vw, 1.9rem)/1.35 var(--font-display); color: var(--ink); margin: 0 0 28px; }

/* CTA band + footer */
.cta-band { background: var(--ink); color: var(--bg); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 56px); display: grid; gap: 20px; align-items: center; }
@media (min-width: 820px) { .cta-band { grid-template-columns: 1fr auto; } }
.cta-band h2 { color: var(--bg); margin: 0 0 6px; }
.cta-band p { color: color-mix(in srgb, var(--bg) 75%, transparent); margin: 0; }
.cta-band .btn { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.cta-band .btn-ghost { background: transparent; color: var(--bg); border-color: color-mix(in srgb, var(--bg) 40%, transparent); }
.site-footer { padding: 120px 0 28px; }
.footer-row { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; padding-bottom: 6px; }
.footer-nav a { color: #fbfafc; text-decoration: none; font: 500 14px/21px 'Satoshi', var(--font-body); letter-spacing: -0.28px; opacity: .78; }
.footer-nav a:hover { opacity: 1; }
.footer-copy { margin: 0; padding-bottom: 8px; font: 500 12px/1.4 'Satoshi', var(--font-body); color: #999; text-align: center; }
.footer-logo { justify-self: end; }
.footer-logo img { width: 160px; height: auto; display: block; }
@media (max-width: 760px) {
  .footer-row { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 18px; }
  .footer-nav { justify-content: center; }
  .footer-logo { justify-self: center; order: -1; }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
h1 .acc, h2 .acc, h3 .acc { font-family: var(--font-body); font-size: .78em; font-weight: 600; vertical-align: .28em; margin-left: .02em; }

/* Home application cards are links; testimonial résumé label. */
.card-link { color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.card-link:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--line-strong); }
.card-link h3 { color: var(--ink); }
.creds-label { margin: 0; font-size: .82rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }

/* Grid columns may shrink below their content, so wide tables scroll inside .table-wrap. */
.article-layout > *, .about-grid > * { min-width: 0; }
