@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("assets/fonts/lora-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("assets/fonts/hanken-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg:    #f6f6f1;
  --ink:   #1c2b23;
  --body:  #43524a;
  --muted: #5d6c63;
  --pine:  #1e3b2e;
  --font-display: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --gutter: clamp(1.5rem, 7vw, 6rem);
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Scene: peaks resting on a horizon that runs off the page */
.scene {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(3rem, 10vh, 7rem);
}

.ridge {
  padding-inline: var(--gutter);
}

.peaks {
  display: block;
  width: clamp(11rem, 26vw, 20rem);
  height: auto;
  overflow: visible;
  fill: none;
  stroke: var(--pine);
  stroke-width: .2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.horizon {
  height: 1px;
  margin-inline: calc(-1 * var(--gutter));
  background: linear-gradient(90deg,
    rgba(30, 59, 46, 0) 0%,
    rgba(30, 59, 46, .5) 4%,
    rgba(30, 59, 46, .5) 42%,
    rgba(30, 59, 46, 0) 100%);
  transform-origin: left center;
}

.copy {
  padding-inline: var(--gutter);
  padding-top: clamp(1.75rem, 4vw, 2.75rem);
  max-width: 40rem;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--ink);
}

.copy p {
  margin: .75rem 0 0;
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
}

.site-footer {
  padding: 1.5rem var(--gutter) 2rem;
  font-size: .875rem;
  color: var(--muted);
}
.site-footer p { margin: 0; }

/* One page-load sequence: horizon draws, peaks trace, words settle */
.horizon {
  animation: horizon 900ms cubic-bezier(.2, .7, .2, 1) both;
}
.peaks path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: trace 1100ms cubic-bezier(.4, 0, .2, 1) 350ms both;
}
.copy,
.site-footer {
  animation: settle 700ms ease-out 1100ms both;
}

@keyframes horizon {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes trace {
  to { stroke-dashoffset: 0; }
}
@keyframes settle {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .horizon, .peaks path, .copy, .site-footer { animation: none; }
  .peaks path { stroke-dashoffset: 0; }
}
