/* abeerlearns — Highlighter Notebook (brand/BRAND.md) */
@font-face { font-family: "Nunito"; src: url("/fonts/Nunito-var.ttf") format("truetype"); font-weight: 200 1000; font-display: swap; }
@font-face { font-family: "Gochi Hand"; src: url("/fonts/GochiHand-Regular.ttf") format("truetype"); font-display: swap; }

:root {
  --paper: #FBF8F1; --dot: #DDD7CA; --ink: #1D2B3A; --grey: #5B6673; --teal: #0F7C7A; --teal-light: #DDF1EF;
  --hl: #FFE27A; --q: #1A1A1A; --label: #7A5A2E; --miss: #A4161A; --card: #FFFFFF; --cell: #F3F0E8;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); background-color: var(--paper);
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.3px); background-size: 24px 24px;
  font: 500 1.0625rem/1.65 "Nunito", system-ui, sans-serif; font-variant-numeric: tabular-nums;
}
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 10; }

/* header / footer */
.site-head { border-bottom: 2px solid var(--ink); background: var(--paper); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 56px; height: auto; }
.brand span { font: 400 1.9rem/1 "Gochi Hand", cursive; }
.brand span b { font-weight: 400; background: linear-gradient(transparent 45%, var(--hl) 45%, var(--hl) 92%, transparent 92%); }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
nav a { color: var(--ink); font-weight: 700; text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--teal); text-decoration-thickness: 3px; }
.site-foot { margin-top: 64px; border-top: 2px solid var(--ink); padding: 24px 0 40px; font-size: .95rem; color: var(--grey); }
.site-foot a { color: var(--ink); }
.site-foot p { margin: 6px 0; }

/* type */
h1, h2, h3 { font-family: "Gochi Hand", cursive; font-weight: 400; line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 6vw, 3.4rem); margin: 40px 0 12px; }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.3rem); margin: 44px 0 12px; }
h3 { font-size: 1.6rem; margin: 28px 0 8px; }
.hl { background: linear-gradient(transparent 40%, var(--hl) 40%, var(--hl) 90%, transparent 90%); padding: 0 .1em; }
.lead { font-size: 1.2rem; max-width: 46rem; }
.pill { display: inline-block; background: var(--teal); color: #fff; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; padding: 6px 12px; border-radius: 8px; }
.muted { color: var(--grey); }
.template-note { border-left: 6px solid var(--miss); background: var(--card); padding: 12px 16px; font-weight: 700; }

/* cards */
.card { background: var(--card); border: 2px solid var(--ink); border-radius: 12px; box-shadow: 6px 6px 0 var(--ink); padding: 20px; margin: 20px 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.grid .card { margin: 0; }
.card h3 { margin-top: 8px; }
.card a.stretch { text-decoration: none; color: inherit; }
.btn { display: inline-block; background: var(--ink); color: #fff; font-weight: 800; text-decoration: none; padding: 12px 20px; border-radius: 10px; border: 2px solid var(--ink); }
.btn:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn.alt { background: var(--card); color: var(--ink); }

/* lesson */
.video { position: relative; aspect-ratio: 16 / 9; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; box-shadow: 6px 6px 0 var(--ink); background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.question .stem { color: var(--q); }
.question ol { list-style: none; padding: 0; }
.question li { margin: 6px 0; padding: 8px 12px; background: var(--cell); border-radius: 8px; color: var(--q); }
.question li b { color: var(--label); margin-right: 8px; }
details { margin-top: 16px; }
summary { cursor: pointer; font-weight: 800; color: var(--teal); }
.answer .correct { border-left: 6px solid var(--teal); padding-left: 12px; }
.sources li { margin: 8px 0; overflow-wrap: anywhere; }
.prevnext { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--dot); vertical-align: top; }
th { font-weight: 800; }
.ep-list { list-style: none; padding: 0; }
.ep-list li { margin: 12px 0; }
