/* Fonts are served from this site, not a third party. Latin subset, variable weight. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/inter-latin.woff2) format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(fonts/source-serif-4-latin.woff2) format("woff2");
}

/* Alvs Ridge — brand tokens come from the logo set: cream, ink, clay. */
:root {
  --cream: #F0EEE6;
  --paper: #FAF9F5;
  --sand: #E6E2D6;
  --line: #D9D6CC;
  --ink: #1F1E1D;
  --muted: #5E5D59;
  --clay: #C4623F;
  --clay-text: #A2472A;   /* clay darkened so small text passes contrast on cream */
  --clay-ink: #2B1309;    /* text on a clay fill */
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1080px;
  --gutter: 24px;
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 16px; }

/* The mark's two facets are driven by inherited custom properties so the
   same <symbol> can be recoloured on dark surfaces. */
.mark { --mark-l: var(--ink); --mark-r: var(--clay); flex: none; }
.on-dark .mark { --mark-l: var(--cream); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.lockup span { white-space: nowrap; font-family: var(--serif); font-size: 23px; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: 15px; color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.nav a.btn { color: var(--cream); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  font: 500 14px var(--sans); color: var(--ink); padding: 8px 14px; cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--ink); color: var(--cream);
  font: 500 15px/1 var(--sans); padding: 14px 22px; border-radius: 8px; border: 0;
  text-decoration: none; cursor: pointer; transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: #3a3835; }
.btn:active { transform: translateY(1px); }
.btn.small { padding: 10px 16px; font-size: 14px; }
.btn.clay { background: var(--clay); color: var(--clay-ink); }
.btn.clay:hover { background: #d27350; }
.btn[disabled] { opacity: .6; cursor: default; }
.link { font-size: 15px; font-weight: 500; text-underline-offset: 4px; text-decoration-color: var(--clay); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero .wrap { position: relative; z-index: 1; padding-top: clamp(64px, 10vw, 128px); padding-bottom: clamp(150px, 19vw, 250px); }
.hero h1 { font-size: clamp(2.9rem, 7.4vw, 5.25rem); line-height: 1.02; letter-spacing: -0.02em; }
.hero p { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 30em; margin: 24px 0 34px; }
.hero .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 26px; }
.ridge { position: absolute; right: 0; bottom: 0; width: min(62vw, 880px); height: auto; }

/* ---------- Sections ---------- */
section { scroll-margin-top: 68px; }
.band { padding: clamp(64px, 9vw, 112px) 0; }
.band.paper { background: var(--paper); border-block: 1px solid var(--line); }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--clay-text); margin-bottom: 14px; }
.band h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); line-height: 1.12; max-width: 17em; }
.lede { color: var(--muted); max-width: 34em; margin-top: 16px; }

/* Worries */
.worries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.worry { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 26px 26px 28px; }
.worry h3 { font-size: 1.4rem; line-height: 1.3; margin-bottom: 14px; }
.worry p { color: var(--muted); font-size: 15.5px; }

/* Steps climb left to right */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 52px; align-items: start; list-style: none; padding: 0; }
.step { border-top: 2px solid var(--ink); padding-top: 18px; }
.step:nth-child(1) { margin-top: 72px; }
.step:nth-child(2) { margin-top: 36px; }
.step:nth-child(3) { border-top-color: var(--clay); }
.step .n { font-size: 13px; font-weight: 600; color: var(--clay-text); }
.step h3 { font-size: 1.55rem; margin: 6px 0 8px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* Dark band */
.dark { background: var(--ink); color: var(--cream); }
.dark .eyebrow { color: #E08A68; }
.dark-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.promises { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; margin-top: 48px; }
.promise { border-top: 1px solid #3d3b38; padding: 22px 0 26px; }
.promise h3 { font-size: 1.3rem; margin-bottom: 6px; }
.promise p { color: #C2C0B6; font-size: 15.5px; max-width: 30em; }

/* About */
.about { display: grid; grid-template-columns: 5fr 6fr; gap: 56px; align-items: start; }
.about .body p { color: var(--muted); }
.about .body p + p { margin-top: 16px; }

/* CTA */
.cta {
  background: var(--ink); color: var(--cream); border-radius: 16px;
  padding: clamp(28px, 5vw, 48px); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.cta p { color: #C2C0B6; margin-top: 6px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer .lockup span { font-size: 19px; color: var(--ink); }

/* ---------- Contact page ---------- */
.contact { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(64px, 9vw, 112px); align-items: start; }
.contact h1 { font-size: clamp(2.4rem, 5.4vw, 3.6rem); line-height: 1.06; letter-spacing: -0.02em; }
.contact .intro p { color: var(--muted); margin-top: 20px; max-width: 26em; }
.expect { list-style: none; padding: 0; margin: 36px 0 0; }
.expect li { border-top: 1px solid var(--line); padding: 14px 0; font-size: 15.5px; color: var(--muted); }
.expect strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.15rem; color: var(--ink); }

.form { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: clamp(22px, 4vw, 36px); }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 7px; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; font: 16px/1.5 var(--sans); color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 11px 13px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--clay); outline-offset: 1px; border-color: var(--clay); }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 16px; font-size: 15px; min-height: 1.5em; }
.form-status.ok { color: #2f6b1f; }
.form-status.err { color: #9b2f2a; }

/* ---------- 404 ---------- */
.lost { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 48px var(--gutter); }
.lost .mark { margin: 0 auto 28px; }
.lost h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1.1; }
.lost p { color: var(--muted); margin: 16px auto 30px; max-width: 24em; }

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}

/* ---------- Small screens ---------- */
@media (max-width: 820px) {
  .worries, .steps, .promises, .about, .contact { grid-template-columns: 1fr; }
  .about, .contact { gap: 36px; }
  .step:nth-child(1), .step:nth-child(2) { margin-top: 0; }
  .dark-head .mark { display: none; }
  .ridge { width: 100%; }
  .hero .wrap { padding-bottom: 46vw; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav a.btn { margin-top: 16px; border: 0; text-align: center; padding: 14px; }
}

/* ---------- Long-form pages (privacy) ---------- */
.prose { max-width: 720px; padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(64px, 9vw, 112px); }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.08; letter-spacing: -0.02em; }
.prose .updated { color: var(--muted); font-size: 14px; margin: 14px 0 32px; }
.prose h2 { font-size: 1.5rem; margin: 40px 0 10px; }
.prose p, .prose li { color: var(--muted); }
.prose p.eyebrow { color: var(--clay-text); }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 20px; margin: 14px 0 0; }
.prose li + li { margin-top: 10px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--ink); text-decoration-color: var(--clay); text-underline-offset: 3px; }

/* ---------- Offers ---------- */
.offers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 44px; }
.offer { background: var(--cream); border: 1px solid var(--line); border-radius: 14px; padding: clamp(24px, 3.4vw, 36px); display: flex; flex-direction: column; }
.offer h3 { font-size: 1.75rem; margin-bottom: 10px; }
.offer p { color: var(--muted); }
.offer ul { list-style: none; padding: 0; margin: 22px 0 26px; }
.offer li { border-top: 1px solid var(--line); padding: 11px 0; font-size: 15.5px; }
.offer li:last-child { border-bottom: 1px solid var(--line); }
.offer .link { margin-top: auto; align-self: flex-start; }
.offer .tag { order: -1; align-self: flex-start; font-size: 12px; font-weight: 600; color: var(--clay-text); border: 1px solid currentColor; border-radius: 999px; padding: 3px 10px; margin-bottom: 14px; }
@media (max-width: 820px) { .offers { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 4fr 7fr; gap: 56px; align-items: start; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  font-family: var(--serif); font-size: 1.25rem; padding: 18px 36px 18px 0;
  cursor: pointer; list-style: none; position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--sans); font-size: 22px; color: var(--clay-text);
}
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details p { color: var(--muted); padding: 0 36px 22px 0; max-width: 38em; }
.about .body a { color: var(--ink); text-decoration-color: var(--clay); text-underline-offset: 3px; }
.band-gap { height: clamp(64px, 9vw, 112px); }
@media (max-width: 820px) { .faq { grid-template-columns: 1fr; gap: 28px; } }
