@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/manrope-var.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --limestone: #e8e2d4;
  --moss: #26382b;
  --deep-moss: #18271e;
  --clay: #a84e34;
  --line: rgba(38, 56, 43, 0.2);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  background: var(--limestone);
}

body {
  color: var(--moss);
  font-family: "Manrope", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  overflow-x: clip;
  isolation: isolate;
  background:
    radial-gradient(circle at 18% 86%, rgba(168, 78, 52, 0.07), transparent 25rem),
    var(--limestone);
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  content: "";
  opacity: 0.11;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.site-header {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 112px;
  margin: 0 4.5vw;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  line-height: 1.05;
  letter-spacing: 0.08em;
}

.brand-mark {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  border: 1px solid var(--moss);
  border-radius: 50%;
  transition: transform 450ms cubic-bezier(0.16, 1, 0.3, 1), background-color 300ms ease;
}

.brand-mark i {
  position: absolute;
  left: 9px;
  display: block;
  width: 14px;
  height: 1px;
  background: currentColor;
  transform-origin: left center;
}

.brand-mark i:nth-child(1) {
  top: 10px;
  transform: rotate(25deg);
}

.brand-mark i:nth-child(2) {
  top: 16px;
}

.brand-mark i:nth-child(3) {
  top: 22px;
  transform: rotate(-25deg);
}

.brand:hover .brand-mark {
  color: var(--limestone);
  background: var(--moss);
  transform: rotate(12deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 52px);
}

.site-nav a,
.header-link {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after,
.header-link::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

.site-nav a:hover::after,
.header-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-link {
  justify-self: end;
}

.header-link span {
  color: var(--clay);
  font-size: 15px;
}

.hero-copy {
  position: relative;
  z-index: 5;
  width: min(45vw, 650px);
  margin: clamp(70px, 9vh, 112px) 0 0 7.2vw;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 26px;
  color: rgba(38, 56, 43, 0.73);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 31px;
  height: 1px;
  background: var(--clay);
}

h1 {
  max-width: 620px;
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(58px, 5.7vw, 86px);
  font-weight: 360;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.intro {
  max-width: 430px;
  margin: 30px 0 0 5px;
  color: rgba(38, 56, 43, 0.78);
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.65;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  margin: 31px 0 0 5px;
  padding: 8px 8px 8px 21px;
  color: #f4eee2;
  background: var(--moss);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), background-color 300ms ease;
}

.action-arrow {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  color: var(--moss);
  background: #f2eadc;
  font-size: 17px;
  transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1), background-color 300ms ease;
}

.primary-action:hover {
  background: var(--clay);
  transform: translateY(-3px);
}

.primary-action:hover .action-arrow {
  background: #fff9ee;
  transform: rotate(5deg);
}

.primary-action:active {
  transform: translateY(1px) scale(0.985);
}

.site-key {
  position: absolute;
  z-index: 5;
  top: 150px;
  right: 4.5vw;
  display: grid;
  grid-template-columns: auto auto;
  gap: 10px 30px;
  color: rgba(38, 56, 43, 0.65);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-key .key-title {
  grid-row: 1 / 4;
  align-self: stretch;
  padding-right: 18px;
  border-right: 1px solid rgba(168, 78, 52, 0.45);
  color: var(--clay);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.field-note {
  position: absolute;
  z-index: 5;
  bottom: 60px;
  left: 7.2vw;
  display: flex;
  max-width: 420px;
  align-items: flex-start;
  gap: 15px;
  margin: 0;
  color: rgba(38, 56, 43, 0.74);
  font-size: 11px;
  line-height: 1.5;
}

.field-note span {
  color: var(--clay);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.landscape-image {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  width: min(55vw, 800px);
  height: min(69vh, 690px);
  margin: 0;
  overflow: hidden;
  background: var(--deep-moss);
  clip-path: polygon(13% 0, 100% 0, 100% 100%, 0 100%, 0 15%);
}

.landscape-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(115deg, rgba(24, 39, 30, 0.24), transparent 52%);
  pointer-events: none;
}

.landscape-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 51% center;
  filter: saturate(0.78) contrast(1.04) sepia(0.08);
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1), filter 500ms ease;
}

.landscape-image:hover img {
  filter: saturate(0.92) contrast(1.02);
  transform: scale(1.025);
}

.landscape-image figcaption {
  position: absolute;
  z-index: 2;
  right: 28px;
  bottom: 28px;
  left: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  color: #f7f0e2;
  font-family: "Fraunces", serif;
  font-size: 18px;
}

.landscape-image figcaption small {
  font-family: "Manrope", sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.contours {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.contour-lines,
.boundary-lines {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.contour-lines {
  stroke: rgba(38, 56, 43, 0.11);
  stroke-width: 1;
}

.boundary-lines {
  stroke: rgba(168, 78, 52, 0.2);
  stroke-dasharray: 5 6;
  stroke-width: 1;
}

.boundary-lines circle {
  fill: var(--limestone);
  stroke-dasharray: none;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
    height: 88px;
    margin: 0 22px;
  }

  .site-nav {
    display: none;
  }

  .site-key,
  .field-note {
    display: none;
  }

  .hero-copy {
    width: min(78vw, 590px);
    margin-top: 66px;
    margin-left: 7vw;
  }

  .landscape-image {
    width: 60vw;
    height: 55vh;
  }
}

@media (max-width: 600px) {
  .site-header {
    height: 74px;
    margin: 0 18px;
  }

  .brand {
    gap: 9px;
    font-size: 9px;
  }

  .brand-mark {
    width: 29px;
    height: 29px;
  }

  .brand-mark i {
    left: 7px;
  }

  .brand-mark i:nth-child(1) {
    top: 8px;
  }

  .brand-mark i:nth-child(2) {
    top: 14px;
  }

  .brand-mark i:nth-child(3) {
    top: 20px;
  }

  .header-link {
    font-size: 8px;
    letter-spacing: 0.09em;
  }

  .header-link span {
    font-size: 12px;
  }

  .hero-copy {
    width: auto;
    margin: 41px 22px 0;
  }

  .eyebrow {
    margin-bottom: 17px;
    font-size: 8px;
  }

  h1 {
    max-width: 340px;
    font-size: clamp(45px, 13.1vw, 53px);
    line-height: 0.94;
  }

  .intro {
    max-width: 325px;
    margin-top: 19px;
    margin-left: 1px;
    font-size: 13px;
    line-height: 1.48;
  }

  .primary-action {
    margin-top: 20px;
    margin-left: 1px;
    padding-left: 16px;
    font-size: 9px;
  }

  .action-arrow {
    width: 34px;
    height: 34px;
  }

  .landscape-image {
    right: -16px;
    width: calc(100% - 42px);
    height: 35dvh;
    min-height: 252px;
    max-height: 310px;
    clip-path: polygon(17% 0, 100% 0, 100% 100%, 0 100%, 0 18%);
  }

  .landscape-image img {
    object-position: 48% center;
  }

  .landscape-image figcaption {
    right: 22px;
    bottom: 17px;
    left: 22px;
    font-size: 15px;
  }

  .landscape-image figcaption small {
    display: none;
  }

  .contours {
    width: 180%;
    transform: translateX(-36%);
  }
}

@media (max-height: 700px) and (max-width: 600px) {
  .hero-copy {
    margin-top: 26px;
  }

  h1 {
    font-size: 43px;
  }

  .intro {
    margin-top: 13px;
  }

  .primary-action {
    margin-top: 13px;
  }

  .landscape-image {
    min-height: 218px;
  }
}

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