:root {
  --bg: #f7f3ee;
  --surface: #ffffff;
  --surface-soft: #fbf8f4;
  --text: #1d2733;
  --muted: #5f6b78;
  --line: #e5ded4;
  --accent: #8b1d1d;
  --accent-dark: #5f1111;
  --accent-soft: #f4e6e2;
  --shadow: 0 18px 60px rgba(29, 39, 51, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-dark);
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.narrow {
  width: min(820px, calc(100% - 2rem));
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--text);
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 243, 238, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(229, 222, 212, 0.8);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand-mark {
  background: var(--accent);
  color: #fff;
  border-radius: 12px;
  padding: 0.35rem 0.55rem;
  letter-spacing: 0.08em;
}

.brand-text {
  font-size: 1.1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
}

.site-nav a:hover,
.site-nav a.active {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 7.5rem 0 6.5rem;
  background: linear-gradient(135deg, #541111 0%, #8b1d1d 48%, #d18a56 100%);
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -45% 35%;
  height: 390px;
  background: rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  transform: rotate(-8deg);
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.8;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero h1 {
  max-width: 900px;
  font-size: clamp(3rem, 8vw, 6.6rem);
}

.hero-subtitle {
  max-width: 650px;
  margin: 1.2rem 0 0;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  opacity: 0.92;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.72rem 1.05rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
}

.button.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 25px rgba(95, 17, 17, 0.22);
}

.hero .button.primary {
  background: #fff;
  color: var(--accent-dark);
}

.button.secondary {
  color: var(--accent-dark);
  border-color: rgba(139, 29, 29, 0.24);
  background: rgba(255, 255, 255, 0.72);
}

.hero .button.secondary {
  color: #fff;
  border-color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.14);
}

.section {
  padding: 4.5rem 0;
}

.alt-section {
  background: var(--surface-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 1.5rem;
}

.section-heading .eyebrow,
.page-hero .eyebrow {
  color: var(--accent);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.speaker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.speakers-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.speakers-layout .speaker-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.speaker-image-card {
  position: sticky;
  top: 96px;
  background: var(--surface);
  border: 1px solid rgba(229, 222, 212, 0.9);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(29, 39, 51, 0.07);
  padding: clamp(0.8rem, 2vw, 1.2rem);
}

.speaker-image-card img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) - 8px);
  object-fit: contain;
}

.speaker-card,
.content-card,
.notice-card,
.person-card,
.venue-card {
  background: var(--surface);
  border: 1px solid rgba(229, 222, 212, 0.9);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(29, 39, 51, 0.07);
}

.speaker-card {
  padding: 1.05rem;
}

.speaker-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  line-height: 1.25;
}

.speaker-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

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

.person-card {
  overflow: hidden;
}

.person-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 20%;
}

.person-card-body {
  padding: 1.25rem;
}

.person-card h3,
.venue-card h2,
.content-card h2,
.content-card h3 {
  margin-top: 0;
  letter-spacing: -0.02em;
}

.person-card p,
.content-card p,
.notice-card p,
.venue-card p {
  color: var(--muted);
}

.page-hero {
  padding: 5.3rem 0 4.3rem;
  background: linear-gradient(135deg, rgba(139,29,29,0.12), rgba(209,138,86,0.14));
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(2.7rem, 7vw, 5rem);
}

.content-card,
.notice-card {
  padding: clamp(1.4rem, 4vw, 2.2rem);
}

.notice-card p {
  margin: 0;
  font-size: 1.15rem;
}

.hotel-links {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.hotel-links .button {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  border-radius: 16px;
  line-height: 1.35;
}

.check-list {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.venue-card {
  overflow: hidden;
  margin: 0;
}

.venue-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.venue-card figcaption {
  padding: clamp(1.4rem, 4vw, 2rem);
}

.site-footer {
  padding: 2.2rem 0;
  background: #201c1b;
  color: #efe8df;
}

.site-footer p {
  margin: 0.35rem 0 0;
  color: rgba(239, 232, 223, 0.72);
}

.site-footer a {
  color: #fff;
  display: inline-block;
  margin-left: 1rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
}

@media (max-width: 960px) {
  .speakers-layout {
    grid-template-columns: 1fr;
  }

  .speaker-image-card {
    position: static;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    background: rgba(247, 243, 238, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.8rem 1rem;
  }

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

@media (max-width: 640px) {
  .hero {
    padding: 5rem 0 4.4rem;
  }

  .section {
    padding: 3.2rem 0;
  }

  .speaker-grid,
  .person-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer a {
    margin-left: 0;
    margin-right: 1rem;
    margin-top: 0.5rem;
  }
}
