/* ==========================================================================
   Alpine Vision Advisory — design system
   Tokens: alpine green #1B4D3E · ink #1A1A18 · paper #F8F7F4
   Type: Fraunces (display) · DM Sans (body)
   ========================================================================== */

:root {
  --green: #1B4D3E;
  --pine: #12352A;        /* darker green — hero, contact band */
  --ink: #1A1A18;
  --paper: #F8F7F4;
  --mist: #EAEFEA;        /* tinted section background */
  --line: #D4D9D2;
  --gold: #A9803E;        /* restrained accent — rules, totals */
  --paper-70: rgba(248, 247, 244, 0.7);

  --display: "Fraunces", Georgia, serif;
  --body: "DM Sans", -apple-system, Helvetica, Arial, sans-serif;

  --max: 1080px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }
p + p { margin-top: 1rem; }

a { color: var(--green); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Section eyebrow = the section title. Fraunces, gold, title case, large.
   The h2 beneath it is a subheading closer to body size (see .section h2). */
.eyebrow {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

/* Section subheading: the descriptive sentence under the title.
   Just above body size, DM Sans, ink — reads as a lede, not a billboard. */
.section h2,
.split-copy h2 {
  font-family: var(--body);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--ink);
  margin-bottom: 1.1rem;
}

/* --- Nav --------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper-70);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.wordmark {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark span { color: var(--green); }
.nav-links { display: flex; align-items: center; gap: 1.4rem; }
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.nav-links a:hover { color: var(--green); }
.nav-cta {
  background: var(--green);
  color: var(--paper) !important;
  padding: 0.45rem 1rem;
  border-radius: 3px;
}
.nav-cta:hover { background: var(--pine); }
@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--pine);
  color: var(--paper);
  overflow: hidden;
}
.contours {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: rgba(248, 247, 244, 0.13);
}
.hero-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(5rem, 12vw, 8.5rem) var(--pad) clamp(4.5rem, 10vw, 7.5rem);
}
.hero .eyebrow {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(248, 247, 244, 0.75);
  margin-bottom: 0.9rem;
}
.hero-sub {
  max-width: 34em;
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: rgba(248, 247, 244, 0.9);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }

.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 3px;
  border: 1.5px solid transparent;
}
.btn-light { background: var(--paper); color: var(--pine); }
.btn-light:hover { background: #fff; }
.btn-ghost { border-color: rgba(248, 247, 244, 0.5); color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper); }

/* --- Sections ----------------------------------------------------------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-tint { background: var(--mist); }
.section-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section-inner.narrow { max-width: 760px; }
.center { text-align: center; }
.section-lede { max-width: 42em; margin-bottom: 2.4rem; }

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.split-copy p { max-width: 36em; }

/* --- Ledger (illustrative math) ------------------------------------------ */
.ledger, .not-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  border-radius: 4px;
  padding: 1.6rem 1.7rem;
}
.ledger-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.ledger dl { margin: 0; }
.ledger-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}
.ledger-row dd { font-weight: 700; font-variant-numeric: tabular-nums; }
.ledger-total { border-bottom: none; }
.ledger-total dt { font-weight: 700; }
.ledger-total dd { color: var(--gold); font-size: 1.15rem; }
.ledger-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #5c5c57;
}

/* --- Dimensions ----------------------------------------------------------- */
.dimensions {
  list-style: none;
  counter-reset: dim;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.dimensions li {
  counter-increment: dim;
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 1.2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.dimensions li::before {
  content: "0" counter(dim);
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--gold);
  line-height: 1.3;
}
.dimensions li > * { grid-column: 2; }
.dimensions li h3 { grid-row: 1; }
.dimensions p { max-width: 44em; font-size: 0.99rem; }
@media (max-width: 560px) {
  .dimensions li { grid-template-columns: 2.4rem 1fr; gap: 0.9rem; }
}

/* --- Compass phases -------------------------------------------------------- */
.phases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  margin-top: 1rem;
}
@media (max-width: 900px) { .phases { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .phases { grid-template-columns: 1fr; } }
.phase {
  border-top: 2px solid var(--green);
  padding-top: 0.9rem;
  font-size: 0.95rem;
}
.phase-label {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--green);
  margin-bottom: 0.4rem;
}
.phase-footnote { margin-top: 2rem; font-weight: 500; color: var(--green); }

/* --- Fit ------------------------------------------------------------------- */
.fit-list { list-style: none; margin-top: 0.6rem; }
.fit-list li { padding: 0.55rem 0; border-bottom: 1px solid var(--line); font-size: 0.99rem; }
.fit-list li:last-child { border-bottom: none; }
.not-card p:last-child { font-size: 0.99rem; }

/* --- Contact ----------------------------------------------------------------- */
.contact {
  background: var(--pine);
  color: var(--paper);
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}
/* Contact has no eyebrow — its h2 stays a full display headline. */
.contact h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--paper);
  margin-bottom: 0;
}
.contact p { max-width: 38em; margin: 1rem auto 2rem; color: rgba(248, 247, 244, 0.9); }

/* --- Footer ------------------------------------------------------------------- */
.footer {
  background: var(--ink);
  color: rgba(248, 247, 244, 0.75);
  font-size: 0.88rem;
  padding: 1.6rem 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
}
.footer a { color: var(--paper); }

/* --- Reveal on scroll (progressive enhancement) --------------------------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
