/* ==========================================================================
   MtnCMS marketing site
   A dark, blueprint-like look: content you edit is drawn in ice blue, live
   data from MtnManager in green, and MtnCMS's theme itself appears only in
   its own colors (the theme preview).
   ========================================================================== */

/* Tokens
   ========================================================================== */

:root {
    color-scheme: dark;

    --bg: #05070b;
    --bg-2: #080b11;
    --panel: #0b0f16;
    --panel-2: #10161f;
    --panel-3: #161d29;
    --line: rgb(148 178 222 / 0.1);
    --line-2: rgb(148 178 222 / 0.18);
    --line-3: rgb(148 178 222 / 0.3);

    --text: #edf2f9;
    --text-2: #a4afc1;
    --text-3: #8a95a8;

    /* Content you edit in Payload */
    --ice: #7cc8ff;
    --ice-strong: #3e9bf8;
    --ice-dim: rgb(124 200 255 / 0.12);
    --on-ice: #03121f;
    /* Live data from MtnManager */
    --live: #4ade80;
    --live-dim: rgb(74 222 128 / 0.12);
    --on-live: #03170b;
    --hold: #f5b84a;
    --closed: #ff6b5e;

    --font-sans:
        "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        sans-serif;
    --font-display: "Montserrat", var(--font-sans);
    --font-mono:
        ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas,
        "Liberation Mono", monospace;

    --container: 1200px;
    --gutter: clamp(16px, 4vw, 40px);
    --section-space: clamp(64px, 8vw, 104px);

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 22px;

    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Base
   ========================================================================== */

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

* {
    margin: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 108px;
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

ul,
ol {
    padding: 0;
    list-style: none;
}

a {
    color: inherit;
}

button {
    font: inherit;
    color: inherit;
    cursor: pointer;
}

code,
pre {
    font-family: var(--font-mono);
}

:focus-visible {
    outline: 2px solid var(--ice);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection {
    background: var(--ice);
    color: var(--on-ice);
}

.icon {
    width: 1.15em;
    height: 1.15em;
    flex: none;
}

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.skip-link {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 100;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    background: var(--text);
    color: var(--bg);
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: none;
}

.text-ice {
    color: var(--ice);
}

/* Dots: status lights used across the page */
.dot {
    display: inline-block;
    width: 0.5em;
    height: 0.5em;
    flex: none;
    border-radius: 50%;
    background: var(--text-3);
}

.dot--open,
.dot--live {
    background: var(--live);
    box-shadow: 0 0 0 0.2em var(--live-dim);
}

.dot--live {
    animation: pulse 2.4s ease-in-out infinite;
}

.dot--hold {
    background: var(--hold);
}

@keyframes pulse {
    50% {
        box-shadow: 0 0 0 0.45em rgb(74 222 128 / 0);
    }
}

/* Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    padding: 0.7em 1.15em;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background-color 160ms var(--ease),
        border-color 160ms var(--ease),
        color 160ms var(--ease),
        transform 160ms var(--ease);
}

.btn .icon {
    width: 1.05em;
    height: 1.05em;
}

.btn:active {
    transform: translateY(1px);
}

.btn--primary {
    background: var(--text);
    color: #05070b;
}

.btn--primary:hover {
    background: #cfeaff;
}

.btn--ghost {
    border-color: var(--line-2);
    background: rgb(255 255 255 / 0.02);
    color: var(--text);
}

.btn--ghost:hover {
    border-color: var(--line-3);
    background: rgb(255 255 255 / 0.06);
}

/* Deploy to Vercel, in Vercel's black and white */
.btn--vercel {
    border-color: #fff;
    background: #fff;
    color: #000;
}

.btn--vercel:hover {
    border-color: rgb(255 255 255 / 0.85);
    background: rgb(255 255 255 / 0.85);
}

.btn--vercel .icon {
    width: 1em;
    height: 1em;
}

.btn--sm {
    padding: 0.5em 0.95em;
    font-size: 0.875rem;
}

.btn--lg {
    padding: 0.85em 1.4em;
    font-size: 1rem;
}

/* Header
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid transparent;
    transition:
        background-color 200ms var(--ease),
        border-color 200ms var(--ease);
}

.site-header[data-scrolled] {
    border-bottom-color: var(--line);
    background: rgb(5 7 11 / 0.78);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 88px;
}

.site-header__logo img {
    width: auto;
    height: 34px;
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-header__actions .btn {
    padding: 0.8em 1.3em;
    font-size: 1rem;
}

@media (max-width: 640px) {
    .site-header__github {
        display: none;
    }
}

@media (max-width: 500px) {
    .site-header__demo {
        display: none;
    }
}

/* Hero
   ========================================================================== */

.hero {
    position: relative;
    margin-top: -88px;
    padding-top: calc(88px + clamp(56px, 9vw, 112px));
    padding-bottom: clamp(24px, 4vw, 48px);
    overflow: hidden;
}

/* A blueprint grid, fading out from the top */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 56px 56px;
    background-position: center top;
    -webkit-mask-image: radial-gradient(
        ellipse 80% 60% at 50% 0%,
        black 30%,
        transparent 100%
    );
    mask-image: radial-gradient(
        ellipse 80% 60% at 50% 0%,
        black 30%,
        transparent 100%
    );
    pointer-events: none;
}

.hero__glow {
    position: absolute;
    top: -260px;
    left: 50%;
    width: min(1100px, 140vw);
    height: 720px;
    transform: translateX(-50%);
    background:
        radial-gradient(
            closest-side,
            rgb(62 155 248 / 0.28),
            rgb(62 155 248 / 0) 70%
        ),
        radial-gradient(
            closest-side at 70% 60%,
            rgb(74 222 128 / 0.08),
            transparent 70%
        );
    filter: blur(10px);
    pointer-events: none;
}

.hero__intro {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero__title {
    max-width: 15ch;
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 1.3rem + 5.6vw, 5.25rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.hero__lead {
    max-width: 40rem;
    margin-top: 24px;
    color: var(--text-2);
    font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
    line-height: 1.55;
    text-wrap: pretty;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 36px;
}

.hero__built {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 14px;
    margin-top: 36px;
    color: var(--text-3);
    font-size: 0.8125rem;
}

.hero__built-logo img {
    width: auto;
    height: 18px;
    opacity: 0.8;
    transition: opacity 160ms var(--ease);
}

.hero__built-logo:hover img {
    opacity: 1;
}

.hero__built-sep {
    width: 1px;
    height: 16px;
    background: var(--line-2);
}

@media (max-width: 560px) {
    .hero__actions .btn {
        flex: 1 1 100%;
    }

    .hero__built-sep {
        flex-basis: 100%;
        height: 0;
    }
}

/* Sections
   ========================================================================== */

.section {
    position: relative;
    padding-block: var(--section-space);
}

.section--lined {
    border-block: 1px solid var(--line);
    background:
        radial-gradient(
            ellipse 60% 50% at 50% 0%,
            rgb(62 155 248 / 0.06),
            transparent
        ),
        var(--bg-2);
}

.section-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 46rem;
    margin: 0 auto clamp(40px, 6vw, 72px);
    text-align: center;
}

.section-head--left {
    align-items: flex-start;
    margin-inline: 0;
    text-align: left;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--text-2);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
}

.eyebrow span {
    color: var(--ice);
}

.eyebrow span::after {
    content: "";
    display: inline-block;
    width: 22px;
    height: 1px;
    margin-left: 10px;
    vertical-align: middle;
    background: currentColor;
    opacity: 0.6;
}

.eyebrow--live span {
    color: var(--live);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.section-lead {
    margin-top: 20px;
    color: var(--text-2);
    font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
    text-wrap: pretty;
}

.section-lead a,
.faq__list a {
    color: var(--text);
    text-decoration-color: var(--line-3);
    text-underline-offset: 3px;
}

.section-lead a:hover,
.faq__list a:hover {
    text-decoration-color: var(--ice);
}

h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

/* Compare
   ========================================================================== */

.compare {
    display: grid;
    grid-template-columns: minmax(140px, 0.8fr) 1fr 1fr 1.2fr;
    font-size: 0.9375rem;
}

/* One competitor instead of two */
.compare--two {
    grid-template-columns: minmax(140px, 0.7fr) 1fr 1.2fr;
}

.compare__row {
    display: contents;
}

.compare__row > * {
    padding: 20px 22px;
    border-bottom: 1px solid var(--line);
    color: var(--text-2);
}

.compare__row [role="rowheader"] {
    padding-left: 0;
    color: var(--text);
    font-weight: 500;
}

.compare__row--head > * {
    padding-block: 0 16px;
    color: var(--text-3);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
}

.compare .compare__us {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-inline: 1px solid rgb(124 200 255 / 0.3);
    border-bottom-color: rgb(124 200 255 / 0.14);
    background: rgb(124 200 255 / 0.06);
    color: var(--text);
}

.compare .compare__us .icon {
    margin-top: 0.15em;
    color: var(--ice);
}

.compare__row--head .compare__us {
    align-items: center;
    padding-top: 18px;
    border-top: 1px solid rgb(124 200 255 / 0.3);
    border-radius: var(--radius) var(--radius) 0 0;
    color: var(--text);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.compare__row--head .compare__us img {
    width: 20px;
    height: auto;
}

.compare__row--head > :not(.compare__us) {
    align-self: end;
}

.compare__row:last-child .compare__us {
    border-bottom: 1px solid rgb(124 200 255 / 0.3);
    border-radius: 0 0 var(--radius) var(--radius);
}

@media (max-width: 860px) {
    .compare {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .compare__row {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border: 1px solid var(--line);
        border-radius: var(--radius-lg);
        background: var(--panel);
    }

    .compare__row--head {
        display: none;
    }

    .compare__row > * {
        padding: 12px 18px;
    }

    .compare__row [role="rowheader"] {
        padding: 16px 18px 8px;
        border: 0;
        font-family: var(--font-display);
        font-weight: 700;
    }

    .compare__row [role="cell"]::before {
        content: attr(data-col);
        display: block;
        color: var(--text-3);
        font-family: var(--font-mono);
        font-size: 0.75rem;
    }

    .compare .compare__us {
        flex-direction: column;
        gap: 2px;
        margin: 6px 10px 10px;
        border: 1px solid rgb(124 200 255 / 0.3);
        border-radius: var(--radius);
    }

    .compare__row:last-child .compare__us {
        border-radius: var(--radius);
    }

    .compare .compare__us::before {
        color: var(--ice);
    }

    .compare .compare__us .icon {
        display: none;
    }

    .compare__row [role="rowheader"] {
        order: -2;
    }

    .compare__row > :last-child:not(.compare__us),
    .compare__row > [role="cell"]:nth-child(3) {
        border-bottom: 0;
    }
}

/* Live data bento
   ========================================================================== */

.bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.tile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    overflow: hidden;
    transition: border-color 200ms var(--ease);
}

.tile:hover {
    border-color: rgb(74 222 128 / 0.3);
}

.tile--wide {
    grid-column: span 2;
}

.tile--tall {
    grid-row: span 2;
}

.tile__text h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.tile__text h3 .icon {
    color: var(--live);
}

.tile__text p {
    color: var(--text-2);
    font-size: 0.9375rem;
}

.tile--snow {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    align-items: center;
    gap: 32px;
}

.snow {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.snow__figures {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.snow__figures span {
    display: flex;
    flex-direction: column;
    padding: 12px;
    border-radius: var(--radius);
    background: rgb(141 199 234 / 0.1);
}

.snow__figures b {
    font-family: "Barlow Condensed", var(--font-sans);
    font-size: 2rem;
    line-height: 1;
}

.snow__figures b i {
    margin-left: 2px;
    color: var(--text-2);
    font-size: 0.55em;
    font-style: normal;
}

.snow__figures small {
    margin-top: 4px;
    color: var(--text-2);
    font-size: 0.75rem;
    line-height: 1.3;
}

.snow__chart {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    align-items: end;
    gap: 8px;
    height: 110px;
}

.snow__chart span {
    position: relative;
    height: 100%;
}

.snow__chart span::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 20px;
    left: 0;
    height: calc((100% - 20px) * var(--h) + 2px);
    border-radius: 4px 4px 2px 2px;
    background: rgb(141 199 234 / 0.35);
}

.snow__chart .is-today::before {
    background: linear-gradient(180deg, #bfe6ff, #7cc8ff);
}

.snow__chart i {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    color: var(--text-3);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-style: normal;
    text-align: center;
}

.snow__chart .is-today i {
    color: var(--text);
}

.status-list,
.lots {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
}

.status-list li,
.lots li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-top: 1px solid var(--line);
}

/* Markers, as MtnCMS draws them: lift type icons and trail signs */
.status-list .lift-icon,
.status-list .trail-sign {
    width: 20px;
    height: 20px;
    flex: none;
}

.status-list .lift-icon {
    color: var(--text-2);
}

.trail-sign {
    fill: var(--sign);
    stroke: #fff;
    stroke-width: 1.25;
    stroke-linejoin: round;
    overflow: visible;
}

.trail-sign[data-difficulty="beginner"] {
    --sign: #12913a;
}

.trail-sign[data-difficulty="intermediate"] {
    --sign: #1460d2;
}

.trail-sign[data-difficulty="advanced"] {
    --sign: #0d1a2d;
}

.trail-sign[data-difficulty="park"] {
    --sign: #e8590c;
}

.status-list em,
.lots em {
    margin-left: auto;
    color: var(--live);
    font-size: 0.8125rem;
    font-style: normal;
    font-weight: 500;
}

.status-list em.is-hold,
.lots em.is-hold {
    color: var(--hold);
}

.status-list em.is-closed,
.lots em.is-closed {
    color: var(--closed);
}

.hours {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-top: auto;
}

.hours span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 0;
    border-radius: var(--radius-sm);
    background: rgb(85 185 143 / 0.12);
    color: #c4f0dc;
    font-family: "Barlow Condensed", var(--font-sans);
    font-size: 1.05rem;
    font-weight: 700;
}

.hours i {
    color: #8fc9ae;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-style: normal;
    font-weight: 400;
}

.hours .is-night {
    background: rgb(185 163 222 / 0.16);
    color: #ddd0f5;
}

.hours .is-night i {
    color: #b6a8d4;
}

.hours .is-today {
    outline: 1px solid var(--live);
    outline-offset: -1px;
}

.trailmap {
    width: 100%;
    margin-top: auto;
}

.trailmap path {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.trailmap__ridge {
    stroke: var(--line-3);
    stroke-width: 1.5;
}

.trailmap__lift {
    stroke: var(--text-2);
    stroke-width: 1.25;
    stroke-dasharray: 2 4;
}

.trailmap__run {
    stroke-width: 2.5;
}

.trailmap__run--green {
    stroke: #22c55e;
}

.trailmap__run--blue {
    stroke: #3b82f6;
}

.trailmap__run--black {
    stroke: #e8edf5;
}

.trailmap__pin {
    fill: var(--live);
    stroke: var(--bg);
    stroke-width: 2;
}

.cams {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: auto;
}

.cam {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    aspect-ratio: 16 / 10;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    overflow: hidden;
}

.cam--1 {
    background:
        linear-gradient(170deg, transparent 55%, rgb(232 240 250 / 0.85) 56%),
        linear-gradient(200deg, transparent 45%, rgb(160 185 215 / 0.7) 46%),
        linear-gradient(180deg, #3d5f8d, #8fb3d6);
}

.cam--2 {
    background:
        linear-gradient(185deg, transparent 62%, rgb(240 245 252 / 0.9) 63%),
        linear-gradient(160deg, transparent 50%, rgb(70 98 132 / 0.85) 51%),
        linear-gradient(180deg, #5d7ea6, #c1d6ea);
}

.cam em {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgb(0 0 0 / 0.55);
    font-style: normal;
}

.sms {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: auto;
}

.sms__bubble {
    max-width: 92%;
    padding: 10px 14px;
    border-radius: 18px 18px 18px 4px;
    background: var(--panel-3);
    font-size: 0.875rem;
    line-height: 1.45;
}

.sms__meta {
    padding-left: 6px;
    color: var(--text-3);
    font-size: 0.75rem;
}

.lots {
    margin-top: auto;
}

.bento-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 12px;
    margin-top: 32px;
    color: var(--text-2);
    font-size: 0.9375rem;
    text-align: center;
}

.bento-note a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--live);
    font-weight: 500;
    text-decoration: none;
}

.bento-note a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 1000px) {
    .bento {
        grid-template-columns: repeat(2, 1fr);
    }

    .tile--tall {
        grid-row: auto;
    }

    .tile--snow {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .bento {
        grid-template-columns: 1fr;
    }

    .tile--wide {
        grid-column: auto;
    }

    .snow__figures {
        grid-template-columns: repeat(2, 1fr);
    }

    .tile {
        padding: 22px;
    }
}

/* Split layouts
   ========================================================================== */

.split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
    gap: clamp(40px, 6vw, 88px);
}

.split--reverse > :first-child {
    order: 2;
}

.split__text .section-head {
    margin-bottom: 40px;
}

@media (max-width: 960px) {
    .split {
        grid-template-columns: 1fr;
    }

    .split--reverse > :first-child {
        order: 0;
    }
}

.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 32px;
}

.features li {
    display: flex;
    gap: 14px;
}

.features li > .icon {
    width: 36px;
    height: 36px;
    padding: 8px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    background: var(--ice-dim);
    color: var(--ice);
}

.features p,
.details p {
    margin-top: 4px;
    color: var(--text-2);
    font-size: 0.9375rem;
}

@media (max-width: 560px) {
    .features {
        grid-template-columns: 1fr;
    }
}

/* The starter site's pages */
/* The season switch above the starter site's pages, kept in view */
.split__visual {
    position: sticky;
    top: 116px;
    min-width: 0;
}

.split__visual .season {
    margin-bottom: 20px;
}

.split__visual .season__preview {
    width: 100%;
}

.split__visual .season__nav {
    font-size: 1rem;
}

.sitemap {
    border: 1px solid var(--line-2);
    border-radius: var(--radius-lg);
    background: var(--panel);
    box-shadow: 0 30px 80px -30px rgb(0 0 0 / 0.8);
    overflow: hidden;
}

.sitemap__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
    font-weight: 600;
}

.sitemap__count {
    color: var(--text-3);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 400;
}

.sitemap__list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 20px;
    border-bottom: 1px solid var(--line);
    font-size: 0.9rem;
}

.sitemap__list li:last-child {
    border-bottom: 0;
}

.sitemap__list span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.sitemap__list .icon {
    width: 16px;
    height: 16px;
    color: var(--text-3);
}

.sitemap__list em {
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--live-dim);
    color: var(--live);
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 500;
}

.sitemap__child span {
    padding-left: 26px;
    color: var(--text-2);
}

.sitemap__child span::before {
    content: "";
    width: 8px;
    height: 8px;
    margin-left: -18px;
    margin-right: 0;
    border-bottom: 1px solid var(--line-3);
    border-left: 1px solid var(--line-3);
    transform: translateY(-3px);
}

/* Pages with sample or example content to replace, or ready to fill */
.sitemap__list .is-sample em {
    background: rgb(255 255 255 / 0.06);
    color: var(--text-3);
}

@media (max-width: 960px) {
    .split__visual {
        position: static;
    }
}

/* Seasons
   ========================================================================== */

.season {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 64px;
}

.season__controls,
.toggle {
    display: inline-flex;
    padding: 4px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    background: var(--panel);
}

.season__controls button,
.toggle button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border: 0;
    border-radius: 999px;
    background: none;
    color: var(--text-2);
    font-size: 0.9rem;
    font-weight: 500;
    transition:
        background-color 200ms var(--ease),
        color 200ms var(--ease);
}

.season__controls button[aria-pressed="true"],
.toggle button[aria-pressed="true"] {
    background: var(--text);
    color: var(--bg);
}

.season__preview {
    width: min(100%, 720px);
}

.season__nav {
    position: relative;
    display: flex;
    align-items: center;
    gap: 24px;
    height: 64px;
    padding: 0 22px;
    border-radius: var(--radius);
    background: #1c4587;
    color: #fff;
    font-family: "Barlow Condensed", var(--font-sans);
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    overflow: hidden;
    transition: background-color 400ms var(--ease);
}

.season[data-season="summer"] .season__nav {
    background: #1f5b3f;
}

.season__brand .icon {
    width: 26px;
    height: 26px;
}

.season__items {
    position: absolute;
    left: 78px;
    display: flex;
    gap: 24px;
    white-space: nowrap;
    transition:
        opacity 300ms var(--ease),
        transform 300ms var(--ease);
}

.season__items--summer,
.season[data-season="summer"] .season__items--winter {
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
}

.season[data-season="summer"] .season__items--summer {
    opacity: 1;
    transform: none;
}

.season__caption {
    display: grid;
    margin-top: 14px;
    color: var(--text-3);
    font-size: 0.875rem;
    text-align: center;
}

.season__caption span {
    grid-area: 1 / 1;
    transition: opacity 300ms var(--ease);
}

.season__caption--summer,
.season[data-season="summer"] .season__caption--winter {
    opacity: 0;
}

.season[data-season="summer"] .season__caption--summer {
    opacity: 1;
}

@media (max-width: 560px) {
    .season__nav {
        font-size: 0.95rem;
    }

    .season__items {
        left: 62px;
        gap: 16px;
    }

    .season__items span:nth-child(4) {
        display: none;
    }
}

.details {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--line);
    overflow: hidden;
}

.details li {
    padding: 28px;
    background: var(--bg-2);
}

.details .icon {
    width: 22px;
    height: 22px;
    margin-bottom: 18px;
    color: var(--ice);
}

@media (max-width: 1000px) {
    .details {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .details {
        grid-template-columns: 1fr;
    }

    .details li {
        padding: 22px;
    }
}

.details p a {
    color: var(--text);
    text-decoration-color: var(--line-3);
    text-underline-offset: 3px;
}

.details p a:hover {
    text-decoration-color: var(--ice);
}

/* Built right: search & AI, speed, languages, phones, accessibility,
   security
   ========================================================================== */

/* Search & AI: a lodge's page, and what search engines read of it */
.readable {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: clamp(32px, 5vw, 64px);
    padding: clamp(24px, 4vw, 48px);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(
            ellipse 70% 80% at 100% 0%,
            rgb(62 155 248 / 0.09),
            transparent
        ),
        var(--panel);
}

.readable > * {
    min-width: 0;
}

.readable__kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--ice);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
}

.readable__text h3 {
    margin-bottom: 12px;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.readable__text > p:not(.readable__kicker) {
    color: var(--text-2);
}

.readable__text .checks {
    margin-top: 24px;
}

.readable__demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.toggle button .icon {
    width: 16px;
    height: 16px;
}

.readable__stage {
    display: grid;
    width: 100%;
}

.readable__stage > * {
    grid-area: 1 / 1;
    min-width: 0;
    transition:
        opacity 300ms var(--ease),
        visibility 300ms;
}

.readable[data-readable="guest"] .readable__code,
.readable[data-readable="machine"] .readable__page {
    opacity: 0;
    visibility: hidden;
}

/* In the theme's own colors */
.readable__page {
    align-self: center;
    justify-self: center;
    width: min(100%, 380px);
    border-radius: var(--radius-lg);
    background: #fff;
    color: #0d1a2d;
    overflow: hidden;
    box-shadow: 0 24px 60px -24px rgb(0 0 0 / 0.6);
}

.readable__photo {
    height: 150px;
    background: #1c4587 url("/images/example-hero-800.jpg") center / cover
        no-repeat;
    background-image: image-set(
        url("/images/example-hero-800.avif") type("image/avif"),
        url("/images/example-hero-800.jpg") type("image/jpeg")
    );
}

.readable__body {
    padding: 20px 22px 24px;
}

.readable__type {
    color: #1c4587;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.readable__body h4 {
    margin-top: 2px;
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.readable__body p:not(.readable__type) {
    margin-top: 10px;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.5;
}

.readable__body .readable__hours {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0d1a2d;
    font-weight: 600;
}

.readable__hours .dot {
    background: #1e7d45;
    box-shadow: none;
}

.readable__code pre {
    font-size: 0.75rem;
    line-height: 1.7;
}

.readable__caption {
    display: grid;
    color: var(--text-3);
    font-size: 0.875rem;
    text-align: center;
}

.readable__caption span {
    grid-area: 1 / 1;
    transition: opacity 300ms var(--ease);
}

.readable[data-readable="guest"] .readable__caption--machine,
.readable[data-readable="machine"] .readable__caption--guest {
    opacity: 0;
}

@media (max-width: 960px) {
    .readable {
        grid-template-columns: 1fr;
    }
}

/* A list with a check before each item */
.checks {
    display: grid;
    gap: 10px;
}

.checks li {
    position: relative;
    padding-left: 26px;
    color: var(--text-2);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.checks li::before {
    content: "";
    position: absolute;
    top: 0.2em;
    left: 0;
    width: 16px;
    height: 16px;
    background: var(--ice);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
        center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
        center / contain no-repeat;
}

/* The rest */
.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-top: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--line);
    overflow: hidden;
}

.pillars > li {
    padding: 28px;
    background: var(--bg-2);
}

.pillars > li > .icon {
    width: 36px;
    height: 36px;
    margin-bottom: 18px;
    padding: 8px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    background: var(--ice-dim);
    color: var(--ice);
}

.pillars > li > p {
    margin-top: 6px;
    color: var(--text-2);
    font-size: 0.9375rem;
}

@media (max-width: 1000px) {
    .pillars {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .pillars {
        grid-template-columns: 1fr;
    }

    .pillars > li {
        padding: 22px;
    }

    .toggle button {
        padding: 8px 12px;
        font-size: 0.8125rem;
        white-space: nowrap;
    }

    .toggle button .icon {
        display: none;
    }
}

/* Theme customizer
   ========================================================================== */

.customizer {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-xl);
    background: var(--panel);
}

.customizer__panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 12px 10px;
}

.customizer fieldset {
    padding: 0;
    border: 0;
}

.customizer legend {
    margin-bottom: 10px;
    color: var(--text-2);
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.swatches label {
    position: relative;
    cursor: pointer;
}

.swatches input,
.segmented input,
.hex__chip input,
.logo-field__pick input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.swatches span {
    display: block;
    width: 36px;
    height: 36px;
    border: 1px solid rgb(255 255 255 / 0.18);
    border-radius: 50%;
    background: var(--s);
    transition: box-shadow 160ms var(--ease);
}

.swatches input:checked + span {
    box-shadow:
        0 0 0 3px var(--panel),
        0 0 0 5px var(--text);
}

.swatches input:focus-visible + span {
    outline: 2px solid var(--ice);
    outline-offset: 6px;
}

.swatches em {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--panel-3);
    color: var(--text);
    font-size: 0.75rem;
    font-style: normal;
    white-space: nowrap;
    transform: translateX(-50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 120ms;
    z-index: 2;
}

.swatches label:hover em {
    opacity: 1;
}

.segmented {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.segmented span {
    display: block;
    padding: 9px 10px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
    text-align: center;
    cursor: pointer;
    transition:
        border-color 160ms var(--ease),
        background-color 160ms var(--ease);
}

.segmented input:checked + span {
    border-color: var(--text);
    background: rgb(255 255 255 / 0.07);
}

.segmented input:focus-visible + span {
    outline: 2px solid var(--ice);
    outline-offset: 2px;
}

.ff-barlow {
    font-family: "Barlow Condensed", var(--font-sans);
    font-weight: 700;
}

.ff-oswald {
    font-family: "Oswald", var(--font-sans);
    font-weight: 600;
}

.ff-archivo {
    font-family: "Archivo", var(--font-sans);
    font-weight: 800;
}

.ff-fraunces {
    font-family: "Fraunces", Georgia, serif;
    font-weight: 600;
}

.hex {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 4px 10px 4px 4px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    transition: border-color 160ms var(--ease);
}

.hex:focus-within {
    border-color: var(--text);
}

.hex__chip {
    position: relative;
    flex: none;
    cursor: pointer;
}

.hex__chip span {
    display: block;
    width: 26px;
    height: 26px;
    border: 1px solid rgb(255 255 255 / 0.18);
    border-radius: 50%;
    background: var(--s, transparent);
}

.hex__chip input:focus-visible + span {
    outline: 2px solid var(--ice);
    outline-offset: 2px;
}

.hex__text {
    width: 100%;
    min-width: 0;
    padding: 4px 0;
    border: 0;
    background: none;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    text-transform: lowercase;
    outline: none;
}

.logo-field {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-field [hidden] {
    display: none;
}

.logo-field__pick {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 9px 14px;
    border: 1px dashed var(--line-3);
    border-radius: var(--radius-sm);
    color: var(--text-2);
    font-size: 0.875rem;
    cursor: pointer;
    transition:
        border-color 160ms var(--ease),
        color 160ms var(--ease);
}

.logo-field__pick:hover,
.logo-field__pick[data-dragging] {
    border-color: var(--text);
    color: var(--text);
}

.logo-field__pick[data-dragging] {
    border-style: solid;
    background: rgb(255 255 255 / 0.05);
}

.logo-field__pick:focus-within {
    outline: 2px solid var(--ice);
    outline-offset: 2px;
}

.logo-field__pick .icon {
    flex: none;
    width: 16px;
    height: 16px;
}

.logo-field__pick span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logo-field__remove {
    flex: none;
    padding: 0;
    border: 0;
    background: none;
    color: var(--text-3);
    font: inherit;
    font-size: 0.8125rem;
    cursor: pointer;
}

.logo-field__remove:hover {
    color: var(--text);
}

.customizer__note {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--text-3);
    font-size: 0.8125rem;
}

@media (max-width: 900px) {
    .customizer {
        grid-template-columns: 1fr;
    }

    .customizer__panel {
        order: 2;
    }
}

/* The theme preview: the starter site's home page in MtnCMS's theme, as
   its styles draw it, scaled down. JS sets the --tp-* properties from the
   panel; the rest are the theme's defaults (cobalt, with the accent for
   the tiles, as new sites start) and what it mixes from them. */
.theme-preview {
    --tp-primary: #14244b;
    --tp-on-primary: #ffffff;
    --tp-accent: #2a51b8;
    --tp-on-accent: #ffffff;
    --tp-bg: #f5f6fa;
    --tp-text: #0d1a2d;
    --tp-inverse: #060c1e;
    /* Quick link tiles: all the accent, as new sites start */
    --tp-palette-1: var(--tp-accent);
    --tp-palette-2: var(--tp-accent);
    --tp-palette-3: var(--tp-accent);
    --tp-palette-4: var(--tp-accent);
    --tp-on-palette-1: var(--tp-on-accent);
    --tp-on-palette-2: var(--tp-on-accent);
    --tp-on-palette-3: var(--tp-on-accent);
    --tp-on-palette-4: var(--tp-on-accent);
    --tp-font: "Barlow Condensed", "Arial Narrow", sans-serif;
    --tp-weight: 700;
    --tp-transform: uppercase;
    --tp-tracking: 0.01em;
    --tp-leading: 0.95;
    --tp-adjust: cap-height 0.7;
    --tp-button-font: var(--tp-font);
    --tp-button-adjust: var(--tp-adjust);
    --tp-surface: color-mix(in oklab, var(--tp-text) 5%, var(--tp-bg));
    --tp-muted: color-mix(in oklab, var(--tp-text) 72%, var(--tp-bg));
    --tp-border: color-mix(in oklab, var(--tp-text) 14%, var(--tp-bg));
    --tp-raised: color-mix(in oklab, var(--tp-bg) 30%, white);
    --tp-gutter: 20px;

    container-type: inline-size;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    background: var(--tp-bg);
    color: var(--tp-text);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    line-height: 1.5;
    overflow: hidden;
}

.theme-preview * {
    transition:
        background-color 300ms var(--ease),
        border-color 300ms var(--ease),
        color 300ms var(--ease);
}

.tp__icon {
    flex: none;
    width: 1.1em;
    height: 1.1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Display type: headings, the brand, tiles and figures */
.tp__brand,
.tp__h1,
.tp__tile,
.tp__card-temp,
.tp__card-row b {
    font-family: var(--tp-font);
    font-size-adjust: var(--tp-adjust);
    font-weight: 700;
    text-transform: var(--tp-transform);
}

/* Labels: small capitals under figures */
.tp__card-row small {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Onward links: "Mountain Report →" */
.tp__onward {
    font-weight: 650;
    white-space: nowrap;
}

.tp__onward::after {
    content: " →";
}

/* Buttons. A button is the section's primary color; the conditions card
   makes that its dark text. */
.tp__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45em;
    padding: 0.6em 1.15em;
    border: 2px solid var(--tp-button, var(--tp-primary));
    border-radius: 999px;
    background: var(--tp-button, var(--tp-primary));
    color: var(--tp-on-button, var(--tp-on-primary));
    font-family: var(--tp-button-font);
    font-size-adjust: var(--tp-button-adjust);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.tp__button--accent {
    --tp-button: var(--tp-accent);
    --tp-on-button: var(--tp-on-accent);
}

.tp__button--secondary {
    background: transparent;
    color: var(--tp-button);
}

/* Status bar: today's hours, and a link */
.tp__utility {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 30px;
    padding: 0 var(--tp-gutter);
    background: var(--tp-inverse);
    color: #ffffff;
    font-size: 0.6875rem;
    white-space: nowrap;
}

.tp__hours {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tp__hours b {
    font-weight: 650;
}

.tp__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34c759;
}

/* Header */
.tp__header {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 58px;
    padding: 10px var(--tp-gutter);
    background: var(--tp-primary);
    color: var(--tp-on-primary);
}

.tp__brand [hidden] {
    display: none;
}

/* The theme's logo is at most 48px tall; scaled with the preview. A set
   height, so an SVG with only a viewBox takes its width from that rather
   than collapsing to nothing. */
.tp__logo {
    display: block;
    width: auto;
    max-width: 180px;
    height: 34px;
    object-fit: contain;
    object-position: left center;
}

.tp__brand {
    margin-right: auto;
    font-size: 1.25rem;
    line-height: 1;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.tp__nav {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.tp__menu {
    display: flex;
    align-items: center;
    gap: 5px;
}

.tp__menu::after {
    content: "";
    width: 5px;
    height: 5px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

.tp__cta {
    font-size: 0.6875rem;
}

/* The hero's band, in the brand color, with the quick links under the
   photo */
/* Beside a taller panel, the photo takes the extra height. */
.tp__band {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding-bottom: 32px;
    background: var(--tp-primary);
    color: var(--tp-on-primary);
}

.tp__hero {
    flex: 1;
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 1fr minmax(200px, 240px);
    align-items: end;
    column-gap: 32px;
    min-height: 330px;
    padding: 20px var(--tp-gutter) 32px;
    background: var(--tp-inverse);
    color: #ffffff;
}

/* The photo's <picture> stays out of the hero's grid. Its <source> would
   otherwise take the first cell, pushing the heading into the card's
   column and the card onto a row of its own. */
.tp__hero picture {
    display: contents;
}

.tp__hero source {
    display: none;
}

.tp__scene {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 60%;
}

.tp__hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        to top,
        rgb(5 14 26 / 0.78) 0%,
        rgb(5 14 26 / 0.35) 45%,
        rgb(5 14 26 / 0.1) 100%
    );
}

.tp__h1 {
    max-width: 16ch;
    font-size: clamp(2.5rem, 8cqw, 3.75rem);
    font-weight: var(--tp-weight);
    line-height: var(--tp-leading);
    letter-spacing: var(--tp-tracking);
    text-shadow: 0 2px 24px rgb(0 0 0 / 0.25);
    text-wrap: balance;
}

/* Today's conditions, on the accent */
.tp__card {
    --tp-button: var(--tp-on-accent);
    --tp-on-button: var(--tp-accent);
    --tp-rule: 1.5px solid
        color-mix(in oklab, var(--tp-on-accent) 35%, transparent);
    align-self: start;
    margin-top: 12px;
    padding: 16px;
    border-radius: 10px;
    background: var(--tp-accent);
    color: var(--tp-on-accent);
    box-shadow:
        0 2px 4px rgb(15 29 51 / 0.06),
        0 18px 48px rgb(15 29 51 / 0.18);
}

.tp__card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.tp__card-temp {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.45rem;
    line-height: 1.1;
}

.tp__card-temp .tp__icon {
    width: 1em;
    height: 1em;
}

.tp__units {
    display: inline-flex;
    gap: 2px;
    padding: 2px;
    border: var(--tp-rule);
    border-radius: 999px;
    font-size: 0.625rem;
    font-weight: 600;
}

.tp__units > * {
    padding: 1px 7px;
    border-radius: 999px;
}

.tp__units b {
    background: var(--tp-on-accent);
    color: var(--tp-accent);
    font-weight: inherit;
}

.tp__card-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 14px;
}

/* The snow, then what's open, under a rule */
.tp__card-row + .tp__card-row {
    padding-top: 12px;
    border-top: var(--tp-rule);
}

.tp__card-row > span {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    min-width: max-content;
}

.tp__card-row b {
    font-size: 1.3rem;
    line-height: 1.1;
}

/* The first snow figure leads, larger */
.tp__card-row .is-primary b {
    font-size: 1.85rem;
}

.tp__card-row i {
    font-size: 0.65em;
    font-style: normal;
    opacity: 0.75;
}

.tp__card-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 14px;
}

/* Quick links, in the hero's band */
.tp__tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-top: 24px;
    padding: 0 var(--tp-gutter);
}

.tp__tile {
    --tp-tile: var(--tp-palette-1);
    --tp-tile-text: var(--tp-on-palette-1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 66px;
    padding: 12px;
    border-radius: 10px;
    background: var(--tp-tile);
    color: var(--tp-tile-text);
    font-size: 1rem;
    line-height: 1.1;
    letter-spacing: 0.02em;
    text-align: center;
}

.tp__tile:nth-child(2) {
    --tp-tile: var(--tp-palette-2);
    --tp-tile-text: var(--tp-on-palette-2);
}

.tp__tile:nth-child(3) {
    --tp-tile: var(--tp-palette-3);
    --tp-tile-text: var(--tp-on-palette-3);
}

.tp__tile:nth-child(4) {
    --tp-tile: var(--tp-palette-4);
    --tp-tile-text: var(--tp-on-palette-4);
}

.tp__tile > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Small screens, as the theme lays them out: the card under the photo,
   overlapping its foot, and tiles two to a row */
@container (max-width: 640px) {
    .tp__nav {
        display: none;
    }

    .tp__hero {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 0;
        background: none;
        overflow: visible;
    }

    .tp__scene,
    .tp__hero::after {
        bottom: auto;
        height: 220px;
    }

    .tp__h1 {
        display: flex;
        align-items: flex-end;
        min-height: 220px;
        padding: 32px var(--tp-gutter) 48px;
        font-size: 2.5rem;
    }

    .tp__card {
        margin: -24px var(--tp-gutter) 0;
    }

    .tp__tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Phones: the tiles stack, as the theme's do under 560px */
@container (max-width: 400px) {
    .tp__utility .tp__onward {
        display: none;
    }

    .tp__tiles {
        grid-template-columns: 1fr;
    }
}

/* Code
   ========================================================================== */

.code-band {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
    margin-top: 56px;
}

.code-band h3 {
    margin-bottom: 12px;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.code-band p {
    color: var(--text-2);
}

.code-band p code {
    padding: 1px 6px;
    border-radius: 4px;
    background: var(--panel-3);
    color: var(--text);
    font-size: 0.875em;
}

/* Mirrored: code on the left, text on the right */
.code-band--reverse {
    grid-template-columns: 1.1fr 0.9fr;
}

.code-band--reverse .code-band__text {
    order: 1;
}

@media (max-width: 860px) {
    .code-band,
    .code-band--reverse {
        grid-template-columns: 1fr;
    }

    .code-band--reverse .code-band__text {
        order: 0;
    }
}

.code {
    border: 1px solid var(--line-2);
    border-radius: var(--radius-lg);
    background: #070a0f;
    overflow: hidden;
}

.code__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px 8px 18px;
    border-bottom: 1px solid var(--line);
    color: var(--text-3);
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.code__copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    background: none;
    color: var(--text-2);
    font-family: var(--font-sans);
    font-size: 0.75rem;
}

.code__copy:hover {
    color: var(--text);
}

.code__copy .icon {
    width: 13px;
    height: 13px;
}

.code pre {
    margin: 0;
    padding: 20px;
    overflow-x: auto;
    color: var(--text);
    font-size: 0.8125rem;
    line-height: 1.75;
}

.code--sm pre {
    padding: 16px;
    font-size: 0.75rem;
}

.c-sel {
    color: #f5b84a;
}

.c-prop {
    color: var(--ice);
}

.c-val {
    color: #9fe7b9;
}

.c-com {
    color: var(--text-3);
}

/* Ready-made blocks: the editor's Add block drawer, with every block
   ========================================================================== */

.drawer {
    border: 1px solid var(--line-2);
    border-radius: var(--radius-xl);
    background: var(--panel);
    box-shadow: 0 30px 80px -30px rgb(0 0 0 / 0.8);
    overflow: hidden;
}

.drawer [hidden] {
    display: none;
}

.drawer__bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px 14px 24px;
    border-bottom: 1px solid var(--line);
}

.drawer__title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    white-space: nowrap;
}

.drawer__search {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 10px;
    max-width: 360px;
    margin-left: auto;
    padding: 8px 14px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    color: var(--text-3);
    transition: border-color 160ms var(--ease);
}

.drawer__search:focus-within {
    border-color: var(--ice);
}

.drawer__search .icon {
    width: 16px;
    height: 16px;
}

.drawer__search input {
    width: 100%;
    min-width: 0;
    border: 0;
    background: none;
    color: var(--text);
    font: inherit;
    font-size: 0.875rem;
    outline: none;
}

.drawer__search input::placeholder {
    color: var(--text-3);
}

.drawer__close {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--text-3);
}

.drawer__search[hidden] + .drawer__close {
    margin-left: auto;
}

.drawer__close .icon {
    width: 18px;
    height: 18px;
}

/* Groups, as tabs: one row, scrolling sideways on a phone */
.drawer__tabs {
    display: flex;
    gap: 6px;
    padding: 12px 24px;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    scrollbar-width: none;
}

.drawer__tabs button {
    flex: none;
    padding: 6px 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: none;
    color: var(--text-2);
    font: inherit;
    font-size: 0.875rem;
    cursor: pointer;
    transition:
        background-color 160ms var(--ease),
        color 160ms var(--ease);
}

.drawer__tabs button:hover {
    color: var(--text);
}

.drawer__tabs button[aria-pressed="true"] {
    border-color: var(--line-3);
    background: rgb(255 255 255 / 0.06);
    color: var(--text);
}

.drawer__tabs button:focus-visible {
    outline: 2px solid var(--ice);
    outline-offset: 2px;
}

.drawer__body {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 24px;
}

.drawer__group h3 {
    margin-bottom: 12px;
    color: var(--text-2);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.drawer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
}

/* A block: its icon on a blueprint card, its name and what it's for. Live
   blocks are drawn in green, the rest in ice blue. */
.bcard {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto 1fr;
    column-gap: 14px;
    row-gap: 2px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel-2);
    transition: border-color 200ms var(--ease);
}

.bcard:hover {
    border-color: rgb(124 200 255 / 0.35);
}

.bcard--live:hover {
    border-color: rgb(74 222 128 / 0.35);
}

.bcard__thumb {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 66px;
    height: 44px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    background:
        linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 11px 11px,
        linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 11px 11px,
        var(--ice-dim);
    color: var(--ice);
}

.bcard--live .bcard__thumb {
    background:
        linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 11px 11px,
        linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 11px 11px,
        var(--live-dim);
    color: var(--live);
}

.bcard__thumb .icon {
    width: 22px;
    height: 22px;
}

.bcard__name {
    padding-right: 44px;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
}

.bcard__desc {
    color: var(--text-3);
    font-size: 0.8125rem;
    line-height: 1.4;
}

.bcard__live {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--live);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
}

.bcard__live .dot {
    animation: none;
}

.drawer__empty {
    color: var(--text-3);
    font-size: 0.9375rem;
    text-align: center;
}

.drawer__note {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    margin-top: 16px;
    padding-inline: 8px;
    color: var(--text-3);
    font-size: 0.875rem;
}

.drawer__note span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Phones: two to a row, the icon over the name, without descriptions */
@media (max-width: 560px) {
    .drawer__bar {
        flex-wrap: wrap;
        padding: 12px 12px 12px 16px;
    }

    .drawer__search {
        order: 3;
        flex-basis: 100%;
        max-width: none;
    }

    .drawer__close {
        margin-left: auto;
    }

    .drawer__tabs {
        padding: 10px 16px;
    }

    .drawer__body {
        padding: 16px;
    }

    .drawer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .bcard {
        grid-template-columns: 1fr;
        row-gap: 10px;
    }

    .bcard__thumb {
        grid-row: auto;
        width: 100%;
    }

    .bcard__name {
        padding-right: 0;
        font-size: 0.875rem;
    }

    .bcard__desc {
        display: none;
    }

    .bcard__live {
        top: 16px;
        right: 16px;
        font-size: 0;
        gap: 0;
    }
}

/* Moving from WordPress
   ========================================================================== */

/* A quieter, smaller panel under the three ways in: an extra, not a
   fourth way */
/* Paths
   ========================================================================== */

.paths {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.path {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--panel);
}

.path h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.path p {
    color: var(--text-2);
    font-size: 0.9375rem;
}

.path .btn {
    align-self: flex-start;
    margin-top: auto;
}

.path h3 .icon {
    flex: none;
    color: var(--ice);
}

.path--featured {
    border-color: rgb(124 200 255 / 0.4);
    background:
        radial-gradient(
            ellipse 90% 60% at 50% 0%,
            rgb(62 155 248 / 0.16),
            transparent
        ),
        var(--panel);
    box-shadow: 0 30px 80px -40px rgb(62 155 248 / 0.5);
}

.path--featured .code {
    margin-top: 4px;
}

.path__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
}

.path__actions .btn {
    margin-top: 0;
}

/* Deploy to Vercel hover note */
.deploy-tip {
    position: relative;
    display: flex;
}

.deploy-tip__bubble {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    z-index: 10;
    width: max-content;
    max-width: 260px;
    padding: 10px 12px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    background: var(--panel-3);
    box-shadow: 0 12px 32px -12px rgb(0 0 0 / 0.6);
    color: var(--text-2);
    font-size: 0.8125rem;
    line-height: 1.45;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    pointer-events: none;
    transition:
        opacity 160ms var(--ease),
        transform 160ms var(--ease),
        visibility 160ms;
}

.deploy-tip__bubble::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 24px;
    width: 10px;
    height: 10px;
    border-right: 1px solid var(--line-2);
    border-bottom: 1px solid var(--line-2);
    background: var(--panel-3);
    transform: rotate(45deg);
}

.deploy-tip:hover .deploy-tip__bubble,
.deploy-tip:focus-within .deploy-tip__bubble {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 960px) {
    .paths {
        grid-template-columns: 1fr;
    }

    .path {
        padding: 24px;
    }
}

@media (max-width: 560px) {
    .path .btn {
        align-self: stretch;
    }

    .path__actions {
        flex-direction: column;
    }

    .deploy-tip .btn {
        flex: 1;
    }
}

/* FAQ
   ========================================================================== */

.faq {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
    gap: clamp(40px, 6vw, 88px);
}

.faq .section-head {
    position: sticky;
    top: 116px;
}

.faq__list details {
    border-bottom: 1px solid var(--line-2);
}

.faq__list details:first-child {
    border-top: 1px solid var(--line-2);
}

.faq__list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 0;
    font-size: 1.0625rem;
    font-weight: 500;
    list-style: none;
    cursor: pointer;
}

.faq__list summary::-webkit-details-marker {
    display: none;
}

.faq__list summary::after {
    content: "";
    width: 10px;
    height: 10px;
    flex: none;
    margin-right: 4px;
    border-right: 1.5px solid var(--text-2);
    border-bottom: 1.5px solid var(--text-2);
    transform: translateY(-3px) rotate(45deg);
    transition: transform 200ms var(--ease);
}

.faq__list details[open] summary::after {
    transform: translateY(2px) rotate(-135deg);
}

.faq__list summary:hover {
    color: var(--ice);
}

.faq__list details p {
    padding-bottom: 24px;
    color: var(--text-2);
}

@media (max-width: 860px) {
    .faq {
        grid-template-columns: 1fr;
    }

    .faq .section-head {
        position: static;
        margin-bottom: 0;
    }
}

/* Closing CTA
   ========================================================================== */

.cta {
    position: relative;
    padding-block: clamp(96px, 13vw, 168px);
    overflow: hidden;
    text-align: center;
}

.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 56px 56px;
    background-position: center;
    -webkit-mask-image: radial-gradient(
        ellipse 60% 70% at 50% 100%,
        black 20%,
        transparent 100%
    );
    mask-image: radial-gradient(
        ellipse 60% 70% at 50% 100%,
        black 20%,
        transparent 100%
    );
}

.cta::after {
    content: "";
    position: absolute;
    bottom: -320px;
    left: 50%;
    width: min(1000px, 140vw);
    height: 600px;
    transform: translateX(-50%);
    background: radial-gradient(
        closest-side,
        rgb(62 155 248 / 0.25),
        transparent
    );
    pointer-events: none;
}

.cta__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta__icon {
    width: 64px;
    height: auto;
    margin-bottom: 28px;
}

.cta__title {
    max-width: 18ch;
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

/* Compare pages
   ========================================================================== */

.compare__more,
.ledger__note {
    margin-top: 24px;
    color: var(--text-3);
    font-size: 0.875rem;
    text-align: center;
}

.compare__more a,
.ledger__note a {
    color: var(--text-2);
    text-underline-offset: 3px;
}

.compare__more a:hover,
.ledger__note a:hover {
    color: var(--ice);
}

.crumbs {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    color: var(--text-3);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
}

.crumbs a {
    color: var(--text-2);
    text-decoration: none;
}

.crumbs a:hover {
    color: var(--ice);
}

.crumbs [aria-current] {
    color: var(--ice);
}

/* What each line of a build costs, side by side */
.ledger {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ledger__col {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--panel);
}

.ledger__col--us {
    border-color: rgb(124 200 255 / 0.4);
    background:
        radial-gradient(
            ellipse 90% 60% at 50% 0%,
            rgb(62 155 248 / 0.16),
            transparent
        ),
        var(--panel);
    box-shadow: 0 30px 80px -40px rgb(62 155 248 / 0.5);
}

.ledger__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.ledger__title img {
    width: 20px;
    height: auto;
}

.ledger ul {
    padding: 0;
    list-style: none;
}

.ledger li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    color: var(--text-2);
    font-size: 0.9375rem;
}

.ledger__col--us li {
    color: var(--text);
}

.ledger__tag {
    flex: none;
    padding: 2px 8px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    color: var(--text-3);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    white-space: nowrap;
}

.ledger__col--us .ledger__tag {
    border-color: rgb(124 200 255 / 0.3);
    background: var(--ice-dim);
    color: var(--ice);
}

.ledger__col--us .ledger__tag--live {
    border-color: rgb(74 222 128 / 0.3);
    background: var(--live-dim);
    color: var(--live);
}

@media (max-width: 860px) {
    .ledger {
        grid-template-columns: 1fr;
    }
}

/* Footer
   ========================================================================== */

.site-footer {
    border-top: 1px solid var(--line);
    background: var(--bg-2);
    font-size: 0.9rem;
}

.site-footer__legal {
    max-width: 52rem;
    padding-block: 32px;
    color: var(--text-3);
    font-size: 0.75rem;
    line-height: 1.6;
}

/* 404
   ========================================================================== */

.not-found {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60svh;
    padding-block: 48px;
    text-align: center;
}

.not-found__code {
    color: var(--ice);
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

/* Reduced motion
   ========================================================================== */

/* Reduced motion: nothing moves, but state changes still fade so the
   season swap, tooltips and theme preview keep their feedback */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .dot--live {
        animation: none;
    }

    .season__items,
    .season__items--summer,
    .season[data-season="summer"] .season__items--winter,
    .deploy-tip__bubble,
    .btn:active {
        transform: none;
    }

    .season__items {
        transition: opacity 200ms var(--ease);
    }

    .deploy-tip__bubble {
        transition:
            opacity 160ms var(--ease),
            visibility 160ms;
    }

    .faq__list details summary::after {
        transition: none;
    }
}
