:root {
  --burgundy: #681e2d;
  --champagne: #d4b37f;
  --white: #fffaf4;
  --muted: rgba(255, 250, 244, .72);
  --hairline: rgba(255, 250, 244, .25);
  --page-x: clamp(24px, 5vw, 76px);
  --max-width: 1540px;
}

* { box-sizing: border-box; }
html { background: #2b1016; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: #2b1016;
  color: var(--white);
  font-family: "Montserrat", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--champagne); color: #241417; }

.site-shell {
  position: relative;
  min-height: 100svh;
  overflow-x: clip;
  isolation: isolate;
  opacity: 0;
  transition: opacity .55s ease;
}
.site-shell.is-ready { opacity: 1; }

.background,
.background img,
.background__overlay {
  position: absolute;
  inset: 0;
}
.background { z-index: -1; background: #32131a; }
.background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(.82) contrast(1.04) brightness(.78);
}
.background__overlay {
  background:
    linear-gradient(90deg, rgba(28, 8, 13, .82) 0%, rgba(28, 8, 13, .58) 38%, rgba(28, 8, 13, .18) 70%, rgba(28, 8, 13, .30) 100%),
    linear-gradient(180deg, rgba(18, 6, 9, .26) 0%, rgba(18, 6, 9, .06) 48%, rgba(18, 6, 9, .70) 100%);
}

.layout {
  width: min(100%, var(--max-width));
  min-height: 100svh;
  margin: 0 auto;
  padding-inline: var(--page-x);
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--hairline);
}

.brand {
  display: inline-block;
  line-height: 0;
  flex: 0 0 auto;
  text-decoration: none;
}
.brand img {
  display: block;
  width: 116px;
  height: auto;
}
.brand:focus-visible {
  outline: 1px solid var(--champagne);
  outline-offset: 7px;
}

.topbar__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}
.separator {
  width: 28px;
  height: 1px;
  background: var(--champagne);
  opacity: .8;
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(72px, 11vh, 130px) 0 clamp(44px, 7vh, 78px);
}

.hero__copy {
  width: min(870px, 77vw);
}
.kicker {
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--champagne);
}

h1 {
  margin: 0;
  max-width: 900px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(54px, 7vw, 106px);
  font-weight: 500;
  line-height: .96;
  letter-spacing: -.035em;
}
h1 em {
  color: var(--champagne);
  font-weight: 500;
}

.intro {
  max-width: 720px;
  margin: 26px 0 0;
  font-size: clamp(15px, 1.08vw, 18px);
  line-height: 1.7;
  color: rgba(255, 250, 244, .84);
}

.program {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(42px, 6vh, 70px);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.program__item {
  min-width: 0;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  padding: 18px 22px 20px 0;
}
.program__item + .program__item {
  border-left: 1px solid var(--hairline);
  padding-left: 22px;
}
.program__number {
  padding-top: 1px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 16px;
  line-height: 1;
  color: var(--champagne);
}
.program strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.program p {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.55;
  color: var(--muted);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 17px 0 22px;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 250, 244, .58);
}
.footer span:last-child { text-align: right; }

@media (max-width: 1020px) {
  .hero__copy { width: min(760px, 92vw); }
  .program { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .program__item:nth-child(3) { border-left: 0; border-top: 1px solid var(--hairline); padding-left: 0; }
  .program__item:nth-child(4) { border-top: 1px solid var(--hairline); }
}

@media (max-width: 700px) {
  :root { --page-x: 20px; }
  html, body { overflow-x: hidden; }
  .site-shell { min-height: 100svh; overflow-y: visible; }
  .layout { min-height: 100svh; display: flex; flex-direction: column; }

  .background img { object-position: 61% center; }
  .background__overlay {
    background:
      linear-gradient(180deg, rgba(24, 7, 11, .43) 0%, rgba(24, 7, 11, .28) 20%, rgba(24, 7, 11, .70) 70%, rgba(24, 7, 11, .90) 100%),
      linear-gradient(90deg, rgba(28, 8, 13, .62), rgba(28, 8, 13, .20));
  }

  .topbar { padding: 20px 0 15px; align-items: flex-start; }
  .brand img { width: 84px; }
  .topbar__meta { display: block; margin-top: 5px; max-width: 170px; font-size: 8px; line-height: 1.6; letter-spacing: .13em; }
  .topbar__meta span:first-child { display: block; color: var(--champagne); }
  .separator { display: none; }

  .hero { flex: 1 0 auto; justify-content: flex-start; padding: 64px 0 32px; }
  .hero__copy { width: 100%; }
  .kicker { margin-bottom: 14px; font-size: 9px; }
  h1 { font-size: clamp(43px, 13vw, 64px); line-height: .96; }
  .intro { max-width: 95%; margin-top: 20px; font-size: 14px; line-height: 1.65; }

  .program { grid-template-columns: 1fr; margin-top: 38px; }
  .program__item,
  .program__item + .program__item,
  .program__item:nth-child(3),
  .program__item:nth-child(4) {
    border-left: 0;
    border-top: 1px solid var(--hairline);
    padding: 14px 0 15px;
  }
  .program__item:first-child { border-top: 0; }
  .program__item { grid-template-columns: 28px 1fr; }
  .program strong { font-size: 10px; }
  .program p { margin-top: 4px; font-size: 11px; }

  .footer { flex-direction: column; gap: 7px; padding: 15px 0 19px; font-size: 8px; }
  .footer span:last-child { text-align: left; }
}

@media (max-width: 390px) {
  h1 { font-size: clamp(39px, 12.4vw, 50px); }
  .hero { padding-top: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-shell { transition: none; }
}
