:root {
  --paper: #f3efe6;
  --ink: #24251f;
  --olive: #6f7353;
  --clay: #a7674f;
  --line: rgba(36, 37, 31, .2);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 84% 7%, rgba(111, 115, 83, .09), transparent 25rem),
    var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 10;
  padding: .65rem 1rem;
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-160%);
}

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

.site-header,
.site-footer,
main {
  width: min(100% - 3rem, 1440px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  line-height: 1;
  letter-spacing: -.035em;
  text-decoration: none;
}

.descriptor,
.eyebrow,
.section-number,
.hero-image figcaption,
.letter figcaption,
.site-footer {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.descriptor { margin: 0; color: var(--olive); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .78fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: center;
  min-height: min(790px, calc(100vh - 7rem));
  padding: clamp(3.5rem, 8vw, 8rem) 0;
}

.eyebrow {
  margin: 0 0 1.4rem;
  color: var(--olive);
}

h1,
h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: .91;
  letter-spacing: -.055em;
}

h1 { font-size: clamp(4.1rem, 9.2vw, 9rem); }
h2 { font-size: clamp(3.1rem, 6.2vw, 6.5rem); }

.intro {
  max-width: 38rem;
  margin: clamp(2rem, 5vw, 4rem) 0 2.25rem;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.48;
}

.button {
  display: inline-flex;
  gap: 1.6rem;
  align-items: center;
  justify-content: space-between;
  min-width: min(100%, 20rem);
  padding: .95rem 1.15rem;
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease;
}

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

.hero-image { margin: 0; }
.hero-image img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  box-shadow: 1.2rem 1.2rem 0 rgba(111, 115, 83, .18);
}

.hero-image figcaption {
  margin-top: 1.3rem;
  color: var(--olive);
}

.story {
  display: grid;
  grid-template-columns: 5rem 1.5fr minmax(17rem, .7fr);
  gap: clamp(1.5rem, 5vw, 6rem);
  align-items: start;
  padding: clamp(5rem, 10vw, 10rem) 0;
  border-top: 1px solid var(--line);
}

.story .section-number { margin: .2rem 0 0; color: var(--clay); }
.story > p:last-child { max-width: 31rem; margin: 2.5rem 0 0; }

.letters {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(.35rem, 1.2vw, 1.25rem);
  width: min(100%, 1180px);
  margin-inline: auto;
  padding-bottom: clamp(5rem, 10vw, 10rem);
}

.letter { position: relative; margin: 0; overflow: hidden; background: #d9d5cb; }
.letter img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: saturate(.82) contrast(.97);
  transition: filter .35s ease, transform .6s cubic-bezier(.2,.75,.25,1);
}

.letter:hover img { filter: saturate(1) contrast(1); transform: scale(1.025); }
.letter figcaption {
  position: absolute;
  right: .7rem;
  bottom: .6rem;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  color: var(--paper);
  background: rgba(36, 37, 31, .82);
}

.announcement {
  display: grid;
  justify-items: center;
  padding: clamp(5rem, 11vw, 11rem) 1.5rem;
  color: var(--paper);
  background: var(--olive);
  text-align: center;
}

.announcement .eyebrow { color: rgba(255,255,255,.7); }
.announcement p:not(.eyebrow) { max-width: 36rem; margin: 2.25rem 0 1.7rem; font-size: 1.05rem; }
.text-link {
  padding-bottom: .2rem;
  border-bottom: 1px solid currentColor;
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2.4rem 0;
  color: var(--olive);
}

.site-footer p { margin: 0; }
.site-footer p:nth-child(2) { text-align: center; }
.site-footer p:last-child { text-align: right; }

a:focus-visible { outline: 3px solid var(--clay); outline-offset: 4px; }

@media (max-width: 800px) {
  .site-header,
  .site-footer,
  main { width: min(100% - 2rem, 1440px); }

  .descriptor { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 3.5rem; }
  .hero-copy { max-width: 42rem; }
  .hero-image { width: min(88%, 31rem); margin-left: auto; }
  .story { grid-template-columns: 2.5rem 1fr; }
  .story > p:last-child { grid-column: 2; margin-top: 0; }
  .letters { grid-template-columns: repeat(6, 1fr); }
  .letter { grid-column: span 2; }
  .letter:nth-child(4) { grid-column: 2 / span 2; }
  .site-footer { grid-template-columns: 1fr; gap: .4rem; }
  .site-footer p:nth-child(2),
  .site-footer p:last-child { text-align: left; }
}

@media (max-width: 480px) {
  .site-header { padding-top: 1.4rem; }
  .hero { padding: 3.5rem 0 4.5rem; }
  h1 { font-size: clamp(3.75rem, 19vw, 5.2rem); }
  .hero-image { width: calc(100% - 1rem); }
  .story { grid-template-columns: 1fr; gap: 1rem; }
  .story .section-number { display: none; }
  .story > p:last-child { grid-column: 1; }
  .letters { grid-template-columns: repeat(2, 1fr); }
  .letter, .letter:nth-child(4) { grid-column: auto; }
  .letter:last-child { grid-column: 1 / -1; width: calc(50% - .2rem); justify-self: center; }
  .announcement { padding-inline: 1rem; }
  .announcement h2 { font-size: clamp(3rem, 15vw, 4.5rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
