:root {
  color-scheme: light dark;
  --paper: light-dark(#faf9fd, #171626);
  --surface: light-dark(#fff, #211f31);
  --ink: light-dark(#18152a, #f7f4ff);
  --quiet: light-dark(#514b68, #ccc4df);
  --rule: light-dark(#e2ddee, #403953);
  --violet: light-dark(#5b34c9, #c3aeff);
  --lavender: light-dark(#eee7ff, #342855);
  --lavender-deep: light-dark(#e0d3ff, #40306a);
  --mint: light-dark(#e3f5ec, #243e37);
  --mint-ink: light-dark(#215a46, #b9f2d8);
  --peach: light-dark(#faecd9, #493428);
  --peach-ink: light-dark(#714723, #fbd8af);
  --gutter: clamp(16px, 4vw, 36px);
}

*, *::before, *::after { box-sizing: border-box; }
body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 Inter, "Segoe UI", system-ui, sans-serif;
  overflow-wrap: break-word;
}
:is(h1, h2, h3, p) { margin: 0; }
a { color: var(--violet); text-underline-offset: 4px; }
a:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; }
svg { flex-shrink: 0; }
.container { width: min(calc(100% - 2 * var(--gutter)), 1080px); margin-inline: auto; }
.skip-link {
  position: fixed;
  inset: 12px auto auto 12px;
  z-index: 2;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--surface);
  transform: translateY(calc(-100% - 20px));
}
.skip-link:focus { transform: none; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--rule); }
.header-row, .footer-row { display: flex; justify-content: space-between; align-items: center; gap: 10px 24px; }
.header-row { min-height: 66px; }
.brand, .brand picture, .brand img { display: block; }
.brand img { width: 110px; height: auto; }
.header-row nav { display: flex; gap: 5px; }
.header-row nav a, .button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: .875rem;
  font-weight: 650;
  text-decoration: none;
}
.header-row nav a { color: var(--ink); }
.header-row nav a:is(:hover, [aria-current]) { color: var(--violet); border-color: var(--rule); background: var(--lavender); }
main { flex: 1; padding-block: clamp(20px, 4vw, 36px) clamp(32px, 5vw, 54px); }

.hero, .reading-heading {
  display: grid;
  align-items: center;
  gap: clamp(18px, 3vw, 35px);
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--rule);
  border-radius: 20px;
  background: linear-gradient(128deg, var(--surface) 4%, var(--lavender) 68%, var(--lavender-deep));
}
.hero { grid-template-columns: minmax(0, 1.23fr) minmax(0, .9fr); }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--violet);
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero h1, .reading-heading h1 {
  margin-block: 12px;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  line-height: 1.06;
  letter-spacing: -.055em;
  font-weight: 760;
  text-wrap: balance;
}
.hero h1 { max-width: 13ch; }
.hero h1 span { color: var(--violet); }
.hero-summary { max-width: 44ch; color: var(--quiet); }
.hero-art {
  position: relative;
  isolation: isolate;
  min-height: 208px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background: radial-gradient(circle, var(--paper) 0 1px, transparent 1.4px) 0 0 / 12px 12px, var(--lavender-deep);
}
.hero-art::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto -40px -110px auto;
  width: 230px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--paper);
  box-shadow: 0 0 0 20px color-mix(in srgb, var(--paper) 27%, transparent),
              0 0 0 41px color-mix(in srgb, var(--paper) 17%, transparent);
}
.hero-notes {
  position: relative;
  display: grid;
  gap: 11px;
  width: 178px;
  max-width: 78%;
  padding: 16px;
  border: 1px solid var(--rule);
  border-radius: 11px;
  background: var(--surface);
  box-shadow: 5px 10px 0 color-mix(in srgb, var(--violet) 16%, transparent);
  transform: rotate(-7deg);
}
.hero-notes::before, .hero-notes::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: inherit;
}
.hero-notes::before {
  inset: 5px -16px 8px 3px;
  border: 1px solid var(--rule);
  background: var(--mint);
  transform: rotate(15deg) translateY(-7px);
}
.hero-notes::after { inset: 0; background: var(--surface); }
.note-line { display: grid; grid-template-columns: 16px 1fr; align-items: center; gap: 8px; color: var(--violet); }
.note-line i { height: 5px; border-radius: 5px; background: var(--lavender-deep); }
.note-line:nth-child(3) i { width: 74%; }

.guide-library { margin-top: 26px; }
.guide-library h2 { margin-bottom: 13px; font-size: 1.5rem; letter-spacing: -.035em; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.guide-card {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 7px;
  padding: clamp(16px, 2.5vw, 24px);
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}
.guide-card:hover { border-color: var(--violet); }
.category-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; }
.category-icon.lavender { color: var(--violet); background: var(--lavender); }
.category-icon.mint { color: var(--mint-ink); background: var(--mint); }
.category-icon.peach { color: var(--peach-ink); background: var(--peach); }
.guide-category { margin-top: 4px; color: var(--violet); font-size: .8125rem; font-weight: 700; }
.guide-card h3 { font-size: 1.17rem; line-height: 1.28; letter-spacing: -.025em; }
.guide-summary, .agenda-label p { color: var(--quiet); font-size: .9375rem; }
.guide-action { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; color: var(--violet); font-size: .875rem; font-weight: 700; }
.guide-card:hover .guide-action { text-decoration: underline; }
.agenda-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 18px;
  padding: 15px 19px;
  border: 1px solid var(--rule);
  border-radius: 13px;
  background: var(--lavender);
}
.agenda-label { display: flex; align-items: center; gap: 12px; }
.agenda-label svg { color: var(--violet); }
.agenda-label h2 { font-size: 1.1rem; letter-spacing: -.02em; }
.button-link { border-color: var(--rule); background: var(--surface); }
.button-link:hover { border-color: var(--violet); }

.reading-page { max-width: 790px; margin-inline: auto; }
.back-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: -8px 0 8px; font-weight: 650; }
.reading-heading { display: block; }
.reading-heading h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
.reading-heading .hero-summary { max-width: 60ch; }
.guide-steps { margin: 26px 0; padding-left: 28px; }
.guide-steps > li { padding-left: 5px; margin-bottom: 22px; }
.guide-steps > li::marker { color: var(--violet); font-weight: 750; }
.reading-page h2 { margin-bottom: 6px; font-size: 1.2rem; line-height: 1.35; }
.guide-steps p, .reference-list, .agenda-edition > p, .event p { color: var(--quiet); }
.example { margin-top: 8px; padding-left: 12px; border-left: 2px solid var(--lavender-deep); }
.takeaway { padding: 19px 23px; border: 1px solid var(--rule); border-radius: 12px; background: var(--lavender); }
.takeaway ul, .reference-list ul { margin: 8px 0 0; padding-left: 22px; }
.takeaway li + li, .reference-list li + li { margin-top: 5px; }
.reference-list, .agenda-edition { margin-top: 26px; }
.agenda-section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.agenda-section-heading h2 { margin-bottom: 0; }
.agenda-edition > p[data-agenda-status] { margin-top: 8px; }
.agenda-event-description { white-space: pre-line; }
.reference-list h2 { color: var(--ink); }
.reference-list svg, .event a svg { vertical-align: -.13em; }
.event-list { display: grid; gap: 12px; margin: 15px 0 0; padding: 0; list-style: none; }
.event {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  padding: 16px;
  border: 1px solid var(--rule);
  border-radius: 13px;
  background: var(--surface);
}
.event-date { display: grid; align-content: center; min-width: 47px; min-height: 53px; align-self: start; text-align: center; border-radius: 8px; background: var(--lavender); color: var(--violet); font-size: .75rem; }
.event-date strong { font-size: 1.2rem; line-height: 1; }
.event h3 { margin-bottom: 4px; font-size: 1.06rem; line-height: 1.35; }
.event p { margin-bottom: 7px; font-size: .9375rem; }
.event-place { display: flex; align-items: baseline; gap: 5px; }
.event a { font-weight: 650; font-size: .875rem; }
.site-footer { border-top: 1px solid var(--rule); color: var(--quiet); font-size: .8125rem; }
.footer-row { flex-wrap: wrap; padding-block: 16px; }
.footer-row p { max-width: 65ch; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 9px 16px; }

@media (max-width: 640px) {
  .hero, .guide-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { min-height: 155px; }
  .hero-notes { gap: 5px; padding: 11px 13px; }
  .hero h1 { font-size: clamp(2.1rem, 9vw, 3rem); }
  .guide-grid { gap: 10px; }
}
