:root {
  --ink: #17384a;
  --blue: #8fd3ee;
  --blue-soft: #dff5ff;
  --blue-deep: #2c81a8;
  --lemon: #f5cf35;
  --lemon-soft: #fff3a7;
  --white: #fffdf8;
  --line: rgba(23, 56, 74, 0.18);
  --max: 1220px;
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --script: "Lucida Calligraphy", "Monotype Corsiva", "Brush Script MT", cursive;
  --label: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Gill Sans", "Trebuchet MS", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--white);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 7%, rgba(245, 207, 53, 0.34), transparent 18rem),
    linear-gradient(180deg, var(--white), var(--blue-soft) 36rem, var(--white) 72rem);
  font-family: var(--sans);
  line-height: 1.48;
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  content: "";
  background-image: url("./assets/generated/grain.png");
  opacity: 0.12;
  mix-blend-mode: multiply;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(223, 245, 255, 0.94)),
    linear-gradient(90deg, rgba(44, 129, 168, 0.13) 1px, transparent 1px),
    linear-gradient(rgba(44, 129, 168, 0.13) 1px, transparent 1px),
    var(--white);
  background-size: auto, 52px 52px, 52px 52px, auto;
  clip-path: inset(0 0 0 0);
}

.loader__mark {
  position: relative;
  display: grid;
  gap: 2px;
  width: min(78vw, 620px);
  overflow: hidden;
  text-align: center;
}

.loader__mark::before,
.loader__mark::after {
  position: absolute;
  top: 50%;
  width: clamp(44px, 12vw, 140px);
  height: 1px;
  content: "";
  background: var(--blue-deep);
}

.loader__mark::before {
  right: calc(100% + 24px);
}

.loader__mark::after {
  left: calc(100% + 24px);
}

.loader__mark span,
.loader__mark strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 8vw, 8rem);
  font-weight: 400;
  line-height: 0.86;
}

.loader__mark strong {
  color: var(--blue-deep);
}

.loader p {
  position: absolute;
  bottom: 36px;
  margin: 0;
  color: var(--blue-deep);
  font-family: var(--script);
  font-size: clamp(2.2rem, 6vw, 5rem);
  transform: rotate(-6deg);
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 18px;
  height: 18px;
  pointer-events: none;
  border: 1px solid var(--blue-deep);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 95;
  width: 100%;
  height: 3px;
  background: rgba(23, 56, 74, 0.12);
}

.progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--lemon);
  transform: scaleX(0);
  transform-origin: left;
}

.site-nav {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 160;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 32px), var(--max));
  min-height: 58px;
  padding: 0 10px 0 18px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.82);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand {
  font-family: var(--serif);
  font-size: 1.34rem;
  font-weight: 500;
  text-decoration: none;
}

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

.site-nav a:not(.brand) {
  padding: 11px 10px;
  font-family: var(--label);
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0;
}

.site-nav a:not(.brand):hover,
.site-nav a:not(.brand):focus-visible {
  color: var(--ink);
  background: var(--lemon);
  outline: none;
}

.menu-toggle {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  width: 20px;
  height: 1px;
  background: currentColor;
  transition: transform 240ms ease, opacity 180ms ease;
}

.menu-toggle span:nth-child(1) {
  transform: translateY(-7px);
}

.menu-toggle span:nth-child(3) {
  transform: translateY(7px);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: none;
  color: var(--ink);
  pointer-events: none;
  visibility: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(245, 207, 53, 0.46), transparent 15rem),
    linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(223, 245, 255, 0.98)),
    var(--white);
  opacity: 0;
  transition: opacity 260ms ease, visibility 260ms ease;
}

.mobile-menu::before {
  position: absolute;
  inset: 16px;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(44, 129, 168, 0.2);
}

.mobile-menu__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(calc(100% - 36px), 560px);
  min-height: 100svh;
  margin: 0 auto;
  padding: 118px 0 54px;
}

.mobile-menu nav {
  display: grid;
  gap: 2px;
}

.mobile-menu a {
  position: relative;
  display: block;
  padding: 14px 0;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 15vw, 6.4rem);
  font-weight: 400;
  line-height: 0.9;
  text-decoration: none;
}

.mobile-menu a::after {
  position: absolute;
  left: 0;
  bottom: 8px;
  width: 100%;
  height: 2px;
  content: "";
  background: var(--lemon);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.mobile-menu a:hover::after,
.mobile-menu a:focus-visible::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  display: grid;
  min-height: 86svh;
  padding: 126px max(20px, calc((100vw - var(--max)) / 2)) 64px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -4;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.98), rgba(255, 253, 248, 0.78) 44%, rgba(223, 245, 255, 0.76)),
    var(--white);
}

.hero__grain {
  display: none;
}

.hero__aura {
  position: absolute;
  right: 6vw;
  top: 12vh;
  z-index: -2;
  width: min(50vw, 680px);
  aspect-ratio: 1;
  background: url("./assets/generated/lemon-aura.png") center / contain no-repeat;
  opacity: 0.76;
}

.hero__visual {
  position: absolute;
  top: 9vh;
  right: clamp(18px, 7vw, 96px);
  z-index: -3;
  width: min(52vw, 760px);
  height: min(72vh, 760px);
  overflow: hidden;
  border: 1px solid var(--line);
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 88%);
  box-shadow: 0 34px 100px rgba(44, 129, 168, 0.16);
}

.hero__visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(255, 253, 248, 0.26), rgba(255, 253, 248, 0.02));
}

.hero__visual img {
  transform: scale(1.04);
}

.hero__copy {
  align-self: end;
  max-width: 900px;
}

.kicker {
  margin: 0 0 18px;
  color: var(--blue-deep);
  font-family: var(--label);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 9.6rem;
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: 0;
}

.hero h1 span {
  display: block;
  transform-origin: left bottom;
}

.hero__lead {
  max-width: 620px;
  margin: 28px 0 0;
  color: rgba(23, 56, 74, 0.76);
  font-size: 1.25rem;
}

.hero__signature {
  position: absolute;
  right: max(20px, calc((100vw - var(--max)) / 2));
  bottom: 42px;
  margin: 0;
  color: var(--blue-deep);
  font-family: var(--script);
  font-size: 5.2rem;
  opacity: 0.82;
  transform: rotate(-8deg);
}

.quick-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 178px;
  color: var(--ink);
  background: var(--blue-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quick-strip__item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 26px;
  border-right: 1px solid var(--line);
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease;
}

.quick-strip__item:hover,
.quick-strip__item:focus-visible {
  background: var(--lemon-soft);
  outline: none;
}

.quick-strip__item span,
.detail-rail span {
  font-family: var(--label);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0;
}

.quick-strip__item strong {
  font-family: var(--serif);
  font-size: 3.45rem;
  font-weight: 400;
  line-height: 0.9;
}

.quick-strip__item small {
  color: rgba(23, 56, 74, 0.72);
  font-size: 0.92rem;
}

.section {
  padding: 118px 0;
}

.section__inner {
  width: min(calc(100% - 36px), var(--max));
  margin: 0 auto;
}

h2,
h3,
p {
  overflow-wrap: anywhere;
}

h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0;
}

h2 {
  font-size: 5.6rem;
  line-height: 0.95;
}

h3 {
  font-size: 2.3rem;
  line-height: 1;
}

.invitation {
  color: var(--ink);
  background: var(--white);
}

.invitation__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(310px, 0.72fr);
  gap: 82px;
  align-items: center;
}

.invitation__copy p:not(.kicker) {
  max-width: 660px;
  color: rgba(23, 56, 74, 0.74);
  font-size: 1.08rem;
}

.script-line,
.signature-text {
  color: var(--ink) !important;
  font-family: var(--script);
  font-size: 2.15rem !important;
  line-height: 1.15;
}

.strong-line {
  color: var(--ink) !important;
  font-weight: 700;
  text-transform: uppercase;
}

.image-stack {
  position: relative;
  min-height: 620px;
}

.image-stack figure,
.venue__image,
.countdown-section__image {
  margin: 0;
  overflow: hidden;
  background: var(--blue-soft);
}

.image-stack__large {
  position: absolute;
  inset: 0 7% 9% 0;
  clip-path: polygon(0 0, 100% 8%, 94% 100%, 8% 92%);
}

.image-stack__small {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 42%;
  height: 38%;
  border: 8px solid var(--white);
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 90%);
}

.friday {
  position: relative;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(223, 245, 255, 0.96), rgba(255, 253, 248, 0.92) 54%, rgba(255, 243, 167, 0.82)),
    var(--blue-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.friday::before {
  position: absolute;
  inset: 22px;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(44, 129, 168, 0.2);
}

.friday__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.58fr);
  gap: 76px;
  align-items: center;
}

.friday__media {
  width: min(100%, 500px);
  min-height: 680px;
  aspect-ratio: 3 / 4.7;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  clip-path: polygon(0 8%, 92% 0, 100% 92%, 8% 100%);
}

.friday__copy p:not(.kicker) {
  max-width: 680px;
  color: rgba(23, 56, 74, 0.74);
  font-size: 1.08rem;
}

.friday__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 38px;
  background: rgba(255, 253, 248, 0.74);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.friday__facts div {
  min-height: 156px;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.friday__facts span {
  display: block;
  margin-bottom: 28px;
  font-family: var(--label);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}

.friday__facts strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.86rem;
  font-weight: 400;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.friday__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.friday__actions .button,
.venue__actions .button {
  margin-top: 0;
}

.venue__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.marquee {
  overflow: hidden;
  color: var(--ink);
  background: var(--lemon);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.marquee span {
  padding: 24px 28px;
  font-family: var(--serif);
  font-size: 4.4rem;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.agenda {
  color: var(--ink);
  background:
    linear-gradient(rgba(223, 245, 255, 0.9), rgba(223, 245, 255, 0.96)),
    linear-gradient(90deg, rgba(44, 129, 168, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(44, 129, 168, 0.12) 1px, transparent 1px),
    var(--blue-soft);
  background-size: auto, 56px 56px, 56px 56px, auto;
}

.agenda__grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 0.58fr);
  gap: 86px;
  align-items: start;
}

.agenda__sticky {
  position: sticky;
  top: 118px;
}

.agenda__date {
  margin: 26px 0 0;
  color: var(--blue-deep);
  font-family: var(--script);
  font-size: 2.4rem;
  line-height: 1.1;
}

.agenda__intro {
  max-width: 420px;
  margin: 22px 0 0;
  color: rgba(23, 56, 74, 0.76);
  font-size: 1.06rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 30px;
  padding: 13px 17px;
  border: 1px solid currentColor;
  border-radius: 0;
  font: inherit;
  font-family: var(--label);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease;
}

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

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

.button--line {
  color: inherit;
  background: transparent;
}

.button--line:hover,
.button--line:focus-visible {
  color: var(--ink);
  background: var(--lemon);
  border-color: var(--lemon);
}

.agenda__list {
  background: rgba(255, 253, 248, 0.72);
  border-top: 1px solid var(--line);
}

.agenda__row {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 30px;
  padding: 30px 26px;
  border-bottom: 1px solid var(--line);
}

.agenda__row time {
  color: var(--blue-deep);
  font-family: var(--serif);
  font-size: 3.4rem;
  font-weight: 400;
  line-height: 0.9;
}

.agenda__row--open time {
  font-size: 2.1rem;
}

.agenda__row p {
  margin: 10px 0 0;
  color: rgba(23, 56, 74, 0.72);
}

.venues {
  color: var(--ink);
  background: var(--white);
}

.venue {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 680px;
  border-bottom: 1px solid var(--line);
}

.venue__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px;
}

.venue__copy p:not(.kicker) {
  max-width: 560px;
  color: rgba(23, 56, 74, 0.72);
  font-size: 1.06rem;
}

.venue--party {
  background: var(--blue-soft);
}

.address {
  color: var(--ink) !important;
  font-family: var(--serif);
  font-size: 1.4rem !important;
}

.details {
  color: var(--ink);
  background: var(--white);
}

.section-heading {
  max-width: 970px;
  margin-bottom: 52px;
}

.detail-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.detail-rail article {
  min-height: 420px;
  padding: 24px;
  background: linear-gradient(180deg, var(--white), var(--blue-soft));
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-rail h3 {
  margin-top: 44px;
}

.detail-rail p {
  color: rgba(23, 56, 74, 0.72);
}

.detail-rail a {
  font-weight: 700;
  text-decoration-color: var(--lemon);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}

.countdown-section {
  display: grid;
  grid-template-columns: minmax(0, 0.46fr) minmax(0, 0.54fr);
  min-height: 720px;
  color: var(--ink);
  background: var(--blue-soft);
}

.countdown-section__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 680px;
  margin-top: 42px;
  background: var(--white);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.countdown div {
  min-height: 142px;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.countdown strong {
  display: block;
  color: var(--blue-deep);
  font-family: var(--serif);
  font-size: 4.2rem;
  font-weight: 400;
  line-height: 0.9;
}

.countdown span {
  display: block;
  margin-top: 12px;
  font-family: var(--label);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px max(20px, calc((100vw - var(--max)) / 2));
  color: var(--ink);
  background: var(--white);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  font-family: var(--label);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}

[data-reveal],
[data-image-reveal] {
  will-change: transform, opacity, clip-path;
}

@media (max-width: 1100px) {
  .hero h1 {
    font-size: 7rem;
  }

  .quick-strip,
  .detail-rail,
  .countdown {
    grid-template-columns: repeat(2, 1fr);
  }

  .invitation__grid,
  .friday__grid,
  .agenda__grid,
  .countdown-section {
    grid-template-columns: 1fr;
  }

  .agenda__sticky {
    position: static;
  }

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

  .venue--party .venue__copy {
    order: 2;
  }

  .venue--party .venue__image {
    order: 1;
  }

  .venue__image,
  .countdown-section__image {
    min-height: 440px;
  }

  .friday__media {
    width: min(100%, 430px);
    min-height: 560px;
    margin: 0 auto;
  }

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

@media (max-width: 680px) {
  .cursor {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .mobile-menu.is-open {
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
  }

  .site-nav {
    top: 10px;
    width: calc(100% - 20px);
    min-height: 54px;
    padding: 5px 5px 5px 12px;
  }

  .brand {
    max-width: 210px;
    font-size: 0.98rem;
    line-height: 1.05;
  }

  .site-nav nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero {
    min-height: 82svh;
    padding: 108px 18px 48px;
  }

  .hero__visual {
    top: 96px;
    right: -12vw;
    width: 72vw;
    height: 32vh;
    opacity: 0.78;
  }

  .hero h1 {
    font-size: 4.65rem;
  }

  .hero__lead {
    max-width: 330px;
    font-size: 1.05rem;
  }

  .hero__signature {
    display: none;
  }

  .quick-strip,
  .detail-rail,
  .countdown {
    grid-template-columns: 1fr;
  }

  .quick-strip__item {
    min-height: 136px;
  }

  .section {
    padding: 78px 0;
  }

  h2 {
    font-size: 3.2rem;
  }

  h3 {
    font-size: 1.9rem;
  }

  .invitation__grid {
    gap: 44px;
  }

  .friday::before {
    inset: 10px;
  }

  .friday__grid {
    gap: 42px;
  }

  .friday__media {
    width: min(100%, 330px);
    min-height: 480px;
  }

  .image-stack {
    min-height: 430px;
  }

  .image-stack__small {
    width: 52%;
  }

  .marquee span {
    font-size: 3rem;
  }

  .agenda__row {
    grid-template-columns: 82px 1fr;
    gap: 16px;
    padding: 24px 18px;
  }

  .agenda__row time {
    font-size: 2.1rem;
  }

  .agenda__row--open time {
    font-size: 1.35rem;
  }

  .venue {
    min-height: 0;
  }

  .venue__copy,
  .countdown-section__copy {
    padding: 56px 22px;
  }

  .venue__image,
  .countdown-section__image {
    min-height: 340px;
  }

  .detail-rail article {
    min-height: 260px;
  }

  .detail-rail h3 {
    margin-top: 28px;
  }

  .countdown div {
    min-height: 112px;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
