/* Wandering Nevada Soul v2 — desert basin at golden hour.
   Tokens are the contract: pages use these, never raw hex. */
:root {
  --sand: #d9c5a3;        /* page field */
  --sand-deep: #c8b08a;   /* raised surfaces on sand */
  --dune: #a9845c;        /* mid ridgeline */
  --copper: #b5652a;      /* accent, sun, CTAs */
  --rust: #7a3b1e;        /* far ridgeline, strong text accent */
  --sage: #8c9b7a;        /* desert scrub, secondary accent */
  --night: #141a22;       /* dark sections, footer, hero sky base */
  --night-2: #1f2834;     /* raised surfaces on night */
  --ink: #1e1711;         /* text on sand */
  --ink-soft: #5c4d3c;    /* secondary text on sand */
  --bone: #f1e9da;        /* text on night */
  --bone-soft: #b8ad9a;   /* secondary text on night */
  --max: 76rem;
  --measure: 40rem;
  --gutter: clamp(1.1rem, 4.5vw, 3rem);
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(.22,.61,.36,1);
  --radius: 10px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--sand); color: var(--ink);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.55;
  overflow-x: clip;
}
/* film grain over everything, very light */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg, video, canvas { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--copper); }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.8rem, 8.5vw, 6.5rem); font-weight: 800; font-stretch: 112%; }
h2 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 700; font-stretch: 110%; }
h3 { font-size: 1.35rem; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
p { margin: 0 0 1em; max-width: var(--measure); }
.lede { font-size: clamp(1.2rem, 2.3vw, 1.5rem); line-height: 1.35; max-width: 34rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(4rem, 10vw, 8rem) 0; position: relative; }
.dark { background: var(--night); color: var(--bone); }
.dark h1, .dark h2, .dark h3 { color: #fff; }
.dark .muted { color: var(--bone-soft); }
.muted { color: var(--ink-soft); }

/* word-split reveal: markup stays readable without JS; JS adds .w spans */
.split .w { display: inline-block; will-change: transform; }

/* ridgelines (layered desert horizon) — pages include .ridge blocks; parallax via data-depth */
.ridges { position: absolute; inset: auto 0 0 0; height: 46vh; min-height: 260px; pointer-events: none; overflow: hidden; }
.ridges svg { position: absolute; bottom: 0; left: 50%; width: 160%; min-width: 1400px; transform: translateX(-50%); height: 100%; overflow: visible; }
.ridge-far { fill: var(--rust); opacity: .85; }
.ridge-mid { fill: var(--dune); }
.ridge-near { fill: var(--sand-deep); }
.dark .ridge-far { fill: #2a1a12; }
.dark .ridge-mid { fill: #3b2718; }
.dark .ridge-near { fill: #4b3321; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); background: color-mix(in srgb, var(--sand) 72%, transparent); }
.dark-nav .nav { background: color-mix(in srgb, var(--night) 70%, transparent); color: var(--bone); }
.nav-inner { display: flex; align-items: center; gap: 1.5rem; padding: .9rem 0; }
.brand { font-family: var(--display); font-weight: 800; font-stretch: 112%; text-decoration: none; margin-right: auto; font-size: 1.05rem; letter-spacing: -.01em; }
.brand em { font-style: normal; color: var(--copper); }
.nav-links { display: flex; gap: 1.25rem; }
.nav-links a { text-decoration: none; font-weight: 500; padding: .3rem 0; border-bottom: 2px solid transparent; }
.nav-links a[aria-current="page"] { border-bottom-color: var(--copper); }
.nav-links a:hover { color: inherit; border-bottom-color: currentColor; }
.nav-toggle { display: none; background: none; border: 2px solid currentColor; border-radius: 999px; padding: .4rem .9rem; font: inherit; font-weight: 600; color: inherit; cursor: pointer; }
@media (max-width: 46rem) {
  .nav-toggle { display: inline-block; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; padding: .5rem var(--gutter) 1rem; background: var(--sand); border-bottom: 1px solid var(--sand-deep); }
  .dark-nav .nav-links { background: var(--night); border-color: var(--night-2); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .7rem 0; font-size: 1.15rem; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .9rem 1.5rem; border-radius: 999px; font-weight: 600; text-decoration: none; cursor: pointer; font: inherit; font-weight: 600; line-height: 1.1; border: 2px solid currentColor; background: transparent; color: inherit; transition: transform .25s var(--ease-out), background .25s, color .25s; }
.btn:hover { transform: translateY(-2px); color: inherit; }
.btn-solid { background: var(--copper); border-color: var(--copper); color: #fff; }
.btn-solid:hover { background: var(--rust); border-color: var(--rust); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.75rem; }

/* media slots: real photos drop in as <img>; until then a labelled slot */
.ph { background: linear-gradient(160deg, var(--sand-deep), var(--dune)); border-radius: var(--radius); display: grid; place-items: center; text-align: center; color: var(--ink); padding: 1.25rem; font-size: .9rem; line-height: 1.3; aspect-ratio: 4/3; overflow: hidden; position: relative; }
.dark .ph { background: linear-gradient(160deg, var(--night-2), #2d2219); color: var(--bone); }
.ph.portrait { aspect-ratio: 3/4; } .ph.wide { aspect-ratio: 16/8; } .ph.square { aspect-ratio: 1; }
.ph strong { display: block; margin-bottom: .25rem; }
.ph::before { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E"); mix-blend-mode: multiply; }
.ph > * { position: relative; }

/* grids */
.grid { display: grid; gap: clamp(1rem, 3vw, 2rem); }
@media (min-width: 42rem) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* forms */
.field { display: flex; flex-wrap: wrap; gap: .6rem; max-width: 32rem; }
input, select, textarea { font: inherit; }
input[type="email"], input[type="text"], select, textarea { flex: 1 1 14rem; min-width: 0; padding: .85rem 1.1rem; border-radius: 999px; border: 2px solid var(--dune); background: color-mix(in srgb, var(--sand) 60%, #fff); color: var(--ink); }
.dark input[type="email"], .dark input[type="text"], .dark select, .dark textarea { background: var(--night-2); border-color: #3a4656; color: #fff; }
textarea { border-radius: var(--radius); min-height: 8rem; resize: vertical; width: 100%; }
select { border-radius: var(--radius); width: 100%; }
.form label { display: block; font-weight: 600; margin: 1rem 0 .35rem; }
.form input[type="text"], .form input[type="email"] { width: 100%; border-radius: var(--radius); }
.form-error { color: var(--copper); font-weight: 600; }

/* footer */
.footer { padding: 3rem 0 3.5rem; font-size: .95rem; }
.footer .links { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-bottom: 1.2rem; }
.footer a { text-decoration: none; }
.footer p { margin: .25rem 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--copper); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: var(--gutter); }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
