/* ──────────────────────────────────────────────────────────────
   Park City Ski Villa, blog styles.
   Tokens match index.html so the blog reads as the same property.
   ────────────────────────────────────────────────────────────── */

:root {
  --bg:           #140d07;
  --bg-2:         #1c1309;
  --surface:      #26190e;
  --surface-2:    #312114;
  --border:       rgba(237,231,226,0.09);
  --border-gold:  rgba(239,197,124,0.26);
  --gold:         #efc57c;
  --gold-lt:      #f7dcab;
  --gold-dim:     rgba(239,197,124,0.11);
  --wood:         #d0a37e;
  --sky:          #9bc1ea;
  --snow:         #ede7e2;
  --snow-muted:   rgba(237,231,226,0.58);
  --snow-dim:     rgba(237,231,226,0.26);

  color-scheme: dark;

  --serif:  'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:   'Inter', system-ui, -apple-system, sans-serif;

  --gutter: clamp(20px, 5vw, 80px);
  --measure: 46rem;
  --r: 3px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--snow);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ── Navigation ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  padding: 14px var(--gutter);
  background: rgba(20,13,7,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.22rem; letter-spacing: 0.01em;
  color: var(--snow); text-decoration: none; white-space: nowrap;
}
.nav-logo span { color: var(--gold); }
.nav-right { display: flex; align-items: center; gap: 22px; }
.nav-link {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--snow-muted); text-decoration: none;
  transition: color 0.2s var(--ease);
}
.nav-link:hover, .nav-link:focus-visible { color: var(--gold); }
@media (max-width: 620px) { .nav-link.opt { display: none; } }

.btn {
  display: inline-block;
  padding: 11px 20px;
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; border-radius: var(--r);
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
  cursor: pointer;
}
.btn-gold { background: var(--gold); color: #241607; }
.btn-gold:hover { background: var(--gold-lt); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--gold);
  border-color: var(--border-gold);
}
.btn-ghost:hover { background: var(--gold-dim); }

/* ── Article shell ── */
.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 var(--gutter); }

.crumbs {
  padding: 26px var(--gutter) 0;
  max-width: var(--measure); margin: 0 auto;
  font-size: 0.74rem; letter-spacing: 0.04em;
  color: var(--snow-dim);
}
.crumbs a { color: var(--snow-muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.crumbs span { margin: 0 6px; }

.post-head { padding: 22px 0 10px; }
.eyebrow {
  display: block;
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 5.6vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
}
.post-meta {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  font-size: 0.76rem; letter-spacing: 0.04em;
  color: var(--snow-dim);
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border);
}

.lede {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  line-height: 1.5;
  color: rgba(237,231,226,0.88);
  margin: 30px 0 8px;
}

article { padding-bottom: 20px; }
article p { margin: 0 0 22px; color: rgba(237,231,226,0.8); }
article h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 52px 0 18px;
  scroll-margin-top: 80px;
}
article h3 {
  font-size: 1rem; font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--snow);
  margin: 34px 0 12px;
}
article a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
article a:hover { color: var(--gold-lt); }
article strong { color: var(--snow); font-weight: 500; }
article ul, article ol { margin: 0 0 22px; padding-left: 1.2em; color: rgba(237,231,226,0.8); }
article li { margin-bottom: 10px; }
article li::marker { color: var(--gold); }

figure { margin: 34px 0; }
figure img {
  width: 100%; height: auto; display: block;
  border-radius: var(--r);
  border: 1px solid var(--border);
}
figcaption {
  margin-top: 10px;
  font-size: 0.78rem; line-height: 1.6;
  color: var(--snow-dim);
}

/* ── Table of contents ── */
.toc {
  margin: 34px 0 10px;
  padding: 22px 24px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-left: 2px solid var(--border-gold);
  border-radius: var(--r);
}
.toc-t {
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.toc ol { margin: 0; padding-left: 1.1em; }
.toc li { margin-bottom: 7px; }
.toc a { color: rgba(237,231,226,0.78); text-decoration: none; }
.toc a:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* ── Key-fact callout ── */
.note {
  margin: 30px 0;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 2px solid var(--gold);
  border-radius: var(--r);
}
.note p:last-child { margin-bottom: 0; }
.note-t {
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
}

/* ── Fact table ── */
.tw { overflow-x: auto; margin: 28px 0; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 30rem; }
caption {
  text-align: left; font-size: 0.78rem; color: var(--snow-dim);
  padding-bottom: 10px;
}
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); }
th {
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold);
  border-bottom-color: var(--border-gold);
}
td { color: rgba(237,231,226,0.8); }
tbody tr:hover td { background: rgba(239,197,124,0.04); }

/* ── FAQ ── */
details {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
summary {
  cursor: pointer; list-style: none;
  font-size: 1rem; font-weight: 400;
  color: var(--snow);
  display: flex; justify-content: space-between; gap: 16px;
  align-items: flex-start;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+'; color: var(--gold); font-size: 1.1rem; line-height: 1.4;
  flex-shrink: 0; transition: transform 0.2s var(--ease);
}
details[open] summary::after { content: '\2212'; }
details p { margin: 14px 0 4px; font-size: 0.94rem; }

/* ── Conversion block ── */
.cta {
  margin: 56px 0 10px;
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--r);
}
.cta h2 {
  margin: 0 0 14px;
  font-size: clamp(1.5rem, 3.4vw, 2rem);
}
.cta p { margin-bottom: 20px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Post list (blog index) ── */
/* 28 entries, so the index gets a wider measure and a three column card
   grid with a thumbnail on every card. Article pages keep the narrow
   reading measure. */
.wrap.wide { max-width: 72rem; }
.crumbs.wide { max-width: 72rem; }

/* Group heading, so the eight clusters read as sections not a run-on list */
.pgroup { display: flex; align-items: baseline; gap: 18px; margin: 62px 0 24px; }
.pgroup:first-of-type { margin-top: 42px; }
.pgroup h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.3rem, 2.5vw, 1.65rem);
  line-height: 1.2; margin: 0; color: var(--snow);
}
.pgroup .rule { flex: 1; height: 1px; background: var(--border); }
.pgroup .pcount {
  font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--snow-dim); white-space: nowrap;
}

.plist {
  display: grid; gap: 32px 26px; margin: 0; padding: 0; list-style: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 1000px) { .plist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .plist { grid-template-columns: 1fr; gap: 28px; } }

.pcard {
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}
.pcard:hover { border-color: var(--border-gold); background: var(--surface-2); transform: translateY(-3px); }

.pcard-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); }
.pcard-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.6s var(--ease), filter 0.3s var(--ease);
}
.pcard:hover .pcard-media img { transform: scale(1.05); filter: brightness(1.06) saturate(1.04); }

.pcard-body { padding: 19px 20px 21px; display: flex; flex-direction: column; flex: 1; }
.pcard h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: 1.22rem; line-height: 1.26;
  margin: 0 0 9px; color: var(--snow);
  transition: color 0.2s var(--ease);
}
.pcard:hover h3 { color: var(--gold); }
.pcard p {
  margin: 0 0 15px; color: var(--snow-muted);
  font-size: 0.87rem; line-height: 1.6; flex: 1;
}
.pcard .pm {
  font-size: 0.65rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--snow-dim);
}

/* ── Footer ── */
footer {
  margin-top: 70px;
  padding: 40px var(--gutter);
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  font-size: 0.82rem;
  color: var(--snow-muted);
}
.f-inner { max-width: 72rem; margin: 0 auto; }
.f-cols {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  padding-bottom: 26px;
}
@media (max-width: 760px) { .f-cols { grid-template-columns: 1fr; gap: 28px; } }
.f-col-t {
  font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: #e8be85; margin-bottom: 12px;
}
.f-col ul { list-style: none; margin: 0; padding: 0; }
.f-col li { margin: 0; }
.f-col a { display: inline-block; padding-block: 9px; line-height: 1.45; }
.f-all { color: var(--gold); }
footer p { margin: 0 0 10px; }
footer a { color: var(--gold); text-decoration: none; }
footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.f-legal { margin-top: 18px; font-size: 0.74rem; color: var(--snow-dim); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
