:root {
  --ink: #172126;
  --muted: #5e6a70;
  --paper: #ffffff;
  --soft: #f4f7f5;
  --line: #d9e1df;
  --teal: #0f6b68;
  --teal-deep: #063f42;
  --wine: #8d2f3f;
  --gold: #c9932f;
  --shadow: 0 16px 40px rgba(12, 28, 30, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  padding: 10px 14px;
  color: #ffffff;
  background: var(--teal-deep);
  border-radius: 6px;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--teal-deep);
  font-size: 1.08rem;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 10px 14px;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a[aria-current="page"] {
  color: var(--teal-deep);
  background: var(--soft);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 590px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--teal-deep);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(6, 38, 42, 0.94), rgba(6, 38, 42, 0.72) 48%, rgba(6, 38, 42, 0.22)),
    linear-gradient(0deg, rgba(6, 38, 42, 0.82), rgba(6, 38, 42, 0.05) 52%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 126px 0 76px;
  color: #ffffff;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.subhero h1 {
  margin: 0;
  font-size: clamp(4rem, 12vw, 9.4rem);
  line-height: 0.88;
}

.hero-title {
  max-width: 760px;
  margin: 24px 0 0;
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  font-weight: 700;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  max-width: 840px;
  gap: 12px 28px;
  margin: 34px 0 0;
}

.hero-meta div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 0;
}

.hero-meta dt {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-meta dd {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  color: #ffffff;
  background: var(--wine);
}

.button-primary:hover,
.button-primary:focus {
  background: #742331;
}

.button-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.button-secondary:hover,
.button-secondary:focus {
  background: rgba(255, 255, 255, 0.18);
}

.section {
  padding: 74px 0;
}

.intro-section {
  background: var(--soft);
}

.intro-grid,
.details-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}

.intro-grid h2,
.section-heading h2,
.contact-panel h2,
.details-grid h2 {
  margin: 0;
  color: var(--teal-deep);
  font-size: clamp(1.75rem, 3vw, 3rem);
  line-height: 1.05;
}

.intro-copy p,
.details-grid p,
.contact-panel p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1.03rem;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topic-pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 13px;
  color: var(--teal-deep);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 700;
}

.speakers-section,
.proceedings-section {
  background: #fbfcfc;
}

.registration-section {
  background: linear-gradient(180deg, #ffffff 0%, #f4f7f5 100%);
}

.registration-shell {
  display: grid;
  gap: 24px;
}

.registration-heading {
  max-width: none;
  margin-bottom: 0;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--teal-deep);
}

.registration-contact {
  display: grid;
  grid-template-columns: minmax(220px, 0.6fr) minmax(0, 1.4fr);
  gap: 24px 48px;
  align-items: start;
  padding-top: 8px;
}

.registration-contact-heading {
  min-width: 0;
}

.registration-contact .section-kicker {
  margin-bottom: 8px;
}

.registration-contact h3 {
  margin: 0;
  color: var(--teal-deep);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.08;
}

.contact-line {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
  color: var(--muted);
  font-size: 0.98rem;
}

.contact-line a {
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
}

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

.speaker-card,
.proceeding-card,
.contact-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.speaker-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  overflow: hidden;
}

.speaker-card img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
}

.speaker-body {
  padding: 24px;
}

.speaker-role,
.proceeding-year {
  margin: 0 0 10px;
  color: var(--wine);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.speaker-card h3,
.proceeding-card h2 {
  margin: 0 0 10px;
  color: var(--teal-deep);
  font-size: 1.35rem;
  line-height: 1.2;
}

.speaker-card p,
.proceeding-card p {
  color: var(--muted);
}

.fee-table {
  display: grid;
  background: rgba(255, 255, 255, 0.62);
  border-top: 1px solid var(--line);
}

.fee-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(120px, 0.45fr) minmax(190px, 1fr);
  gap: 24px;
  align-items: center;
  min-height: 82px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.fee-row-head {
  min-height: auto;
  padding: 0 0 11px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.fee-label {
  margin: 0;
  color: var(--teal-deep);
  font-size: 1.18rem;
  line-height: 1.15;
}

.fee-amount {
  margin: 0;
  color: var(--wine);
  font-size: clamp(1.45rem, 2.8vw, 2.15rem);
  font-weight: 900;
  line-height: 1;
}

.fee-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.contact-panel {
  padding: 28px;
}

.contact-panel a {
  color: var(--teal);
  font-weight: 800;
}

.host-section {
  padding-top: 0;
}

.host-inner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 26px;
  padding: clamp(28px, 4vw, 46px);
  background:
    linear-gradient(135deg, rgba(15, 107, 104, 0.88), rgba(6, 63, 66, 1)),
    var(--teal-deep);
  color: #ffffff;
  border-radius: 0;
}

.host-copy h2 {
  max-width: 780px;
  margin: 0 0 22px;
  color: #ffffff;
  font-size: clamp(1.75rem, 3vw, 2.8rem);
  line-height: 1.05;
}

.host-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.host-list span {
  padding: 10px 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
}

.host-visual {
  overflow: hidden;
  padding: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.22);
}

.host-visual img {
  width: 100%;
  aspect-ratio: 1024 / 421;
  object-fit: cover;
  object-position: center center;
}

.subhero {
  padding: 92px 0 78px;
  color: #ffffff;
  background:
    linear-gradient(115deg, rgba(6, 63, 66, 0.96), rgba(141, 47, 63, 0.74)),
    var(--section-bg, url("../images/banner-conference.png")) center / cover;
}

.subhero-inner {
  max-width: 820px;
}

.subhero p {
  max-width: 660px;
  margin: 20px 0 0;
  font-size: 1.18rem;
}

.proceedings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.proceeding-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 26px;
  box-shadow: none;
}

.proceeding-card .button {
  margin-top: auto;
  align-self: flex-start;
}

.compact {
  padding-top: 30px;
}

.site-footer {
  color: #ffffff;
  background: #11191c;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0;
}

.footer-inner p {
  margin: 0;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-inner a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.footer-inner a:hover,
.footer-inner a:focus {
  color: #ffffff;
}

.content-error {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: 320px;
  padding: 14px 16px;
  color: #ffffff;
  background: #9b1c31;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

  .site-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

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

  .hero {
    min-height: 620px;
  }

  .hero-shade {
    background: linear-gradient(0deg, rgba(6, 38, 42, 0.96), rgba(6, 38, 42, 0.34));
  }

  .hero-meta,
  .intro-grid,
  .details-grid,
  .speaker-grid,
  .proceedings-grid,
  .host-inner {
    grid-template-columns: 1fr;
  }

  .registration-contact {
    grid-template-columns: 1fr;
  }

  .fee-row {
    grid-template-columns: minmax(140px, 0.75fr) minmax(120px, 0.5fr) minmax(180px, 1fr);
  }
}

@media (max-width: 620px) {
  .wrap {
    width: min(100% - 28px, 1120px);
  }

  .hero {
    min-height: 620px;
  }

  .hero-content {
    padding: 100px 0 42px;
  }

  .hero h1,
  .subhero h1 {
    font-size: clamp(3.4rem, 19vw, 5rem);
  }

  .hero-meta {
    grid-template-columns: 1fr;
  }

  .contact-line {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .fee-row {
    grid-template-columns: 1fr;
    gap: 7px;
    min-height: 0;
    padding: 18px 0;
  }

  .fee-row-head {
    display: none;
  }

  .hero-meta {
    gap: 10px;
  }

  .hero-meta div {
    width: 100%;
    padding: 0;
    border-right: 0;
  }

  .section {
    padding: 52px 0;
  }

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

  .speaker-card img {
    height: 300px;
  }

  .host-inner {
    padding: 24px;
  }

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