@font-face {
  font-family: Manrope;
  src: url("assets/manrope.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f5f1ea;
  --ink: #211d1a;
  --cream: #faf4eb;
  --copper: #ffc3a4;
  --rust: #81442f;
  --gutter: clamp(1.5rem, 6.4vw, 7rem);
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-family: Manrope, system-ui, sans-serif;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

h1, h2, p { margin: 0; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

.frame {
  width: min(100% - var(--gutter) * 2, 100rem);
  margin-inline: auto;
}

.masthead {
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 5.8rem;
  border-bottom: 1px solid rgb(250 244 235 / 25%);
  color: var(--cream);
}

.monogram {
  display: block;
  width: 1.42rem;
  height: 1.6rem;
  border: 2px solid var(--copper);
  border-radius: 0 0.75rem 0.75rem 0;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.75rem;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.arrow {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--mono);
  line-height: 1;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.masthead .arrow { color: var(--copper); }
.footer .arrow { color: var(--rust); }

.text-link:is(:hover, :focus-visible) .arrow-down {
  transform: translateY(3px);
  background: var(--copper);
  border-color: var(--copper);
  color: var(--ink);
}

.text-link:is(:hover, :focus-visible) .arrow-up {
  transform: translateY(-3px);
  background: var(--rust);
  border-color: var(--rust);
  color: var(--cream);
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  min-height: max(37rem, 92svh);
  padding-block: 7rem 3rem;
  background: #171513;
  color: var(--cream);
}

.hero-image,
.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.hero::before {
  content: "";
  z-index: -1;
  background:
    linear-gradient(180deg, rgb(15 13 12 / 54%), transparent 26%),
    linear-gradient(90deg, rgb(15 13 12 / 48%), rgb(15 13 12 / 12%) 61%, transparent 85%);
}

.hero-copy {
  display: grid;
  justify-items: start;
  max-width: max-content;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero .eyebrow { color: var(--copper); }

.role-dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: currentColor;
}

.hero h1 {
  margin: 0.06em 0 0.17em -0.065em;
  font-size: clamp(6.1rem, 13.4vw, 13.4rem);
  font-weight: 800;
  letter-spacing: -0.068em;
  line-height: 0.96;
}

.greeting {
  padding-left: 0.9rem;
  border-left: 1px solid var(--copper);
  font-size: clamp(1.17rem, 1.85vw, 1.65rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.welcome { scroll-margin-top: 0; }

.note {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) minmax(0, 2.25fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  padding-block: clamp(4.4rem, 9.2vw, 9.3rem);
}

.note-label {
  align-self: start;
  padding-top: 0.9rem;
  color: var(--rust);
}

.note-label::before {
  width: 1.55rem;
  height: 1px;
  background: currentColor;
  content: "";
}

.note h2 {
  font-size: clamp(2.7rem, 6.3vw, 6rem);
  font-weight: 750;
  letter-spacing: -0.064em;
  word-spacing: 0.024em;
  line-height: 1.05;
}

.note-body > p {
  max-width: 33rem;
  margin-top: 1.5rem;
  color: #50463f;
  font-size: clamp(1.05rem, 1.8vw, 1.27rem);
  line-height: 1.7;
}

.note-body > .signoff {
  margin-top: 1.8rem;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.5;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 5.5rem;
  border-top: 1px solid #d2c7ba;
}

.footer-name {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.06em;
}

@media (max-width: 660px) {
  .masthead { min-height: 4.7rem; }

  .hero {
    align-items: end;
    min-height: max(34rem, 94svh);
    padding-bottom: clamp(4.4rem, 13svh, 7rem);
  }

  .hero-image img { object-position: 52% center; }

  .hero::before {
    background:
      linear-gradient(180deg, rgb(15 13 12 / 72%), transparent 30%, rgb(15 13 12 / 16%) 42%, rgb(15 13 12 / 93%) 94%),
      linear-gradient(90deg, rgb(15 13 12 / 20%), transparent 75%);
  }

  .hero h1 { font-size: clamp(4.6rem, 20vw, 7.9rem); }
  .note { grid-template-columns: 1fr; }
  .note-label { padding-top: 0; }
}

@keyframes arrive {
  from { opacity: 0; transform: translateY(0.85rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes drift {
  from { transform: translateY(0); }
  to { transform: translateY(3.5rem); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: arrive 640ms cubic-bezier(0.2, 0.65, 0.24, 1) both; }

  @supports (animation-timeline: scroll()) {
    .hero-image {
      animation: drift linear both;
      animation-timeline: scroll(root block);
      animation-range: 0px 650px;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .arrow { transition: none; }
  .text-link:is(:hover, :focus-visible) .arrow { transform: none; }
}
