/* The Independent Guide to Courchevel — all design tokens live here. */
:root {
  --paper: #f6f1e9;
  --paper-2: #efe7da;
  --card: #fffdf9;
  --ink: #1f1b16;
  --ink-2: #5b5248;
  --line: #e1d7c7;
  --wood: #7a4b26;
  --wood-2: #9b6a3f;
  --pine: #2e4638;
  --snow: #ffffff;
  --warn: #8a5a1c;
  --radius: 14px;
  --radius-sm: 8px;
  --gap: clamp(16px, 3vw, 28px);
  --wrap: 1120px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 1px 2px rgba(31, 27, 22, .06), 0 8px 24px rgba(31, 27, 22, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wood); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .4em; }
h1 { font-size: clamp(32px, 5.5vw, 54px); }
h2 { font-size: clamp(22px, 3vw, 30px); margin-top: 1.6em; }
h3 { font-size: 20px; }
h2 a, h3 a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: var(--snow); padding: 8px 12px; z-index: 50; }

/* header */
.top { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top-in { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; line-height: 1.05; margin-right: auto; }
.brand-mark { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.brand-sub { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.nav { display: flex; gap: 16px; flex-wrap: nowrap; order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap; padding: 4px 0; }
.nav a:hover { color: var(--wood); }
.nav-tonight { color: var(--wood) !important; }
.lang { font-size: 14px; color: var(--ink-2); }
@media (min-width: 860px) { .nav { order: 0; width: auto; } }

main { padding-bottom: 72px; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 16px 0 0; margin: 0; font-size: 14px; color: var(--ink-2); }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: var(--ink-2); }

/* common */
.kicker { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--wood); font-weight: 600; margin-bottom: 10px; }
.answer { font-family: var(--serif); font-size: clamp(19px, 2.4vw, 23px); line-height: 1.45; color: var(--ink); max-width: 46em; }
.stamp { font-size: 13px; color: var(--ink-2); }
.page-head, .hero { padding: clamp(28px, 6vw, 64px) 0 12px; }
.hero h1 { max-width: 14em; }
.hero-lede { font-size: 18px; color: var(--ink-2); max-width: 40em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.prose { max-width: 42em; }
.prose li { margin-bottom: .5em; }
.manifesto p { font-family: var(--serif); font-size: 20px; line-height: 1.5; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--ink); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; background: transparent; }
.btn:hover { background: var(--ink); color: var(--snow); }
.btn-primary { background: var(--ink); color: var(--snow); }
.btn-primary:hover { background: var(--wood); border-color: var(--wood); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 8px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 16px; }
.chip { font-size: 14px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; }
.chip:hover, .chip-on { border-color: var(--ink); }
.chip-on { background: var(--ink); color: var(--snow); }

/* cards */
.grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card-img { position: relative; display: block; aspect-ratio: 3 / 2; background: var(--paper-2); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-img img { transform: scale(1.03); }
.card-ph { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--serif); font-size: 64px; color: var(--wood-2);
  background: linear-gradient(135deg, var(--paper-2), var(--paper)); }
.rank { position: absolute; top: 12px; left: 12px; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--snow);
  display: grid; place-items: center; font-weight: 600; font-family: var(--serif); }
.card-body { padding: 16px 18px 18px; }
.card-body h3 { margin-bottom: 4px; }
.card-body p { font-size: 15px; color: var(--ink-2); margin: 0; }
.card-body .meta { font-size: 13px; color: var(--wood); margin-bottom: 8px; }

.villages { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.village-tile { background: var(--pine); color: var(--snow); text-decoration: none; border-radius: var(--radius); padding: 18px; min-height: 96px;
  display: flex; flex-direction: column; justify-content: flex-end; }
.village-tile span { font-family: var(--serif); font-size: 19px; }
.village-tile small { opacity: .75; }
.village-tile:hover { background: var(--ink); color: var(--snow); }
.use-block { border-top: 1px solid var(--line); margin-top: 40px; }
.use-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.more { font-size: 14px; white-space: nowrap; }
.use-answer { color: var(--ink-2); max-width: 46em; }

/* venue */
.venue-head { padding: clamp(24px, 5vw, 48px) 0 8px; }
.gallery { display: grid; gap: 8px; grid-template-columns: 1fr; margin: 16px 0 8px; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-sm); }
@media (min-width: 720px) {
  .gallery { grid-template-columns: 2fr 1fr; grid-auto-rows: 1fr; }
  .gallery img:first-child { grid-row: span 2; height: 100%; aspect-ratio: auto; }
  .gallery img:nth-child(n+4) { display: none; }
}
.credit { font-size: 12px; color: var(--ink-2); }
.venue-grid { display: grid; gap: 32px; grid-template-columns: 1fr; margin-top: 24px; }
@media (min-width: 900px) { .venue-grid { grid-template-columns: minmax(0, 1fr) 320px; } .venue-side { position: sticky; top: 90px; align-self: start; } }
.venue-text > p { font-size: 18px; max-width: 40em; }
.facts { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 18px; }
.facts div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--ink-2); }
.facts dd { margin: 0; }
.callouts { display: grid; gap: 12px; margin: 24px 0; }
@media (min-width: 640px) { .callouts { grid-template-columns: 1fr 1fr; } }
.callout { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.callout h2 { font-size: 15px; font-family: var(--sans); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 6px; color: var(--pine); }
.callout-warn h2 { color: var(--warn); }
.callout p { margin: 0; }
.ranks { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ranks li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 15px; }
.rank-n { font-weight: 600; color: var(--wood); }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 8px 0 0; color: var(--ink-2); }
.sources ul { padding-left: 18px; font-size: 14px; }
.sticky-actions { display: none; }
@media (max-width: 719px) {
  .sticky-actions { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--paper); border-top: 1px solid var(--line); z-index: 30; }
  .sticky-actions .btn { flex: 1; }
  .venue + .sticky-actions { display: flex; }
  body:has(.sticky-actions) .foot { padding-bottom: 90px; }
}

/* tonight */
.filters { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 20px; }
.filters label { display: flex; flex-direction: column; font-size: 14px; color: var(--ink-2); gap: 4px; }
.filters select { font: inherit; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--snow); min-width: 220px; }
.filters fieldset { border: 0; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.filters legend { font-size: 14px; color: var(--ink-2); margin-bottom: 4px; }
.filters fieldset label { flex-direction: row; align-items: center; gap: 6px; background: var(--paper); border-radius: 999px; padding: 8px 14px; color: var(--ink); cursor: pointer; }
.list { display: grid; gap: 10px; }
.row { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.row img, .row .ph { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); background: var(--paper-2); }
.row h3 { margin: 0; font-size: 18px; }
.row p { margin: 0; font-size: 14px; color: var(--ink-2); }
.row .btn { min-height: 40px; padding: 0 14px; }

/* footer */
.foot { background: var(--ink); color: #d9cfc1; padding: 48px 0; font-size: 15px; }
.foot a { color: #f0e8dc; text-decoration: none; }
.foot a:hover { text-decoration: underline; color: var(--snow); }
.foot-in { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .foot-in { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.foot-brand { font-family: var(--serif); font-size: 20px; color: var(--snow); }
.foot-links { display: flex; flex-direction: column; gap: 8px; }

/* badges: ski-in / festive day / festive night */
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.badge { font-size: 12px; font-weight: 600; letter-spacing: .02em; padding: 3px 10px; border-radius: 999px; }
.badge-ski { background: #e3ecf2; color: #234a63; }
.badge-day { background: #f6e3c8; color: #7a4b10; }
.badge-night { background: #2b2440; color: #efe8ff; }
.venue-head .badges { margin: 0 0 14px; }
.quick { display: grid; gap: 10px; grid-template-columns: 1fr; margin-top: 8px; }
@media (min-width: 720px) { .quick { grid-template-columns: repeat(3, 1fr); } }
.quick-tile { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: var(--radius); text-decoration: none; }
.quick-tile strong { font-family: var(--serif); font-size: 22px; }
.quick-tile span { font-size: 14px; opacity: .85; }
.quick-ski { background: #e3ecf2; color: #234a63; }
.quick-day { background: #f6e3c8; color: #7a4b10; }
.quick-night { background: #2b2440; color: #efe8ff; }
.quick-tile:hover { filter: brightness(.96); }

.insider { background: var(--card); border-left: 3px solid var(--wood); border-radius: 0 var(--radius) var(--radius) 0; padding: 4px 22px 8px; margin: 24px 0; }
.insider h2 { font-size: 15px; font-family: var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--wood); margin-top: 16px; }
.insider p { font-family: var(--serif); font-size: 18px; line-height: 1.55; }
.insider-sign { font-family: var(--sans) !important; font-size: 14px !important; color: var(--ink-2); }
