:root {
  --paper: #f6f0e4;
  --paper-soft: #fbf7ee;
  --ink: #1f2728;
  --muted: #68706c;
  --petrol: #073642;
  --petrol-soft: #0d4a55;
  --gold: #b98743;
  --gold-soft: #e2c391;
  --line: #dfd2bd;
  --white: #fffdf8;
  --red: #a72c23;
  --shadow: 0 18px 40px rgba(30, 38, 38, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.78), rgba(246, 240, 228, 0.92)),
    var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.62;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(7, 54, 66, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 54, 66, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
}

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

a {
  color: inherit;
}

.site-shell {
  min-height: 100vh;
  overflow-x: hidden;
}

.section {
  padding: 72px 20px;
}

.section-inner {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.section.alt {
  background: rgba(255, 253, 248, 0.6);
  border-block: 1px solid rgba(223, 210, 189, 0.7);
}

.topline {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 8px;
}

.topline > *,
.hero-grid > *,
.section-heading > *,
.split-feature > *,
.free-entry > *,
.footer-inner > * {
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-mark img {
  width: 210px;
  max-height: 88px;
  object-fit: contain;
}

.quiet-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
  color: var(--petrol);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.quiet-links a,
.language-switch a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.quiet-links a:hover,
.language-switch a:hover {
  border-bottom-color: currentColor;
}

.language-switch {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: var(--petrol);
}

.language-switch a {
  padding: 4px 0;
  opacity: 0.72;
}

.language-switch a[aria-current="true"] {
  opacity: 1;
  color: var(--red);
}

.hero {
  padding: 24px 20px 72px;
}

.hero-grid {
  width: min(1160px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 44px;
  align-items: center;
}

.eyebrow,
.small-label {
  margin: 0 0 12px;
  color: var(--gold);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  color: var(--petrol);
  font-size: 64px;
  line-height: 0.98;
  font-weight: 500;
  overflow-wrap: break-word;
}

.hero-subtitle {
  max-width: 620px;
  color: var(--petrol-soft);
  font-size: 24px;
  line-height: 1.28;
}

.edition-line {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 24px 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.74);
  color: var(--petrol);
  font-size: 14px;
  font-weight: 800;
}

.pill.gold {
  border-color: rgba(185, 135, 67, 0.5);
  background: rgba(226, 195, 145, 0.28);
  color: #6f471a;
}

.hero-copy {
  max-width: 680px;
  color: #35403e;
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--petrol);
  border-radius: 8px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--petrol);
  color: var(--white);
}

.button.secondary {
  background: rgba(255, 253, 248, 0.75);
  color: var(--petrol);
}

.hero-note {
  margin-top: 18px;
  color: var(--muted);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
}

.hero-visual {
  position: relative;
}

.hero-visual figure {
  margin: 0;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 70% center;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.visual-caption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  max-width: calc(100% - 36px);
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid rgba(223, 210, 189, 0.8);
  color: var(--petrol);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.info-strip {
  width: min(1160px, calc(100% - 40px));
  margin: -34px auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(30, 38, 38, 0.08);
  overflow: hidden;
}

.info-item {
  padding: 18px 20px;
  border-right: 1px solid var(--line);
}

.info-item:last-child {
  border-right: 0;
}

.info-item strong {
  display: block;
  color: var(--gold);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
}

.info-item span {
  display: block;
  margin-top: 4px;
  color: var(--petrol);
  font-size: 18px;
  line-height: 1.3;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 0;
  color: var(--petrol);
  font-size: 42px;
  line-height: 1.05;
  font-weight: 500;
}

.section-heading p {
  margin: 0;
  color: #495754;
}

.program-grid,
.history-grid,
.media-grid,
.link-grid,
.package-grid {
  display: grid;
  gap: 16px;
}

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

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

.archive-stack {
  display: grid;
  gap: 22px;
}

.archive-edition {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 0.66fr);
  gap: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.78);
}

.archive-edition.compact {
  grid-template-columns: 1fr;
}

.archive-poster img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-soft);
}

.archive-poster .button {
  width: 100%;
  margin-top: 12px;
}

.archive-content h3 {
  margin-bottom: 10px;
  color: var(--petrol);
  font-size: 30px;
  line-height: 1.12;
  font-weight: 500;
}

.archive-lead {
  color: #3f4d4a;
  font-size: 17px;
}

.archive-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0 18px;
}

.archive-events {
  display: grid;
  gap: 10px;
}

.archive-event {
  padding: 14px;
  border: 1px solid rgba(223, 210, 189, 0.86);
  border-radius: 8px;
  background: rgba(246, 240, 228, 0.42);
}

.archive-event strong,
.archive-event span {
  display: block;
}

.archive-event strong {
  color: var(--petrol);
  font-size: 18px;
  line-height: 1.22;
  font-weight: 700;
}

.archive-event span {
  margin-top: 4px;
  color: var(--muted);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.archive-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
}

.media-grid,
.link-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.card,
.program-card,
.history-card,
.media-card,
.link-card,
.package-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.76);
}

.program-card,
.history-card,
.media-card,
.link-card,
.package-card {
  padding: 22px;
}

.program-card.featured {
  background: var(--petrol);
  color: var(--white);
  border-color: var(--petrol);
}

.program-card time,
.history-year {
  display: block;
  margin-bottom: 14px;
  color: var(--gold);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.program-card h3,
.history-card h3,
.media-card h3,
.link-card h3,
.package-card h3 {
  margin-bottom: 10px;
  color: var(--petrol);
  font-size: 24px;
  line-height: 1.16;
  font-weight: 500;
}

.program-card.featured h3 {
  color: var(--white);
}

.program-card p,
.history-card p,
.media-card p,
.link-card p,
.package-card p {
  color: #4f5d5a;
  font-size: 16px;
}

.program-card.featured p {
  color: #dce8e8;
}

.facts {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
}

.fact {
  padding-top: 8px;
  border-top: 1px solid rgba(223, 210, 189, 0.7);
}

.featured .fact {
  border-top-color: rgba(255, 253, 248, 0.22);
}

.split-feature {
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1.12fr);
  gap: 38px;
  align-items: center;
}

.split-feature img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 70% center;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.feature-copy h2 {
  color: var(--petrol);
  font-size: 42px;
  line-height: 1.05;
  font-weight: 500;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
  padding: 0;
  list-style: none;
}

.feature-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
  padding: 11px 12px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--petrol);
}

.manifesto {
  max-width: 920px;
}

.manifesto h2,
.free-entry h2 {
  color: var(--petrol);
  font-size: 42px;
  line-height: 1.08;
  font-weight: 500;
}

.institutional-note {
  margin-top: 24px;
  padding: 18px 20px;
  border-left: 4px solid var(--gold);
  background: rgba(255, 253, 248, 0.72);
  color: var(--petrol);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  font-weight: 800;
}

.partner-logos {
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) minmax(260px, 0.66fr);
  gap: 16px;
  align-items: center;
  margin-top: 22px;
}

.partner-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 130px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.78);
}

.partner-logo-card img {
  width: 100%;
  max-height: 104px;
  object-fit: contain;
}

.partner-logo-card.ipue-logo-card img {
  max-width: 150px;
}

.partner-logo-card.riviera-logo-card img {
  max-width: 360px;
}

.history-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.history-tags span {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(226, 195, 145, 0.22);
  color: #6f471a;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.free-entry {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 34px;
  align-items: start;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.free-entry p:last-child {
  margin-bottom: 0;
}

.packages-section[hidden] {
  display: none;
}

.package-card {
  display: grid;
  gap: 12px;
  min-height: 100%;
}

.package-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.package-price {
  color: var(--petrol);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.package-card .button {
  justify-self: start;
  margin-top: 4px;
}

.media-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
}

.media-card a,
.link-card a {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--petrol);
}

.site-footer {
  padding: 44px 20px;
  color: #d8e6e6;
  background: var(--petrol);
}

.footer-inner {
  width: min(1160px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
}

.footer-logo {
  width: 190px;
  max-height: 78px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.site-footer p {
  max-width: 620px;
  margin: 14px 0 0;
  color: #d8e6e6;
}

.footer-branding {
  min-width: 0;
}

.footer-partner-logos {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.footer-partner-logos img {
  object-fit: contain;
}

.footer-partner-logos .footer-ipue {
  width: 96px;
  max-height: 96px;
}

.footer-partner-logos .footer-riviera {
  width: 188px;
  max-height: 78px;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.footer-links a {
  color: #eef8f8;
  text-decoration: none;
  border-bottom: 1px solid rgba(238, 248, 248, 0.45);
}

.redirect-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.redirect-box {
  max-width: 620px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  text-align: center;
}

.redirect-box img {
  width: 220px;
  margin: 0 auto 18px;
}

.redirect-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  h1 {
    font-size: 48px;
  }

  .topline,
  .hero-grid,
  .section-heading,
  .split-feature,
  .archive-edition,
  .free-entry,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .quiet-links,
  .language-switch {
    justify-content: flex-start;
  }

  .program-grid,
  .history-grid,
  .media-grid,
  .link-grid,
  .package-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info-strip {
    grid-template-columns: 1fr;
    margin-top: 0;
  }

  .info-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .info-item:last-child {
    border-bottom: 0;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .section {
    padding: 52px 16px;
  }

  .topline {
    width: calc(100% - 32px);
    padding-top: 16px;
  }

  .brand-mark img {
    width: 180px;
  }

  .quiet-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
  }

  .quiet-links a {
    min-width: 0;
  }

  .hero {
    padding: 18px 16px 48px;
  }

  h1 {
    font-size: 38px;
  }

  .hero-subtitle {
    font-size: 20px;
  }

  .section-heading h2,
  .feature-copy h2,
  .manifesto h2,
  .free-entry h2 {
    font-size: 34px;
  }

  .program-grid,
  .history-grid,
  .media-grid,
  .link-grid,
  .package-grid,
  .feature-list,
  .partner-logos {
    grid-template-columns: 1fr;
  }

  .partner-logo-card {
    min-height: 112px;
  }

  .free-entry {
    padding: 24px;
  }

  .visual-caption {
    position: static;
    max-width: none;
    margin-top: 10px;
  }

  .actions .button {
    width: 100%;
  }
}
