@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,300..800;1,300..800&display=swap");

:root {
  --ink: #111;
  --paper: #fff;
  font-family: "Inter Tight", "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--paper);
  font-weight: 400;
  letter-spacing: -.045em;
}

a { color: inherit; }

.topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 26px 18px;
}

.wordmark {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2.8rem);
  font-weight: 350;
  letter-spacing: -.05em;
  line-height: .95;
  white-space: nowrap;
}

.wordmark a,
.home-link { text-decoration: none; }
.wordmark em { font-style: italic; font-weight: inherit; }
.home-link { font-size: 1rem; line-height: 1; }
.home-link::before { content: "← "; color: #f02d21; }

main {
  display: grid;
  min-height: calc(100vh - 72px);
  place-items: center;
  padding: 40px 26px 80px;
  text-align: center;
}

.letter-main {
  display: block;
  min-height: auto;
  padding: 68px 26px 120px;
  text-align: left;
}

.letter {
  width: min(100%, 760px);
  margin: 0 auto;
  font-weight: 400;
}

.letter-heading {
  margin-bottom: clamp(3.5rem, 8vw, 7rem);
}

.letter-heading h1 {
  max-width: 14ch;
  margin: 0;
  padding: 0;
  background: none;
  font-size: clamp(3.2rem, 8vw, 7.5rem);
  font-style: normal;
  font-weight: 400;
  letter-spacing: -.07em;
  line-height: .86;
  text-transform: uppercase;
}

.letter-heading p {
  max-width: 32ch;
  margin: 1.5rem 0 0;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.15;
}

.letter-audio {
  margin-top: 1.45rem;
}

.audio-button {
  appearance: none;
  padding: .48em .72em .42em;
  border: 1px solid rgba(17, 17, 17, .35);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
}

.audio-button:hover,
.audio-button:focus-visible {
  border-color: var(--ink);
}

.audio-button:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 3px;
}

.letter-audio .audio-note {
  max-width: 46ch;
  margin: .75rem 0 0;
  color: #aaa;
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: -.015em;
  line-height: 1.35;
}

.letter-body {
  max-width: 64ch;
  font-size: clamp(1.08rem, 1.6vw, 1.3rem);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.52;
}

.letter-body p {
  margin: 0 0 1.65em;
}

.letter-body p:first-child {
  margin-bottom: 2.8em;
}

.letter-signoff {
  padding-top: 1.2em;
}

.letter-image {
  margin: clamp(4.5rem, 10vw, 8rem) 0 0;
}

.letter-image img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 560px) {
  .topline { padding: 16px 14px 18px; }
  .wordmark { font-size: clamp(1.45rem, 7vw, 2.1rem); }
  .home-link { font-size: .9rem; }
  main { padding-inline: 14px; }
  .letter-main { padding: 42px 18px 84px; }
  .letter-heading { margin-bottom: 4rem; }
  .letter-heading h1 { font-size: clamp(3rem, 16vw, 5rem); }
  .letter-body { line-height: 1.48; }
}
