/* Jost (SIL Open Font License), self-hosted so no visitor data goes to Google */
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(fonts/jost-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: "Jost";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(fonts/jost-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #efede8;
  --ink: #1a1a18;
  --muted: #6b6963;
  --rule: #d8d5ce;
  --stone: #e3e0d9;
  --font: "Jost", "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161614;
    --ink: #edebe6;
    --muted: #9a978f;
    --rule: #2c2b28;
    --stone: #1d1d1a;
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
a:hover { color: var(--muted); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.wrap { width: 100%; max-width: 76rem; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 48rem) { .wrap { padding: 0 2.5rem; } }

body > header, body > main, body > footer { position: relative; z-index: 1; }

/* ---------- Header ---------- */

.site-header { padding: 1.75rem 0; }

.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.2em;
}
.lockup svg { width: 30px; height: auto; flex: none; }
.lockup:hover { color: inherit; }

.header-cta {
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.header-cta:hover { background: var(--ink); color: var(--bg); }

/* ---------- Home ---------- */

.home { overflow-x: hidden; }

.home main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: clamp(3rem, 10vh, 7rem) 0 clamp(3rem, 8vh, 5rem);
}

.bg-mark {
  position: absolute;
  z-index: 0;
  right: -14vw;
  bottom: -6vh;
  width: min(70vw, 960px);
  height: auto;
  fill: var(--stone);
  pointer-events: none;
}
.bg-mark path { animation: settle 1.6s cubic-bezier(.2,.7,.1,1) both; }
.bg-mark .piece-a { --from: translate(-10px, 10px); }
.bg-mark .piece-b { --from: translate(16px, -16px); animation-delay: 0.25s; }

@keyframes settle {
  from { transform: var(--from); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 2rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .dash {
  display: block;
  width: 2.5rem;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  animation: draw 1s 0.2s cubic-bezier(.2,.7,.1,1) both;
}
@keyframes draw { from { transform: scaleX(0); } }

.headline {
  margin: 0;
  font-size: clamp(2.5rem, 7.2vw, 6rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.headline .line {
  display: block;
  animation: rise 0.9s cubic-bezier(.2,.7,.1,1) both;
}
.headline .line:nth-child(2) { animation-delay: 0.08s; }
.headline .line:nth-child(3) { animation-delay: 0.16s; }
.headline .soft { color: var(--muted); font-weight: 400; }

@keyframes rise {
  from { transform: translateY(0.35em); opacity: 0; }
}

.split {
  display: grid;
  gap: 2.5rem;
  margin-top: clamp(2.5rem, 6vh, 4rem);
  animation: rise 0.9s 0.3s cubic-bezier(.2,.7,.1,1) both;
}
@media (min-width: 52rem) {
  .split { grid-template-columns: minmax(0, 26rem) auto; justify-content: space-between; align-items: end; }
}

.intro { margin: 0; font-size: 1.1rem; color: var(--muted); max-width: 34ch; }

.label {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.email {
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  padding-bottom: 0.15em;
  transition: background-size 0.35s ease, color 0.2s;
}
.email:hover { color: inherit; background-size: 0% 1px; background-position: right bottom; }

/* ---------- Footer ---------- */

footer { padding: 0 0 2rem; font-size: 0.78rem; color: var(--muted); line-height: 1.7; }

.legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
}
.legal::before {
  content: "";
  flex-basis: 100%;
  border-top: 1px solid var(--rule);
  margin-bottom: 1.25rem;
}
.legal p { margin: 0; }
.legal nav { margin-left: auto; }
@media (max-width: 40rem) { .legal { flex-direction: column; } .legal nav { margin: 0.5rem 0 0; } }

/* ---------- Privacy ---------- */

.doc .wrap { max-width: 48rem; }

.doc main { flex: 1; padding: 3rem 0 3rem; }

.doc h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.doc .updated { margin: 0.6rem 0 2.5rem; color: var(--muted); font-size: 0.9rem; }

.doc h2 {
  margin: 2.5rem 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.doc p, .doc li { font-size: 1rem; }
.doc ul { padding-left: 1.2rem; }
.doc li { margin: 0.25rem 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
