:root {
  --blue: #35566d;
  --blue-dark: #163042;
  --blue-soft: #7893a5;
  --ivory: #f7f2e7;
  --paper: #fffdf8;
  --gold: #f4cc38;
  --terracotta: #c66035;
  --sage: #879b88;
  --ink: #1c3443;
  --muted: #60727c;
  --line: rgba(22, 48, 66, .14);
  --shadow: 0 18px 50px rgba(22, 48, 66, .10);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; color: var(--ink); background: var(--ivory); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 1000; transform: translateY(-150%); background: var(--gold); padding: .7rem 1rem; border-radius: 8px; font-weight: 800; }
.skip-link:focus { transform: translateY(0); }
.section-anchor { scroll-margin-top: 80px; }

.site-header { position: sticky; top: 0; z-index: 50; height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(1.1rem, 5vw, 5rem); background: rgba(247, 242, 231, .92); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--blue-dark); }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand span { display: grid; line-height: 1; text-transform: uppercase; letter-spacing: .09em; }
.brand strong { font-family: Georgia, serif; font-size: .98rem; }
.brand small { margin-top: .25rem; color: var(--terracotta); font-size: .64rem; font-weight: 800; }
.desktop-nav { display: flex; align-items: center; gap: .3rem; }
.desktop-nav a { padding: .55rem .8rem; border-radius: 99px; color: var(--blue-dark); text-decoration: none; font-size: .86rem; font-weight: 700; }
.desktop-nav a:hover, .desktop-nav a.active { background: white; color: var(--terracotta); }

.hero { position: relative; min-height: calc(100svh - 72px); overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 7vw, 7rem) 8rem; background: radial-gradient(circle at 84% 20%, rgba(244,204,56,.32), transparent 20rem), linear-gradient(140deg, #f9f5eb 0%, #edf1ee 100%); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .2; background-image: linear-gradient(rgba(53,86,109,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(53,86,109,.14) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to bottom, black, transparent 75%); }
.hero-copy, .hero-mark { position: relative; z-index: 2; }
.eyebrow { margin: 0 0 .8rem; color: var(--terracotta); text-transform: uppercase; letter-spacing: .17em; font-size: .76rem; font-weight: 900; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.12; }
h1 { max-width: 900px; margin: 0; font-size: clamp(3rem, 7vw, 6.8rem); letter-spacing: -.055em; color: var(--blue-dark); }
h1 em { color: var(--blue); font-weight: 400; }
.hero-question { max-width: 760px; margin: 1.8rem 0 .8rem; color: var(--blue); font-family: Georgia, serif; font-size: clamp(1.2rem, 2.1vw, 1.75rem); font-style: italic; line-height: 1.45; }
.hero-copy > p:last-of-type { max-width: 680px; color: var(--muted); font-size: 1.02rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.15rem; border: 2px solid var(--blue); border-radius: 12px; text-decoration: none; font-weight: 800; }
.button.primary { color: white; background: var(--blue); }
.button.primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.button.secondary { background: rgba(255,255,255,.58); color: var(--blue); }
.hero-mark { justify-self: center; max-width: 420px; padding: 2rem; background: rgba(255,253,248,.82); border: 1px solid rgba(255,255,255,.8); border-radius: 40px 8px 40px 8px; box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.hero-mark img { width: min(210px, 58%); margin: -7rem auto 1rem; filter: drop-shadow(0 15px 18px rgba(22,48,66,.15)); }
.hero-mark blockquote { margin: 0; font-family: Georgia, serif; font-size: clamp(1.25rem, 2vw, 1.65rem); line-height: 1.45; color: var(--blue-dark); }
.hero-mark cite { display: block; margin-top: 1rem; color: var(--terracotta); font-size: .76rem; font-style: normal; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.hero-orbit { position: absolute; right: -12rem; top: 10%; width: 34rem; height: 34rem; border: 1px solid rgba(53,86,109,.18); border-radius: 50%; box-shadow: 0 0 0 5rem rgba(255,255,255,.08), 0 0 0 10rem rgba(255,255,255,.06); }
.mountain-line { position: absolute; z-index: 1; left: 0; right: 0; bottom: -1px; height: 145px; background: var(--blue); clip-path: polygon(0 85%, 10% 52%, 18% 75%, 28% 32%, 39% 70%, 51% 42%, 59% 67%, 73% 24%, 82% 56%, 91% 40%, 100% 76%, 100% 100%, 0 100%); opacity: .92; }

.section { padding: clamp(4.5rem, 8vw, 8rem) clamp(1.25rem, 7vw, 7rem); }
.section-heading { display: grid; grid-template-columns: minmax(0, .85fr) minmax(280px, .55fr); gap: 2rem; align-items: end; max-width: 1240px; margin: 0 auto 2.5rem; }
.section-heading h2 { margin: 0; color: var(--blue-dark); font-size: clamp(2.5rem, 5vw, 4.8rem); letter-spacing: -.045em; }
.section-heading > p { margin: 0; color: var(--muted); font-size: 1rem; }
.section-heading a, .talk-body .term-link { color: var(--terracotta); text-decoration-color: rgba(198,96,53,.35); text-underline-offset: .18em; font-weight: 750; }

.schedule-section { background: var(--blue-dark); color: white; }
.schedule-section .section-heading h2 { color: white; }
.schedule-section .section-heading > p { color: #ccd8df; }
.schedule-section .eyebrow { color: var(--gold); }
.day-switcher { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; max-width: 1240px; margin: 0 auto 1.2rem; }
.day-tab { cursor: pointer; padding: .9rem 1rem; color: #dbe6eb; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; font-weight: 850; }
.day-tab span { display: block; margin-top: .18rem; font-size: .72rem; opacity: .68; text-transform: uppercase; letter-spacing: .1em; }
.day-tab.active { background: var(--gold); color: var(--blue-dark); border-color: var(--gold); }
.schedule-panels { max-width: 1240px; margin: 0 auto; padding: clamp(1rem, 3vw, 2.2rem); background: white; color: var(--ink); border-radius: var(--radius); box-shadow: 0 25px 80px rgba(0,0,0,.18); }
.schedule-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 1rem; align-items: center; min-height: 54px; padding: .65rem .85rem; border-bottom: 1px solid var(--line); }
.schedule-row:last-child { border-bottom: 0; }
.schedule-row time { color: var(--blue); font-weight: 900; font-variant-numeric: tabular-nums; }
.schedule-row span { font-weight: 650; }
.schedule-row.session { margin: .25rem 0; background: #edf3f5; border-bottom: 0; border-left: 4px solid var(--terracotta); border-radius: 8px; }
.schedule-row.liturgy { margin: .25rem 0; background: #fff7d6; border-bottom: 0; border-left: 4px solid var(--gold); border-radius: 8px; }

.prologue { background: #edf1ee; }
.prologue-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; max-width: 1240px; margin: auto; }
.feature-card { position: relative; padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--paper); border: 1px solid rgba(22,48,66,.1); border-radius: var(--radius); box-shadow: 0 9px 30px rgba(22,48,66,.05); }
.feature-card.lead-card { background: var(--blue); color: white; }
.feature-card.wide-card { grid-column: 1 / -1; background: #fff7d6; }
.feature-card h3 { margin: .8rem 0 .75rem; font-size: clamp(1.4rem, 2.4vw, 2rem); }
.feature-card p { margin: 0; }
.feature-card:not(.lead-card) p { color: var(--muted); }
.feature-card a { color: inherit; text-decoration-color: rgba(198,96,53,.5); text-underline-offset: .16em; font-weight: 800; }
.card-number { color: var(--terracotta); font-size: .75rem; font-weight: 900; letter-spacing: .15em; }
.lead-card .card-number { color: var(--gold); }

.talks-section { background: var(--ivory); }
.talk-list { display: grid; gap: 1rem; max-width: 1100px; margin: auto; }
.talk-card { overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 9px 30px rgba(22,48,66,.04); }
.talk-card[open] { box-shadow: var(--shadow); }
.talk-card summary { cursor: pointer; list-style: none; display: grid; grid-template-columns: 100px minmax(0,1fr) 34px; gap: 1rem; align-items: center; padding: clamp(1.2rem, 3vw, 2rem); }
.talk-card summary::-webkit-details-marker { display: none; }
.talk-index { align-self: start; color: var(--terracotta); font-size: .75rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.talk-card summary strong { display: block; color: var(--blue-dark); font-family: Georgia, serif; font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1.2; }
.talk-card summary small { display: block; margin-top: .35rem; color: var(--muted); font-size: .88rem; }
.toggle { position: relative; width: 30px; height: 30px; border-radius: 50%; background: #edf1ee; }
.toggle::before, .toggle::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 12px; height: 2px; background: var(--blue); transform: translate(-50%,-50%); }
.toggle::after { transform: translate(-50%,-50%) rotate(90deg); transition: transform .2s; }
.talk-card[open] .toggle::after { transform: translate(-50%,-50%) rotate(0); }
.talk-body { padding: 0 clamp(1.2rem, 3vw, 2rem) 2rem; border-top: 1px solid var(--line); }
.talk-body h3 { margin: 1.8rem 0 .45rem; color: var(--blue); font-size: 1.22rem; }
.talk-body p { margin: 0; color: var(--muted); }
.key-terms { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.key-terms strong { margin-right: .35rem; color: var(--blue-dark); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.key-terms a { padding: .35rem .65rem; color: var(--blue); background: #edf3f5; border-radius: 99px; text-decoration: none; font-size: .76rem; font-weight: 800; }

.glossary-section { background: #edf1ee; }
.glossary-tools { position: sticky; top: 84px; z-index: 10; display: flex; gap: 1rem; align-items: center; max-width: 1240px; margin: 0 auto 1.5rem; padding: .65rem; background: rgba(237,241,238,.93); border-radius: 18px; backdrop-filter: blur(12px); }
.search-box { position: relative; flex: 1; display: flex; align-items: center; gap: .6rem; padding: .6rem 1rem; background: white; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 5px 20px rgba(22,48,66,.05); }
.search-box > span:first-child { color: var(--terracotta); font-size: 1.5rem; line-height: 1; }
.search-box input { flex: 1; min-width: 0; padding: .3rem 0; color: var(--ink); background: transparent; border: 0; outline: 0; }
.search-box:focus-within { outline: 3px solid rgba(244,204,56,.55); }
#clear-search { cursor: pointer; width: 30px; height: 30px; color: var(--blue); background: #edf1ee; border: 0; border-radius: 50%; font-size: 1.3rem; line-height: 1; }
#glossary-count { margin: 0; min-width: 92px; color: var(--muted); font-size: .8rem; font-weight: 800; text-align: right; }
.glossary-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .8rem; max-width: 1240px; margin: auto; }
.glossary-card { scroll-margin-top: 160px; padding: 1.25rem; background: var(--paper); border: 1px solid rgba(22,48,66,.1); border-radius: 14px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.glossary-card h3 { margin: 0 0 .5rem; color: var(--blue-dark); font-size: 1.15rem; }
.glossary-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.glossary-card.highlight { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 0 0 4px rgba(244,204,56,.25), var(--shadow); }
.no-results { max-width: 1240px; margin: 2rem auto; text-align: center; color: var(--muted); }

.resources-section { background: var(--paper); }
.resource-list { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .8rem; max-width: 1240px; margin: auto; }
.resource-list article { padding: 1.2rem; background: var(--ivory); border-left: 3px solid var(--gold); border-radius: 4px 12px 12px 4px; }
.resource-list h3 { margin: 0 0 .5rem; font-family: Georgia, serif; font-size: 1rem; line-height: 1.35; }
.resource-list p { margin: 0; color: var(--terracotta); font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }

footer { display: grid; grid-template-columns: auto 1fr auto; gap: 1.1rem; align-items: center; padding: 2.5rem clamp(1.25rem,7vw,7rem) 6rem; color: white; background: var(--blue-dark); }
footer img { width: 64px; }
footer strong { font-family: Georgia, serif; font-size: 1.25rem; }
footer p { margin: .25rem 0 0; color: #bfcdd5; font-size: .85rem; }
footer a { color: var(--gold); font-weight: 800; text-decoration: none; }
footer .copyright { grid-column: 1 / -1; margin-top: 1rem; text-align: center; }
.mobile-nav { display: none; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 4rem; }
  .hero-mark { margin-top: 4rem; }
  .section-heading { grid-template-columns: 1fr; gap: .7rem; }
  .glossary-grid, .resource-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .mobile-nav { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5,1fr); min-height: 64px; padding: .35rem .2rem max(.35rem, env(safe-area-inset-bottom)); background: rgba(255,253,248,.96); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(22,48,66,.09); backdrop-filter: blur(16px); }
  .mobile-nav a { display: grid; place-items: center; align-content: center; gap: .1rem; color: var(--muted); text-decoration: none; font-size: .61rem; font-weight: 800; }
  .mobile-nav span { color: var(--blue); font-size: 1rem; line-height: 1; }
  .mobile-nav a.active { color: var(--terracotta); }
  .mobile-nav a.active span { color: var(--terracotta); }
}
@media (max-width: 620px) {
  html { scroll-padding-top: 74px; }
  .site-header { height: 62px; padding: 0 1rem; }
  .brand img { width: 40px; height: 40px; }
  .brand strong { font-size: .85rem; }
  .hero { min-height: auto; padding: 4rem 1.15rem 7rem; }
  h1 { font-size: clamp(2.85rem, 15vw, 4.4rem); }
  .hero-question { margin-top: 1.3rem; }
  .hero-actions { display: grid; }
  .hero-mark { margin-top: 3.5rem; padding: 1.5rem; border-radius: 28px 7px 28px 7px; }
  .hero-mark img { margin-top: -5.2rem; }
  .section { padding: 4.5rem 1.1rem; }
  .prologue-grid { grid-template-columns: 1fr; }
  .feature-card.wide-card { grid-column: auto; }
  .day-switcher { gap: .4rem; }
  .day-tab { padding: .75rem .35rem; font-size: .76rem; }
  .day-tab span { font-size: .57rem; }
  .schedule-panels { padding: .65rem; }
  .schedule-row { grid-template-columns: 80px minmax(0,1fr); gap: .65rem; padding: .6rem .5rem; }
  .schedule-row time { font-size: .75rem; }
  .schedule-row span { font-size: .86rem; line-height: 1.4; }
  .talk-card summary { grid-template-columns: 1fr 30px; gap: .7rem; }
  .talk-index { grid-column: 1 / -1; }
  .glossary-tools { top: 70px; align-items: stretch; flex-direction: column; }
  #glossary-count { min-width: 0; text-align: left; padding-left: .2rem; }
  .glossary-grid, .resource-list { grid-template-columns: 1fr; }
  footer { grid-template-columns: auto 1fr; padding: 2rem 1.2rem 6.5rem; }
  footer a { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
