/* ==========================================================================
   Wyoming Forever — design system
   Modern frontier: near-black ground, gold accent, rust sections, bone text.
   ========================================================================== */

:root {
  /* Core palette — sampled from the original Squarespace site */
  --night:        #0C0C0C;  /* page ground — neutral near-black */
  --night-deep:   #060606;  /* footer / deepest surface */
  --slate:        #161616;  /* raised surface */
  --slate-line:   #282828;  /* hairline borders */

  --bone:         #F4F0EC;  /* primary text on dark */
  --bone-dim:     #C9C4BC;  /* secondary text on dark */
  --bone-faint:   #8E8880;  /* tertiary / captions */

  --gold:         #E4B44C;  /* PRIMARY accent — wordmark, headings, buttons */
  --gold-lo:      #C9992F;  /* hover / active */
  --gold-hi:      #E4C06C;  /* lighter gold — bands, highlights */
  --rust:         #AC482C;  /* secondary ground — full-bleed sections */
  --rust-lo:      #8E3721;  /* rust hover / active */

  --paper:        #F4F0EC;  /* light section ground */
  --paper-alt:    #E8E2DA;  /* light section, alt */
  --ink:          #0C0C0C;  /* text on light */
  --ink-dim:      #4A4640;  /* secondary text on light */

  /* Spacing scale — 4 / 8 / 12 / 16 / 24 / 40 / 64 / 104 */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 40px; --s7: 64px; --s8: 104px;

  /* Type */
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Shape + depth */
  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.28), 0 2px 6px rgba(0, 0, 0, 0.18);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.24), 0 8px 24px rgba(0, 0, 0, 0.22);
  --shadow-warm: 0 2px 6px rgba(228, 180, 76, 0.20), 0 12px 32px rgba(228, 180, 76, 0.14);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1180px;
}

/* --------------------------------------------------------------------------
   Reset + base
   -------------------------------------------------------------------------- */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--night);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.005em;
  margin: 0 0 var(--s4);
  text-transform: uppercase;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.4rem); letter-spacing: 0.01em; }
h4 { font-size: 1rem; letter-spacing: 0.08em; }

p { margin: 0 0 var(--s4); }
p:last-child { margin-bottom: 0; }

a { color: var(--gold-hi); text-decoration: none; }
a:hover { color: var(--gold); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.skip-link {
  position: absolute; left: var(--s4); top: -100px; z-index: 200;
  background: var(--gold); color: var(--night);
  padding: var(--s3) var(--s4); border-radius: var(--radius);
  font-weight: 600;
  transition: top 180ms var(--ease);
}
.skip-link:focus { top: var(--s4); color: var(--night); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s5); }
.narrow { max-width: 760px; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold-hi);
  margin: 0 0 var(--s3);
  display: flex; align-items: center; gap: var(--s3);
}
.eyebrow::before {
  content: ''; width: 28px; height: 1px;
  background: var(--gold); flex: none;
}
.eyebrow.center { justify-content: center; }

.lede { font-size: 1.18rem; color: var(--bone-dim); line-height: 1.75; }
.section { padding: var(--s8) 0; }
.section--tight { padding: var(--s7) 0; }
.section--light { background: var(--paper); color: var(--ink); }
.section--light .lede { color: var(--ink-dim); }
.section--light .eyebrow { color: var(--gold-lo); }
.section--alt { background: var(--slate); }
.section-head { max-width: 720px; margin-bottom: var(--s6); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-family: var(--font-display);
  font-size: 0.92rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: var(--s3) var(--s5);
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 200ms var(--ease), opacity 200ms var(--ease), background-color 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--gold); color: var(--night); box-shadow: var(--shadow-warm); }
.btn--primary:hover { background: var(--gold-hi); color: var(--night); }

.btn--ghost { background: transparent; color: var(--bone); border-color: var(--slate-line); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-hi); }

.section--light .btn--ghost { color: var(--ink); border-color: rgba(12, 12, 12, 0.22); }
.section--light .btn--ghost:hover { border-color: var(--gold-lo); color: var(--gold-lo); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(12, 12, 12, 0.90);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: var(--s3) var(--s5);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
}
.nav-brand {
  font-family: var(--font-display);
  font-size: 1.16rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--bone); white-space: nowrap;
}
.nav-brand:hover { color: var(--gold-hi); }
.nav-brand span { color: var(--gold); }

.nav-links { display: flex; align-items: center; gap: var(--s5); }
.nav-link {
  font-family: var(--font-display);
  font-size: 0.84rem; font-weight: 400;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--bone-dim);
  padding: var(--s2) 0;
  position: relative;
  transition: color 180ms var(--ease);
}
.nav-link:hover { color: var(--bone); }
.nav-link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 220ms var(--ease);
}
.nav-link:hover::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--bone); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--slate-line);
  border-radius: var(--radius);
  color: var(--bone); padding: var(--s2) var(--s3);
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--night);
    border-bottom: 1px solid var(--slate-line);
    padding: var(--s3) var(--s5) var(--s5);
  }
  .nav-links.is-open { display: flex; }
  .nav-links .nav-link { padding: var(--s3) 0; border-bottom: 1px solid var(--slate-line); }
  .nav-links .btn { margin-top: var(--s4); justify-content: center; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: clamp(96px, 15vw, 200px) 0 clamp(80px, 11vw, 148px);
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 78% 8%, rgba(228, 180, 76, 0.22), transparent 62%),
    radial-gradient(900px 620px at 12% 92%, rgba(172, 72, 44, 0.20), transparent 66%),
    linear-gradient(180deg, #080808 0%, #0C0C0C 52%, #111111 100%);
}
/* Paper-grain texture so the gradient never reads as flat CSS */
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  opacity: 0.4;
  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='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.22'/%3E%3C/svg%3E");
}
.hero > * { position: relative; z-index: 1; }
.hero-inner { max-width: 880px; }
.hero h1 { margin-bottom: var(--s5); }
.hero h1 em { font-style: normal; color: var(--gold-hi); display: block; }
.hero-sub { font-size: clamp(1.1rem, 1.9vw, 1.35rem); color: var(--bone-dim); max-width: 620px; }

/* Mountain ridge silhouette closing the hero */
.ridge { display: block; width: 100%; height: auto; margin-top: -1px; color: var(--night); }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: var(--s7);
  margin-top: var(--s7);
  padding-top: var(--s5);
  border-top: 1px solid var(--slate-line);
}
.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 600; color: var(--bone);
  line-height: 1.1;
}
.hero-stat span {
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--bone-faint);
}

/* --------------------------------------------------------------------------
   Cards + grids
   -------------------------------------------------------------------------- */

.grid { display: grid; gap: var(--s5); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
/* Brand cards read as pairs — 4 items in an auto-fit grid orphans the last one */
.grid--brands { grid-template-columns: 1fr; }
@media (min-width: 820px) { .grid--brands { grid-template-columns: 1fr 1fr; } }

.card {
  background: var(--slate);
  border: 1px solid var(--slate-line);
  border-radius: var(--radius-lg);
  padding: var(--s5);
  display: flex; flex-direction: column; gap: var(--s3);
  transition: transform 260ms var(--ease), border-color 260ms var(--ease), box-shadow 260ms var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow-md); }
.card h3 { margin: 0; }
.card p { color: var(--bone-dim); margin: 0; font-size: 0.97rem; }

.section--light .card {
  background: #fff;
  border-color: rgba(12, 12, 12, 0.10);
  box-shadow: var(--shadow-sm);
}
.section--light .card p { color: var(--ink-dim); }
.section--light .card:hover { box-shadow: var(--shadow-warm); }

.card-mark {
  width: 40px; height: 40px; border-radius: var(--radius);
  display: grid; place-items: center;
  background: rgba(228, 180, 76, 0.14);
  color: var(--gold-hi);
  font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.04em;
}

/* Brand cards */
.brand-card { position: relative; overflow: hidden; }
.brand-card::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--gold);
  transform: scaleY(0); transform-origin: top;
  transition: transform 320ms var(--ease);
}
.brand-card:hover::after { transform: scaleY(1); }
.brand-card--music::after  { background: var(--gold-hi); }
.brand-card--coffee::after { background: var(--gold); }
.brand-card--agency::after { background: var(--rust); }
.brand-card--bones::after  { background: var(--gold-lo); }
.brand-card--stays::after  { background: var(--bone-faint); }
.brand-card--book::after   { background: var(--rust-lo); }

.tag {
  display: inline-flex; align-items: center; gap: var(--s1);
  font-family: var(--font-display);
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 3px var(--s2);
  border-radius: 999px;
  border: 1px solid var(--slate-line);
  color: var(--bone-faint);
  align-self: flex-start;
}
.tag--live { color: var(--rust); border-color: rgba(172, 72, 44, 0.55); }
.tag--soon { color: var(--gold-hi); border-color: rgba(228, 192, 108, 0.45); }
.section--light .tag { border-color: rgba(12, 12, 12, 0.16); color: var(--ink-dim); }
.section--light .tag--live { color: #5A6B50; border-color: rgba(142, 55, 33, 0.45); }
.section--light .tag--soon { color: var(--gold-lo); border-color: rgba(201, 153, 47, 0.45); }

.card-link {
  font-family: var(--font-display);
  font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase;
  margin-top: auto; padding-top: var(--s2);
}

/* Value / service list */
.value-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); }
.value-list li {
  display: flex; gap: var(--s3); align-items: flex-start;
  padding-bottom: var(--s4);
  border-bottom: 1px solid var(--slate-line);
}
.value-list li:last-child { border-bottom: none; padding-bottom: 0; }
.value-list strong {
  font-family: var(--font-display); font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  min-width: 140px; flex: none; color: var(--bone);
}
.value-list span { color: var(--bone-dim); }
.section--light .value-list li { border-color: rgba(12, 12, 12, 0.10); }
.section--light .value-list strong { color: var(--ink); }
.section--light .value-list span { color: var(--ink-dim); }

/* Split feature */
.split { display: grid; gap: var(--s7); align-items: center; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.pullquote {
  border-left: 3px solid var(--gold);
  padding: var(--s2) 0 var(--s2) var(--s5);
  margin: var(--s6) 0;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-weight: 300; line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--bone);
  text-transform: none;
}
.section--light .pullquote { color: var(--ink); }

/* Impact banner */
.impact {
  background: var(--rust);
  color: var(--bone);
  padding: var(--s6) 0;
  text-align: center;
}
.impact h2 { color: var(--bone); margin-bottom: var(--s3); }
.impact p { color: rgba(244, 240, 236, 0.92); max-width: 620px; margin: 0 auto; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.form { display: grid; gap: var(--s4); max-width: 640px; }
.form-row { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.field { display: grid; gap: var(--s2); }
.field label {
  font-family: var(--font-display);
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--bone-dim);
}
.field input, .field textarea, .field select {
  width: 100%;
  font-family: var(--font-body); font-size: 1rem;
  padding: var(--s3) var(--s4);
  background: var(--night-deep);
  border: 1px solid var(--slate-line);
  border-radius: var(--radius);
  color: var(--bone);
  transition: border-color 180ms var(--ease);
}
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--bone-faint); }
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--bone-faint); }

.section--light .field label { color: var(--ink-dim); }
.section--light .field input,
.section--light .field textarea,
.section--light .field select {
  background: #fff; border-color: rgba(12, 12, 12, 0.16); color: var(--ink);
}

.form-status { font-size: 0.95rem; color: var(--gold-hi); min-height: 1.4em; }
.fineprint { font-size: 0.85rem; color: var(--bone-faint); }
.section--light .fineprint { color: var(--ink-dim); }

/* Newsletter strip */
.newsletter { background: var(--slate); border-top: 1px solid var(--slate-line); padding: var(--s7) 0; }
.newsletter-grid { display: grid; gap: var(--s6); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: center; }
.newsletter-form { display: flex; gap: var(--s3); flex-wrap: wrap; }
.newsletter-form input { flex: 1 1 240px; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq { display: grid; gap: var(--s3); }
.faq details {
  border: 1px solid var(--slate-line);
  border-radius: var(--radius-lg);
  background: var(--slate);
  padding: var(--s4) var(--s5);
}
.faq summary {
  cursor: pointer; list-style: none;
  font-family: var(--font-display);
  font-size: 1.02rem; letter-spacing: 0.02em;
  color: var(--bone);
  display: flex; justify-content: space-between; gap: var(--s4); align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold-hi); font-size: 1.4rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin-top: var(--s3); color: var(--bone-dim); font-size: 0.97rem; }
.section--light .faq details { background: #fff; border-color: rgba(12, 12, 12, 0.10); }
.section--light .faq summary { color: var(--ink); }
.section--light .faq details p { color: var(--ink-dim); }

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

footer {
  background: var(--night-deep);
  border-top: 1px solid var(--slate-line);
  padding: var(--s7) 0 var(--s5);
}
/* Explicit tracks — repeat(auto-fit, …) cannot be mixed with a fixed track,
   which silently collapses the whole footer into one column. */
.footer-grid {
  display: grid; gap: var(--s6);
  grid-template-columns: 1fr;
  margin-bottom: var(--s6);
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer-brand .nav-brand { font-size: 1.3rem; }
.footer-brand p { color: var(--bone-faint); font-size: 0.94rem; margin-top: var(--s3); max-width: 340px; }
.footer-col h4 { color: var(--bone-faint); text-transform: uppercase; margin-bottom: var(--s3); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.footer-col a { color: var(--bone-dim); font-size: 0.94rem; }
.footer-col a:hover { color: var(--gold-hi); }
.footer-bottom {
  border-top: 1px solid var(--slate-line);
  padding-top: var(--s4);
  display: flex; flex-wrap: wrap; gap: var(--s4); justify-content: space-between;
  font-size: 0.85rem; color: var(--bone-faint);
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.breadcrumbs {
  font-size: 0.82rem; color: var(--bone-faint);
  padding: 0 0 var(--s5);
}
.breadcrumbs a { color: var(--bone-dim); }
.breadcrumbs a:hover { color: var(--gold-hi); }

.page-head {
  padding: var(--s7) 0 var(--s6);
  background:
    radial-gradient(900px 420px at 70% 0%, rgba(228, 180, 76, 0.18), transparent 62%),
    linear-gradient(180deg, #080808, var(--night));
}
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.page-head .lede { max-width: 680px; }

.prose h2 { margin-top: var(--s6); }
.prose h3 { margin-top: var(--s5); }
.prose ul { color: var(--bone-dim); padding-left: var(--s5); }
.prose li { margin-bottom: var(--s2); }
.section--light .prose ul { color: var(--ink-dim); }
