@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-400.ttf") format("truetype");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-500.ttf") format("truetype");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-600.ttf") format("truetype");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-italic-500.ttf") format("truetype");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/manrope-400.ttf") format("truetype");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/manrope-500.ttf") format("truetype");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/manrope-600.ttf") format("truetype");
}

:root {
  --ink: #121212;
  --paper: #ffffff;
  --sage: #b1c6ba;
  --cream: #e6dacb;
  --ivory: #efece6;
  --blush: #ffc8bd;
  --mist: #c8d2c5;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 20rem;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 200, 189, .28), transparent 24rem),
    var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

::selection {
  color: var(--ink);
  background: var(--blush);
}

.page {
  position: relative;
  overflow: hidden;
}

.page::before {
  position: absolute;
  top: 42rem;
  left: -12rem;
  width: 28rem;
  height: 28rem;
  content: "";
  border: 1px solid rgba(18, 18, 18, .09);
  border-radius: 50%;
  box-shadow: 4rem 4rem 0 rgba(177, 198, 186, .18);
  pointer-events: none;
}

.shell {
  width: min(calc(100% - 2.5rem), 72rem);
  margin-inline: auto;
}

.hero {
  position: relative;
  display: grid;
  min-height: 92svh;
  align-items: end;
  padding-top: max(2rem, env(safe-area-inset-top));
  padding-bottom: 4rem;
}

.hero::after {
  position: absolute;
  inset: 1.25rem 1.25rem auto auto;
  width: 5.5rem;
  height: 5.5rem;
  content: "";
  background: var(--sage);
  border-radius: 50%;
  opacity: .78;
  box-shadow:
    -2.25rem 3.5rem 0 -1.35rem var(--blush),
    .55rem 6.5rem 0 -1.75rem var(--cream);
}

.hero-kicker {
  position: absolute;
  top: max(2rem, env(safe-area-inset-top));
  left: 0;
  display: flex;
  align-items: center;
  gap: .75rem;
  max-width: calc(100% - 5.5rem);
  margin: 0;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  line-height: 1.45;
  text-transform: uppercase;
}

.hero-kicker::before {
  flex: 0 0 2.5rem;
  width: 2.5rem;
  height: 1px;
  content: "";
  background: var(--ink);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 60rem;
  padding-top: 10rem;
}

h1,
h2,
p { margin-top: 0; }

h1 {
  max-width: 10ch;
  margin-bottom: .75rem;
  font-family: var(--serif);
  font-size: clamp(3.9rem, 18vw, 9.5rem);
  font-weight: 500;
  line-height: .82;
  letter-spacing: -.06em;
}

.hero-subtitle {
  max-width: 18ch;
  margin: 0 0 2.25rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 7vw, 4rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.04;
}

.hero-intro {
  max-width: 41rem;
  margin: 0 0 .25rem;
  padding-left: 1.1rem;
  border-left: .38rem solid var(--blush);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.7;
}

.college { font-weight: 600; }

.continuation {
  padding-block: 6rem;
  background: var(--ivory);
}

.continuation-grid {
  display: grid;
  gap: 1.75rem;
}

.chapter-mark {
  width: 5rem;
  height: .7rem;
  margin-bottom: .25rem;
  background: linear-gradient(90deg, var(--sage) 0 38%, var(--blush) 38% 67%, var(--cream) 67%);
}

.continuation-copy {
  max-width: 47rem;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 4vw, 2.35rem);
  line-height: 1.35;
}

.continuation-copy p:last-child { margin-bottom: 0; }

.letter-wrap {
  position: relative;
  padding-block: 6rem;
  background: var(--ink);
}

.letter-wrap::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: .19;
  background-image:
    linear-gradient(rgba(255,255,255,.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.15) 1px, transparent 1px);
  background-size: 4.25rem 4.25rem;
  pointer-events: none;
}

.botanical-art {
  position: absolute;
  right: -8rem;
  bottom: -4rem;
  z-index: 0;
  width: min(29rem, 82vw);
  height: auto;
  opacity: .34;
  mix-blend-mode: screen;
  pointer-events: none;
  transform: rotate(3deg);
}

.letter-card {
  position: relative;
  z-index: 1;
  max-width: 52rem;
  margin: 0 auto;
  padding: clamp(1.75rem, 6vw, 5.5rem);
  color: var(--ink);
  background: var(--paper);
  border-radius: .25rem;
  box-shadow: 1rem 1rem 0 var(--sage);
}

.letter-card::before {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 2.4rem;
  height: 2.4rem;
  content: "";
  background: var(--blush);
  border-radius: 50%;
}

h2 {
  margin-bottom: 2rem;
  padding-right: 2.6rem;
  font-family: var(--serif);
  font-size: clamp(2.65rem, 9vw, 5.2rem);
  font-weight: 500;
  line-height: .97;
  letter-spacing: -.04em;
}

.salutation {
  margin-bottom: 1.4rem;
  font-family: var(--serif);
  font-size: 1.75rem;
  font-style: italic;
  font-weight: 500;
}

.letter-body {
  max-width: 39rem;
  font-size: clamp(1rem, 2.6vw, 1.12rem);
  line-height: 1.72;
}

.letter-body p { margin-bottom: 1.35rem; }

.signature {
  display: inline-block;
  max-width: 100%;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(18, 18, 18, .18);
  font-family: var(--serif);
  font-size: clamp(1.3rem, 6vw, 1.5rem);
  line-height: 1.25;
}

.signature strong {
  display: inline-block;
  margin-top: .2rem;
  font-weight: 600;
}

.coming-soon {
  position: relative;
  display: grid;
  min-height: 58svh;
  align-items: center;
  padding-block: 6rem;
  background: var(--paper);
}

.coming-soon::after {
  position: absolute;
  right: -6rem;
  bottom: 2rem;
  width: 16rem;
  height: 16rem;
  content: "";
  border-radius: 50%;
  background: var(--cream);
  box-shadow:
    -8rem 4rem 0 -3rem var(--mist),
    -2rem -4rem 0 -4rem var(--blush);
  opacity: .78;
  pointer-events: none;
}

.coming-soon-copy {
  position: relative;
  z-index: 1;
  max-width: 44rem;
}

.coming-soon-copy h2 {
  margin-bottom: 1.5rem;
  padding-right: 0;
}

.coming-soon-copy p {
  max-width: 34rem;
  font-size: clamp(1.15rem, 3vw, 1.4rem);
}

footer {
  padding-top: 2.25rem;
  padding-bottom: max(2.25rem, env(safe-area-inset-bottom));
  color: var(--paper);
  background: var(--ink);
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.5;
}

footer p { margin: 0; }

.js .reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity .75s ease, transform .75s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 30rem) {
  .shell { width: calc(100% - 2rem); }

  .hero {
    min-height: 46rem;
    padding-bottom: 3.25rem;
  }

  .hero::after {
    right: .25rem;
    width: 4.75rem;
    height: 4.75rem;
  }

  .hero-kicker {
    max-width: calc(100% - 4.5rem);
    gap: .55rem;
    font-size: .66rem;
    letter-spacing: .16em;
  }

  .hero-kicker::before {
    flex-basis: 1.5rem;
    width: 1.5rem;
  }

  .hero-copy { padding-top: 8rem; }

  h1 {
    font-size: clamp(3.7rem, 18vw, 5.25rem);
    letter-spacing: -.055em;
  }

  .hero-subtitle { margin-bottom: 2rem; }

  .continuation,
  .letter-wrap,
  .coming-soon { padding-block: 5rem; }

  .letter-card { box-shadow: .75rem .75rem 0 var(--sage); }

  .letter-card::before {
    top: 1.25rem;
    right: 1.25rem;
    width: 2.1rem;
    height: 2.1rem;
  }

  h2 { padding-right: 2.2rem; }

  .coming-soon {
    min-height: 32rem;
    padding-bottom: 8rem;
  }

  .coming-soon::after {
    right: -7rem;
    bottom: 1.25rem;
  }
}

@media (min-width: 48rem) {
  .shell { width: min(calc(100% - 6rem), 72rem); }

  .hero {
    min-height: 100svh;
    align-items: center;
    padding-block: 5rem;
  }

  .hero::after {
    top: 5rem;
    right: 0;
    width: 8rem;
    height: 8rem;
    box-shadow:
      -3.5rem 5.5rem 0 -2.25rem var(--blush),
      .25rem 10rem 0 -2.6rem var(--cream);
  }

  .hero-kicker { top: 4rem; }

  .hero-copy { padding-top: 6rem; }

  .hero-intro { margin-left: 18rem; }

  .continuation { padding-block: 7rem; }

  .continuation-grid {
    grid-template-columns: 11rem 1fr;
    align-items: start;
  }

  .chapter-mark {
    width: 7.5rem;
    margin-top: 1.25rem;
  }

  .letter-wrap,
  .coming-soon { padding-block: 7rem; }

  .letter-card { box-shadow: 2.25rem 2.25rem 0 var(--sage); }

  .letter-card::before {
    top: 2rem;
    right: 2rem;
    width: 2.8rem;
    height: 2.8rem;
  }

  .botanical-art {
    right: max(-3rem, calc((100vw - 72rem) / 2 - 8rem));
    bottom: -9rem;
    width: 37rem;
    opacity: .48;
  }

  .coming-soon { min-height: 62svh; }

  footer { text-align: center; }
}

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

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