@font-face{font-family:'Atkinson Hyperlegible Next';src:url('./atkinson-hyperlegible-next-latin-wght-normal-BcXVPD7q.woff2') format('woff2');font-weight:200 800;font-style:normal;font-display:swap;}
:root {
  font-family: 'Atkinson Hyperlegible Next', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(16px, 0.35vw + 11.5px, 19px);
  color: #17201e;
  background: #f2ede3;
  line-height: 1.55;
  --green: #0f766e;
  --muted: #505b57;
  --border: #cfc7b6;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: #0b5d57; text-underline-offset: 3px; }
a:focus-visible { outline: 2.5px solid var(--green); outline-offset: 2px; }

/* Studio Header matching Workspace */
.site-header { display: flex; align-items: center; gap: 18px; padding: 12px clamp(16px, 4vw, 40px); background: #17201e; color: #f3efe6; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.35rem; letter-spacing: -.025em; text-decoration: none; color: #f3efe6; margin-right: auto; }
.brand b { color: #ff6648; font-weight: 800; }
.brand-icon { fill: none; stroke: #f3efe6; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.brand-icon .brand-pulse { stroke: #ff6648; stroke-width: 2.8; }
.site-header nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.site-header nav a { color: #ece7dc; text-decoration: none; font-weight: 750; }
.site-header nav a:hover { color: #fff; text-decoration: underline; }

.cta { display: inline-flex; align-items: center; justify-content: center; background: #d9462b; border: 1.5px solid #17201e; color: #fff !important; padding: .55rem 1.05rem; border-radius: 7px; text-decoration: none !important; font-weight: 750; box-shadow: 0 2px 0 #17201e26; }
.cta:hover { background: #c2391f; }
.cta.secondary { background: #fbf9f4; color: #17201e !important; border-color: #17201e; }
.cta.secondary:hover { background: #fff; }

main { max-width: 68rem; margin: 0 auto; padding: 24px clamp(16px, 4vw, 40px) 52px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 8px; font-size: 1rem; color: var(--muted); }
.breadcrumb li + li::before { content: '›'; margin-right: 6px; }
h1 { font-size: clamp(1.9rem, 3.6vw, 2.55rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.15; margin: 4px 0 16px; }
h2 { font-size: 1.45rem; font-weight: 800; letter-spacing: -.015em; margin: 34px 0 12px; scroll-margin-top: 76px; }
h3 { font-size: 1.2rem; font-weight: 800; margin: 24px 0 8px; }
.answer { font-size: 1.1rem; background: #fbf9f4; border: 1.5px solid #a79e8c; border-left: 6px solid var(--green); border-radius: 8px; padding: 14px 18px; margin: 0; }

/* Chord Guide Hero */
.chord-hero { display: grid; grid-template-columns: 12.5rem minmax(0, 1fr); gap: 22px; align-items: start; margin: 12px 0 24px; }
.hero-card { margin: 0; background: #fbf9f4; border: 2px solid #17201e; border-radius: 10px; padding: 14px 14px 12px; text-align: center; box-shadow: 0 3px 0 #17201e1c; }
.hero-card figcaption { margin-top: 8px; font-size: 1rem; font-weight: 800; color: var(--muted); white-space: nowrap; }
.hero-export-row { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.export-mini-btn { min-height: 1.85rem; padding: .15rem .55rem; font-size: .9rem; }
.hero-copy { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 1rem; color: var(--muted); }
.hero-meta strong { color: #17201e; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.diff-pill { display: inline-block; font-style: normal; font-size: .95rem; font-weight: 800; padding: 2px 10px; border-radius: 999px; background: #daebe6; color: #0b5d57; border: 1px solid #0f766e40; }
.diff-pill.diff-moderate { background: #f9ecc6; color: #6e4e05; border-color: #e5a41055; }
.diff-pill.diff-challenging { background: #fadfd8; color: #962b16; border-color: #e0482d45; }

/* Root Jump Bar */
.jump-bar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px; margin: 16px 0 8px; background: #e5ded0f2; backdrop-filter: blur(6px); border: 1.5px solid #17201e; border-radius: 8px; }
.jump-bar a { flex: 1 0 2.6rem; text-align: center; padding: 6px 8px; background: #fbf9f4; border: 1.5px solid #17201e; border-radius: 6px; text-decoration: none; font-weight: 800; color: #17201e; box-shadow: 0 2px 0 #17201e20; }
.jump-bar a:hover { background: #17201e; color: #f3efe6; }

/* Visual Chord Card Grids */
.diagrams { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 12px; margin: 12px 0; padding: 0; list-style: none; }
.diagrams figure { margin: 0; height: 100%; background: #fbf9f4; border: 1.5px solid #b5ac9a; border-radius: 8px; padding: 10px 10px 12px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.diagram-card-link { display: block; height: 100%; text-decoration: none; color: inherit; }
.diagram-card-link:hover figure { border-color: #17201e; background: #fff; box-shadow: 0 3px 0 #17201e20; }
.diagrams figcaption { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: .95rem; line-height: 1.35; margin-top: 4px; color: var(--muted); }
.diagrams figcaption strong { font-size: 1.3rem; font-weight: 800; color: #17201e; }

/* Pill Rows */
.pill-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 4px; }
.pill-label { font-weight: 750; color: var(--muted); margin-right: 4px; }
.chord-pill { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px; background: #fbf9f4; border: 1.5px solid #b5ac9a; border-radius: 7px; text-decoration: none; color: #17201e; font-size: 1rem; }
.chord-pill:hover { border-color: #17201e; background: #fff; box-shadow: 0 2px 0 #17201e1c; }
.chord-pill span { color: var(--muted); font-size: .95rem; }

/* Tables */
table { border-collapse: collapse; width: 100%; background: #fbf9f4; border: 1.5px solid #a79e8c; border-radius: 8px; overflow: hidden; font-size: 1rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { background: #e5ded0; font-weight: 800; }
.table-wrap { overflow-x: auto; }

/* Solid Rounded Barre & Finger Dots */
.diagram { width: 100%; max-width: 8.6rem; line-height: 0; }
.hero-card .diagram { max-width: 100%; }
.diagram svg { width: 100%; height: auto; overflow: visible; }
.diagram .fret { stroke: #b4ab99; stroke-width: 1.5; }
.diagram .string { stroke: #28312e; stroke-width: 1.65; }
.diagram .nut { stroke: #17201e; stroke-width: 5.5; stroke-linecap: butt; }
.diagram .open-dot { fill: none; stroke: #17201e; stroke-width: 2.1; }
.diagram .finger { fill: #17201e; stroke: #fbf9f4; stroke-width: 1.8; }
.diagram .finger-1 { fill: #0f766e; }
.diagram .finger-2 { fill: #e0482d; }
.diagram .finger-3 { fill: #e5a410; }
.diagram .finger-4 { fill: #6d4fc2; }
.diagram .finger-barre-outline { stroke: #fbf9f4; stroke-width: 22.5; stroke-linecap: round; }
.diagram .finger-barre { stroke: #0f766e; stroke-width: 19; stroke-linecap: round; }
.diagram .finger-num { font-size: 13.5px; font-weight: 800; fill: #fff; text-anchor: middle; }
.diagram .finger-num-3 { fill: #17201e; }
.diagram text { text-anchor: middle; fill: #17201e; font-size: 15px; font-weight: 800; font-family: inherit; }
.diagram .open-label { font-size: 18px; }

.link-list { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 0; list-style: none; font-size: 1rem; }
.faq { display: grid; gap: 12px; margin: 14px 0 22px; }
.faq > div { background: #fbf9f4; border: 1.5px solid #bfb6a4; border-radius: 8px; padding: 14px 16px; }
.faq dt { font-weight: 800; font-size: 1.08rem; margin-bottom: 6px; color: #17201e; }
.faq dd { margin: 0; color: #2b3633; line-height: 1.6; }
.note { color: var(--muted); font-size: 1rem; }
footer { max-width: 68rem; margin: 0 auto; padding: 22px clamp(16px, 4vw, 40px) 42px; color: var(--muted); font-size: 1rem; border-top: 1px solid var(--border); }

button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .35; }
button:focus-visible { outline: 2.5px solid var(--green); outline-offset: 2px; }

.guide-pad { border: 1.5px solid #17201e; background: #fbf9f4; color: #17201e; border-radius: 6px; box-shadow: 0 2px 0 #17201e24; padding: .3rem .62rem; min-height: 2.2rem; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; font-size: 1rem; font-weight: 750; white-space: nowrap; transition: background .1s, color .1s, transform .1s, box-shadow .1s; }
.guide-pad:hover:not(:disabled) { background: #fff; }
.guide-pad.is-on { background: #17201e; color: #f3efe6; box-shadow: none; transform: translateY(1px); }
.guide-pad.is-on:hover:not(:disabled) { background: #263330; color: #fff; }

/* Interactive 12-Fret Neck in Chord Hero */
.guide-neck { grid-column: 1 / -1; min-width: 0; max-width: 100%; background: #fbf9f4; border: 2px solid #17201e; border-radius: 10px; padding: 12px 14px 10px; box-shadow: 0 3px 0 #17201e1c; }
.guide-neck-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 8px; min-width: 0; }
.guide-neck-title { display: flex; align-items: baseline; gap: 8px; margin-right: 2px; min-width: 0; }
.guide-neck-title strong { font-size: 1.05rem; font-weight: 800; letter-spacing: -.015em; white-space: nowrap; }
.guide-neck-meta { font-size: .95rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.guide-neck-chips { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 6px; flex: 1 1 14rem; min-width: 0; padding-bottom: 2px; scrollbar-width: thin; }
.guide-neck-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-left: auto; min-width: 0; max-width: 100%; }
.guide-step-btn { min-width: 2.2rem; padding-inline: .5rem; font-size: 1.2rem; line-height: 1; }

.ukulele-neck-scroll { overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.ukulele-neck { min-width: 34rem; width: 100%; line-height: 0; position: relative; }
.ukulele-neck svg { width: 100%; height: auto; display: block; overflow: visible; }
.ukulele-neck .neck-board { fill: #eae2d2; stroke: #bfb5a2; stroke-width: 1.2; }
.ukulele-neck .neck-inlay { fill: #cfc6b3; }
.ukulele-neck .neck-fret { stroke: #afa693; stroke-width: 1.6; }
.ukulele-neck .neck-nut { stroke: #17201e; stroke-width: 6; stroke-linecap: round; }
.ukulele-neck .neck-string { stroke: #28312e; }
.ukulele-neck .open-dot { fill: none; stroke: #17201e; stroke-width: 2.1; }
.ukulele-neck text { text-anchor: middle; fill: #17201e; font-size: 15px; font-weight: 800; font-family: inherit; }
.ukulele-neck .open-label { font-size: 18px; }
.ukulele-neck .neck-fret-num { font-size: 12px; font-weight: 700; fill: #76807c; }
.ukulele-neck .neck-fret-num.is-marker { font-size: 13.5px; font-weight: 800; fill: #17201e; }
.ukulele-neck .finger { fill: #17201e; stroke: #fbf9f4; stroke-width: 1.8; }
.ukulele-neck .finger-1 { fill: #0f766e; }
.ukulele-neck .finger-2 { fill: #e0482d; }
.ukulele-neck .finger-3 { fill: #e5a410; }
.ukulele-neck .finger-4 { fill: #6d4fc2; }
.ukulele-neck .finger-barre-outline { stroke: #fbf9f4; stroke-width: 23.5; stroke-linecap: round; }
.ukulele-neck .finger-barre { stroke: #0f766e; stroke-width: 19.5; stroke-linecap: round; }
.ukulele-neck .finger-num { font-size: 13.5px; font-weight: 800; fill: #fff; pointer-events: none; }
.ukulele-neck .finger-num-3 { fill: #17201e; }
.ukulele-neck .neck-fretted-shift { transition: transform .14s ease; }
.ukulele-neck[data-notes="off"] .neck-note-group { display: none; }
.ukulele-neck[data-notes="on"] .neck-fretted-shift { transform: translateX(-11px); }
.ukulele-neck[data-handedness="left"][data-notes="on"] .neck-fretted-shift { transform: translateX(11px); }
:root[data-lefty="on"] .diagram svg, :root[data-lefty="on"] .ukulele-neck svg { transform: scaleX(-1); }
:root[data-lefty="on"] .diagram svg text, :root[data-lefty="on"] .ukulele-neck svg text { transform-box: fill-box; transform-origin: center; transform: scaleX(-1); }
.ukulele-neck .neck-note-pill { fill: #fbf9f4; stroke: #17201e; stroke-width: 1.4; }
.ukulele-neck .neck-note-text { font-size: 11px; font-weight: 800; fill: #17201e; }

.neck-hit-layer { position: absolute; left: 0; display: flex; flex-direction: column; }
.neck-hit-row { flex: 1; display: flex; width: 100%; }
.neck-hit-row button { height: 100%; border: 0; padding: 0; background: transparent; border-radius: 4px; }
.neck-hit-row button:hover { background: #0f766e22; }
.neck-hit-row button:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }

/* Standalone /ukulele/chord-namer/ Interactive Widget */
.chord-namer { margin: 16px 0 28px; background: #fbf9f4; border: 2px solid #17201e; border-radius: 10px; padding: 14px 16px 12px; box-shadow: 0 3px 0 #17201e1c; min-width: 0; max-width: 100%; }
.namer-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; margin-bottom: 12px; }
.namer-matches { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.namer-matches strong { font-size: 1.85rem; font-weight: 800; letter-spacing: -.025em; line-height: 1.05; }
.namer-alias { font-size: 1.05rem; font-weight: 750; color: #0b5d57; }
.namer-notes { font-size: 1rem; color: var(--muted); font-weight: 650; }
.namer-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fret-readout { font-size: 1rem; font-weight: 800; color: var(--muted); background: #eae2d2; border: 1px solid #a79e8c; border-radius: 6px; padding: 3px 10px; white-space: nowrap; }

/* Interactive SVG Circle of Fifths */
.circle-of-fifths { display: grid; grid-template-columns: minmax(16rem, 25rem) minmax(0, 1fr); gap: 22px; align-items: center; margin: 18px 0 28px; background: #fbf9f4; border: 2px solid #17201e; border-radius: 12px; padding: 18px 20px; box-shadow: 0 3px 0 #17201e1c; }
.cof-wheel svg { width: 100%; max-width: 24rem; height: auto; display: block; margin: 0 auto; }
.cof-slice { text-decoration: none; outline: none; }
.cof-slice path { fill: #eae2d2; stroke: #17201e; stroke-width: 1.5; transition: fill .12s, stroke-width .12s; }
.cof-slice.cof-easy path { fill: #daebe6; }
.cof-slice.cof-moderate path { fill: #f9ecc6; }
.cof-slice.cof-challenging path { fill: #fadfd8; }
.cof-slice:hover path, .cof-slice:focus-visible path { fill: #17201e; stroke-width: 2.2; }
.cof-slice text { text-anchor: middle; fill: #17201e; font-family: inherit; font-size: 15px; font-weight: 800; pointer-events: none; }
.cof-slice.cof-minor text { font-size: 13px; }
.cof-slice:hover text, .cof-slice:focus-visible text { fill: #f3efe6; }
.cof-hub { fill: #fbf9f4; stroke: #17201e; stroke-width: 2; }
.cof-hub-title { text-anchor: middle; fill: #17201e; font-size: 14px; font-weight: 800; }
.cof-preview { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cof-preview-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cof-preview-head strong { font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; }
.cof-row { margin: 0; font-size: 1rem; line-height: 1.5; color: var(--muted); }
.cof-row strong { color: #17201e; }

.diagram-strum-btn { min-height: 1.9rem; padding: .2rem .55rem; font-size: .92rem; margin-top: 3px; }
@media (max-width: 640px) {
  .site-header { gap: 8px 12px; padding: 10px 14px; }
  .site-header nav { gap: 8px 12px; }
  .site-header .cta { padding: .38rem .75rem; }
  main { padding-top: 14px; }
  h1 { font-size: 1.72rem; margin: 2px 0 10px; }
  .answer { font-size: 1.02rem; padding: 10px 14px; }
  .chord-hero, .circle-of-fifths { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 8px; }
  .hero-card { max-width: 10.6rem; padding: 8px 10px 8px; }
  .hero-copy { gap: 10px; }
  .guide-neck, .circle-of-fifths { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
@media print {
  .site-header nav, .jump-bar, .hero-actions, .guide-neck, .diagram-strum-btn, .hero-export-row { display: none !important; }
}
