@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/cormorant-garamond-400.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/cormorant-garamond-400-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/jost-400.woff2") format("woff2");
}

:root {
  --ivory: #fdfaf1;
  --ink: #1c1915;
  --bronze: #4a3e32;
  --gold: rgba(168, 132, 78, 0.42);
  --gold-soft: rgba(186, 150, 98, 0.55);
  --ease: cubic-bezier(0.22, 0.8, 0.28, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--ivory);
  color-scheme: only light;
}

html,
body {
  margin: 0;
  overflow-x: hidden;
}

body {
  min-height: 100dvh;
  background: var(--ivory);
  color: var(--ink);
  font-family: "Jost", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(186, 150, 98, 0.28);
  color: var(--ink);
}

.atmosphere {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.paper {
  position: absolute;
  inset: 0;
  background-image: url("texture.png");
  background-size: 180px 180px;
  opacity: 0.55;
  mix-blend-mode: multiply;
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 42%, transparent 46%, rgba(120, 96, 62, 0.045) 100%);
}

.halo {
  position: absolute;
  left: 50%;
  top: 40%;
  width: min(52rem, 110vw);
  height: min(52rem, 110vw);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(198, 153, 101, 0.16) 0%,
    rgba(198, 153, 101, 0.05) 30%,
    rgba(253, 250, 241, 0) 68%
  );
  mix-blend-mode: multiply;
  opacity: 0;
  animation: haloIn 1.8s ease 0.7s forwards;
}

.pigment {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.veil {
  position: fixed;
  inset: 0;
  z-index: 3;
  background: #f3eee4;
  pointer-events: none;
  animation: veil 0.55s ease forwards;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  padding:
    clamp(1.15rem, 2.8vh, 2.25rem)
    clamp(1.15rem, 4vw, 3.5rem)
    clamp(1rem, 2.4vh, 1.6rem);
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin: 0;
  opacity: 0;
  animation: fade 0.9s ease 0.5s forwards;
}

.sig,
.eyebrow,
.copy,
.tag,
.social,
.coming {
  margin: 0;
  font-family: "Jost", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(0.62rem, 1.5vw, 0.72rem);
  letter-spacing: 0.28em;
  line-height: 1.4;
  color: var(--bronze);
  text-transform: uppercase;
}

.eyebrow,
.tag,
.social {
  text-align: right;
}

.rule {
  height: 1px;
  width: 100%;
  margin: clamp(0.8rem, 1.8vh, 1.15rem) 0 0;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--gold) 6%, var(--gold) 94%, transparent);
  opacity: 0;
  animation: fade 1s ease 0.6s forwards;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(0.75rem, 2vh, 1.5rem) 0 clamp(1rem, 3vh, 2rem);
}

.logo-shift {
  will-change: transform;
}

.logo-reveal {
  opacity: 0;
  animation: rise 1s var(--ease) 0.5s forwards;
}

.logo {
  display: block;
  width: min(84vw, 36rem, 56vh);
  height: auto;
  max-width: 100%;
  user-select: none;
  -webkit-user-drag: none;
}

.phrase {
  margin: clamp(0.4rem, 1.4vh, 0.9rem) 0 0;
  max-width: 16em;
  font-family: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(1.7rem, 3.3vw, 2.65rem);
  line-height: 1.18;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: balance;
  opacity: 0;
  animation: rise 0.7s ease 1.5s forwards;
}

.lede {
  margin: 0.85rem 0 0;
  max-width: 28em;
  font-family: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: #5c4c3a;
  text-wrap: pretty;
  opacity: 0;
  animation: rise 0.65s ease 2.2s forwards;
}

.coming {
  margin-top: clamp(1.25rem, 2.8vh, 1.85rem);
  padding-top: 1.05rem;
  position: relative;
  letter-spacing: clamp(0.16em, 1.1vw, 0.36em);
  font-size: clamp(0.6rem, 1.45vw, 0.7rem);
  opacity: 0;
  animation: rise 0.65s ease 2.2s forwards;
}

.coming::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 2.25rem;
  height: 1px;
  transform: translateX(-50%);
  background: var(--gold-soft);
}

footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem 1.25rem;
  opacity: 0;
  animation: fade 0.7s ease 2.2s forwards;
}

.copy {
  justify-self: start;
  letter-spacing: 0.18em;
  min-width: 0;
  text-wrap: balance;
}

.copy a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.45s ease, border-color 0.45s ease;
}

.copy a:hover,
.copy a:focus-visible {
  color: #c4a574;
  border-bottom-color: rgba(196, 165, 116, 0.95);
}

.copy a:focus-visible {
  outline: 1px solid #8a7049;
  outline-offset: 3px;
}

.tag {
  justify-self: center;
  text-align: center;
  letter-spacing: 0.22em;
}

.social {
  justify-self: end;
  min-height: 1em;
}

.social a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.social a:hover,
.social a:focus-visible {
  border-bottom-color: var(--gold-soft);
}

.social a:focus-visible {
  outline: 1px solid #8a7049;
  outline-offset: 4px;
}

.social a[hidden] {
  display: none;
}

@keyframes veil {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes haloIn {
  to { opacity: 1; }
}

@media (max-width: 960px) {
  footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    row-gap: 0.55rem;
  }

  .copy,
  .tag,
  .social {
    justify-self: center;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .top {
    align-items: flex-start;
  }

  .sig,
  .eyebrow {
    letter-spacing: 0.14em;
    font-size: 0.58rem;
  }

  .eyebrow {
    max-width: 11rem;
    text-align: right;
  }

  footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    row-gap: 0.55rem;
  }

  .copy,
  .tag,
  .social {
    justify-self: center;
    text-align: center;
    letter-spacing: 0.16em;
  }

  .logo {
    width: min(88vw, 52vh);
  }
}

@media (max-width: 380px) {
  .sig,
  .eyebrow {
    letter-spacing: 0.1em;
    font-size: 0.54rem;
  }
}

@media (hover: none), (pointer: coarse) {
  .pigment {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .veil {
    display: none;
  }

  .top,
  .rule,
  .logo-reveal,
  .phrase,
  .lede,
  .coming,
  footer {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .halo {
    animation: none;
    opacity: 1;
    transform: translate(-50%, -50%);
  }

  .copy a {
    transition: none;
  }

  .pigment {
    display: none;
  }
}
