:root {
  --black: #080808;
  --soft-black: #151515;
  --ivory: #f8f5ef;
  --paper: #f3ede4;
  --champagne: #d8c6b3;
  --champagne-light: #eadfd2;
  --wine: #52121f;
  --ink-muted: #706b66;
  --white: #ffffff;
  --line-dark: rgba(8, 8, 8, 0.2);
  --line-light: rgba(255, 255, 255, 0.22);
  --header-height: 72px;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  background: var(--black);
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--black);
  background: var(--ivory);
  font-family: Arial, Helvetica, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.manual-locked {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

body.dialog-open {
  overflow: hidden;
}

button,
a,
input {
  font: inherit;
}

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

button {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.skip-link {
  position: fixed;
  z-index: 2147483647;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  color: var(--black);
  background: var(--white);
  font-weight: 700;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.cover-gate {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  padding: 28px 32px max(22px, env(safe-area-inset-bottom));
  color: var(--white);
  background: var(--black);
  isolation: isolate;
  transition: opacity 700ms ease, visibility 700ms ease;
}

.cover-gate::before,
.cover-gate::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.cover-gate::before {
  inset: 18px;
  border: 1px solid rgba(234, 223, 210, 0.22);
}

.cover-gate::after {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.cover-gate.is-opening {
  pointer-events: none;
}

.cover-gate.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.cover-atmosphere {
  position: absolute;
  z-index: -2;
  inset: 0;
  overflow: hidden;
}

.cover-atmosphere::before {
  position: absolute;
  top: 8%;
  left: 50%;
  width: min(88vw, 1280px);
  height: 118%;
  border: 1px solid rgba(234, 223, 210, 0.12);
  border-radius: 48% 48% 0 0 / 24% 24% 0 0;
  content: "";
  transform: translateX(-50%);
}

.cover-atmosphere::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  content: "";
  background: rgba(234, 223, 210, 0.07);
}

.cover-orbit {
  position: absolute;
  border: 1px solid rgba(234, 223, 210, 0.13);
  border-radius: 50%;
  animation: cover-orbit-drift 12s ease-in-out infinite alternate;
}

.cover-orbit--one {
  top: 17%;
  left: 8%;
  width: 250px;
  height: 250px;
}

.cover-orbit--two {
  right: 6%;
  bottom: 9%;
  width: 340px;
  height: 340px;
  animation-delay: -5s;
}

.cover-floating-heart {
  position: absolute;
  color: rgba(234, 223, 210, 0.34);
  font-family: Georgia, "Times New Roman", serif;
  animation: cover-heart-drift 6s ease-in-out infinite alternate;
}

.cover-floating-heart--one {
  top: 24%;
  left: 19%;
  font-size: 25px;
}

.cover-floating-heart--two {
  top: 16%;
  right: 22%;
  font-size: 17px;
  animation-delay: -2s;
}

.cover-floating-heart--three {
  right: 17%;
  bottom: 20%;
  font-size: 31px;
  animation-delay: -4s;
}

.cover-copy {
  position: absolute;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.42);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.cover-copy i {
  width: 1px;
  height: 34px;
  background: rgba(255, 255, 255, 0.32);
}

.cover-copy--left {
  left: 38px;
  transform: translateY(-50%) rotate(180deg);
}

.cover-copy--right {
  right: 38px;
  transform: translateY(-50%);
}

.cover-scene {
  display: grid;
  min-height: 0;
  place-items: center;
  perspective: 1800px;
}

.cover-book {
  position: relative;
  width: min(410px, 45vh);
  aspect-ratio: 1001 / 1572;
  transform: rotateX(1deg) rotateY(-2deg);
  transform-style: preserve-3d;
  transition: transform 1200ms cubic-bezier(0.2, 0.75, 0.1, 1);
}

.cover-book::after {
  position: absolute;
  z-index: -2;
  right: 3%;
  bottom: -3%;
  left: 3%;
  height: 9%;
  content: "";
  background: rgba(0, 0, 0, 0.75);
  filter: blur(24px);
  transform: translateZ(-20px);
}

.cover-book__front,
.cover-book__back,
.cover-book__edge {
  position: absolute;
  inset: 0;
}

.cover-book__front {
  z-index: 3;
  overflow: hidden;
  border: 1px solid rgba(8, 8, 8, 0.34);
  background: var(--ivory);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.58);
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform 1400ms cubic-bezier(0.18, 0.86, 0.22, 1), box-shadow 1400ms ease;
  will-change: transform;
}

.cover-art {
  position: relative;
  display: grid;
  height: 100%;
  align-content: center;
  justify-items: center;
  padding: 54px 36px 40px;
  color: var(--black);
  text-align: center;
}

.cover-art::before,
.cover-art__arch {
  position: absolute;
  border: 1px solid rgba(8, 8, 8, 0.54);
  border-radius: 48% 48% 0 0 / 17% 17% 0 0;
  content: "";
  pointer-events: none;
}

.cover-art::before {
  inset: 3.2%;
}

.cover-art__arch {
  inset: 4.9%;
  border-color: rgba(8, 8, 8, 0.18);
}

.brand-mark {
  display: block;
  aspect-ratio: 1;
  background: currentColor;
  -webkit-mask: url("/assets/logo-casamento.png") center / contain no-repeat;
  mask: url("/assets/logo-casamento.png") center / contain no-repeat;
}

.brand-mark--cover {
  width: min(42%, 142px);
  margin-bottom: 20px;
  filter: drop-shadow(0 9px 18px rgba(8, 8, 8, 0.12));
  animation: brand-float 5s ease-in-out infinite alternate;
}

.cover-art__rule,
.cover-art__botanical {
  display: grid;
  width: 78%;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.cover-art__rule i,
.cover-art__botanical i {
  height: 1px;
  background: currentColor;
  opacity: 0.42;
}

.cover-art__rule b,
.cover-art__botanical b {
  color: var(--wine);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 400;
}

.cover-art > p {
  margin: 22px 0 2px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  text-transform: uppercase;
}

.cover-art h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.cover-art__names {
  margin-top: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  text-transform: uppercase;
}

.cover-art time {
  margin: 16px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.cover-art__botanical {
  width: 64%;
  animation: botanical-breathe 4s ease-in-out infinite alternate;
}

.cover-book__back {
  z-index: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(8, 8, 8, 0.25);
  background: var(--paper);
  box-shadow: inset 0 0 50px rgba(216, 198, 179, 0.36);
}

.brand-mark--back {
  width: 42%;
  opacity: 0.5;
}

.cover-book__edge {
  z-index: 2;
  top: 1%;
  right: -7px;
  bottom: 1%;
  left: auto;
  width: 8px;
  background: repeating-linear-gradient(180deg, #fff 0 2px, #d7d0c8 2px 3px);
  transform: rotateY(88deg);
  transform-origin: left center;
}

.web-monogram {
  display: block;
  width: 170px;
  height: 170px;
  filter: drop-shadow(0 10px 24px rgba(8, 8, 8, 0.1));
}

.cover-gate.is-opening .cover-book {
  transform: translateX(20%) rotateX(4deg) rotateY(8deg) scale(0.94);
}

.cover-gate.is-opening .cover-book__front {
  box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.42);
  transform: rotateY(-152deg);
}

.open-manual {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-self: center;
  gap: 12px;
  margin-top: 10px;
  padding: 0 4px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.56);
  color: var(--white);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.open-manual::after {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  content: "";
  background: var(--champagne-light);
  transition: width 400ms ease;
}

.open-manual:hover::after,
.open-manual:focus-visible::after {
  width: 100%;
}

.open-manual svg {
  width: 18px;
  animation: cover-arrow 1100ms ease-in-out infinite;
}

.cover-hint {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.46);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  text-align: center;
}

.ambient-symbols {
  position: fixed;
  z-index: 3;
  inset: 0;
  color: rgba(8, 8, 8, 0.24);
  overflow: hidden;
  pointer-events: none;
  transition: color 500ms ease;
}

.ambient-symbols.is-dark {
  color: rgba(234, 223, 210, 0.3);
}

.ambient-symbol {
  position: absolute;
  bottom: -60px;
  color: currentColor;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
  opacity: 0;
  animation: ambient-rise var(--duration) linear var(--delay) infinite;
}

.manual-header {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  min-height: var(--header-height);
  grid-template-columns: auto minmax(80px, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 0 32px;
  border-bottom: 1px solid transparent;
  color: var(--black);
  transition: color 240ms ease, background 240ms ease, border-color 240ms ease, transform 500ms ease;
}

.manual-header::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: rgba(248, 245, 239, 0.86);
  backdrop-filter: blur(18px);
  opacity: 0;
  transition: opacity 240ms ease;
}

.manual-header.is-scrolled::before {
  opacity: 1;
}

.manual-header.is-scrolled {
  border-bottom-color: rgba(8, 8, 8, 0.12);
}

.manual-header.is-dark:not(.is-scrolled) {
  color: var(--white);
}

.header-monogram {
  width: 46px;
  height: 46px;
}

.header-monogram .brand-mark {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 10px rgba(8, 8, 8, 0.12));
}

.manual-header.is-dark:not(.is-scrolled) .header-monogram {
  color: var(--ivory);
}

.chapter-counter {
  justify-self: end;
  min-width: 54px;
  font-size: 10px;
  font-weight: 700;
}

.chapter-counter b {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 400;
}

.chapter-menu-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-self: end;
  gap: 8px;
  padding: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.chapter-menu-button svg {
  width: 18px;
}

.chapter-menu {
  position: absolute;
  top: calc(100% + 1px);
  right: 24px;
  display: grid;
  min-width: 240px;
  padding: 18px 22px;
  border: 1px solid rgba(8, 8, 8, 0.12);
  color: var(--black);
  background: rgba(248, 245, 239, 0.98);
  box-shadow: 0 22px 60px rgba(8, 8, 8, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.chapter-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.chapter-menu a {
  padding: 12px 0;
  border-bottom: 1px solid rgba(8, 8, 8, 0.1);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.chapter-menu a:last-child {
  border-bottom: 0;
}

.chapter-dots {
  position: fixed;
  z-index: 40;
  top: 50%;
  right: 24px;
  display: grid;
  gap: 7px;
  transform: translateY(-50%);
}

.chapter-dots a {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--black);
  transition: color 220ms ease;
}

.chapter-dots a::before {
  position: absolute;
  width: 5px;
  height: 5px;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
  transition: width 220ms ease, height 220ms ease, background 220ms ease;
}

.chapter-dots span {
  font-size: 8px;
  opacity: 0;
  transition: opacity 220ms ease;
}

.chapter-dots a.is-active::before {
  width: 28px;
  height: 28px;
  background: var(--ivory);
}

.chapter-dots a.is-active span {
  position: relative;
  z-index: 1;
  opacity: 1;
}

.chapter-dots.is-dark a {
  color: var(--white);
}

.chapter-dots.is-dark a.is-active::before {
  background: var(--black);
}

.manual-section {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: clip;
  isolation: isolate;
}

.light-section {
  color: var(--black);
  background: var(--ivory);
}

.dark-section {
  color: var(--white);
  background: var(--black);
}

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

.chapter-kicker {
  margin: 0;
  color: inherit;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 900ms ease, transform 900ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.reveal.reveal-delay {
  transition-delay: 140ms;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(var(--parallax-y, 0px));
}

.welcome-section {
  display: grid;
  min-height: 1120px;
  align-items: center;
  padding: 140px 0 170px;
}

.arch-lines {
  position: absolute;
  z-index: -1;
  top: 32px;
  right: 4%;
  bottom: 32px;
  left: 4%;
  border: 1px solid rgba(8, 8, 8, 0.48);
  border-radius: 46% 46% 0 0 / 23% 23% 0 0;
}

.arch-lines::before {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(8, 8, 8, 0.18);
  border-radius: inherit;
  content: "";
}

.welcome-ghost {
  position: absolute;
  z-index: -2;
  right: -22px;
  bottom: 10%;
  color: rgba(8, 8, 8, 0.025);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 170px;
  line-height: 0.8;
  writing-mode: vertical-rl;
}

.welcome-layout {
  display: grid;
  grid-template-columns: minmax(390px, 0.86fr) minmax(420px, 0.9fr);
  align-items: center;
  justify-content: space-between;
  gap: 100px;
}

.welcome-heading {
  text-align: center;
}

.welcome-heading .web-monogram {
  margin: 46px auto 30px;
}

.ornament-line {
  display: grid;
  width: min(340px, 80%);
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin: 0 auto 40px;
}

.ornament-line i {
  height: 1px;
  background: rgba(8, 8, 8, 0.4);
}

.ornament-line b {
  width: 9px;
  height: 9px;
  border: 1px solid currentColor;
  transform: rotate(45deg);
}

.welcome-heading h1,
.date-heading h2,
.attire-heading h2,
.palette-title h2,
.guidance-heading h2,
.print-heading h2,
.finale-content h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.welcome-heading h1 {
  font-size: 76px;
  line-height: 0.96;
}

.welcome-heading h1 em,
.attire-heading h2 em,
.guidance-heading h2 em,
.print-heading h2 em,
.finale-content h2 em {
  color: var(--ink-muted);
  font-style: italic;
  font-weight: 400;
}

.welcome-message {
  max-width: 590px;
  padding-top: 130px;
}

.welcome-message p {
  margin: 0 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1.62;
}

.welcome-message .welcome-thanks {
  margin-top: 38px;
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
  font-size: 19px;
  font-style: italic;
}

.print-flourish {
  position: absolute;
  z-index: -1;
  bottom: 34px;
  left: 50%;
  display: grid;
  width: min(620px, 64%);
  height: 72px;
  place-items: center;
  color: rgba(8, 8, 8, 0.36);
  transform: translateX(-50%);
}

.print-flourish::before {
  width: 100%;
  content: "\2766   \2661   \2766";
  background: linear-gradient(currentColor, currentColor) left center / 38% 1px no-repeat,
    linear-gradient(currentColor, currentColor) right center / 38% 1px no-repeat;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1;
  text-align: center;
}

.section-next {
  position: absolute;
  right: 74px;
  bottom: 50px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.section-next svg {
  width: 17px;
}

.date-section {
  padding: 160px 0 80px;
}

.date-section::before {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  content: "";
  background: rgba(255, 255, 255, 0.08);
}

.date-orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(234, 223, 210, 0.12);
  border-radius: 50%;
  pointer-events: none;
  animation: orbit-drift 10s ease-in-out infinite alternate;
}

.date-orbit--one {
  top: 9%;
  right: -170px;
  width: 480px;
  height: 480px;
}

.date-orbit--two {
  bottom: -240px;
  left: -150px;
  width: 580px;
  height: 580px;
  animation-delay: -4s;
}

.date-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(470px, 0.72fr);
  align-items: center;
  gap: 120px;
}

.date-heading h2 {
  margin-top: 44px;
  font-size: 82px;
  line-height: 0.88;
}

.date-heading h2 em {
  display: block;
  color: var(--champagne-light);
  font-size: 210px;
  font-style: normal;
  line-height: 0.82;
}

.date-year {
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-style: italic;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 52px;
  padding-top: 26px;
  border-top: 1px solid var(--line-light);
}

.event-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.event-meta svg {
  width: 17px;
  color: var(--champagne-light);
}

.calendar-button,
.finale-actions button,
.finale-actions a {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.calendar-button {
  margin-top: 32px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  color: var(--white);
  background: transparent;
  transition: color 220ms ease, background 220ms ease;
}

.calendar-button:hover {
  color: var(--black);
  background: var(--champagne-light);
}

.calendar-button svg,
.finale-actions svg {
  width: 18px;
}

.calendar-shell {
  padding: 42px 44px 48px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: var(--ivory);
  color: var(--black);
  box-shadow: 28px 32px 0 rgba(216, 198, 179, 0.09);
}

.calendar-topline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(8, 8, 8, 0.18);
  font-family: Georgia, "Times New Roman", serif;
}

.calendar-topline span {
  font-size: 32px;
}

.calendar-topline b {
  font-size: 13px;
  font-weight: 400;
}

.calendar-week,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}

.calendar-week {
  margin-top: 24px;
  color: var(--ink-muted);
  font-size: 9px;
  font-weight: 700;
}

.calendar-grid {
  gap: 12px 4px;
  margin-top: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
}

.calendar-grid > * {
  display: grid;
  min-height: 38px;
  place-items: center;
  font-weight: 400;
}

.calendar-grid strong {
  position: relative;
  z-index: 0;
  isolation: isolate;
  color: var(--white);
}

.calendar-grid strong::before {
  position: absolute;
  z-index: -1;
  width: 40px;
  height: 40px;
  border: 1px solid var(--black);
  border-radius: 50%;
  content: "";
  background: var(--black);
  animation: date-pulse 1500ms ease-in-out infinite alternate;
}

.calendar-grid strong i {
  font-style: normal;
}

.calendar-grid strong b {
  position: absolute;
  top: -15px;
  right: -6px;
  color: var(--black);
  font-size: 18px;
  font-weight: 400;
}

.countdown {
  display: grid;
  width: min(1040px, calc(100% - 120px));
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  margin: 100px auto 0;
  padding-top: 38px;
  border-top: 1px solid var(--line-light);
  text-align: center;
}

.countdown div {
  display: grid;
  gap: 5px;
}

.countdown strong {
  color: var(--champagne-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 48px;
  font-weight: 400;
}

.countdown span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.countdown > i {
  width: 1px;
  height: 44px;
  background: var(--line-light);
}

.attire-section {
  padding: 140px 0 0;
}

.attire-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 70px;
  margin-bottom: 80px;
}

.attire-heading .chapter-kicker {
  grid-column: 1 / -1;
}

.attire-heading h2 {
  font-size: 66px;
  line-height: 1;
}

.attire-heading p:last-child {
  max-width: 440px;
  margin: 0 0 8px;
  color: var(--ink-muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.6;
}

.attire-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.attire-panel {
  position: relative;
  min-height: 820px;
  overflow: hidden;
}

.attire-panel--women {
  background: var(--paper);
}

.attire-panel--men {
  color: var(--white);
  background: var(--black);
}

.attire-copy {
  position: relative;
  z-index: 4;
  width: 54%;
  padding: 90px 20px 70px max(54px, calc((100vw - 1320px) / 2));
}

.attire-panel--men .attire-copy {
  padding-right: max(54px, calc((100vw - 1320px) / 2));
  padding-left: 64px;
}

.attire-number {
  display: block;
  color: var(--champagne);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 72px;
  opacity: 0.7;
}

.attire-label {
  margin: 22px 0 34px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.attire-copy h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 43px;
  font-weight: 400;
  line-height: 1.05;
}

.attire-copy > p:last-child {
  margin: 32px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.68;
}

.attire-copy strong {
  font-weight: 700;
}

.attire-figure {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  bottom: 0;
  display: grid;
  width: 50%;
  place-items: center;
  margin: 0;
  overflow: hidden;
  isolation: isolate;
}

.attire-figure::before,
.attire-figure::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.attire-figure::before {
  width: min(38vw, 510px);
  aspect-ratio: 1;
  border: 1px dashed currentColor;
  border-radius: 50%;
  opacity: 0.14;
  animation: garment-ring 9s linear infinite;
}

.attire-figure::after {
  right: 12%;
  bottom: 92px;
  left: 12%;
  height: 1px;
  background: currentColor;
  opacity: 0.22;
}

.garment-orbits {
  position: absolute;
  inset: 14%;
  pointer-events: none;
}

.garment-orbits i {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid currentColor;
  border-radius: 50%;
  animation: garment-dot 5s ease-in-out infinite alternate;
}

.garment-orbits i:nth-child(1) {
  top: 8%;
  left: 12%;
}

.garment-orbits i:nth-child(2) {
  top: 43%;
  right: 2%;
  width: 13px;
  height: 13px;
  animation-delay: -2s;
}

.garment-orbits i:nth-child(3) {
  bottom: 12%;
  left: 6%;
  animation-delay: -4s;
}

.attire-image {
  position: relative;
  z-index: 2;
  display: block;
  width: auto;
  height: min(76%, 620px);
  max-width: 84%;
  object-fit: contain;
  pointer-events: none;
  transform-origin: center bottom;
  user-select: none;
  will-change: transform;
}

.attire-image--women {
  filter: drop-shadow(0 30px 34px rgba(8, 8, 8, 0.2));
  animation: dress-sway 4.8s ease-in-out infinite alternate;
}

.attire-image--men {
  height: min(78%, 640px);
  filter: brightness(1.16) contrast(1.06) drop-shadow(0 22px 30px rgba(248, 245, 239, 0.13));
  animation: suit-float 5.2s ease-in-out infinite alternate;
}

.attire-figure--men {
  background: radial-gradient(circle at 50% 46%, rgba(248, 245, 239, 0.12), rgba(248, 245, 239, 0.035) 36%, transparent 68%);
}

.attire-figure figcaption {
  position: absolute;
  right: 12%;
  bottom: 58px;
  left: 12%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.attire-figure figcaption i {
  width: 4px;
  height: 4px;
  border: 1px solid currentColor;
  transform: rotate(45deg);
}

.palette-section {
  display: grid;
  min-height: 1050px;
  align-items: center;
  padding: 160px 0 220px;
}

.palette-section::before {
  position: absolute;
  z-index: -1;
  inset: 34px 4%;
  border: 1px solid rgba(8, 8, 8, 0.48);
  border-radius: 46% 46% 0 0 / 26% 26% 0 0;
  content: "";
}

.palette-fabric {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 370px;
  overflow: hidden;
  pointer-events: none;
}

.fabric-ribbon {
  --ribbon-angle: 0deg;
  position: absolute;
  bottom: -190px;
  display: block;
  width: 54%;
  height: 390px;
  border: 1px solid rgba(216, 198, 179, 0.2);
  border-radius: 50%;
  background: linear-gradient(145deg, #030303 8%, #242424 30%, #090909 45%, #505050 55%, #080808 64%, #030303 78%);
  box-shadow: inset 0 0 55px rgba(255, 255, 255, 0.05), 0 -20px 45px rgba(8, 8, 8, 0.12);
  transform: rotate(var(--ribbon-angle));
  transform-origin: center bottom;
  animation: fabric-wave 7s ease-in-out infinite alternate;
}

.fabric-ribbon::after {
  position: absolute;
  top: 17%;
  right: 10%;
  left: 10%;
  height: 42%;
  border-top: 1px solid rgba(234, 223, 210, 0.23);
  border-radius: 50%;
  content: "";
}

.fabric-ribbon--one {
  --ribbon-angle: 12deg;
  left: -8%;
}

.fabric-ribbon--two {
  bottom: -235px;
  left: 26%;
  width: 48%;
  background: linear-gradient(35deg, #050505 12%, #3a3a3a 34%, #090909 52%, #242424 72%, #030303 88%);
  animation-delay: -3s;
}

.fabric-ribbon--three {
  --ribbon-angle: -12deg;
  right: -8%;
  background: linear-gradient(215deg, #030303 8%, #282828 32%, #070707 49%, #383838 62%, #050505 78%);
  animation-delay: -5s;
}

.palette-fabric > span {
  position: absolute;
  z-index: 2;
  bottom: 42px;
  left: 50%;
  color: var(--champagne-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  transform: translateX(-50%);
  animation: palette-heart 1800ms ease-in-out infinite alternate;
}

.palette-content {
  text-align: center;
}

.palette-title {
  margin-top: 90px;
}

.palette-title > span {
  display: block;
  margin-bottom: 24px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.palette-title h2 {
  font-size: 142px;
  line-height: 0.88;
}

.palette-title h2 em {
  font-style: italic;
  font-weight: 400;
}

.palette-copy {
  max-width: 650px;
  margin: 46px auto 0;
  color: var(--ink-muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.55;
}

.black-swatches {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 26px;
  margin-top: 58px;
}

.black-swatches button {
  display: grid;
  gap: 12px;
  color: var(--black);
  background: transparent;
  cursor: pointer;
}

.black-swatches i {
  display: block;
  width: 66px;
  height: 66px;
  border: 2px solid var(--ivory);
  border-radius: 50%;
  outline: 1px solid rgba(8, 8, 8, 0.32);
  background: #090909;
  box-shadow: 0 10px 28px rgba(8, 8, 8, 0.2);
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.black-swatches button:nth-child(2) i {
  background-color: #111;
  background-image: repeating-linear-gradient(45deg, transparent 0 2px, rgba(255, 255, 255, 0.09) 2px 3px);
}

.black-swatches button:nth-child(3) i {
  background: #181818;
}

.black-swatches button:nth-child(4) i {
  background-color: #080808;
  background-image: repeating-radial-gradient(circle at 30% 20%, transparent 0 3px, rgba(255, 255, 255, 0.045) 3px 4px);
}

.black-swatches button:nth-child(5) i {
  background: linear-gradient(125deg, #050505 20%, #4a4a4a 48%, #0a0a0a 72%);
}

.black-swatches button:hover i,
.black-swatches button:focus-visible i,
.black-swatches button.is-active i {
  box-shadow: 0 18px 36px rgba(8, 8, 8, 0.36);
  transform: translateY(-8px) scale(1.04);
}

.black-swatches span {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.texture-caption {
  min-height: 20px;
  margin: 24px 0 0;
  color: var(--ink-muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-style: italic;
}

.guidance-section {
  min-height: 1100px;
  padding: 160px 0 90px;
}

.guidance-watermark {
  position: absolute;
  z-index: -1;
  right: -34px;
  bottom: -56px;
  color: rgba(255, 255, 255, 0.035);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 250px;
  line-height: 1;
}

.guidance-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.68fr) minmax(540px, 1fr);
  align-items: start;
  gap: 130px;
}

.guidance-heading {
  position: sticky;
  top: 140px;
}

.guidance-heading h2 {
  margin-top: 58px;
  font-size: 67px;
  line-height: 0.98;
}

.guidance-heading h2 em {
  color: var(--champagne-light);
}

.guidance-heading > p:last-child {
  max-width: 390px;
  margin: 36px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.6;
}

.guidance-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.guidance-list li {
  display: grid;
  min-height: 190px;
  grid-template-columns: 96px 1fr;
  align-items: center;
  gap: 34px;
  border-bottom: 1px solid var(--line-light);
}

.guidance-list li:first-child {
  border-top: 1px solid var(--line-light);
}

.guidance-list li > span {
  position: relative;
  display: grid;
  width: 80px;
  height: 80px;
  place-items: center;
  border: 1px solid rgba(234, 223, 210, 0.45);
  border-radius: 50%;
  color: var(--champagne-light);
  transition: color 280ms ease, background 280ms ease, transform 280ms ease;
}

.guidance-list li:hover > span {
  color: var(--black);
  background: var(--champagne-light);
  transform: rotate(5deg);
}

.guidance-list svg {
  width: 27px;
}

.guidance-list li > span b {
  position: absolute;
  right: -8px;
  bottom: -2px;
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid var(--black);
  border-radius: 50%;
  color: var(--black);
  background: var(--champagne-light);
  font-size: 8px;
}

.guidance-list h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 400;
}

.guidance-list p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.5;
}

.guidance-signature {
  display: grid;
  width: min(760px, calc(100% - 80px));
  gap: 8px;
  margin: 100px auto 0;
  padding-top: 34px;
  border-top: 1px solid var(--line-light);
  text-align: center;
}

.guidance-signature span {
  color: rgba(255, 255, 255, 0.48);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-style: italic;
}

.guidance-signature strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 400;
}

.print-section {
  min-height: 1000px;
  padding: 150px 0 120px;
}

.print-heading {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 0.5fr);
  align-items: end;
  gap: 80px;
}

.print-heading h2 {
  margin-top: 46px;
  font-size: 72px;
  line-height: 0.96;
}

.print-heading > p {
  margin: 0 0 8px;
  color: var(--ink-muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.6;
}

.print-track {
  display: flex;
  gap: 26px;
  margin-top: 86px;
  padding: 0 max(60px, calc((100vw - 1320px) / 2)) 32px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.print-track::-webkit-scrollbar {
  display: none;
}

.print-page {
  position: relative;
  flex: 0 0 310px;
  padding: 0;
  border: 1px solid rgba(8, 8, 8, 0.18);
  background: var(--paper);
  box-shadow: 0 22px 44px rgba(8, 8, 8, 0.12);
  cursor: zoom-in;
  scroll-snap-align: start;
  transition: box-shadow 280ms ease, transform 280ms ease;
}

.print-page:hover,
.print-page:focus-visible {
  box-shadow: 0 34px 64px rgba(8, 8, 8, 0.2);
  transform: translateY(-12px) rotate(-1deg);
}

.print-page:nth-child(even):hover,
.print-page:nth-child(even):focus-visible {
  transform: translateY(-12px) rotate(1deg);
}

.print-page > span {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--white);
  background: var(--black);
  font-size: 9px;
  font-weight: 700;
}

.print-page img {
  width: 100%;
  aspect-ratio: 1001 / 1572;
  object-fit: cover;
}

.track-controls {
  display: grid;
  width: min(1320px, calc(100% - 120px));
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  margin: 24px auto 0;
}

.track-controls::before,
.track-controls::after {
  display: none;
}

.track-controls span {
  color: var(--ink-muted);
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.track-controls button,
.page-dialog button {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(8, 8, 8, 0.3);
  color: var(--black);
  background: transparent;
  cursor: pointer;
}

.track-controls svg,
.page-dialog svg {
  width: 19px;
}

.finale-section {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: 130px 40px 84px;
  isolation: isolate;
}

.finale-section::before {
  position: absolute;
  z-index: -1;
  inset: 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 46% 46% 0 0 / 27% 27% 0 0;
  content: "";
}

.finale-flourish {
  position: absolute;
  z-index: -1;
  bottom: 116px;
  left: 50%;
  display: grid;
  width: min(640px, 70vw);
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  color: var(--champagne-light);
  opacity: 0.32;
  transform: translateX(-50%);
  animation: finale-botanical 4.5s ease-in-out infinite alternate;
}

.finale-flourish i {
  position: relative;
  height: 1px;
  background: currentColor;
}

.finale-flourish i::before,
.finale-flourish i::after {
  position: absolute;
  top: -5px;
  width: 13px;
  height: 7px;
  border: 1px solid currentColor;
  border-radius: 100% 0;
  content: "";
}

.finale-flourish i:first-child::before,
.finale-flourish i:last-child::after {
  right: 22%;
  transform: rotate(-28deg);
}

.finale-flourish i:first-child::after,
.finale-flourish i:last-child::before {
  left: 22%;
  transform: rotate(28deg);
}

.finale-flourish b {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 400;
}

.finale-content {
  text-align: center;
}

.web-monogram--light {
  margin: 0 auto 46px;
  color: var(--ivory);
  opacity: 0.92;
}

.finale-content > p {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.5);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-style: italic;
}

.finale-content h2 {
  font-size: 84px;
  line-height: 0.92;
}

.finale-content h2 em {
  color: var(--champagne-light);
}

.finale-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 54px;
}

.finale-actions button {
  color: var(--black);
  background: var(--champagne-light);
}

.finale-actions a {
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: var(--white);
}

.finale-section footer {
  position: absolute;
  right: 68px;
  bottom: 40px;
  left: 68px;
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.4);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
}

.page-dialog {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 24px;
  border: 0;
  color: var(--white);
  background: rgba(8, 8, 8, 0.96);
  opacity: 0;
  transition: opacity 260ms ease, display 260ms allow-discrete, overlay 260ms allow-discrete;
}

.page-dialog[open] {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  grid-template-rows: 56px minmax(0, 1fr);
  align-items: center;
  opacity: 1;
}

.page-dialog::backdrop {
  background: rgba(8, 8, 8, 0.9);
}

.page-dialog__topbar {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 10px;
  font-weight: 700;
}

.page-dialog__topbar button,
.dialog-arrow {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
}

.page-dialog figure {
  display: grid;
  min-width: 0;
  height: 100%;
  grid-column: 2;
  grid-row: 2;
  place-items: center;
  margin: 0;
  overflow: hidden;
}

.page-dialog figure img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100dvh - 118px);
  object-fit: contain;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.dialog-arrow--previous {
  grid-column: 1;
  grid-row: 2;
}

.dialog-arrow--next {
  grid-column: 3;
  grid-row: 2;
  justify-self: end;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--champagne);
  outline-offset: 4px;
}

@keyframes cover-arrow {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(5px); }
}

@keyframes cover-orbit-drift {
  from { transform: translate3d(-8px, 8px, 0) scale(0.96); }
  to { transform: translate3d(18px, -16px, 0) scale(1.05); }
}

@keyframes cover-heart-drift {
  from { opacity: 0.2; transform: translateY(8px) rotate(-8deg); }
  to { opacity: 0.56; transform: translateY(-12px) rotate(7deg); }
}

@keyframes brand-float {
  from { transform: translateY(3px); }
  to { transform: translateY(-7px); }
}

@keyframes botanical-breathe {
  from { opacity: 0.5; transform: scaleX(0.94); }
  to { opacity: 1; transform: scaleX(1.04); }
}

@keyframes finale-botanical {
  from { opacity: 0.22; transform: translateX(-50%) scaleX(0.94); }
  to { opacity: 0.4; transform: translateX(-50%) scaleX(1.04); }
}

@keyframes ambient-rise {
  0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(0deg); }
  12% { opacity: 0.18; }
  78% { opacity: 0.1; }
  100% { opacity: 0; transform: translate3d(var(--drift), -115vh, 0) rotate(70deg); }
}

@keyframes orbit-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(18px, -22px, 0) scale(1.05); }
}

@keyframes date-pulse {
  from { box-shadow: 0 0 0 0 rgba(234, 223, 210, 0.12); transform: scale(0.96); }
  to { box-shadow: 0 0 0 12px rgba(234, 223, 210, 0); transform: scale(1.04); }
}

@keyframes garment-ring {
  from { transform: rotate(0deg) scale(0.98); }
  to { transform: rotate(360deg) scale(1.03); }
}

@keyframes garment-dot {
  from { opacity: 0.2; transform: translateY(8px) scale(0.8); }
  to { opacity: 0.8; transform: translateY(-10px) scale(1.15); }
}

@keyframes dress-sway {
  from { transform: translateY(5px) rotate(-1.2deg); }
  to { transform: translateY(-8px) rotate(1.2deg); }
}

@keyframes suit-float {
  from { transform: translateY(7px); }
  to { transform: translateY(-9px); }
}

@keyframes fabric-wave {
  from { transform: translateY(12px) rotate(var(--ribbon-angle)) scaleX(0.98); }
  to { transform: translateY(-10px) rotate(var(--ribbon-angle)) scaleX(1.04); }
}

@keyframes palette-heart {
  from { opacity: 0.55; transform: translateX(-50%) scale(0.92); }
  to { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

@media (max-width: 1080px) {
  .section-inner {
    width: min(920px, calc(100% - 72px));
  }

  .welcome-layout,
  .date-layout,
  .guidance-layout {
    gap: 64px;
  }

  .welcome-heading h1 {
    font-size: 64px;
  }

  .welcome-message p {
    font-size: 21px;
  }

  .date-layout {
    grid-template-columns: minmax(0, 0.72fr) minmax(420px, 0.8fr);
  }

  .date-heading h2 {
    font-size: 68px;
  }

  .date-heading h2 em {
    font-size: 170px;
  }

  .attire-copy {
    width: 60%;
    padding-left: 40px;
  }

  .attire-panel--men .attire-copy {
    padding-right: 30px;
    padding-left: 40px;
  }

  .attire-copy h3 {
    font-size: 36px;
  }

  .attire-figure {
    width: 50%;
  }

  .guidance-layout {
    grid-template-columns: minmax(300px, 0.56fr) minmax(460px, 1fr);
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 62px;
  }

  .cover-gate {
    padding: 18px 18px max(18px, env(safe-area-inset-bottom));
  }

  .cover-gate::before {
    inset: 9px;
  }

  .cover-copy {
    display: none;
  }

  .cover-book {
    width: min(82vw, 410px);
    max-height: 74dvh;
  }

  .cover-hint {
    font-size: 11px;
  }

  .manual-header {
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    padding: 0 14px;
  }

  .chapter-menu-button span {
    display: none;
  }

  .chapter-menu {
    right: 10px;
    left: 10px;
  }

  .chapter-dots {
    display: none;
  }

  .section-inner {
    width: calc(100% - 40px);
  }

  .welcome-section {
    min-height: 0;
    padding: 110px 0 150px;
  }

  .arch-lines {
    top: 14px;
    right: 10px;
    bottom: 14px;
    left: 10px;
    border-radius: 47% 47% 0 0 / 13% 13% 0 0;
  }

  .welcome-ghost {
    display: none;
  }

  .welcome-layout,
  .date-layout,
  .attire-heading,
  .guidance-layout,
  .print-heading {
    grid-template-columns: 1fr;
  }

  .welcome-layout {
    gap: 24px;
  }

  .welcome-heading .web-monogram {
    margin-top: 36px;
    transform: scale(0.8);
  }

  .welcome-heading h1 {
    font-size: 54px;
  }

  .welcome-message {
    padding: 34px 12px 0;
    text-align: center;
  }

  .welcome-message p {
    font-size: 18px;
    line-height: 1.58;
  }

  .welcome-message .welcome-thanks {
    font-size: 16px;
  }

  .print-flourish {
    width: 94%;
    height: 58px;
  }

  .section-next {
    display: none;
  }

  .date-section {
    padding: 110px 0 70px;
  }

  .date-section::before {
    display: none;
  }

  .date-layout {
    gap: 58px;
  }

  .date-heading {
    text-align: center;
  }

  .date-heading h2 {
    margin-top: 32px;
    font-size: 58px;
  }

  .date-heading h2 em {
    font-size: 150px;
  }

  .event-meta {
    justify-content: center;
    gap: 16px;
  }

  .calendar-shell {
    padding: 26px 20px 32px;
  }

  .calendar-topline span {
    font-size: 28px;
  }

  .calendar-grid {
    gap: 9px 2px;
    font-size: 17px;
  }

  .countdown {
    width: calc(100% - 30px);
    margin-top: 70px;
  }

  .countdown strong {
    font-size: 31px;
  }

  .countdown > i {
    height: 32px;
  }

  .attire-section {
    padding-top: 105px;
  }

  .attire-heading {
    gap: 28px;
    margin-bottom: 54px;
  }

  .attire-heading .chapter-kicker {
    grid-column: auto;
  }

  .attire-heading h2 {
    font-size: 48px;
  }

  .attire-heading p:last-child {
    font-size: 17px;
  }

  .attire-panels {
    grid-template-columns: 1fr;
  }

  .attire-panel {
    display: flex;
    min-height: 0;
    flex-direction: column;
  }

  .attire-copy,
  .attire-panel--men .attire-copy {
    width: 100%;
    padding: 58px max(26px, 8vw) 64px;
  }

  .attire-number {
    font-size: 54px;
  }

  .attire-copy h3 {
    font-size: 32px;
  }

  .attire-copy > p:last-child {
    font-size: 16px;
  }

  .attire-figure {
    position: relative;
    width: 100%;
    height: 640px;
    flex: none;
  }

  .attire-figure::before {
    width: min(72vw, 500px);
  }

  .garment-orbits {
    inset: 10%;
  }

  .palette-section {
    min-height: 930px;
    padding: 120px 0 180px;
  }

  .palette-section::before {
    inset: 14px 10px;
    border-radius: 47% 47% 0 0 / 15% 15% 0 0;
  }

  .palette-title {
    margin-top: 64px;
  }

  .palette-title h2 {
    font-size: 78px;
  }

  .palette-copy {
    font-size: 17px;
  }

  .black-swatches {
    gap: 12px;
  }

  .black-swatches i {
    width: 48px;
    height: 48px;
  }

  .black-swatches span {
    display: none;
  }

  .palette-fabric {
    height: 250px;
  }

  .fabric-ribbon {
    bottom: -170px;
    width: 76%;
    height: 300px;
  }

  .fabric-ribbon--one {
    left: -34%;
  }

  .fabric-ribbon--two {
    bottom: -198px;
    left: 12%;
  }

  .fabric-ribbon--three {
    right: -34%;
  }

  .guidance-section {
    min-height: 0;
    padding: 110px 0 80px;
  }

  .guidance-layout {
    gap: 62px;
  }

  .guidance-heading {
    position: static;
  }

  .guidance-heading h2 {
    margin-top: 38px;
    font-size: 50px;
  }

  .guidance-list li {
    min-height: 160px;
    grid-template-columns: 70px 1fr;
    gap: 20px;
  }

  .guidance-list li > span {
    width: 62px;
    height: 62px;
  }

  .guidance-list svg {
    width: 22px;
  }

  .guidance-list h3 {
    font-size: 22px;
  }

  .guidance-watermark {
    font-size: 130px;
  }

  .print-section {
    min-height: 0;
    padding: 110px 0 90px;
  }

  .print-heading {
    gap: 30px;
  }

  .print-heading h2 {
    margin-top: 34px;
    font-size: 54px;
  }

  .print-heading > p {
    font-size: 16px;
  }

  .print-track {
    gap: 16px;
    margin-top: 58px;
    padding: 0 20px 28px;
  }

  .print-page {
    flex-basis: min(76vw, 300px);
  }

  .track-controls {
    width: calc(100% - 40px);
  }

  .finale-section {
    padding: 110px 24px 100px;
  }

  .finale-section::before {
    inset: 12px;
    border-radius: 47% 47% 0 0 / 15% 15% 0 0;
  }

  .finale-content h2 {
    font-size: 58px;
  }

  .web-monogram--light {
    width: 140px;
    height: 140px;
  }

  .finale-actions {
    flex-direction: column;
  }

  .finale-actions button,
  .finale-actions a {
    width: min(310px, 100%);
  }

  .finale-section footer {
    right: 28px;
    bottom: 36px;
    left: 28px;
    font-size: 9px;
  }

  .page-dialog {
    padding: 10px;
  }

  .page-dialog[open] {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    grid-template-rows: 50px minmax(0, 1fr);
  }

  .page-dialog figure img {
    max-height: calc(100dvh - 90px);
  }

  .page-dialog button {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 430px) {
  .cover-book {
    width: min(88vw, 360px);
    max-height: 72dvh;
  }

  .cover-hint {
    max-width: 280px;
    justify-self: center;
  }

  .cover-art {
    padding: 38px 28px 30px;
  }

  .brand-mark--cover {
    width: 110px;
    margin-bottom: 12px;
  }

  .cover-art > p {
    margin-top: 14px;
    font-size: 16px;
  }

  .cover-art h1 {
    font-size: 34px;
  }

  .cover-art__names {
    margin-top: 18px;
    font-size: 10px;
  }

  .cover-art time {
    margin: 12px 0;
    font-size: 15px;
  }

  .chapter-counter {
    display: none;
  }

  .manual-header {
    grid-template-columns: auto 1fr;
  }

  .welcome-heading h1 {
    font-size: 46px;
  }

  .welcome-message p {
    font-size: 17px;
  }

  .calendar-shell {
    margin-inline: -4px;
  }

  .countdown strong {
    font-size: 27px;
  }

  .countdown span {
    font-size: 7px;
  }

  .attire-panel {
    min-height: 0;
  }

  .attire-copy,
  .attire-panel--men .attire-copy {
    width: 100%;
    padding-right: 24px;
    padding-left: 24px;
  }

  .attire-copy h3 {
    font-size: 29px;
  }

  .attire-copy > p:last-child {
    font-size: 15px;
  }

  .attire-figure {
    width: 100%;
    height: 610px;
  }

  .palette-title h2 {
    font-size: 66px;
  }

  .black-swatches {
    gap: 9px;
  }

  .black-swatches i {
    width: 42px;
    height: 42px;
  }

  .guidance-list li {
    grid-template-columns: 58px 1fr;
    gap: 14px;
  }

  .guidance-list li > span {
    width: 52px;
    height: 52px;
  }

  .guidance-list h3 {
    font-size: 19px;
  }

  .guidance-list p {
    font-size: 12px;
  }

  .page-dialog[open] {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
