:root {
  --paper: #f1eee5;
  --paper-soft: #f7f5ef;
  --ink: #1b261f;
  --green: #315641;
  --green-dark: #254331;
  --sage: #96a28f;
  --stone: #c9c4b6;
  --hairline: rgba(27, 38, 31, 0.18);
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --sans: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

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

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 6% 8%, rgba(255, 255, 255, 0.62), transparent 28rem),
    linear-gradient(115deg, transparent 0 63%, rgba(49, 86, 65, 0.035) 63% 100%),
    var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 20;
  opacity: 0.18;
  pointer-events: none;
  content: "";
  background-image: url("assets/paper-noise.svg");
  mix-blend-mode: multiply;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  color: var(--paper-soft);
  background: var(--green-dark);
  font-size: 0.8rem;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

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

.page-shell {
  width: min(100%, 110rem);
  min-height: 100svh;
  margin-inline: auto;
  padding: 1.75rem clamp(1.25rem, 4vw, 5.5rem) 1.25rem;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.5rem;
  border-bottom: 1px solid var(--hairline);
}

.wordmark {
  display: inline-flex;
  gap: 0.8rem;
  align-items: center;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.wordmark__mark {
  width: 2rem;
  height: 2rem;
  overflow: visible;
  fill: none;
  stroke: var(--green);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.2;
}

.site-note {
  margin: 0;
  color: var(--green-dark);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(24rem, 0.75fr);
  gap: clamp(3rem, 7vw, 9rem);
  align-items: center;
  min-height: calc(100svh - 9.75rem);
  padding: clamp(3.5rem, 7vh, 7rem) 0 clamp(3rem, 6vh, 5rem);
}

.hero__copy {
  position: relative;
  z-index: 2;
  max-width: 57rem;
  padding-left: clamp(0rem, 2.2vw, 2.5rem);
}

.eyebrow {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  margin: 0 0 clamp(1.75rem, 4vh, 3.4rem);
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.23em;
  text-transform: uppercase;
}

.eyebrow::before {
  display: inline-block;
  width: 2.6rem;
  height: 1px;
  background: currentColor;
  content: "";
}

h1 {
  max-width: 13ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.8rem, 6.75vw, 7.8rem);
  font-weight: 400;
  letter-spacing: -0.058em;
  line-height: 0.9;
  text-wrap: balance;
}

h1 em {
  display: block;
  margin-top: 0.15em;
  color: var(--green);
  font-weight: 400;
}

.hero__intro {
  max-width: 34rem;
  margin: clamp(2rem, 4vh, 3.3rem) 0 0;
  color: rgba(27, 38, 31, 0.76);
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.45vw, 1.35rem);
  line-height: 1.58;
}

.hero__sentiment {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: clamp(2.4rem, 5vh, 4.5rem);
}

.hero__sentiment svg {
  width: 3rem;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--sage);
  stroke-linecap: round;
  stroke-width: 1;
}

.hero__sentiment p {
  margin: 0;
  color: rgba(27, 38, 31, 0.68);
  font-size: 0.68rem;
  font-weight: 550;
  letter-spacing: 0.135em;
  line-height: 1.5;
  text-transform: uppercase;
}

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

.hero__visual::before {
  position: absolute;
  top: 7.5%;
  right: clamp(-5.5rem, -4vw, -1.5rem);
  bottom: 10%;
  left: 15%;
  z-index: -1;
  content: "";
  background: var(--green-dark);
}

.photo-frame {
  position: relative;
  aspect-ratio: 12 / 14.5;
  overflow: hidden;
  background: var(--stone);
  box-shadow: 0 1.7rem 4rem rgba(31, 48, 37, 0.11);
}

.photo-frame::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  content: "";
  pointer-events: none;
}

.photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.photo-frame__wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(27, 38, 31, 0.1));
  pointer-events: none;
}

.hero__visual:hover .photo-frame img {
  transform: scale(1.015);
}

.hero__visual figcaption {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  justify-content: flex-end;
  margin-top: 1rem;
  color: rgba(27, 38, 31, 0.72);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-footer {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border-top: 1px solid var(--hairline);
  color: rgba(27, 38, 31, 0.68);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

.site-footer svg {
  width: 2.8rem;
  fill: var(--paper);
  stroke: var(--sage);
  stroke-width: 1;
}

@media (max-width: 900px) {
  .page-shell {
    padding-top: 1.1rem;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    min-height: auto;
    padding-top: 4.5rem;
  }

  .hero__copy {
    max-width: 46rem;
    padding-left: 0;
  }

  .hero__visual {
    width: min(88%, 35rem);
    justify-self: center;
  }

  .hero__visual::before {
    right: -14%;
  }
}

@media (max-width: 560px) {
  .page-shell {
    padding-inline: 1.15rem;
  }

  .site-header {
    min-height: 3rem;
  }

  .site-note {
    max-width: 8rem;
    line-height: 1.4;
    text-align: right;
  }

  .wordmark {
    gap: 0.65rem;
  }

  .wordmark__mark {
    width: 1.75rem;
    height: 1.75rem;
  }

  .hero {
    gap: 3.25rem;
    padding: 3.5rem 0 3.75rem;
  }

  .eyebrow {
    margin-bottom: 2rem;
  }

  h1 {
    max-width: 11ch;
    font-size: clamp(3.45rem, 17vw, 5.2rem);
    line-height: 0.92;
  }

  .hero__intro {
    max-width: 29rem;
    font-size: 1.08rem;
  }

  .hero__sentiment {
    align-items: flex-start;
  }

  .hero__sentiment p {
    max-width: 19rem;
  }

  .hero__visual {
    width: 91%;
    margin-left: -2%;
  }

  .hero__visual::before {
    top: 8%;
    right: -13%;
    bottom: 8%;
    left: 14%;
  }

  .hero__visual figcaption {
    justify-content: flex-start;
  }

  .site-footer {
    gap: 0.55rem;
    white-space: nowrap;
  }

  .site-footer svg {
    width: 1.9rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .site-header,
  .hero__copy,
  .hero__visual,
  .site-footer {
    opacity: 0;
    animation: reveal 800ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  .hero__copy {
    animation-delay: 100ms;
  }

  .hero__visual {
    animation-delay: 220ms;
  }

  .site-footer {
    animation-delay: 320ms;
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(0.65rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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