:root {
  color-scheme: light;
  --ink: #20150e;
  --muted: #725d49;
  --paper: #fffaf0;
  --card: #fff3d8;
  --edge: #29180f;
  --accent: #d95f18;
  --accent-2: #176b58;
  --shadow: rgba(32, 21, 14, 0.18);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 0%, rgba(217,95,24,0.17), transparent 34rem),
    radial-gradient(circle at 86% 18%, rgba(23,107,88,0.16), transparent 30rem),
    linear-gradient(135deg, #fff9ec 0%, #f8e4bd 100%);
  min-height: 100vh;
}
a { color: inherit; text-decoration-color: rgba(217,95,24,0.65); text-decoration-thickness: 0.12em; }
a:hover { color: var(--accent); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: rgba(255, 250, 240, 0.82);
  border-bottom: 2px solid rgba(41,24,15,0.15);
  backdrop-filter: blur(14px);
}
.brand {
  font-weight: 900;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  letter-spacing: -0.04em;
  text-decoration: none;
}
.week-picker {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--muted);
  font-size: .9rem;
}
select {
  border: 2px solid var(--edge);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  padding: .55rem .9rem;
  font: inherit;
  box-shadow: 0 6px 0 rgba(41,24,15,.12);
}
main { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(1.5rem, 4vw, 4rem) 0 5rem; }
.hero, .week-hero {
  border: 3px solid var(--edge);
  border-radius: 2rem;
  padding: clamp(1.5rem, 5vw, 4rem);
  background: linear-gradient(145deg, rgba(255,243,216,.9), rgba(255,250,240,.7));
  box-shadow: 0 18px 0 var(--shadow);
}
.hero h1, .week-hero h1 {
  margin: .25rem 0 1rem;
  max-width: 900px;
  font-size: clamp(2.4rem, 8vw, 6.4rem);
  line-height: .85;
  letter-spacing: -.08em;
}
.hero p, .week-hero p { max-width: 720px; font-size: 1.18rem; color: var(--muted); }
.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .16em;
  font: 800 .78rem ui-sans-serif, system-ui, sans-serif;
  color: var(--accent-2);
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.week-card, .summary-panel, .transcript-grid > div, .raw-preview, .downloads-panel {
  border: 2px solid rgba(41,24,15,.25);
  border-radius: 1.25rem;
  background: rgba(255,250,240,.76);
  box-shadow: 0 10px 24px rgba(32,21,14,.08);
}
.week-card { padding: 1.25rem; }
.week-card h2 { margin: .4rem 0; font-size: 1.6rem; letter-spacing: -.04em; }
.week-card__meta { color: var(--muted); font: 700 .78rem ui-sans-serif, system-ui, sans-serif; text-transform: uppercase; letter-spacing: .08em; }
.keyword-row {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: .9rem 0 0;
}
.keyword-row span {
  border: 1px solid rgba(41,24,15,.25);
  border-radius: 999px;
  background: rgba(255,255,255,.42);
  color: var(--accent-2);
  font: 800 .78rem ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .02em;
  padding: .35rem .62rem;
}
.summary-panel, .raw-preview, .downloads-panel { margin-top: 1.5rem; padding: clamp(1rem, 3vw, 2rem); }
.summary-panel h2, .transcript-grid h2, .transcript-grid h3, .raw-preview h2, .downloads-panel h2 { margin-top: 0; letter-spacing: -.04em; }
.summary-panel li, .markdown-preview li { margin-bottom: .75rem; line-height: 1.5; }
.summary-panel code, .markdown-preview code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--accent-2); }
.username {
  color: var(--edge);
  font-weight: 900;
}
.transcript-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.transcript-grid > div { padding: 1.25rem; }
.link-list { padding-left: 1.25rem; }
.link-list li { margin: .45rem 0; }
.markdown-preview {
  padding: 1rem;
  border-radius: .85rem;
  background: rgba(255, 255, 255, .36);
  border: 1px solid rgba(41,24,15,.16);
  max-height: 42rem;
  overflow: auto;
}
.markdown-preview h2 {
  border-top: 2px solid rgba(41,24,15,.14);
  margin: 1.8rem 0 .8rem;
  padding-top: 1.2rem;
}
.markdown-preview h2:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.markdown-preview h3 {
  color: var(--accent-2);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .9rem;
  letter-spacing: .08em;
  margin-top: 1.3rem;
  text-transform: uppercase;
}
.markdown-preview p { line-height: 1.55; }
.markdown-preview ul { padding-left: 1.25rem; }
.markdown-preview a { text-decoration-thickness: .1em; }
.downloads-panel > p { margin-top: -.35rem; }
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (max-width: 720px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .week-picker { width: 100%; align-items: flex-start; flex-direction: column; }
  select { width: 100%; }
  .hero h1, .week-hero h1 { font-size: clamp(2.4rem, 16vw, 4rem); }
}
