:root {
  color-scheme: light dark;

  --display: 'Fraunces', Georgia, serif;
  --body: 'Manrope', 'Helvetica Neue', sans-serif;
  --script: 'Caveat', cursive;

  --step--1: clamp(0.78rem, 0.74rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step-1: clamp(1.35rem, 1.22rem + 0.6vw, 1.75rem);
  --step-2: clamp(2rem, 1.7rem + 1.45vw, 3rem);
  --step-3: clamp(3.8rem, 3.05rem + 3.75vw, 6.3rem);

  --space-xs: 0.5rem;
  --space-sm: 0.9rem;
  --space-md: 1.5rem;
  --space-lg: clamp(2.75rem, 2.2rem + 2.6vw, 5rem);
  --space-xl: clamp(5rem, 4rem + 6vw, 9rem);

  --ground: #fff7f3;
  --surface: #fffdfa;
  --surface-soft: #f8e9e5;
  --ink: #38272a;
  --muted: #7c5e62;
  --line: #ebd8d4;
  --accent: #a7526b;
  --accent-deep: #7b344f;
  --accent-soft: #f1d3cf;
  --leaf: #6f7d68;
  --accent-ink: #fffaf6;
  --shadow: rgba(123, 52, 79, 0.14);
  --radius: 18px;
  --measure: 68ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #241a1d;
    --surface: #2d2024;
    --surface-soft: #3d282f;
    --ink: #f9ebe6;
    --muted: #d1aaa8;
    --line: #573a42;
    --accent: #e69aae;
    --accent-deep: #542b3c;
    --accent-soft: #553640;
    --leaf: #b8c6a8;
    --accent-ink: #27191d;
    --shadow: rgba(0, 0, 0, 0.22);
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 4%, rgba(241, 211, 207, 0.48), transparent 27rem),
    radial-gradient(circle at 96% 38%, rgba(235, 216, 212, 0.36), transparent 24rem),
    var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  content: '';
  opacity: 0.18;
  background-image: radial-gradient(rgba(123, 52, 79, 0.24) 0.6px, transparent 0.6px);
  background-size: 7px 7px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

h1,
h2,
h3 {
  margin: 0 0 var(--space-sm);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.035em;
  padding-bottom: 0.08em;
}

h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }

p,
blockquote { max-width: var(--measure); }

p { margin: 0 0 var(--space-md); }

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

a {
  color: var(--accent-deep);
  text-underline-offset: 0.22em;
}

a:hover { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.container {
  width: min(calc(100% - 3rem), 76rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 1rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: var(--accent-deep);
  color: var(--accent-ink);
  transform: translateY(-180%);
  transition: transform 150ms ease;
}

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

.site-header {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--ground) 88%, transparent);
}

.header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.1rem;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent-deep);
  font-family: var(--script);
  font-size: 1.35rem;
  line-height: 1;
}

.wordmark-divider {
  color: var(--muted);
  font-family: var(--body);
  font-size: 0.7em;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.25rem);
  font-size: var(--step--1);
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

nav a:hover { color: var(--accent-deep); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 8rem);
  padding-block: var(--space-xl) calc(var(--space-xl) + 1rem);
}

.hero-copy { padding-left: clamp(0rem, 2vw, 1.75rem); }

.eyebrow {
  margin-bottom: 1.2rem;
  color: var(--accent);
  font-family: var(--script);
  font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.8rem);
  line-height: 1;
}

.hero h1 { max-width: 7ch; }

.hero h1 em {
  color: var(--accent-deep);
  font-style: italic;
  font-weight: 400;
}

.hero-intro {
  max-width: 31ch;
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.55;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.35rem;
  color: var(--accent-deep);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.4em;
}

.text-link span {
  display: inline-block;
  font-size: 1.35rem;
  line-height: 0.7;
  transition: transform 150ms ease;
}

.text-link:hover span { transform: translate(3px, 3px); }

.hero-art {
  position: relative;
  width: min(100%, 41rem);
  margin: 0;
  justify-self: end;
}

.art-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 0.85rem solid var(--surface);
  border-radius: 13rem 13rem var(--radius) var(--radius);
  box-shadow: 0 1.5rem 3rem var(--shadow), 0 0 0 1px var(--line);
}

.art-frame::after {
  position: absolute;
  inset: 0;
  content: '';
  background: linear-gradient(135deg, rgba(255, 250, 246, 0.2), transparent 50%);
  pointer-events: none;
}

.art-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-art::before {
  position: absolute;
  z-index: -1;
  right: -1.4rem;
  bottom: 1.6rem;
  width: 7.5rem;
  height: 7.5rem;
  border: 1px solid var(--accent);
  border-radius: 50%;
  content: '';
  opacity: 0.65;
}

.hero-art figcaption {
  position: absolute;
  right: 1.5rem;
  bottom: -1.3rem;
  color: var(--accent-deep);
  font-family: var(--script);
  font-size: 1.75rem;
  transform: rotate(-5deg);
}

.letter-section {
  position: relative;
  padding-block: var(--space-xl);
  background: var(--surface-soft);
}

.letter-section::before,
.letter-section::after {
  position: absolute;
  color: var(--accent);
  content: '❧';
  font-family: var(--script);
  font-size: 4rem;
  opacity: 0.22;
}

.letter-section::before { top: 2rem; left: 4%; transform: rotate(-28deg); }
.letter-section::after { right: 5%; bottom: 1.5rem; transform: rotate(150deg); }

.letter-layout {
  display: grid;
  grid-template-columns: minmax(12rem, 0.58fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(3rem, 8vw, 9rem);
}

.letter-intro { padding-top: 1.8rem; }

.letter-intro h2 { max-width: 10ch; }

.letter-aside {
  max-width: 17ch;
  margin-top: 2.5rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--accent);
  color: var(--muted);
  font-family: var(--script);
  font-size: 1.55rem;
  line-height: 1.15;
}

.letter-card {
  position: relative;
  max-width: 48rem;
  padding: clamp(2.2rem, 4.6vw, 5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1.5rem 3rem var(--shadow);
}

.letter-card::after {
  position: absolute;
  right: 1.35rem;
  bottom: 1.35rem;
  width: 3.5rem;
  height: 3.5rem;
  border-right: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  border-radius: 0 0 var(--radius) 0;
  content: '';
  opacity: 0.45;
}

.letter-flourish {
  margin-bottom: 1.8rem;
  color: var(--accent);
  font-family: var(--script);
  font-size: 2.8rem;
  line-height: 0.7;
}

.letter-card p {
  max-width: 62ch;
  color: var(--ink);
}

.letter-card .salutation {
  margin-bottom: 1.4rem;
  font-family: var(--script);
  font-size: 2rem;
  line-height: 1.1;
}

.letter-signoff {
  display: flex;
  flex-direction: column;
  margin-top: 2.5rem;
  color: var(--muted);
  font-family: var(--script);
  font-size: 1.65rem;
  line-height: 1.05;
}

.letter-signoff strong {
  color: var(--accent-deep);
  font-size: 2.6rem;
  font-weight: 500;
}

.promise-section { padding-block: var(--space-xl); }

.promise-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(14rem, 0.95fr);
  align-items: end;
  gap: clamp(2.5rem, 7vw, 8rem);
  padding: clamp(2.5rem, 5vw, 5.5rem);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 92% 10%, rgba(231, 154, 174, 0.22), transparent 18rem),
    var(--accent-deep);
  color: var(--accent-ink);
}

.promise-panel h2 { max-width: 13ch; color: var(--accent-ink); }

.eyebrow-light { color: #f0b5bd; }

.promise-panel blockquote {
  margin: 0;
  padding-left: 1.6rem;
  border-left: 1px solid rgba(255, 250, 246, 0.6);
  color: #f7d8d5;
  font-family: var(--script);
  font-size: clamp(1.8rem, 1.5rem + 1.4vw, 2.7rem);
  line-height: 1.1;
}

.closing {
  padding-block: calc(var(--space-xl) * 0.9) calc(var(--space-xl) * 1.1);
  text-align: center;
}

.closing p { margin-inline: auto; }

.closing-vine {
  display: block;
  margin-bottom: 1rem;
  color: var(--accent);
  font-family: var(--script);
  font-size: 3.1rem;
  line-height: 0.8;
}

.closing-signature {
  margin-top: -0.4rem;
  color: var(--accent-deep);
  font-family: var(--script);
  font-size: clamp(3rem, 2.3rem + 3vw, 5rem);
  line-height: 1;
}

.closing-note {
  color: var(--muted);
  font-family: var(--script);
  font-size: 1.45rem;
}

.site-footer { border-top: 1px solid var(--line); }

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
  color: var(--muted);
  font-size: var(--step--1);
}

.rise {
  animation: rise 700ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.rise:nth-child(2) { animation-delay: 90ms; }
.rise:nth-child(3) { animation-delay: 180ms; }
.rise:nth-child(4) { animation-delay: 270ms; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .hero-art { justify-self: center; }

  .letter-layout,
  .promise-panel { grid-template-columns: 1fr; }

  .letter-intro { padding-top: 0; }
  .letter-intro h2 { max-width: 14ch; }
  .letter-aside { margin-top: 1.4rem; }
  .promise-panel blockquote { max-width: 19ch; }
}

@media (max-width: 520px) {
  .container { width: min(calc(100% - 2rem), 76rem); }

  .header-inner {
    min-height: 64px;
    gap: 1rem;
  }

  nav { gap: 0.8rem; font-size: 0.72rem; }

  .hero { padding-block: 4.5rem 6rem; }
  .hero h1 { font-size: clamp(3.65rem, 18vw, 5.2rem); }

  .art-frame {
    border-width: 0.55rem;
    border-radius: 9rem 9rem var(--radius) var(--radius);
  }

  .hero-art::before { right: -0.35rem; bottom: 1rem; width: 5rem; height: 5rem; }
  .hero-art figcaption { right: 0.8rem; bottom: -1.1rem; }

  .letter-card { padding: 2rem 1.35rem 2.6rem; }
  .letter-section::before { left: -0.2rem; }
  .letter-section::after { right: -0.2rem; }

  .promise-panel { padding: 2.3rem 1.5rem 2.6rem; }
  .promise-panel h2 { max-width: 12ch; }

  .footer-inner { flex-direction: column; gap: 0.25rem; }
}

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

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