@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/source-serif-4.woff2) format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/source-serif-4-italic.woff2) format("woff2");
}

/* Palette: Warm Burnout (warmburnout.com), light = "blinds open", dark = "3am" */
:root {
  --bg: #f5ede0;
  --surface: #eae2d6;
  --surface-2: #e2dbcf;
  --ink: #3a3630;
  --ink-soft: #544c40;
  --line: #ddd6ca;
  --accent: #b8522e;
  --accent-ink: #a04828;
  --accent-hover: #a04828;
  --accent-wash: color-mix(in srgb, #b8522e 13%, #f5ede0);
  --on-accent: #fff;
  --shadow: 0 1px 2px rgb(58 54 48 / 0.05), 0 10px 30px -14px rgb(58 54 48 / 0.18);
  --radius: 14px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 68ch;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1a1510;
    --surface: #1f1d17;
    --surface-2: #222018;
    --ink: #bfbdb6;
    --ink-soft: #aea195;
    --line: #2a2620;
    --accent: #b8522e;
    --accent-ink: #ec9878;
    --accent-hover: #a04828;
    --accent-wash: color-mix(in srgb, #b8522e 22%, #1a1510);
    --on-accent: #fff;
    --shadow: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1a1510;
  --surface: #1f1d17;
  --surface-2: #222018;
  --ink: #bfbdb6;
  --ink-soft: #aea195;
  --line: #2a2620;
  --accent: #b8522e;
  --accent-ink: #ec9878;
  --accent-hover: #a04828;
  --accent-wash: color-mix(in srgb, #b8522e 22%, #1a1510);
  --on-accent: #fff;
  --shadow: none;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.0625rem/1.65 var(--sans);
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 0.5em; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; text-wrap: pretty; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--on-accent); padding: 0.6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { width: min(100% - 2rem, 70rem); margin-inline: auto; }
.prose { max-width: var(--measure); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 1.05rem; line-height: 1.1; }
.brand svg { width: 2.4rem; height: auto; fill: var(--accent); flex: none; }
.site-nav ul { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 0.4rem 0.7rem; border-radius: 999px; color: var(--ink-soft); text-decoration: none; font-size: 0.95rem; }
.site-nav a:hover { background: var(--surface-2); color: var(--ink); }
.header-end { display: flex; align-items: center; gap: 0.5rem; }
.theme-toggle {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.75rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--ink-soft);
  font: 600 0.85rem/1 var(--sans);
}
.theme-toggle:hover { background: var(--surface-2); color: var(--ink); }
.theme-toggle svg { width: 1rem; height: 1rem; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
/* Phones: the section links drop to a compact second row instead of a menu */
@media (max-width: 46rem) {
  html { scroll-padding-top: 6.5rem; }
  .site-header .wrap { flex-wrap: wrap; row-gap: 0; column-gap: 0.25rem; padding-top: 0.6rem; }
  .brand { flex-basis: 100%; }
  .site-nav { flex: 1 1 auto; margin-left: -0.5rem; }
  .site-nav ul { justify-content: space-between; }
  .site-nav a { padding: 0.55rem 0.5rem; font-size: 0.9rem; }
  .theme-toggle { padding: 0.45rem; border-color: transparent; }
  .theme-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 22.5rem) {
  .site-nav a { padding-inline: 0.35rem; font-size: 0.85rem; }
}

/* Hero */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.hero .wrap { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1.25fr 1fr; align-items: center; }
@media (max-width: 52rem) { .hero .wrap { grid-template-columns: 1fr; } }
.eyebrow { font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); font-weight: 600; margin-bottom: 0.9rem; }
.hero h1 { font-size: clamp(2.3rem, 1.4rem + 4vw, 3.9rem); letter-spacing: -0.01em; margin-bottom: 0.35em; }
.lead { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); color: var(--ink-soft); max-width: 36rem; }

.next {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: var(--shadow);
}
.next-label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 0.6rem; }
.next-label .dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--accent); }
.next.is-live .dot { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }
@media (prefers-reduced-motion: reduce) { .next.is-live .dot { animation: none; } }
.next-when { font-family: var(--serif); font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2rem); font-weight: 600; line-height: 1.15; margin: 0 0 0.3rem; }
.next-where { color: var(--ink-soft); margin: 0 0 1.25rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.7rem 1.15rem; border-radius: 999px;
  font: 600 0.98rem/1 var(--sans); text-decoration: none;
  border: 1px solid var(--accent); transition: background-color 0.15s, color 0.15s;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost { color: var(--accent-ink); background: transparent; }
.btn-ghost:hover { background: var(--accent-wash); }
.btn svg { width: 1.05em; height: 1.05em; }
.next small { display: block; margin-top: 1rem; color: var(--ink-soft); font-size: 0.88rem; }

/* Sections */
section { padding: clamp(3rem, 7vw, 5rem) 0; }
section + section { border-top: 1px solid var(--line); }
.section-intro { color: var(--ink-soft); max-width: var(--measure); margin-bottom: 2rem; }

/* Schedule */
.schedule { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.session {
  display: grid; grid-template-columns: 8.5rem 7rem 1fr; gap: 0.25rem 1.25rem; align-items: baseline;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.session.is-next { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); }
.session .day { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; }
.session .time { font-variant-numeric: tabular-nums; font-weight: 600; }
.session .detail { color: var(--ink-soft); }
.session .detail p { margin: 0.2rem 0 0; font-size: 0.95rem; }
.tags { display: inline-flex; flex-wrap: wrap; gap: 0.35rem; vertical-align: middle; }
.tag { font-size: 0.78rem; font-weight: 600; padding: 0.15rem 0.55rem; border-radius: 999px; background: var(--surface-2); color: var(--ink); white-space: nowrap; }
.tag-in { background: var(--accent-wash); color: var(--accent-ink); }
.today-flag { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent-ink); margin-left: 0.4rem; }
@media (max-width: 40rem) {
  .session { grid-template-columns: 1fr auto; }
  .session .detail { grid-column: 1 / -1; }
}
.note { margin-top: 1.5rem; padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--surface-2); color: var(--ink-soft); font-size: 0.97rem; max-width: var(--measure); }
.note strong { color: var(--ink); }

/* Visit */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 1.75rem); }
.card h3 { margin-bottom: 0.6rem; }
address { font-style: normal; margin-bottom: 0.35rem; }
.place + .place { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.place-when { margin: 0 0 0.2rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-ink); }
.place > a { font-size: 0.95rem; }  .steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 0.9rem; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2rem 1fr; gap: 0.75rem; }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--accent-wash); color: var(--accent-ink); font-weight: 700; font-size: 0.9rem;
}
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.checks li { position: relative; padding-left: 1.5rem; }
.checks li::before { content: ""; position: absolute; left: 0.2rem; top: 0.62em; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--accent); }

/* Practice */
.instructions { counter-reset: s; }
blockquote { margin: 0; padding: 0 0 0 1.25rem; border-left: 3px solid var(--accent); font-family: var(--serif); font-size: 1.12rem; }
details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
details + details { margin-top: 0.6rem; }
summary {
  cursor: pointer; list-style: none; padding: 1rem 1.25rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-family: var(--serif); font-weight: 600; font-size: 1.15rem;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 0.6rem; height: 0.6rem; border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft); transform: rotate(45deg) translateY(-25%); transition: transform 0.2s; }
details[open] > summary::after { transform: rotate(-135deg) translateY(-25%); }
summary .sub { display: block; font-family: var(--sans); font-weight: 400; font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.15rem; }
.details-body { padding: 0 1.25rem 1.25rem; max-width: calc(var(--measure) + 2.5rem); }
.details-body > :last-child { margin-bottom: 0; }

.links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.links li { line-height: 1.45; }
.links .by { color: var(--ink-soft); }
.links .desc { display: block; color: var(--ink-soft); font-size: 0.95rem; }
.cols { columns: 2 16rem; column-gap: 2.5rem; }
.cols > * { break-inside: avoid; }

.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 0.75rem; list-style: none; padding: 0; margin: 0; }
.books li { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 0.9rem 1rem; }
.books a { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; text-decoration: none; }
.books a:hover { text-decoration: underline; }
.books .by { display: block; font-size: 0.9rem; color: var(--ink-soft); margin: 0.1rem 0 0.4rem; }
.books p { margin: 0; font-size: 0.93rem; }

.stack > * + * { margin-top: 2rem; }
.h-sub { font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); font-family: var(--sans); font-weight: 600; margin: 1.5rem 0 0.75rem; }
.h-sub:first-child { margin-top: 0; }

.mt-sm { margin-top: 1.75rem; }
.mt-md { margin-top: 2rem; }
.mt-lg { margin-top: 2.75rem; }
.grid-top { align-items: start; }
.attribution { font-family: var(--sans); font-size: 0.9rem; color: var(--ink-soft); margin: 0; }
.details-body.wide { max-width: none; }

footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; color: var(--ink-soft); font-size: 0.93rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; }
footer .brand { font-size: 0.98rem; }
footer .brand svg { width: 2rem; }

/* 404 page */
.notfound main { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 0.5rem; padding: 2rem 1rem; text-align: center; }
.notfound main > a:first-child { margin-bottom: 1rem; }
.notfound h1 { font-size: clamp(1.8rem, 1.4rem + 2vw, 2.6rem); }
.notfound p { color: var(--ink-soft); max-width: 34rem; }
