/* MagicTabs website pages (everything but the player itself). Dressed like the app: warm charcoal covering, cream
   lettering, a thin gold line where panels meet, an amber pilot light for what matters, and the strings' colours. */

@font-face { font-family: 'Barlow Condensed'; font-weight: 600; src: url(/fonts/barlow-condensed-latin-600-normal.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; src: url(/fonts/barlow-condensed-latin-700-normal.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Barlow Semi Condensed'; font-weight: 400; src: url(/fonts/barlow-semi-condensed-latin-400-normal.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Barlow Semi Condensed'; font-weight: 500; src: url(/fonts/barlow-semi-condensed-latin-500-normal.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Barlow Semi Condensed'; font-weight: 600; src: url(/fonts/barlow-semi-condensed-latin-600-normal.woff2) format('woff2'); font-display: swap; }

:root {
  --bg: #0e1219; --chrome: #201d1a; --key: #2b2723; --keyhi: #36312b; --edge: #4a433b; --hair: #3e3832;
  --piping: #8c7a56; --text: #ece3cf; --dim: #a89f8c; --accent: #ffb021;
  --s1: #c77dff; --s2: #4da3ff; --s3: #3ddc84; --s4: #ffd60a; --s5: #ff9f1c; --s6: #ff4d4d;   /* high e to low E */
  --ui: 'Barlow Semi Condensed', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --disp: 'Barlow Condensed', 'Barlow Semi Condensed', system-ui, sans-serif;
  --col: 760px;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); font: 18px/1.55 var(--ui); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: radial-gradient(ellipse 90% 60% at 50% -10%, #241f1b 0%, var(--bg) 70%) no-repeat; }
main { flex: 1; width: 100%; max-width: calc(var(--col) + 48px); margin: 0 auto; padding: 40px 24px 64px; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #ffc75a; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
img, svg, video { max-width: 100%; }
img, video { height: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--chrome); padding: 8px 12px; }

/* ---------------------------------------------------------------- top bar */
.top { position: sticky; top: 0; z-index: 5; background: var(--chrome); border-bottom: 1px solid var(--piping); }
.top .in { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 8px 28px; padding: 10px 24px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 26px/1 var(--disp); letter-spacing: 0.3px; }
.brand img { width: 34px; height: 34px; }
.brand:hover { color: var(--text); }
.top nav { display: flex; gap: 22px; flex: 1; }
.top nav a { color: var(--dim); text-decoration: none; font-weight: 500; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--text); }
.top nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 8px; border: 0;
  background: var(--key); color: var(--text); font: 600 18px/1.1 var(--ui); text-decoration: none; cursor: pointer;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.45); }
.btn:hover { background: var(--keyhi); color: var(--text); }
.btn.primary { background: var(--accent); color: #1b1408; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25); }
.btn.primary:hover { background: #ffc24d; color: #1b1408; }
.btn.small { padding: 7px 13px; font-size: 16px; }
.btn img, .btn svg { width: 22px; height: 22px; flex: none; }
.btn.soon, .btn.primary.soon { background: var(--key); color: var(--dim); cursor: default; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.45); }
.btn.soon:hover { background: var(--key); color: var(--dim); }
.btn.soon::after { content: 'coming soon'; font: 500 13px/1 var(--ui); color: var(--dim); text-transform: uppercase; letter-spacing: 0.6px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0; }

/* ---------------------------------------------------------------- type */
h1, h2, h3 { font-family: var(--disp); line-height: 1.05; margin: 0; }
h1 { font-weight: 700; font-size: clamp(40px, 6vw, 58px); letter-spacing: 0.2px; }
h2 { font-weight: 600; font-size: 32px; margin-top: 48px; }
h3 { font-weight: 600; font-size: 24px; margin-top: 28px; }
p { margin: 14px 0; }
.lead { font-size: 22px; color: var(--dim); margin-top: 18px; }
.dim { color: var(--dim); }
.small { font-size: 15px; }
ul, ol { padding-left: 1.3em; }
li { margin: 6px 0; }
li::marker { color: var(--piping); }
code, kbd { font: 15px/1 ui-monospace, 'Cascadia Mono', Consolas, monospace; background: var(--key); border: 1px solid var(--hair);
  border-radius: 5px; padding: 2px 6px; }
hr { border: 0; border-top: 1px solid var(--hair); margin: 40px 0; }

/* the six strings, as a rule between parts of a page */
.strings { height: 30px; margin: 36px 0; background:
  linear-gradient(var(--s1), var(--s1)) 0 2px / 100% 1px no-repeat,
  linear-gradient(var(--s2), var(--s2)) 0 7px / 100% 1.3px no-repeat,
  linear-gradient(var(--s3), var(--s3)) 0 12px / 100% 1.6px no-repeat,
  linear-gradient(var(--s4), var(--s4)) 0 17px / 100% 1.9px no-repeat,
  linear-gradient(var(--s5), var(--s5)) 0 22px / 100% 2.2px no-repeat,
  linear-gradient(var(--s6), var(--s6)) 0 27px / 100% 2.5px no-repeat; opacity: 0.7; }

/* ---------------------------------------------------------------- panels, cards, tables */
.panel { background: var(--chrome); border: 1px solid var(--hair); border-radius: 12px; padding: 20px 24px; margin: 22px 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03); }
.panel.gold { border-color: var(--piping); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 24px 0; }
.card { background: var(--chrome); border: 1px solid var(--hair); border-top: 3px solid var(--c, var(--piping)); border-radius: 10px; padding: 16px 18px; }
.card h3 { margin: 0 0 6px; font-size: 22px; }
.card p { margin: 0; color: var(--dim); font-size: 16px; }
table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 16px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--hair); }
th { font: 600 15px/1.2 var(--ui); color: var(--dim); text-transform: uppercase; letter-spacing: 0.5px; }
/* the Features page: its screenshots (a narrow one, a window cropped from the app, shown at its own size or less) and
   the list of its sections */
.shot { margin: 18px 0 34px; }
.shot img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--piping); background: #000; }
.shot.narrow img { width: auto; max-width: 100%; }
.shot figcaption { margin-top: 8px; color: var(--dim); font-size: 15px; }
.toc { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 22px 0 10px; font-size: 16px; }
.toc a { color: var(--dim); text-decoration: none; border-bottom: 1px solid var(--hair); }
.toc a:hover { color: var(--text); border-color: var(--accent); }
/* the tab pages (/tabs/, made by tools/tab_pages/make.py): the way back to the list, the facts, the list of songs, and
   the other songs at the end */
.crumbs { margin: 0 0 4px; font-size: 15px; }
.crumbs a { color: var(--dim); }
table.facts th { width: 32%; }
.tablist { list-style: none; padding: 0; margin: 22px 0; }
.tablist li { padding: 12px 0; border-bottom: 1px solid var(--hair); color: var(--dim); font-size: 16px; }
.tablist li a { font: 600 21px/1.3 var(--disp); }
.tablist .by { margin-left: 6px; font-size: 15px; }
.more { color: var(--dim); font-size: 16px; }
.note { border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; color: var(--dim); }

/* the chord pages (/chords/, made by tools/chord_pages/write_pages.py) and the capo chart: chord diagrams drawn as
   inline SVG, each string in its MagicTabs colour (low E red to high e purple), the fingers in dots and a barre as a bar */
.cd { display: block; width: 186px; height: auto; }
.cd.sm { width: 128px; }
.cd .fr { stroke: var(--edge); stroke-width: 1.5; }
.cd .nut { stroke: var(--text); stroke-width: 5; stroke-linecap: round; }
.cd .st { stroke-width: 2; }
.cd .s1 { stroke: var(--s1); } .cd .s2 { stroke: var(--s2); } .cd .s3 { stroke: var(--s3); }
.cd .s4 { stroke: var(--s4); } .cd .s5 { stroke: var(--s5); } .cd .s6 { stroke: var(--s6); }
.cd .dot { stroke: #0b0d12; stroke-width: 1.5; }
.cd .dot.s1 { fill: var(--s1); } .cd .dot.s2 { fill: var(--s2); } .cd .dot.s3 { fill: var(--s3); }
.cd .dot.s4 { fill: var(--s4); } .cd .dot.s5 { fill: var(--s5); } .cd .dot.s6 { fill: var(--s6); }
.cd .bar { fill: var(--text); stroke: #0b0d12; stroke-width: 1.5; }
.cd .fg { fill: #14110d; font: 700 13px var(--ui); text-anchor: middle; dominant-baseline: central; }
.cd.sm .fg { font-size: 10px; }
.cd .mk { fill: none; stroke: var(--dim); stroke-width: 1.8; stroke-linecap: round; }
.cd .lab { fill: var(--dim); font: 600 12px var(--ui); text-anchor: end; dominant-baseline: central; }
.cd .nt { fill: var(--dim); font: 600 13px var(--ui); text-anchor: middle; }
.chordmain { display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: flex-start; margin: 26px 0 8px; }
.chordmain .facts, .chordmain .readlist { flex: 1 1 300px; margin: 0; }
.cdfig { margin: 0; padding: 14px 14px 10px; background: var(--chrome); border: 1px solid var(--hair); border-radius: 12px; }
.cdfig figcaption { margin-top: 6px; color: var(--dim); font-size: 15px; text-align: center; }
.readlist { padding-left: 20px; }
.readlist li { margin-bottom: 8px; }
.shapes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 22px 0; }
.shape { margin: 0; padding: 14px 16px; background: var(--chrome); border: 1px solid var(--hair); border-radius: 10px; }
.shape .cd { margin: 0 auto 8px; }
.shape figcaption { color: var(--dim); font-size: 15px; }
.shape figcaption b { color: var(--text); font: 600 19px/1.2 var(--disp); }
.chordgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 20px 0; }
.chordcard { display: flex; flex-direction: column; align-items: center; padding: 12px 10px 10px; background: var(--chrome);
  border: 1px solid var(--hair); border-radius: 10px; color: var(--text); text-decoration: none; }
.chordcard:hover { background: var(--key); border-color: var(--piping); color: var(--text); }
.chordcard b { font: 700 26px/1 var(--disp); margin-bottom: 4px; }
.chordcard span { color: var(--dim); font-size: 14px; font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; }
.tablewrap { overflow-x: auto; margin: 18px 0; }
.tablewrap table { margin: 0; }
table.capo td, table.capo th { text-align: center; white-space: nowrap; }
table.capo th:first-child { text-align: left; }
table.capochart th, table.capochart td { text-align: center; white-space: nowrap; padding: 8px 10px; }
table.capochart th { text-transform: none; letter-spacing: 0; font-size: 16px; }   /* (Am, not AM: Cm isn't CM) */
table.capochart th:first-child { text-align: left; }
table.capochart tr:nth-child(even) td { background: rgba(255, 255, 255, 0.025); }
table.keys td:first-child { white-space: nowrap; }
th.rn, th .rn { text-transform: none; }   /* (I ii iii IV V vi: their case is their meaning) */
.shape code, .cdfig code { white-space: nowrap; }

/* ---------------------------------------------------------------- the player embedded in a guide */
.play { margin: 22px 0; border: 1px solid var(--piping); border-radius: 12px; overflow: hidden; background: #000; }
.play .bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--chrome); }
.play .bar b { font: 600 18px/1.1 var(--disp); }
.play .bar .btn { margin-left: auto; }
.play pre, pre.tab { margin: 0; padding: 14px 16px; overflow-x: auto; background: #0b0d12; color: var(--text);
  font: 15px/1.35 ui-monospace, 'Cascadia Mono', Consolas, monospace; }
pre.tab { margin: 18px 0; border: 1px solid var(--hair); border-radius: 10px; }
.play .bar { flex-wrap: wrap; }
.play .bar .btn + .btn { margin-left: 0; }

/* a card that is a link */
a.cardlink { display: block; color: inherit; text-decoration: none; }
a.cardlink:hover { background: var(--key); border-color: var(--piping); }
a.cardlink h3 { color: var(--text); }

/* ---------------------------------------------------------------- footer */
.foot { background: var(--chrome); border-top: 1px solid var(--piping); }
.foot .in { max-width: 1100px; margin: 0 auto; padding: 26px 24px 30px; display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: flex-start; }
.foot .blurb { flex: 1 1 280px; color: var(--dim); font-size: 16px; margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 16px; }
.foot nav a { color: var(--text); text-decoration: none; }
.foot nav a:hover { color: var(--accent); }
.foot .legal { flex-basis: 100%; margin: 0; color: var(--dim); font-size: 14px; }
.foot .legal a { color: var(--dim); }

/* ---------------------------------------------------------------- the phone page */
.phone main { max-width: 520px; padding-top: 28px; text-align: center; }
.phone .hero-img { width: 100%; border-radius: 14px; border: 1px solid var(--piping); display: block; margin: 22px 0 8px; }
.phone .btns { flex-direction: column; align-items: stretch; }
.phone .btns .btn { justify-content: center; font-size: 19px; padding: 14px 18px; }
.phone .copied { color: var(--s3); min-height: 1.5em; margin: 0; }

@media (max-width: 700px) {
  html { font-size: 17px; }
  .top .in { padding: 8px 16px; gap: 6px 18px; }
  .top nav { order: 3; flex-basis: 100%; gap: 18px; }
  .top .btn { margin-left: auto; }
  main { padding: 28px 18px 48px; }
  h2 { font-size: 28px; }
  .lead { font-size: 20px; }
  th, td { padding: 8px 6px; }
}

/* ---------------------------------------------------------------- the extension page's picture of the button */
.mock-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.mock-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--edge); color: var(--dim); font: 500 16px/1 var(--ui); background: #17151a; }
.mock-btn.ours { color: var(--text); border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 176, 33, 0.15); }
.mock-btn img { width: 20px; height: 20px; }

/* the phone page keeps only the name at the top */
.phone .top nav, .phone .top .btn { display: none; }

/* ---------------------------------------------------------------- theory pages (2 Dec 2026): fretboard diagrams
   (tools/theory_pages/music.py) seen as in tab and MagicTabs, the high e on top, each string in its color; a root
   is cream ringed in amber; and the circle of fifths */
.fbfig { margin: 22px 0; }
.fbwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.fb { display: block; width: 100%; min-width: 540px; height: auto; }
.fb.short { min-width: 280px; max-width: 360px; }
.fbfig figcaption { margin-top: 6px; color: var(--dim); font-size: 15px; }
.fbfig .swipe { display: none; color: var(--piping); }
@media (max-width: 575px) { .fbfig .swipe { display: inline; } }   /* where .fb's 540px min-width scrolls (18px margins) */
.fb .board { fill: #15120f; }
.fb .fr { stroke: #5c5348; stroke-width: 2; }
.fb .nut { stroke: var(--text); stroke-width: 6; stroke-linecap: round; }
.fb .inl { fill: #3a342d; }
.fb .st { opacity: 0.9; }
.fb .s1 { stroke: var(--s1); } .fb .s2 { stroke: var(--s2); } .fb .s3 { stroke: var(--s3); }
.fb .s4 { stroke: var(--s4); } .fb .s5 { stroke: var(--s5); } .fb .s6 { stroke: var(--s6); }
.fb .sn { font: 700 14px var(--ui); dominant-baseline: central; stroke: none; }
.fb .sn.s1 { fill: var(--s1); } .fb .sn.s2 { fill: var(--s2); } .fb .sn.s3 { fill: var(--s3); }
.fb .sn.s4 { fill: var(--s4); } .fb .sn.s5 { fill: var(--s5); } .fb .sn.s6 { fill: var(--s6); }
.fb .dot { stroke: #0b0d12; stroke-width: 1.5; }
.fb .dot.s1 { fill: var(--s1); } .fb .dot.s2 { fill: var(--s2); } .fb .dot.s3 { fill: var(--s3); }
.fb .dot.s4 { fill: var(--s4); } .fb .dot.s5 { fill: var(--s5); } .fb .dot.s6 { fill: var(--s6); }
.fb .dot.root { fill: var(--text); stroke: var(--accent); stroke-width: 3; }
.fb .dot.ghost { opacity: 0.3; }
.fb .dot.hi { stroke: var(--text); stroke-width: 3; }
.fb .lbl { fill: #14110d; font: 700 12px var(--ui); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.fb .lbl.sm { font-size: 10px; }
.fb .fn { fill: #6f665a; font: 600 12px var(--ui); text-anchor: middle; }
.fb .fn.mk { fill: var(--dim); }
.fb .box { fill: rgba(255, 176, 33, 0.05); stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 6 4; }
.fb .bxn { fill: var(--accent); font: 700 13px var(--ui); text-anchor: middle; }
.cof { display: block; width: 100%; max-width: 430px; height: auto; margin: 18px auto; }
.cof .wmaj { fill: #2b2723; stroke: var(--bg); stroke-width: 2; }
.cof .wmin { fill: #201d1a; stroke: var(--bg); stroke-width: 2; }
.cof .wmaj.lit { fill: #4a3a1c; } .cof .wmin.lit { fill: #3b2f18; }
.cof .kmaj { fill: var(--text); font: 700 21px var(--disp); text-anchor: middle; dominant-baseline: central; }
.cof .kmin { fill: var(--dim); font: 600 15px var(--ui); text-anchor: middle; dominant-baseline: central; }
.cof .kmaj.sm { font-size: 15px; } .cof .kmin.sm { font-size: 11px; }
.cof .ksig { fill: var(--piping); font: 600 12px var(--ui); text-anchor: middle; dominant-baseline: central; }
.cof .hub { fill: var(--text); font: 700 15px var(--ui); text-anchor: middle; }
.cof .hub.dim { fill: var(--dim); font-weight: 500; font-size: 12px; }
.shapes.wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.shapes.wide .fb.short { min-width: 0; max-width: 300px; margin: 0 auto 6px; }   /* fit the card, never past it */
.fb .span { fill: none; stroke: var(--accent); stroke-width: 2; }
.fb .spn { fill: var(--accent); font: 700 12px var(--ui); text-anchor: middle; }
