@font-face {
  font-family: "Calm Sans";
  src: url("/assets/calm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --surface: #e6e3e0;
  --surface-alternate: #e0dcd8;
  --surface-dark: #161616;
  --heading: #1e1e1e;
  --body: #5b5b5b;
  --brand: #32746d;
  --link: #2b625d;
  --inverse: #efefef;
  --border: #d0cbc7;
  --border-dark: #2c2c2c;
  --radius-card: 24px;
  --radius-control: 999px;
  --spring-snappy: linear(
    0, 0.009, 0.035 2.1%, 0.141 4.4%, 0.723 12.9%,
    0.938 16.7%, 1.017 19.4%, 1.067 22.5%, 1.089 26%,
    1.079 30.3%, 1.049 36%, 1.024 42.6%, 1.011 50.3%,
    1.004 59.2%, 1.001 69.3%, 1
  );
  --ease-snap: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-cinematic: cubic-bezier(0.65, 0, 0.35, 1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--surface-dark);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--surface);
  color: var(--body);
  font-family: "Calm Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.6;
}

a {
  color: var(--link);
  text-decoration: none;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration: underline;
}

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

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 24px;
  top: 24px;
  z-index: 2;
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--inverse);
  color: var(--surface-dark);
}

header,
main,
footer {
  width: min(100%, 1280px);
  margin-inline: auto;
  border-right: 1px solid;
  border-left: 1px solid;
}

header {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 32px 24px;
  border-color: var(--border-dark);
  background: var(--surface-dark);
  box-shadow: 0 0 0 100vmax var(--surface-dark);
  clip-path: inset(0 -100vmax);
}

header > a {
  flex: 0 0 auto;
}

header img {
  display: block;
  width: 170px;
  height: auto;
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1 1 680px;
  flex-wrap: wrap;
  padding: 0;
  font-size: 20px;
}

nav a {
  padding: 0;
  color: var(--inverse);
}

nav a:hover {
  color: #ffffff;
  text-decoration: none;
}

main {
  padding: 96px 24px;
  border-color: var(--border);
  background: var(--surface);
  box-shadow: 0 0 0 100vmax var(--surface);
  clip-path: inset(0 -100vmax);
}

article {
  width: 100%;
  max-width: none;
}

.eyebrow {
  margin: 0 0 32px;
  color: var(--link);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 64px;
  align-items: start;
}

.hero > div {
  min-width: 0;
}

.hero img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 52px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.home-page main {
  padding-top: 0;
}

.home-hero {
  position: relative;
  min-height: calc(100dvh - 129px);
  overflow: hidden;
  isolation: isolate;
  background: var(--surface-dark);
  color: var(--inverse);
}

.home-hero__media,
.home-hero__scrim {
  position: absolute;
  inset: 0;
}

.home-hero__media {
  overflow: hidden;
}

.home-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.035);
  animation: hero-image-enter 760ms var(--ease-cinematic) both;
  transition: transform 480ms var(--ease-snap);
}

.home-hero:hover .home-hero__media img {
  transform: scale(1.055);
}

.home-hero__scrim {
  z-index: 1;
  background:
    linear-gradient(180deg, rgb(22 22 22 / 20%) 0%, transparent 38%),
    linear-gradient(0deg, rgb(22 22 22 / 78%) 0%, rgb(22 22 22 / 10%) 62%);
  pointer-events: none;
}

.home-hero__content {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  padding: clamp(32px, 5vw, 72px);
}

.home-hero .eyebrow {
  margin: 0 0 clamp(16px, 2vw, 28px);
  color: var(--inverse);
  opacity: 0;
  animation: hero-enter-up 560ms var(--spring-snappy) 80ms forwards;
}

.home-hero h1 {
  max-width: none;
  margin: 0;
  color: var(--inverse);
  font-size: clamp(84px, 16vw, 220px);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 0.78;
  opacity: 0;
  animation: hero-enter-up 620ms var(--spring-snappy) 180ms forwards;
}

.home-prose {
  padding: clamp(72px, 10vw, 144px) 0;
}

@keyframes hero-image-enter {
  from {
    opacity: 0;
    transform: scale(1.08);
  }
  to {
    opacity: 1;
    transform: scale(1.035);
  }
}

@keyframes hero-enter-up {
  from {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

h1,
h2 {
  color: var(--heading);
  font-weight: 600;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 1024px;
  margin: 0 0 36px;
  font-size: clamp(72px, 7vw, 96px);
  line-height: 0.98;
}

h2 {
  margin: 64px 0 24px;
  font-size: 40px;
  line-height: 1.1;
}

.prose {
  max-width: 768px;
}

.prose p {
  margin: 0 0 24px;
  font-size: 20px;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose a {
  color: var(--link);
  text-decoration: underline;
}

.collection-letter p a[href^="mailto:"] {
  color: #000000;
  text-decoration: underline;
}

.notice {
  max-width: 768px;
  margin: 64px 0 0;
  padding: 24px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
}

footer {
  padding: 44px 24px;
  border-color: var(--border-dark);
  background: var(--surface-dark);
  box-shadow: 0 0 0 100vmax var(--surface-dark);
  clip-path: inset(0 -100vmax);
  color: var(--inverse);
  font-size: 18px;
}

footer a {
  color: var(--inverse);
  font-size: 20px;
}

footer a:hover {
  color: #ffffff;
}

@media (max-width: 860px) {
  header {
    gap: 24px;
  }

  nav {
    flex-basis: 100%;
  }

  main {
    padding-block: 64px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .hero img {
    width: min(100%, 640px);
    margin-top: 0;
  }

  .home-hero {
    min-height: calc(100dvh - 185px);
  }
}

@media (max-width: 650px) {
  body {
    font-size: 18px;
  }

  header {
    padding-block: 24px;
  }

  header img {
    width: 150px;
  }

  nav {
    gap: 16px 24px;
    font-size: 18px;
  }

  main {
    padding-block: 48px;
  }

  .eyebrow {
    margin-bottom: 24px;
  }

  h1 {
    margin-bottom: 36px;
    font-size: clamp(46px, 14vw, 64px);
  }

  h2 {
    margin-top: 48px;
    font-size: 32px;
  }

  .prose p {
    font-size: 18px;
  }

  .notice {
    margin-top: 48px;
    padding: 24px;
  }

  .home-page main {
    padding-top: 0;
  }

  .home-hero {
    min-height: max(560px, calc(100dvh - 241px));
  }

  .home-hero__media img {
    object-position: 57% center;
  }

  .home-hero__scrim {
    background:
      linear-gradient(180deg, rgb(22 22 22 / 20%) 0%, transparent 32%),
      linear-gradient(0deg, rgb(22 22 22 / 86%) 0%, rgb(22 22 22 / 10%) 68%);
  }

  .home-hero__content {
    padding: 28px 24px 36px;
  }

  .home-hero h1 {
    font-size: clamp(72px, 27vw, 112px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }

  .home-hero__media img,
  .home-hero:hover .home-hero__media img {
    transform: none;
    animation: hero-reduced-fade 180ms var(--ease-cinematic) both;
    transition: none;
  }

  .home-hero .eyebrow,
  .home-hero h1 {
    transform: none;
    filter: none;
    animation: hero-reduced-fade 180ms var(--ease-cinematic) both;
  }

  @keyframes hero-reduced-fade {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}
