/* ==========================================================================
   Mt. Fortune LLC — site styles
   Single stylesheet. Edit colors in :root; everything else follows.
   ========================================================================== */

:root {
  /* Brand */
  --ink:        #101822;
  --ink-2:      #1c2836;
  --body:       #414d5c;
  --muted:      #6d7887;
  --gold:       #b07d24;
  --gold-soft:  #d9a441;
  --gold-wash:  #faf4e8;

  /* Surfaces */
  --paper:      #ffffff;
  --paper-warm: #f8f6f2;
  --line:       #e5e1d9;
  --line-soft:  #efece6;

  /* Type */
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Layout */
  --wrap: 1140px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16,24,34,.05), 0 8px 24px -12px rgba(16,24,34,.14);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 .6em;
  font-variation-settings: "SOFT" 0, "WONK" 0;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.22rem; font-family: var(--sans); font-weight: 650; letter-spacing: -0.01em; }
p  { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .45em; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 760px; margin-inline: auto; padding-inline: var(--gutter); }
/* Prose column that stays flush with the site's left content edge. */
.prose { max-width: 68ch; }
.section { padding-block: clamp(3.75rem, 8vw, 6.5rem); }
.section--warm { background: var(--paper-warm); border-block: 1px solid var(--line-soft); }
.section--ink  { background: var(--ink); color: #b9c3cf; }
.section--ink h2, .section--ink h3 { color: #fff; }

.eyebrow {
  font-size: .76rem;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}
/* Short rule before every eyebrow — small repeated detail that ties the pages together. */
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px; height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-right: .75rem;
  opacity: .55;
}
.lede { font-size: clamp(1.06rem, 1.8vw, 1.25rem); color: var(--body); max-width: 60ch; }
.section-head { max-width: 62ch; margin-bottom: 2.75rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--sans); font-size: .96rem; font-weight: 600;
  padding: .8rem 1.5rem; border-radius: 6px;
  text-decoration: none; border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
  cursor: pointer;
}
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--gold); color: #fff; transform: translateY(-1px); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); background: #fff; }
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: #fff; color: var(--ink); transform: translateY(-1px); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 74px;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-name {
  font-family: var(--serif); font-size: 1.24rem; font-weight: 600;
  color: var(--ink); letter-spacing: -0.02em; white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav a {
  font-size: .95rem; font-weight: 500; color: var(--ink-2);
  text-decoration: none; white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); }
.nav .btn { padding: .6rem 1.15rem; font-size: .9rem; }
/* Buttons inside the nav must keep button colors, not link colors. */
.nav a.btn--primary, .nav a.btn--primary:hover, .nav a.btn--primary[aria-current="page"] { color: #fff; }
.nav a.btn--gold, .nav a.btn--gold:hover { color: #fff; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 6px; padding: .5rem .7rem; cursor: pointer; color: var(--ink);
  font: inherit; font-size: .9rem;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; inset: 74px 0 auto; flex-direction: column;
    align-items: stretch; gap: 0; background: #fff;
    border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1.25rem;
    box-shadow: var(--shadow);
  }
  .nav[hidden] { display: none; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid var(--line-soft); }
  .nav .btn { margin-top: .9rem; justify-content: center; border-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(175deg, #fff 0%, var(--paper-warm) 100%);
  border-bottom: 1px solid var(--line-soft);
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
/* Topographic contour drawing of a peak, sitting behind the hero copy. */
.hero::after {
  content: ""; position: absolute; right: -5%; bottom: -14%;
  width: min(760px, 56vw); aspect-ratio: 16 / 9;
  background-image: url("/assets/img/hero-contours.png");
  background-image: image-set(
    url("/assets/img/hero-contours.webp") type("image/webp"),
    url("/assets/img/hero-contours.png") type("image/png"));
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right bottom;
  opacity: .45;
  pointer-events: none;
}
@media (max-width: 900px) {
  /* Keep the artwork clear of the headline on small screens. */
  .hero::after { width: 100%; opacity: .38; bottom: -2%; right: -8%; }
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { max-width: 17ch; }
.hero .lede { margin-top: 1.4rem; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 1.75rem;
  margin-top: 3rem; padding-top: 1.75rem; border-top: 1px solid var(--line);
}
.hero-meta div { min-width: 130px; }
.hero-meta dt { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hero-meta dd {
  margin: .3rem 0 0; font-family: var(--serif); font-size: 1.6rem;
  font-weight: 600; color: var(--ink);
}

/* ---------- Page header (interior pages) ---------- */
.page-head {
  position: relative; overflow: hidden;
  background-color: var(--ink); color: #b9c3cf;
  padding-block: clamp(3rem, 6vw, 4.75rem);
  background-image: url("/assets/img/ridges-dark.jpg");
  background-image: image-set(
    url("/assets/img/ridges-dark.webp") type("image/webp"),
    url("/assets/img/ridges-dark.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center 42%;
}
/* Scrim so headline contrast holds regardless of where the ridges land. */
.page-head::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(95deg,
    rgba(16,24,34,.97) 0%, rgba(16,24,34,.93) 40%,
    rgba(16,24,34,.72) 70%, rgba(16,24,34,.42) 100%);
}
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { color: #fff; max-width: 20ch; }
.page-head .lede { color: #b9c3cf; }
.page-head .eyebrow { color: var(--gold-soft); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

.card {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.75rem;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
/* Gold edge that draws in on hover. */
.card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold));
  transition: width .28s ease;
}
.card:hover { border-color: var(--gold-soft); transform: translateY(-2px); box-shadow: var(--shadow); }
.card:hover::after { width: 100%; }
.card h3 { margin-bottom: .5rem; }
.card p { margin-bottom: 0; font-size: .97rem; color: var(--body); }
.card-num {
  font-family: var(--serif); font-size: .95rem; font-weight: 600;
  color: var(--gold); display: block; margin-bottom: .85rem;
}

/* ---------- Feature rows ---------- */
.feature {
  display: grid; gap: clamp(1.5rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr);
  padding-block: clamp(2.25rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}
.feature:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 900px) { .feature { grid-template-columns: 320px minmax(0, 1fr); } }
.feature h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
.feature-body ul { list-style: none; padding: 0; }
.feature-body li { position: relative; padding-left: 1.6rem; }
.feature-body li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold-soft);
}

/* ---------- Pills ---------- */
.pills { display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: 0; list-style: none; }
.pills li {
  border: 1px solid var(--line); border-radius: 100px;
  padding: .45rem 1.05rem; font-size: .9rem; font-weight: 500;
  color: var(--ink-2); background: #fff; margin: 0;
}
.section--ink .pills li { border-color: rgba(255,255,255,.18); background: transparent; color: #e6ebf1; }

/* ---------- Founder ---------- */
.founder { display: grid; gap: clamp(1.75rem, 4vw, 3.5rem); }
@media (min-width: 900px) { .founder { grid-template-columns: 300px minmax(0, 1fr); } }
.founder-card {
  background: var(--gold-wash); border: 1px solid #eadcc0;
  border-radius: var(--radius); padding: 1.6rem; align-self: start;
}
.founder-card h3 { margin-bottom: .1rem; font-size: 1.1rem; }
.founder-card .role { font-size: .92rem; color: var(--gold); font-weight: 600; margin-bottom: 1.1rem; }
.founder-card ul { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.founder-card li {
  padding: .6rem 0; border-top: 1px solid #eadcc0; color: var(--ink-2); margin: 0;
}
.founder-card li:first-child { border-top: 0; padding-top: 0; }

/* ---------- Quote / statement band ---------- */
.statement {
  font-family: var(--serif); font-size: clamp(1.4rem, 2.9vw, 2.05rem);
  line-height: 1.35; color: #fff; max-width: 24ch; margin: 0;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); } }

.field { margin-bottom: 1.15rem; }
.field label {
  display: block; font-size: .89rem; font-weight: 600;
  color: var(--ink); margin-bottom: .4rem;
}
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .97rem; color: var(--ink);
  padding: .72rem .9rem; border: 1px solid var(--line);
  border-radius: 6px; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 148px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(217,164,65,.18);
}
.field-row { display: grid; gap: 1.15rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.hp { position: absolute; left: -9999px; }

.contact-aside { background: var(--paper-warm); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.contact-aside dl { margin: 0; }
.contact-aside dt {
  font-size: .76rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-top: 1.35rem;
}
.contact-aside dt:first-of-type { margin-top: 0; }
.contact-aside dd { margin: .25rem 0 0; font-size: 1.02rem; color: var(--ink); font-weight: 500; }
.contact-aside dd a { text-decoration: none; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background-color: var(--ink); color: #b9c3cf;
  padding-block: clamp(3.25rem, 6vw, 5rem);
  background-image: url("/assets/img/ridges-dark.jpg");
  background-image: image-set(
    url("/assets/img/ridges-dark.webp") type("image/webp"),
    url("/assets/img/ridges-dark.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center 25%;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(80deg,
    rgba(16,24,34,.96) 0%, rgba(16,24,34,.9) 45%,
    rgba(16,24,34,.6) 78%, rgba(16,24,34,.35) 100%);
}
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band .lede { color: #b9c3cf; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0b1119; color: #7d8998;
  padding-block: 3rem 2rem; font-size: .92rem;
}
.footer-grid {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.09);
}
.site-footer h4 {
  font-family: var(--sans); font-size: .78rem; letter-spacing: .12em;
  text-transform: uppercase; color: #fff; margin-bottom: .9rem; font-weight: 650;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: #a9b4c2; text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); }
.site-footer .brand-name { color: #fff; }
.footer-note {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  padding-top: 1.5rem; font-size: .85rem; color: #5f6b7a;
}

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
  padding: .75rem 1.25rem; z-index: 100; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

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