/* ABC of Search — primer / lesson-book design. 2026 refresh. */
:root {
  --paper: #f8f6ef;
  --card: #fffdf7;
  --ink: #223034;
  --muted: #67757a;
  --teal: #0f6b66;
  --teal-deep: #0a4d49;
  --marker: #f5c944;
  --marker-soft: #f9e08e;
  --rule: #e6e1d2;
  --max: 960px;
  --narrow: 680px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #17211f;
    --card: #1f2b29;
    --ink: #e8ece5;
    --muted: #9caba2;
    --teal: #4fb3ab;
    --teal-deep: #357f79;
    --marker: #d9a916;
    --marker-soft: #6b5a1c;
    --rule: #31403c;
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.72 "Newsreader", Georgia, serif;
}
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
mark {
  background: linear-gradient(transparent 55%, var(--marker-soft) 55%);
  color: inherit;
  padding: 0 0.1em;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.4rem; }

header.site { border-bottom: 3px solid var(--ink); padding: 1rem 0; }
header.site .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.wordmark {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.wordmark b { color: var(--teal); }
.wordmark:hover { text-decoration: none; }
nav.top { display: flex; gap: 1rem; flex-wrap: wrap; font-family: "Bricolage Grotesque", system-ui, sans-serif; font-size: 0.85rem; font-weight: 600; }
nav.top a { color: var(--muted); }
nav.top a:hover, nav.top a[aria-current] { color: var(--teal); text-decoration: none; }

.kicker {
  display: inline-block;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}

/* Masthead */
.masthead { padding: 3.2rem 0 3rem; border-bottom: 1px solid var(--rule); }
.masthead-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.6rem; align-items: center; }
.masthead h1 {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(2.3rem, 6.5vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 1.03;
  margin: 0.7rem 0 1rem;
}
.masthead h1 mark { padding: 0 0.12em; }
.masthead-sub { color: var(--muted); max-width: 30em; }
.masthead-art { width: 100%; height: auto; border-radius: 10px; border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--marker); }
@media (max-width: 760px) { .masthead-grid { grid-template-columns: 1fr; } .masthead-art { box-shadow: 5px 5px 0 var(--marker); } }

main { padding: 2.8rem 0 3.4rem; }

.intro { max-width: var(--narrow); margin: 0 auto 3rem; }
.intro p { margin-bottom: 1.15rem; }
.intro p:first-of-type::first-letter {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
  font-size: 3.2em;
  float: left;
  line-height: 0.8;
  padding: 0.08em 0.14em 0 0;
  color: var(--teal);
}

/* Lesson list — the signature */
.lessons > h2 {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 1.6rem;
}
.lesson-list { display: grid; gap: 1.2rem; max-width: 820px; margin: 0 auto; list-style: none; }
.lesson {
  display: grid;
  grid-template-columns: 5.2rem 1fr 240px;
  gap: 1.3rem;
  align-items: center;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.lesson:hover { text-decoration: none; transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--marker); }
.lesson-letter {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--teal);
  text-align: center;
}
.lesson-letter::after { content: "."; color: var(--marker); }
.lesson h3 {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}
.lesson:hover h3 { color: var(--teal); }
.lesson p { font-size: 0.92rem; color: var(--muted); line-height: 1.55; }
.lesson img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; border: 1.5px solid var(--ink); }
@media (max-width: 720px) {
  .lesson { grid-template-columns: 3.4rem 1fr; }
  .lesson img { display: none; }
  .lesson-letter { font-size: 2.3rem; }
}

/* Lesson pages */
article.lesson-page { max-width: var(--narrow); margin: 0 auto; }
article.lesson-page header { margin-bottom: 1.6rem; }
.lesson-index {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}
.lesson-index b { font-size: 1.4em; }
article.lesson-page h1 {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.9rem, 5.5vw, 2.7rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0.5rem 0 0.8rem;
}
.page-hero { display: block; width: 100%; height: auto; border-radius: 10px; border: 2.5px solid var(--ink); box-shadow: 6px 6px 0 var(--marker); margin: 0 0 2rem; }
article.lesson-page p { margin: 0 0 1.15rem; }
article.lesson-page h2 {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  margin: 2rem 0 0.7rem;
}

/* Fact box (about page) */
.factbox {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 1.3rem 1.5rem;
  margin: 1.6rem 0;
}
.factbox h2 { margin-top: 0 !important; font-size: 1.05rem !important; text-transform: uppercase; letter-spacing: 0.1em; color: var(--teal); }
.factbox ul { list-style: none; columns: 2; gap: 2rem; }
.factbox li { padding: 0.28rem 0 0.28rem 1.4rem; position: relative; font-size: 0.95rem; break-inside: avoid; }
.factbox li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
@media (max-width: 560px) { .factbox ul { columns: 1; } }
.factbox dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1.2rem; }
.factbox dt { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 600; font-size: 0.85rem; color: var(--muted); padding-top: 0.15em; }
.factbox dd { font-size: 0.98rem; }

.blogroll dt { font-weight: 600; margin-top: 1.1rem; font-family: "Bricolage Grotesque", system-ui, sans-serif; }
.blogroll dd { color: var(--muted); font-size: 0.95rem; margin-top: 0.15rem; }
.note { font-size: 0.88rem; font-style: italic; color: var(--muted); }

.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 3px solid var(--ink);
  margin-top: 2.6rem;
  padding-top: 1.1rem;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
}

footer.site { border-top: 1px solid var(--rule); padding: 1.5rem 0 2rem; font-family: "Bricolage Grotesque", system-ui, sans-serif; font-size: 0.82rem; color: var(--muted); }
footer.site .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

:focus-visible { outline: 2.5px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { .lesson { transition: none; } }
