/* The Sidewalk Songbook (thesidewalksongbook.net): sidebar hero, handlist + contrast sections. Generated, then safe to hand-edit. */
:root {
  /* Palette (light, analog) */
  --bg: #F7F3F2; --surface: #F0E6E3; --ink: #291711; --muted: #765951;
  --accent: #866710; --accent2: #5F3DCF; --on-accent: #FFFFFF; --line: #D2CBCA;
  --band: #F1EAD8; --band-ink: #2B1812; --paper: #FAF6F5; --paper-ink: #291914; --board: #261E1C;
  /* Type */
  --f-head: 'Alegreya', Georgia, serif;
  --f-body: 'Alegreya Sans', system-ui, sans-serif;
  --f-brand: 'Alegreya', var(--f-head);
  --f-label: 'Alegreya Sans', system-ui, sans-serif;
  --f-hand: 'Reenie Beanie', cursive;
  --f-mono: 'Courier Prime', ui-monospace, monospace;
  --head-weight: 600; --brand-weight: 800;
  --head-case: none; --head-track: -0.02em; --head-lh: 1.02;
  --em-style: normal;
  --brand-size: 1.3rem; --brand-track: 0; --brand-case: none;
  --word-size: clamp(2.4rem, 7.14vw, 5.54rem);
  /* Layout */
  --maxw: 1240px; --gutter: clamp(20px, 4vw, 48px); --radius: 26px;
  --focus: 47% 36%;
  --sec-bg: var(--bg); --m-muted: var(--muted); --m-line: var(--line); --m-card: var(--surface);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 var(--f-body); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--f-head); font-weight: var(--head-weight); text-transform: var(--head-case); letter-spacing: var(--head-track); line-height: var(--head-lh); text-wrap: balance; }
h3 { line-height: 1.2; }
h1 { margin-bottom: 26px; }
h1 em { font-style: var(--em-style); color: var(--accent); }
.wrap { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }
.kicker { font: 700 .78rem/1.4 var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.lede { font-size: clamp(1.12rem, 1.5vw, 1.28rem); line-height: 1.55; max-width: 44ch; margin-bottom: 14px; }
.sub { color: var(--muted); max-width: 50ch; }
.ph { object-fit: cover; object-position: var(--focus); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px 10px; }
.top .brand { border: 1.5px solid currentColor; border-radius: 999px; padding: 8px 16px 8px 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-brand); font-weight: var(--brand-weight); font-size: var(--brand-size); line-height: 1.1; letter-spacing: var(--brand-track); text-transform: var(--brand-case); }
.brand .mark { flex: none; }
.note { font: 600 .72rem/1.3 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-align: right; }
.top-overlay { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 24px; padding-inline: max(var(--gutter), calc((100% - var(--maxw)) / 2)); }
.top-overlay .note { color: inherit; opacity: .85; }
.top-light { color: #fff; }
@media (max-width: 640px) { .note { display: none; } .top { grid-template-columns: 1fr auto 1fr; } }

/* Hero */
.hero-side { display: grid; grid-template-columns: 1fr 1fr; min-height: clamp(580px, 82vh, 860px); }
.hero-side.side-right .side-media { order: 2; }
.side-media .ph { width: 100%; height: 100%; }
.side-panel { display: flex; align-items: center; }
.side-inner { padding: clamp(36px, 6vw, 96px) clamp(24px, 5vw, 80px); max-width: 640px; }
.tone-band .side-panel { background: var(--band); color: var(--band-ink); }
.tone-accent .side-panel { background: var(--accent); color: var(--on-accent); }
.tone-accent .side-panel .kicker, .tone-accent .side-panel h1 em { color: inherit; }
.tone-accent .side-panel .sub { color: inherit; opacity: .86; }
.tone-surface .side-panel { background: var(--surface); }
.hero-side h1 { font-size: clamp(2.6rem, 4.8vw, 5rem); }
@media (max-width: 860px) {
  .hero-side { grid-template-columns: 1fr; min-height: 0; }
  .hero-side.side-right .side-media { order: 0; }
  .side-media .ph { aspect-ratio: 4 / 3.4; height: auto; }
  .side-inner { padding: 36px 20px 48px; }
}

/* Sections */
.m { padding-block: clamp(56px, 8vw, 112px); }
.m-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.m-grid > .m-head { margin-bottom: 0; }
.m-head h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
.m-head p { margin-top: 14px; color: var(--m-muted); max-width: 56ch; }
.tone-plain { border-top: 1px solid var(--line); }
.tone-band { background: var(--band); color: var(--band-ink); --sec-bg: var(--band); --m-card: var(--bg);
  --m-muted: color-mix(in srgb, var(--band-ink) 74%, transparent); --m-line: color-mix(in srgb, var(--band-ink) 22%, transparent); }
.tone-surface { background: var(--surface); --sec-bg: var(--surface); --m-card: var(--bg); }
.tone-accent { background: var(--accent); color: var(--on-accent); --sec-bg: var(--accent);
  --m-muted: color-mix(in srgb, var(--on-accent) 80%, transparent); --m-line: color-mix(in srgb, var(--on-accent) 25%, transparent); }
/* Section: handlist */
.m-handlist .m-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hl-note { background-color: var(--paper); color: var(--paper-ink); padding: 26px 26px 30px 76px; transform: rotate(-1deg);
  background-image: linear-gradient(90deg, transparent 56px, rgba(214,90,90,.55) 56px 58px, transparent 58px),
                    repeating-linear-gradient(transparent 0 45px, rgba(80,120,190,.28) 45px 46px);
  background-position: 0 0, 0 22px; box-shadow: 0 24px 46px -28px rgba(0,0,0,.5); }
.hl-note ul { list-style: none; margin: 0; padding: 0; }
.hl-note li { display: flex; align-items: center; gap: 14px; font: 500 1.65rem/46px var(--f-hand); }
.hl-note .box { flex: none; width: 20px; height: 20px; border: 2px solid currentColor; border-radius: 3px; position: relative; }
.hl-note .box.done::after { content: ""; position: absolute; left: 5px; top: -5px; width: 8px; height: 16px; border: solid var(--accent); border-width: 0 3px 3px 0; transform: rotate(40deg); }
@media (max-width: 820px) { .m-handlist .m-grid { grid-template-columns: 1fr; } .hl-note { transform: none; padding-left: 70px; } .hl-note li { font-size: 1.4rem; } }
/* Section: contrast */
.cx { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cx-col { border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); }
.cx-no { border: 2px dashed var(--m-line); }
.cx-yes { background: var(--m-card); }
.cx h3 { font: 700 .8rem/1.3 var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--m-muted); margin-bottom: 16px; }
.cx ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cx li { display: grid; grid-template-columns: 1.6rem 1fr; font: var(--head-weight) 1.3rem/1.25 var(--f-head); }
.cx-no li { color: var(--m-muted); text-decoration: line-through; text-decoration-thickness: 2px; }
.cx-no li::before { content: "×"; color: var(--m-muted); text-decoration: none; }
.cx-yes li::before { content: "●"; color: var(--accent); font-size: .8em; padding-top: .15em; }
@media (max-width: 720px) { .cx { grid-template-columns: 1fr; } }

/* Footer */
.foot { background: var(--accent); color: var(--on-accent); --accent: var(--on-accent); }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; padding-block: 34px 40px; }
.foot .brand { --brand-size: 1.4rem; }
.foot-meta { display: grid; gap: 4px; text-align: right; font: 600 .74rem/1.4 var(--f-label); letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 640px) { .foot-meta { text-align: left; } }
