@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo-latin-wdth.woff2") format("woff2-variations"), url("/assets/fonts/archivo-latin-wdth.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("/assets/fonts/atkinson-next-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("/assets/fonts/atkinson-next-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("/assets/fonts/atkinson-next-700.woff2") format("woff2"); font-weight: 700 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Mono"; src: url("/assets/fonts/atkinson-mono-500.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
/* drlewicki.com
   Layout: a lyric sheet. Navy like the music videos; yellow for actions and timestamps;
   one color per subject (teal science, yellow math, purple ELA). Dark first, light for light-mode visitors. */
:root {
  --bg: #0b1426; --band: #0f1a31; --surface: #15213c; --surface-2: #1b2948; --line: #283a62;
  --fg: #eef1fa; --muted: #aab4cf; --faint: #7f8bab;
  --btn: #ffd23f; --on-btn: #1a1500; --stamp: #ffd23f; --now: #1f3157;
  --sci: #3fd6d0; --math: #ffd23f; --ela: #ab9bff; --link: #8fe7e3;
  --focus: #ffd23f;
  --f-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --f-body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", Verdana, system-ui, sans-serif;
  --f-mono: "Atkinson Hyperlegible Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 12px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f7fb; --band: #edf0f8; --surface: #ffffff; --surface-2: #f0f2f9; --line: #d4daea;
    --fg: #0f1a33; --muted: #4c5775; --faint: #6b7592;
    --btn: #ffd23f; --on-btn: #1a1500; --stamp: #7a5600; --now: #fff4c7;
    --sci: #0a7a75; --math: #8a6200; --ela: #5b3fd1; --link: #0a6a66;
    --focus: #5b3fd1; color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f6f7fb; --band: #edf0f8; --surface: #ffffff; --surface-2: #f0f2f9; --line: #d4daea;
  --fg: #0f1a33; --muted: #4c5775; --faint: #6b7592;
  --btn: #ffd23f; --on-btn: #1a1500; --stamp: #7a5600; --now: #fff4c7;
  --sci: #0a7a75; --math: #8a6200; --ela: #5b3fd1; --link: #0a6a66;
  --focus: #5b3fd1; color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 1.0625rem/1.6 var(--f-body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); font-stretch: 108%; line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 1.6rem + 3.4vw, 4.2rem); font-weight: 820; font-stretch: 112%; }
h2 { font-size: clamp(1.5rem, 1.25rem + 1.1vw, 2.1rem); font-weight: 780; }
h3 { font-size: 1.15rem; font-weight: 720; }
p { margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-family: var(--f-display); font-stretch: 125%; font-weight: 650; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: 1.2rem; color: var(--fg); max-width: 60ch; }
.muted { color: var(--muted); }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--btn); color: var(--on-btn); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: max(16px, env(safe-area-inset-left, 0px)); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--fg); text-decoration: none; }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand-pic { width: 52px; height: 52px; border-radius: 50%; flex: none; display: block; }
@media (max-width: 560px) { .brand-pic { width: 46px; height: 46px; } }
.brand b { display: block; font-family: var(--f-display); font-stretch: 118%; font-weight: 820; font-size: 1.15rem; letter-spacing: 0.02em; line-height: 1.1; }
.brand b small { font-size: 0.72em; font-weight: 700; letter-spacing: 0; }
.brand-text { display: grid; }
.brand-sub { display: block; font-family: var(--f-display); font-stretch: 125%; font-weight: 600; font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; gap: 4px 6px; flex-wrap: wrap; }
.nav a { color: var(--fg); text-decoration: none; font-weight: 700; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { background: var(--surface); }
.nav a[aria-current="page"] { background: var(--surface-2); }
.nav a.nav-cta { background: var(--btn); color: var(--on-btn); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 999px; font-weight: 700; text-decoration: none; background: var(--btn); color: var(--on-btn); border: 2px solid var(--btn); cursor: pointer; font: 700 1rem/1.2 var(--f-body); }
.btn:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--fg); filter: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.ext::after { content: "↗"; font-size: 0.85em; margin-left: 2px; }

/* subject marks */
.subj { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 0.92rem; }
.subj::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.subj.sci { color: var(--sci); } .subj.math { color: var(--math); } .subj.ela { color: var(--ela); }

/* sections */
.section { padding-block: clamp(40px, 6vw, 72px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head p { color: var(--muted); max-width: 52ch; }
.band { background: var(--band); border-block: 1px solid var(--line); }

/* home hero */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 4vw, 56px); align-items: center; padding-block: clamp(36px, 6vw, 72px); }
.hero h1 em { font-style: normal; color: var(--btn); }
:root[data-theme="light"] .hero h1 em { color: var(--fg); background: linear-gradient(transparent 62%, var(--btn) 62%); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .hero h1 em { color: var(--fg); background: linear-gradient(transparent 62%, var(--btn) 62%); } }
.hero-copy { display: grid; gap: 20px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 0.95rem; list-style: none; padding: 0; margin: 0; }
.hero-facts li::before { content: "✓ "; color: var(--sci); font-weight: 700; }
.now-card { display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; min-width: 0; }
.now-card a.thumb { border-radius: 10px; overflow: hidden; }
.now-card .meta { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; align-items: baseline; padding-inline: 4px; }
.now-card h2 { font-size: 1.35rem; }
.sheet { display: grid; gap: 2px; padding: 4px; border-top: 1px dashed var(--line); padding-top: 12px; }
.sheet .ln { display: grid; grid-template-columns: 4.2ch minmax(0, 1fr); gap: 10px; font-size: 0.95rem; color: var(--muted); }
.sheet .ln .mono { color: var(--stamp); }
.sheet .ln.hi { color: var(--fg); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }

/* song cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 28px 20px; }
.card { display: grid; gap: 10px; align-content: start; color: var(--fg); text-decoration: none; min-width: 0; }
.card .thumb { border-radius: 10px; overflow: hidden; outline: 1px solid var(--line); aspect-ratio: 16 / 9; background: var(--surface); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.card:hover .thumb img { transform: scale(1.03); }
.card h3 { font-size: 1.12rem; }
.card .row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.card .topic { color: var(--muted); font-size: 0.95rem; }
.card .dur { color: var(--faint); font-size: 0.85rem; }
.card[hidden] { display: none; }

/* subject index on home */
.subjects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.watch-media > * { flex: none; }
.subject-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 12px; align-content: start; }
.subject-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.subject-col li a { display: flex; justify-content: space-between; gap: 10px; text-decoration: none; color: var(--fg); padding: 6px 0; border-bottom: 1px solid var(--line); }
.subject-col li a span:last-child { color: var(--muted); font-size: 0.92rem; text-align: right; }
.subject-col li a:hover span:first-child { text-decoration: underline; }
@media (max-width: 860px) { .subjects { grid-template-columns: minmax(0, 1fr); } }

.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; list-style: none; margin: 0; padding: 0; }
.how li { display: grid; gap: 8px; align-content: start; }
.how .k { font-family: var(--f-mono); color: var(--stamp); font-size: 0.95rem; }
@media (max-width: 760px) { .how { grid-template-columns: minmax(0, 1fr); } }

.cta-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 32px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 4vw, 40px); }
@media (max-width: 700px) { .cta-band { grid-template-columns: minmax(0, 1fr); } }

/* songs page */
.filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-bottom: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: 700 0.95rem/1 var(--f-body); padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.search { flex: 1 1 240px; display: flex; }
.search input { width: 100%; min-height: 44px; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font: inherit; }
.count { color: var(--muted); font-size: 0.95rem; }
.subject-block + .subject-block { margin-top: 48px; }
.subject-block h2 { margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.subject-block h2 .subj, .subject-col h3.subj { font-size: inherit; }
.subject-block h2 .subj::before { width: 14px; height: 14px; }
.empty { padding: 24px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

/* song page */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.92rem; color: var(--muted); padding-top: 20px; }
.crumbs a { color: var(--muted); }
.song-head { display: grid; gap: 14px; padding-block: 18px 30px; }
.song-head .tagline { font-family: var(--f-display); font-stretch: 100%; font-weight: 600; font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.55rem); color: var(--btn); max-width: 40ch; line-height: 1.3; }
:root[data-theme="light"] .song-head .tagline { color: var(--fg); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .song-head .tagline { color: var(--fg); } }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; }
.facts div { display: grid; }
.facts dt { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.facts dd { margin: 0; font-weight: 700; }

.watch { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: start; padding-bottom: 48px; }
.watch-media { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 14px; max-height: calc(100vh - 32px); overflow: auto; padding-bottom: 4px; }
@media (max-width: 980px) { .watch { grid-template-columns: minmax(0, 1fr); } .watch-media { position: static; max-height: none; overflow: visible; } }
.player { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; border: 0; padding: 0; cursor: pointer; color: inherit; }
.player img { width: 100%; height: 100%; object-fit: cover; }
.player .play { position: absolute; inset: 0; width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(transparent 55%, rgba(0,0,0,.55)); border: 0; padding: 0; margin: 0; cursor: pointer; color: inherit; font: inherit; }
.player a.play { text-decoration: none; }
.player .play i { width: 76px; height: 76px; border-radius: 50%; background: var(--btn); display: grid; place-items: center; box-shadow: 0 6px 24px rgba(0,0,0,.45); transition: transform .15s; }
.player .play i::after { content: ""; border-left: 24px solid var(--on-btn); border-top: 15px solid transparent; border-bottom: 15px solid transparent; margin-left: 6px; }
.player:hover .play i { transform: scale(1.06); }
.player .note { position: absolute; left: 12px; bottom: 10px; right: 12px; color: #fff; font-size: 0.82rem; text-align: left; text-shadow: 0 1px 3px #000; }
.player iframe, .player .yt { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.where { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 0.95rem; }
.where .muted { font-size: 0.88rem; }
details.parts { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
details.parts > summary { cursor: pointer; padding: 12px 16px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 8px; }
details.parts > summary::-webkit-details-marker { display: none; }
details.parts > summary::after { content: "+"; font-family: var(--f-mono); color: var(--muted); }
details.parts[open] > summary::after { content: "–"; }
.parts ol { list-style: none; margin: 0; padding: 0 8px 10px; display: grid; gap: 2px; }
.parts li button { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 4.6ch minmax(0, 1fr); gap: 10px; width: 100%; padding: 6px 8px; border-radius: 8px; cursor: pointer; font-size: 0.95rem; }
.parts li button:hover, .parts li button:focus-visible { background: var(--surface-2); }
.parts li button.is-now { background: var(--now); }
.t { font-family: var(--f-mono); font-variant-numeric: tabular-nums; color: var(--stamp); font-size: 0.9rem; }

.lyrics { display: grid; gap: 22px; min-width: 0; }
.lyrics-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.follow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.92rem; color: var(--muted); cursor: pointer; }
.follow input { width: 18px; height: 18px; accent-color: var(--btn); }
.lyr-sec { display: grid; gap: 2px; }
.lyr-sec h3 { font-family: var(--f-display); font-stretch: 125%; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.lyr-line, .lyr-repeat { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 4.6ch minmax(0, 1fr); gap: 12px; padding: 5px 8px; border-radius: 8px; cursor: pointer; line-height: 1.5; }
.lyr-line:hover, .lyr-repeat:hover, .lyr-line:focus-visible, .lyr-repeat:focus-visible { background: var(--surface); }
.lyr-line.is-now, .lyr-repeat.is-now { background: var(--now); }
.lyr-line.is-now .tx { font-weight: 700; }
.lyr-repeat { color: var(--muted); font-style: italic; }
.lyr-note { padding: 18px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

.teach { padding-block: 48px; }
.teach-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
@media (max-width: 860px) { .teach-grid { grid-template-columns: minmax(0, 1fr); } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.panel h3 { font-size: 1.1rem; }
.panel.wide { grid-column: 1 / -1; }
.q { font-size: 1.15rem; font-weight: 700; }
details.answer summary { cursor: pointer; color: var(--link); font-weight: 700; width: max-content; max-width: 100%; }
details.answer p { margin-top: 10px; }
.terms { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.terms li { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 0.95rem; }
.stds { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.stds li { display: grid; grid-template-columns: 9.5ch minmax(0, 1fr); gap: 12px; font-size: 0.97rem; }
.stds li .mono { font-weight: 600; color: var(--fg); font-size: 0.9rem; padding-top: 2px; }
.pack-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pack-items li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 8px; font-size: 0.97rem; }
.pack-items li span { color: var(--muted); }
.small { font-size: 0.88rem; color: var(--muted); }

/* prose pages */
.prose { max-width: 68ch; display: grid; gap: 18px; padding-block: 28px 64px; }
.prose h1 { margin-bottom: 4px; }
.prose h2 { font-size: 1.4rem; margin-top: 18px; }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.paper { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 8px; }
.paper .t2 { font-weight: 700; }
.request-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 36px; align-items: start; padding-block: 28px 64px; }
@media (max-width: 900px) { .request-grid { grid-template-columns: minmax(0, 1fr); } }
.request-copy { display: grid; gap: 18px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); gap: 12px; counter-increment: s; }
.steps li::before { content: counter(s); font-family: var(--f-display); font-weight: 800; font-size: 1.1rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); }
.form-frame { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.form-frame iframe { display: block; width: 100%; height: 1500px; border: 0; }
.form-link { padding: 28px; display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

/* footer */
.site-foot { border-top: 1px solid var(--line); margin-top: 24px; }
.site-foot .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 40px; padding-block: 32px 40px; align-items: start; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-foot a { color: var(--fg); }
.site-foot .social a { color: var(--muted); }
.site-foot p { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 700px) { .site-foot .wrap { grid-template-columns: minmax(0, 1fr); } }

/* preview banner (preview build only) */
.preview-bar { background: var(--btn); color: var(--on-btn); font-size: 0.92rem; }
.preview-bar .wrap { padding-block: 8px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .site-head, .site-foot, .watch-media, .filters, .follow { display: none !important; } body { background: #fff; color: #000; } }
