:root {
  --ink: #24140d;
  --muted: #6d4a3d;
  --paper: #fff4d2;
  --paper-soft: #fffaf0;
  --red: #8b2515;
  --red-dark: #54170d;
  --gold: #e1a42c;
  --teal: #00666b;
  --green: #587c3d;
  --line: rgba(84, 23, 13, 0.18);
  --shadow: 0 18px 54px rgba(84, 23, 13, 0.12);
  --max: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: linear-gradient(180deg, #fff9e9 0%, #f3dfb2 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

main,
footer {
  width: min(100%, var(--max));
  margin: 0 auto;
}

main {
  padding: 0 clamp(1rem, 3vw, 2.2rem) clamp(1rem, 3vw, 2.2rem);
}

.hero-banner {
  position: relative;
  width: 100vw;
  margin: 0 calc(50% - 50vw) 0;
  padding: clamp(0.8rem, 1.5vw, 1.25rem) clamp(1rem, 3vw, 2.2rem) clamp(3.6rem, 6vw, 5.4rem);
  overflow: hidden;
  display: grid;
  place-items: start center;
  background:
    linear-gradient(180deg, rgba(84, 23, 13, 0.34), rgba(255, 244, 210, 0.58) 62%, #fff9e9 100%),
    var(--paper);
  isolation: isolate;
}

.hero-banner img {
  width: min(100%, var(--max));
  height: auto;
  aspect-ratio: 1983 / 793;
  object-fit: contain;
  object-position: center;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 18px 48px rgba(84, 23, 13, 0.18);
}

.hero-banner::before {
  position: absolute;
  inset: 0 0 auto;
  height: 42%;
  content: "";
  background:
    radial-gradient(circle at 16% 0%, rgba(225, 164, 44, 0.3), transparent 34%),
    radial-gradient(circle at 84% 0%, rgba(0, 102, 107, 0.15), transparent 32%);
  z-index: -1;
}

.hero-banner::after {
  position: absolute;
  inset: auto 0 0;
  height: 4.5rem;
  content: "";
  background: linear-gradient(180deg, rgba(255, 249, 233, 0), #fff9e9 82%);
  pointer-events: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
li {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
  line-height: 1.02;
}

h2 {
  max-width: none;
  color: var(--red-dark);
  font-size: clamp(2.15rem, 4vw, 3.8rem);
}

h3 {
  color: var(--red-dark);
  font-size: 1.24rem;
}

.section {
  margin-top: clamp(1.2rem, 3vw, 2rem);
  padding: clamp(1.3rem, 3.2vw, 2.25rem);
  background: rgba(255, 250, 240, 0.92);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  scroll-margin-top: 6rem;
}

.hero-banner + .section {
  position: relative;
  margin-top: clamp(-4rem, -5vw, -2.5rem);
  z-index: 1;
}

.section-heading {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.section-heading p {
  margin-bottom: 0.45rem;
}

.two-column,
.overview-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: 1rem;
  align-items: start;
  margin-top: 1rem;
}

.two-column:has(> :only-child) {
  display: block;
}

.speaker-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.two-column article p,
.summary-card p,
.text-card p,
.timeline p,
.speaker-grid p,
.stand-grid p,
.lesson-grid p,
.long-form p,
.resource-downloads p {
  margin: 0.65rem 0 0;
}

.summary-card,
.text-card,
.timeline article,
.speaker-grid article,
.stand-grid article,
.lesson-grid article,
.long-form,
figure {
  background: var(--paper-soft);
  border: 1px solid rgba(139, 37, 21, 0.25);
  border-radius: 10px;
}

.summary-card,
.text-card,
.timeline article,
.speaker-grid article,
.stand-grid article,
.lesson-grid article,
.long-form {
  padding: 1rem;
}

.long-form {
  margin-top: 1rem;
  max-width: none;
}

.summary-card dl {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0;
}

.summary-card dt {
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.summary-card dd {
  margin: 0;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.timeline article {
  border-top: 5px solid var(--gold);
}

time,
.stand-grid span {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 900;
}

.speaker-grid article {
  border-left: 5px solid var(--green);
}

.speaker-grid ul {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
}

.speaker-grid li + li {
  margin-top: 0.45rem;
}

.stand-grid,
.lesson-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.stand-grid article {
  display: flex;
  flex-direction: column;
  border-top: 5px solid var(--teal);
}

.host {
  color: var(--teal);
  font-weight: 800;
}

.stand-poster {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--teal);
  font-size: 0.88rem;
  font-weight: 850;
  text-decoration: none;
}

.stand-poster img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fff;
  border: 1px solid rgba(139, 37, 21, 0.22);
  border-radius: 7px;
}

.stand-poster:hover,
.stand-poster:focus-visible {
  color: var(--red-dark);
  text-decoration: underline;
  outline: none;
}

figure {
  margin: 0;
  padding: 0.6rem;
}

figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 7px;
}

figcaption {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

code {
  color: var(--red-dark);
  background: rgba(225, 164, 44, 0.22);
  border-radius: 4px;
  padding: 0.1rem 0.25rem;
}

.carousel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  margin-top: 1rem;
}

.carousel-slide {
  min-width: 0;
}

.carousel-slide img {
  aspect-ratio: 1084 / 724;
}

.committee-feature {
  margin-top: 1rem;
}

.committee-feature img {
  aspect-ratio: 1084 / 724;
  object-position: center;
}

.committee-feature figcaption {
  display: grid;
  gap: 0.45rem;
  color: var(--red-dark);
  font-weight: 850;
  text-align: center;
}

.committee-names {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.45rem;
  justify-content: center;
  margin: 0;
  padding: 0;
  color: var(--teal);
  font-size: clamp(0.98rem, 1.6vw, 1.18rem);
  font-weight: 850;
  list-style: none;
}

.committee-names li:not(:last-child)::after {
  content: ",";
}

.carousel-slide[hidden] {
  display: none;
}

.carousel-button {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.9rem;
  color: var(--red-dark);
  background: var(--gold);
  border: 2px solid currentColor;
  border-radius: 7px;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.carousel-button:hover,
.carousel-button:focus-visible {
  color: var(--paper-soft);
  background: var(--teal);
  outline: none;
}

.carousel-status {
  margin-top: 0.7rem;
  color: var(--muted);
  font-weight: 750;
  text-align: center;
}

.resource-intro {
  max-width: 76ch;
  margin: 1rem 0 0;
}

.inline-link {
  color: var(--teal);
  font-weight: 850;
}

.resource-downloads {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.resource-downloads article {
  padding: 1rem;
  background: var(--paper-soft);
  border: 1px solid rgba(139, 37, 21, 0.25);
  border-top: 5px solid var(--gold);
  border-radius: 10px;
}

.resource-downloads article > p {
  max-width: 72ch;
  margin: 0.75rem 0 0;
}

.printout-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.printout-preview {
  padding: 0.65rem;
}

.printout-preview img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fff;
  border-radius: 7px;
}

.resource-downloads ul {
  display: grid;
  gap: 0.45rem;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}

.resource-downloads a {
  display: inline-flex;
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
}

.resource-downloads a:hover,
.resource-downloads a:focus-visible {
  color: var(--red-dark);
  text-decoration: underline;
  outline: none;
}

footer {
  padding: 1.5rem clamp(1rem, 3vw, 2.2rem) 2rem;
  color: var(--red-dark);
  font-size: 0.92rem;
}

.committee-section {
  font-size: 1rem;
}

.event-footer {
  margin: 1rem 0 0;
  font-weight: 750;
  text-align: center;
}

@media (max-width: 960px) {
  .two-column,
  .overview-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .timeline,
  .stand-grid,
  .lesson-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  main {
    padding: 0.85rem;
  }

  .hero-banner {
    width: auto;
    margin: -0.85rem -0.85rem clamp(1.1rem, 5vw, 1.8rem);
    padding: 0.55rem 0 1.55rem;
  }

  .hero-banner img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 0;
  }

  h2 {
    font-size: clamp(1.7rem, 7vw, 1.95rem);
  }

  .section {
    padding: 1rem;
    scroll-margin-top: 1rem;
  }

  .timeline,
  .stand-grid,
  .lesson-grid,
  .resource-downloads {
    grid-template-columns: 1fr;
  }

  .printout-grid {
    grid-template-columns: 1fr;
  }

  .carousel {
    grid-template-columns: 1fr 1fr;
  }

  .carousel-slide {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .carousel-button {
    grid-row: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
