:root {
  color-scheme: light;
  --ink: #211e19;
  --muted: #51493c;
  --sand: #e0d8c1;
  --linen: #f7f5ee;
  --paper: #fff;
  --heading-font: "Book Antiqua", Palatino, "Palatino Linotype", Georgia, serif;
  --content-width: 76rem;
}

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: system-ui, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

a:focus-visible {
  outline: 2px solid #695021;
  outline-offset: 5px;
}

.site-header {
  display: grid;
  place-items: center;
  padding: 0.75rem 1.25rem;
  background: var(--paper);
  border-bottom: 1px solid #ded8ca;
}

.brand {
  display: inline-grid;
  justify-items: center;
  gap: 0.125rem;
  text-decoration: none;
}

.brand img {
  display: block;
  width: clamp(11rem, 42vw, 14rem);
  height: auto;
}

.brand-place {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.home {
  width: min(100%, var(--content-width));
  margin: auto;
  padding: clamp(1rem, 3vw, 2.5rem);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 0.375rem;
  background: var(--paper);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1.75rem, 4.7vw, 4.75rem);
  background: var(--sand);
}

h1, h2, .legal h3 {
  margin: 0;
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.1;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 5.25rem);
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 28ch;
  margin: 1.4rem 0 1.7rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.8rem 1.2rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

.button:hover {
  background: #463b2a;
}

.hero-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(0, 2fr) minmax(0, 1fr);
  gap: 0.375rem;
  aspect-ratio: 1.12;
}

.hero-photo {
  min-height: 0;
  overflow: hidden;
}

.hero-photo-main {
  grid-column: 1 / -1;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

@media (prefers-reduced-motion: no-preference) {
  .hero-photo img {
    animation: photo-pulse 650ms ease-in-out;
  }

  .hero-photo:nth-child(2) img {
    animation-delay: 100ms;
  }

  .hero-photo:nth-child(3) img {
    animation-delay: 200ms;
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hero-photo img {
    transition: transform 200ms ease-out;
  }

  .hero-photo:hover img {
    transform: scale(1.06);
  }
}

@keyframes photo-pulse {
  50% {
    scale: 1.05;
  }
}

.site-footer {
  margin-top: auto;
  background: var(--paper);
  border-top: 1px solid #ded8ca;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem 1.5rem;
  max-width: var(--content-width);
  margin-inline: auto;
  padding: 1.25rem clamp(1rem, 3vw, 2.5rem);
  font-size: 0.9375rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.5rem;
}

.footer-inner a:hover, .legal a:hover {
  color: #795a25;
}

.legal {
  width: min(100% - 2rem, 49rem);
  margin: clamp(1rem, 4vw, 3.25rem) auto;
  padding: clamp(1.25rem, 5vw, 3.5rem);
  background: var(--paper);
  border-top: 0.375rem solid var(--sand);
  overflow-wrap: anywhere;
}

.legal h1 {
  font-size: clamp(2.3rem, 5vw, 3.75rem);
}

.legal h2 {
  font-size: clamp(1.75rem, 4vw, 2.65rem);
}

.legal h3 {
  margin-top: 1.5rem;
  font-size: 1.25rem;
}

.legal h3 + p {
  margin-top: 0.5rem;
}

.legal h1, .legal h2, .legal h3 {
  scroll-margin-top: 1.25rem;
}

.legal address {
  margin-top: 1.25rem;
  font-style: normal;
}

.legal section + section {
  margin-top: 2.2rem;
  padding-top: 2rem;
  border-top: 1px solid #ded8ca;
}

.legal section > :last-child {
  margin-bottom: 0;
}

@media (max-width: 50rem) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: clamp(1.5rem, 7vw, 3.5rem);
  }

  .hero h1 {
    font-size: clamp(2.6rem, 9vw, 4.75rem);
  }

  .hero-images {
    aspect-ratio: 1.4;
  }
}

@supports (animation-timeline: view()) {
  @media (max-width: 50rem) and (prefers-reduced-motion: no-preference) {
    .hero-photo img {
      animation-duration: auto;
      animation-timeline: view();
      animation-range: entry;
    }
  }
}

@media (max-width: 26rem) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
