:root {
  --ink: #0c2499;
  --paper: #ffffff;
  --tint: #ebeeff;
  --tint-strong: #dfe5ff;
  --line: rgba(12, 36, 153, 0.16);
  --shadow: 0 24px 60px rgba(12, 36, 153, 0.12);
  --radius-xl: 36px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shell: min(1180px, calc(100vw - 2rem));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

a {
  color: inherit;
}

.shell {
  width: var(--shell);
  margin: 0 auto;
}

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

.eyebrow {
  margin: 0 0 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 700;
}

.section {
  position: relative;
  padding: 6rem 0;
}

.section--white {
  background: var(--paper);
}

.section--tint {
  background: var(--tint);
}

.section-heading {
  max-width: 44rem;
  margin-bottom: 3rem;
}

.section-heading h2,
.closing h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 0.96;
  font-weight: 600;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0 2rem;
}

.topbar__brand,
.topbar__links a {
  text-decoration: none;
  font-size: 0.95rem;
}

.topbar__brand {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.topbar__links a {
  white-space: nowrap;
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--tint);
  padding-bottom: 3rem;
}

.hero__halo {
  display: none;
}

.hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  align-items: center;
  gap: 2rem;
  padding: 2rem 0 1rem;
}

.hero__copy {
  position: relative;
  z-index: 2;
  max-width: 38rem;
}

.hero__title {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.hero__title img {
  width: min(100%, 40rem);
}

.hero__lede,
.intro__text p,
.info-card p,
.closing p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.8;
}

.hero__actions,
.closing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1px solid var(--ink);
  text-decoration: none;
  font-weight: 700;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button--solid {
  background: var(--ink);
  color: var(--paper);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.45);
}

.hero__visuals {
  position: relative;
  min-height: 23rem;
}

.float-card {
  position: absolute;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
  background: var(--paper);
}

.float-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.float-card--left {
  left: 0;
  top: 2rem;
  width: 17rem;
  height: 13rem;
  transform: rotate(-5deg);
}

.float-card--right {
  right: 1rem;
  top: 0;
  width: 15rem;
  height: 20rem;
  transform: rotate(6deg);
}

.hero__chateau-wrap {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
  margin-top: 1.5rem;
}

.hero__chateau {
  margin: 0 auto;
  width: min(100%, 64rem);
  height: auto;
  object-fit: contain;
}

.intro__grid,
.lodging__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
  gap: 2rem;
  align-items: start;
}

.intro__text,
.lodging__copy {
  display: grid;
  gap: 1.5rem;
}

.info-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(235, 238, 255, 0.46);
  padding: 1.5rem;
  box-shadow: 0 16px 40px rgba(12, 36, 153, 0.06);
}

.intro__gallery {
  position: relative;
  min-height: 34rem;
}

.intro__gallery--single .intro__photo--large {
  inset: 0;
}

.intro__photo {
  position: absolute;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.intro__photo img,
.moments__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro__photo--large {
  inset: 0 0 3rem 4.5rem;
}

.intro__photo--small {
  left: 0;
  bottom: 0;
  width: 12rem;
  height: 12rem;
  border: 8px solid var(--paper);
}

.timeline {
  display: grid;
  gap: 2rem;
}

.programme-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 13rem);
  gap: 2rem;
  align-items: start;
}

.programme-aside {
  position: sticky;
  top: 1.5rem;
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.programme-aside img {
  width: 100%;
  height: auto;
}

.timeline__day {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.timeline__marker {
  position: relative;
  padding-top: 0.2rem;
}

.timeline__marker::before {
  content: "";
  position: absolute;
  left: 2rem;
  top: 0;
  bottom: -2rem;
  width: 1px;
  background: var(--line);
}

.timeline__day:last-child .timeline__marker::before {
  bottom: 3rem;
}

.timeline__marker span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline__content {
  display: grid;
  gap: 1rem;
}

.timeline__header p,
.timeline__header h3,
.event-card h4,
.info-card h3 {
  margin: 0;
}

.timeline__header p {
  margin-bottom: 0.35rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 700;
}

.timeline__header h3,
.info-card h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 1rem;
}

.event-card {
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  padding: 1.4rem 1.5rem;
}

.event-card__time {
  margin: 0 0 0.55rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.event-card h4 {
  margin-bottom: 0.55rem;
  font-size: 1.15rem;
}

.event-card p,
.event-card a,
.link-list a,
.info-card a {
  font-size: 0.98rem;
  line-height: 1.7;
}

.event-card a,
.link-list a,
.info-card a {
  text-underline-offset: 0.2rem;
}

.info-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.45rem;
  font-size: 0.98rem;
  line-height: 1.7;
}

.event-card span {
  color: rgba(12, 36, 153, 0.76);
}

.lodging__photo {
  grid-area: photo;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  align-self: start;
}

.lodging__photo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.lodging__grid {
  grid-template-areas:
    "tipi photo"
    "stays photo";
}

.lodging__tipi {
  grid-area: tipi;
}

.lodging__stays {
  grid-area: stays;
}

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

.info-rows {
  display: grid;
  gap: 1.5rem;
}

.info-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.82fr);
  gap: 1.5rem;
  align-items: stretch;
}

.info-row__photo {
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.info-row__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.closing {
  text-align: center;
  max-width: 52rem;
}

.closing__title {
  font-size: clamp(1.1rem, 1.9vw, 1.65rem);
  line-height: 1.12;
}

.closing__actions {
  justify-content: center;
}

.closing__note {
  margin-top: 2rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(4rem, 9vw, 7rem);
  line-height: 1;
}

.site-footer {
  background: var(--tint);
  padding: 0 0 3rem;
}

.site-footer__inner {
  display: flex;
  justify-content: center;
}

.site-footer__inner img {
  width: min(6rem, 24vw);
  height: auto;
}

@media (max-width: 980px) {
  .hero__layout,
  .intro__grid,
  .lodging__grid,
  .programme-layout,
  .info-row {
    grid-template-columns: 1fr;
  }

  .hero__visuals {
    order: -1;
    min-height: 19rem;
  }

  .hero__title {
    align-items: center;
  }

  .intro__gallery {
    min-height: 28rem;
  }

  .intro__photo--large {
    inset: 0 0 3rem 2rem;
  }

  .intro__gallery--single .intro__photo--large {
    inset: 0;
  }

  .programme-aside {
    position: static;
    max-width: 13rem;
    justify-self: center;
    margin: 0 auto;
  }

  .lodging__grid {
    grid-template-areas:
      "tipi"
      "photo"
      "stays";
  }
}

@media (max-width: 720px) {
  .section {
    padding: 4.5rem 0;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 1rem;
  }

  .topbar__links {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0.75rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .topbar__links::-webkit-scrollbar {
    display: none;
  }

  .topbar__links a {
    font-size: 0.82rem;
  }

  .hero__layout {
    padding-top: 1rem;
  }

  .hero__visuals {
    min-height: 15rem;
  }

  .float-card--left {
    width: 12rem;
    height: 9rem;
    top: 3rem;
  }

  .float-card--right {
    width: 10rem;
    height: 13rem;
    right: 0;
  }

  .hero__title {
    justify-content: flex-start;
  }

  .hero__title img {
    width: 100%;
  }

  .hero__actions {
    justify-content: center;
  }

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

  .timeline__marker {
    padding-top: 0;
  }

  .timeline__marker::before {
    display: none;
  }

  .intro__gallery {
    min-height: 23rem;
  }

  .intro__photo--large {
    inset: 0;
  }

  .intro__photo--small {
    width: 8.5rem;
    height: 8.5rem;
    left: auto;
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .programme-aside {
    max-width: 10rem;
    margin: 0 auto;
  }
}
