:root {
  --casa: #f1ecdd;
  --casa-tile: #f7f4ea;
  --andes: #295a56;
  --terracotta: #a95c3f;
  --roast: #4a352d;
  --harvest: #ad8a52;
  --line: rgba(74, 53, 45, 0.16);
  --serif: "Cormorant Garamond", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --measure: 40rem;
  --page: min(1120px, calc(100% - 3rem));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--casa);
  color: var(--roast);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

::selection {
  background: var(--andes);
  color: var(--casa);
}

:focus-visible {
  outline: 2px solid var(--andes);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--andes);
  color: var(--casa);
  padding: 0.5rem 0.8rem;
  z-index: 80;
}

.skip:focus {
  top: 0.5rem;
}

.topbar {
  position: relative;
  z-index: 30;
  background: var(--casa);
}

.announce {
  margin: 0;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.95rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.site-header {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 2.35rem 4.5rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  flex: none;
  background: var(--casa-tile);
  border: 1px solid var(--line);
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.65rem;
}

.nav a {
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--roast);
  padding: 0.15rem 0;
}

.nav a:hover,
.nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

.menu-btn {
  display: none;
  margin-left: auto;
  border: 0;
  background: none;
  color: var(--roast);
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0.4rem 0.2rem;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  color: var(--casa);
  overflow: hidden;
  background: var(--andes);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 42%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 72% 68% at 50% 48%,
    rgba(18, 22, 16, 0.72) 0%,
    rgba(18, 22, 16, 0.5) 30%,
    rgba(18, 22, 16, 0.18) 54%,
    rgba(18, 22, 16, 0) 76%
  );
}

.hero-copy {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3rem 1.5rem;
  max-width: 18em;
}

.hero h1,
.kicker {
  text-shadow: 0 1px 10px rgba(12, 14, 10, 0.28);
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.7rem, 5.4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.kicker {
  margin: 1.35rem 0 1.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 1.35rem;
  border: 1px solid currentColor;
  border-radius: 3px;
  background: transparent;
  color: inherit;
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--casa);
  color: var(--roast);
  border-color: var(--casa);
}

.btn-solid {
  background: var(--andes);
  border-color: var(--andes);
  color: var(--casa);
}

.btn-solid:hover {
  background: var(--roast);
  border-color: var(--roast);
  color: var(--casa);
}

.intro {
  width: min(36rem, calc(100% - 3rem));
  margin: 6rem auto 3.5rem;
  text-align: center;
}

.intro p {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.32;
  color: var(--andes);
}

.intro .text-link {
  display: inline-block;
  margin-top: 1.75rem;
}

.text-link {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-underline-offset: 0.35em;
}

.frame {
  width: min(920px, calc(100% - 3rem));
  margin: 0 auto 6.5rem;
}

.frame img {
  width: 100%;
}

.frame figcaption,
.pair figcaption {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.88rem;
}

.sheet,
.essay {
  width: min(var(--measure), calc(100% - 2.5rem));
  margin: 4.75rem auto 3rem;
}

.sheet {
  text-align: center;
}

.eyebrow {
  margin: 0 0 1.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.sheet h1,
.essay h1 {
  margin: 0 0 0.4rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 5vw, 3.7rem);
  line-height: 1.05;
  color: var(--andes);
  letter-spacing: -0.02em;
}

.essay h1 {
  text-align: center;
  margin-bottom: 1.75rem;
}

.origin {
  margin: 0.35rem 0 0;
  font-size: 1.05rem;
}

.weight {
  margin: 0.35rem 0 1.5rem;
  font-size: 0.92rem;
}

.label {
  width: min(500px, 100%);
  margin: 0 auto 1.75rem;
}

.sheet .lede,
.essay p,
.essay li {
  font-size: 1.02rem;
  line-height: 1.7;
}

.sheet .lede {
  margin: 2rem auto 0;
  max-width: 34rem;
}

.specs {
  margin: 2.4rem auto 0;
  text-align: left;
  border-top: 1px solid var(--line);
}

.specs div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}

.specs dt {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--andes);
}

.specs dd {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
}

.profile {
  margin: 1.5rem 0 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--andes);
}

.pair {
  width: min(1100px, calc(100% - 3rem));
  margin: 0.5rem auto 6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
}

.pair figure {
  margin: 0;
}

.pair img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.essay p {
  margin: 0 0 1.15rem;
}

.essay h2 {
  margin: 2rem 0 0.3rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.85rem;
  color: var(--andes);
}

.values {
  margin: 0.4rem 0 0.2rem;
  padding: 0;
  list-style: none;
}

.values li {
  margin: 0 0 0.85rem;
}

.values strong {
  font-weight: 500;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--andes);
}

.illustration {
  width: min(680px, calc(100% - 3rem));
  margin: 0.5rem auto 1rem;
}

.signoff {
  width: min(var(--measure), calc(100% - 2.5rem));
  margin: 1rem auto 3rem;
  text-align: center;
}

.signoff p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  line-height: 1.25;
  font-weight: 500;
  color: var(--andes);
}

.signoff .names {
  display: block;
  margin-top: 1.25rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--roast);
  font-style: normal;
}

.stack-logo {
  width: min(280px, 70%);
  margin: 0 auto 4.5rem;
}

.places {
  margin-top: 0.5rem;
}

.places a.btn {
  margin-top: 1.75rem;
}

.people {
  margin: 1.6rem 0 2rem;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
  text-align: left;
}

.people h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--andes);
}

.people p {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
}

.people a {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.people a:hover {
  border-bottom-color: var(--roast);
}

.letter {
  display: grid;
  gap: 0.95rem;
  margin-top: 0.5rem;
  text-align: left;
}

.letter label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--andes);
}

.letter input,
.letter select,
.letter textarea {
  width: 100%;
  border: 1px solid rgba(74, 53, 45, 0.35);
  background: transparent;
  color: var(--roast);
  font: inherit;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  padding: 0.7rem 0.75rem;
  border-radius: 2px;
}

.letter textarea {
  resize: vertical;
  min-height: 8rem;
}

.letter .btn {
  justify-self: start;
  margin-top: 0.4rem;
}

.form-note {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--roast);
}

.mail-line {
  margin: 0 0 1.4rem;
  text-align: center;
}

.mail-line a {
  color: var(--andes);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 3.25rem 1.5rem 1.5rem;
  margin-top: 2rem;
}

.footer-place {
  margin: 0;
  text-align: center;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--andes);
}

.footer-sub,
.legal {
  margin: 0.45rem 0 0;
  text-align: center;
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 0.85rem;
  font-size: 0.92rem;
}

.footer-links a {
  text-underline-offset: 0.25em;
}

.note-form {
  width: min(420px, 100%);
  margin: 2.4rem 0 0;
}

.note-form label {
  display: block;
  margin-bottom: 0.7rem;
  font-size: 1rem;
}

.note-field {
  display: flex;
  border: 1px solid rgba(74, 53, 45, 0.45);
  background: transparent;
}

.note-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--roast);
  font: inherit;
  padding: 0.75rem 0.8rem;
}

.note-field input:focus {
  outline: none;
}

.note-field:focus-within {
  outline: 2px solid var(--andes);
  outline-offset: 3px;
}

.note-field button {
  border: 0;
  border-left: 1px solid rgba(74, 53, 45, 0.25);
  background: transparent;
  color: var(--roast);
  width: 48px;
  font: inherit;
  font-size: 1.15rem;
  cursor: pointer;
}

.legal {
  margin-top: 3rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: rgba(74, 53, 45, 0.72);
}

@media (max-width: 860px) {
  .announce {
    letter-spacing: 0.1em;
    font-size: 0.62rem;
    padding: 0.85rem 1rem;
  }

  .site-header {
    gap: 1rem;
    padding: 1rem 1.35rem;
  }

  .brand {
    width: 64px;
    height: 64px;
  }

  .menu-btn {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: var(--casa);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.15rem;
    transform: translateY(-102%);
    visibility: hidden;
  }

  .nav.is-open {
    transform: none;
    visibility: visible;
  }

  .nav a {
    font-family: var(--serif);
    font-size: 2.15rem;
    font-weight: 500;
    color: var(--andes);
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .menu-btn {
    position: fixed;
    top: 1.15rem;
    right: 1.15rem;
    z-index: 50;
  }

  .people,
  .pair {
    grid-template-columns: 1fr;
  }

  .intro {
    margin-top: 4rem;
  }

  .sheet,
  .essay {
    margin-top: 3.25rem;
  }
}

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

  .nav {
    transition: none;
  }
}
