:root {
    color-scheme: light;
    --ink: #122b4b;
    --muted: #647993;
    --blue: #1174d4;
    --blue-dark: #0b3768;
    --ice: #eaf4fc;
    --line: #dce7f1;
    --surface: #fff;
    --page: #f4f8fc;
    --shadow: 0 12px 36px rgba(23, 62, 101, .08);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--page); }
a { color: inherit; }
button, select { font: inherit; }
.skip-link { position: absolute; top: -4rem; left: 1rem; z-index: 10; padding: .75rem 1rem; background: #fff; border-radius: .5rem; }
.skip-link:focus { top: 1rem; }
.site-header { height: 76px; display: flex; align-items: center; gap: clamp(1rem, 4vw, 4rem); padding: 0 clamp(1rem, 5vw, 5rem); background: #fff; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; }
.brand img { width: 152px; height: auto; display: block; }
.main-nav { display: flex; height: 100%; align-items: center; gap: clamp(1rem, 2.5vw, 2.5rem); }
.main-nav a { display: flex; height: 100%; align-items: center; color: var(--muted); font-size: .9rem; font-weight: 650; text-decoration: none; border-bottom: 3px solid transparent; }
.main-nav a:hover, .main-nav a.is-current { color: var(--blue); border-bottom-color: var(--blue); }
.header-note { margin-left: auto; color: var(--muted); font-size: .86rem; }
.page-shell { max-width: 1440px; margin: 0 auto; padding: 1.5rem clamp(1rem, 4vw, 3.5rem) 2rem; }
.hero { position: relative; min-height: 310px; overflow: hidden; display: flex; align-items: center; padding: clamp(1.5rem, 5vw, 4rem); color: #fff; border-radius: 1.25rem; background: linear-gradient(112deg, #0b3768 0%, #16568f 62%, #71add7 100%); box-shadow: var(--shadow); }
.hero::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, rgba(6, 34, 69, .54), transparent 86%); pointer-events: none; }
.hero-mountains { position: absolute; inset: auto 0 0; width: 100%; height: 100%; color: #d2eaff; }
.hero-content { position: relative; z-index: 1; width: min(760px, 100%); }
.eyebrow { margin: 0 0 .45rem; color: #d5eaff; font-size: .72rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow-dark { color: #51708f; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { margin-bottom: .55rem; font-size: clamp(2.2rem, 5vw, 3.65rem); line-height: 1.06; letter-spacing: -.045em; }
.hero-copy { max-width: 520px; margin-bottom: 1.5rem; color: #e8f4ff; font-size: 1.05rem; }
.resort-controls { display: flex; gap: .65rem; max-width: 690px; }
.resort-controls label { display: grid; gap: .3rem; min-width: 155px; color: #d4e8fa; font-size: .74rem; font-weight: 700; }
.resort-controls select { width: 100%; min-height: 48px; padding: .7rem 2.2rem .7rem .9rem; color: #193552; border: 1px solid rgba(255,255,255,.55); border-radius: .65rem; background-color: #fff; }
.resort-controls select:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid #ffcf6b; outline-offset: 3px; }
.resort-picker { flex: 1; }
.status-message { min-height: 1.25rem; margin: .7rem 0 0; color: #e2f2ff; font-size: .84rem; }
.resort-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; padding: 1.8rem .2rem 1.15rem; }
.resort-heading h2 { margin-bottom: .25rem; font-size: clamp(1.65rem, 3vw, 2.15rem); letter-spacing: -.035em; }
.muted { margin-bottom: 0; color: var(--muted); font-size: .92rem; }
.view-toggle { display: flex; gap: .25rem; padding: .25rem; border: 1px solid var(--line); border-radius: .75rem; background: #eaf1f7; }
.view-button { min-height: 40px; padding: .55rem .9rem; color: #54708a; border: 0; border-radius: .55rem; background: transparent; cursor: pointer; font-weight: 700; }
.view-button.is-active { color: var(--blue-dark); background: #fff; box-shadow: 0 2px 8px rgba(20, 56, 88, .1); }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; }
.summary-card { display: flex; min-height: 115px; align-items: center; gap: .85rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: .95rem; background: var(--surface); box-shadow: 0 6px 20px rgba(23,62,101,.035); }
.summary-card p { margin: 0 0 .25rem; color: var(--muted); font-size: .82rem; font-weight: 650; }
.summary-card strong { display: block; font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.18; }
.summary-card small { display: block; margin-top: .25rem; color: #8092a5; font-size: .75rem; }
.summary-icon { display: grid; width: 48px; height: 48px; flex: 0 0 auto; place-items: center; color: var(--blue); border-radius: .8rem; background: var(--ice); font-size: 1.65rem; }
.temp-icon { font-size: 2rem; font-weight: 500; }
.cloud-icon { font-size: 1.55rem; }
.source-icon { font-weight: 800; }
.forecast-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .8fr); gap: 1rem; margin-top: 1rem; }
.panel { min-width: 0; padding: clamp(1rem, 2vw, 1.45rem); border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); box-shadow: var(--shadow); }
.panel-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: .7rem; }
.panel-heading h2, .section-heading h2 { margin-bottom: 0; font-size: 1.35rem; letter-spacing: -.025em; }
.unit-tag { display: inline-flex; margin: 0; padding: .38rem .6rem; color: #536f8a; border-radius: 999px; background: #eef5fb; font-size: .72rem; font-weight: 650; white-space: nowrap; }
.panel-status { min-height: 1rem; margin: .4rem 0; color: var(--muted); font-size: .84rem; }
.chart-frame { position: relative; height: 275px; min-width: 0; }
.chart-note, .table-caption { margin: .65rem 0 0; color: #708399; font-size: .75rem; line-height: 1.5; }
.daily-list { display: grid; gap: .55rem; }
.daily-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .7rem; padding: .75rem .8rem; border: 1px solid #e7eef5; border-radius: .7rem; background: #fbfdff; }
.daily-row strong { display: block; font-size: .88rem; }
.daily-row small { display: block; margin-top: .18rem; color: var(--muted); font-size: .75rem; }
.daily-value { color: #176bbb; font-size: .93rem; font-weight: 800; white-space: nowrap; }
.camera-gallery { margin-top: 1rem; }
.camera-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.camera-card { min-width: 0; overflow: hidden; border: 1px solid #e2ebf4; border-radius: .8rem; background: #fbfdff; }
.camera-card h3 { margin: 0; padding: .8rem .9rem; font-size: .95rem; }
.camera-frame { position: relative; width: 100%; overflow: hidden; aspect-ratio: 16 / 9; background: #102944; }
.camera-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.camera-empty { padding: 1.2rem; color: #617890; border: 1px dashed #b9cad9; border-radius: .8rem; background: #f7fafc; }
.camera-empty strong { display: block; margin-bottom: .3rem; color: #344f69; }
.camera-empty p { margin: 0; font-size: .84rem; line-height: 1.5; }
.advanced-content { padding-top: 1.8rem; }
.advanced-content[hidden] { display: none; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section-heading > p { max-width: 510px; margin: 0; color: var(--muted); font-size: .85rem; }
.details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.detail-panel h3 { display: inline-block; margin: 0 .5rem .6rem 0; font-size: 1rem; }
.chart-frame-small { height: 235px; }
.table-panel { margin-top: 1rem; }
.table-scroll { max-width: 100%; overflow-x: auto; margin-top: .8rem; border: 1px solid var(--line); border-radius: .7rem; }
.table-scroll:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
th, td { padding: .7rem .8rem; border-bottom: 1px solid #e9eff5; font-size: .82rem; }
th { color: #47617c; background: #f4f8fc; font-size: .74rem; letter-spacing: .025em; }
tbody tr:last-child td { border-bottom: 0; }
td { color: #314a64; }
.data-limit-note { margin: 1rem 0 0; padding: .9rem 1rem; color: #526b82; border-left: 3px solid #7daed6; border-radius: .35rem; background: #eaf3fa; font-size: .82rem; line-height: 1.5; }
.site-footer { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding: 1.1rem .2rem; color: #73859a; border-top: 1px solid var(--line); font-size: .78rem; }
.site-footer a { color: #176bbb; font-weight: 700; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.error-state { color: #9b342f; }

@media (max-width: 900px) {
    .header-note { display: none; }
    .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .forecast-layout { grid-template-columns: minmax(0, 1fr); }
    .outlook-panel { order: 2; }
}

@media (max-width: 600px) {
    .site-header { height: 64px; justify-content: space-between; padding-inline: 1rem; }
    .brand img { width: 135px; }
    .main-nav { gap: .85rem; }
    .main-nav a { font-size: .75rem; }
    .page-shell { padding: .8rem .8rem 1.4rem; }
    .hero { min-height: 375px; align-items: start; padding: 1.5rem 1.1rem; border-radius: .95rem; }
    .hero-mountains { width: 175%; max-width: none; right: -45%; }
    .hero-content { padding-top: .15rem; }
    .hero-copy { max-width: 330px; font-size: .94rem; }
    .resort-controls { display: grid; }
    .resort-controls label { min-width: 0; }
    .resort-controls select { min-height: 46px; }
    .resort-heading { align-items: start; flex-direction: column; padding-top: 1.35rem; }
    .view-toggle { width: 100%; }
    .view-button { flex: 1; }
    .summary-grid { gap: .55rem; }
    .summary-card { min-height: 108px; align-items: start; gap: .55rem; padding: .75rem .65rem; }
    .summary-icon { width: 37px; height: 37px; border-radius: .65rem; font-size: 1.35rem; }
    .summary-card p { font-size: .7rem; }
    .summary-card strong { font-size: 1.18rem; }
    .summary-card small { font-size: .67rem; line-height: 1.35; }
    .panel { padding: .9rem; }
    .panel-heading { align-items: start; flex-direction: column; gap: .55rem; }
    .panel-heading h2, .section-heading h2 { font-size: 1.2rem; }
    .chart-frame { height: 245px; }
    .details-grid { grid-template-columns: minmax(0, 1fr); }
    .section-heading { align-items: start; flex-direction: column; }
    .site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
