@font-face {
  font-family: Cormorant;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/cormorant-normal-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Cormorant;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/cormorant-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F;
}

@font-face {
  font-family: Cormorant;
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/cormorant-italic-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Cormorant;
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/cormorant-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F;
}

:root {
  color-scheme: light;
  --paper: #f2ece0;
  --ink: #3b322a;
  --muted: #776a5e;
}

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::after {
  position: fixed;
  z-index: 5;
  inset: 0;
  pointer-events: none;
  content: "";
  background: url("grain.svg") repeat;
  opacity: .09;
  mix-blend-mode: multiply;
}

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  overflow: hidden;
  padding: 32px clamp(28px, 5.2vw, 92px) 32px;
  background: radial-gradient(ellipse at 4% 10%, #faf6ed 0, transparent 55%);
}

.header, .footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark { width: 110px; height: 64px; }

.arrival {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.arrival span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8b9da5;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1;
  align-items: center;
  min-height: 540px;
  width: 100%;
  max-width: 1480px;
  margin: auto;
}

.message {
  position: relative;
  z-index: 2;
  padding: 24px 0 32px 5.5%;
  animation: appear 1.4s ease-out both;
}

.eyebrow {
  margin: 0 0 34px 5px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Cormorant, Georgia, serif;
  font-size: clamp(100px, 10.6vw, 176px);
  font-weight: 400;
  line-height: .8;
  letter-spacing: -.055em;
}

h1 em {
  display: inline-block;
  margin-top: .15em;
  margin-left: .36em;
  font-size: .84em;
  font-weight: 400;
}

.signature {
  width: 44px;
  height: 1px;
  margin: 48px 0 0 7px;
  background: #a39482;
}

.art {
  position: relative;
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 540px;
  margin: 0;
  animation: appear 1.8s .1s ease-out both;
}

.halo {
  position: absolute;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(ellipse, #bad2e1 0, #d2e1e6 30%, transparent 66%);
  opacity: .54;
  transform: translate(32%, -13%);
}

.tag {
  position: relative;
  width: clamp(320px, 33vw, 540px);
  height: auto;
  transform: rotate(-10deg);
}

.orbit {
  position: absolute;
  right: -33%;
  bottom: 3%;
  width: 100%;
  height: 39%;
  border: 1px solid #aa977b33;
  border-radius: 50%;
  transform: rotate(-27deg);
}

.footer {
  gap: 24px;
  padding-top: 25px;
  border-top: 1px solid #9a89742b;
}

.wish {
  margin: 0;
  font-family: Cormorant, Georgia, serif;
  font-size: 24px;
  font-style: italic;
  letter-spacing: -.015em;
}

.address {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .2em;
}

@keyframes appear {
  from { opacity: 0; translate: 0 10px; }
  to { opacity: 1; translate: 0 0; }
}

@media (min-width: 1600px) {
  .hero { min-height: 650px; }
}

@media (max-width: 700px) {
  .page { padding: 22px 26px 24px; }
  .wordmark { width: 89px; height: 52px; }
  .arrival { font-size: 9px; }
  .hero { grid-template-columns: 1fr; min-height: 600px; }
  .message { padding: 44px 0 0; align-self: start; }
  .eyebrow { margin: 0 0 26px 3px; font-size: 9px; }
  h1 { font-size: clamp(90px, 21vw, 145px); }
  .signature { display: none; }
  .art { min-height: 330px; margin: -25px -26px -8px; }
  .tag { width: 270px; transform: translate(16%, 0) rotate(-12deg); }
  .halo { width: 530px; height: 530px; transform: translate(33%, -12%); }
  .orbit { right: -19%; bottom: 4%; width: 82%; height: 45%; }
  .footer { padding-top: 20px; }
  .wish { font-size: 20px; }
  .address { font-size: 8px; letter-spacing: .12em; }
}

@media (max-width: 360px) {
  .page { padding-inline: 22px; }
  .wish { font-size: 18px; }
  .footer { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .message, .art { animation: none; }
}
