/* Coasterpass – public coaster directory. Style after ~/projects/_landingkit/kit.css (calm, big type, dark hero band,
   rounded cards). No external fonts/CDNs. Colours: BRIEFING.md. */

:root {
    --brand: #E8430C;
    --brand-deep: #7A1F06;
    --accent: #FFC93C;
    --night: #14121F;
    --night-soft: #1f1c2e;
    --night-text: #f6f3ef;
    --night-muted: #b3adbd;
    --paper: #FFF8F2;
    --card: #ffffff;
    --ink: #1d1a24;
    --ink-soft: #6a6472;
    --line: rgba(20, 18, 31, 0.10);
    --cat-coaster: #E8430C;
    --cat-kiddie: #3BA9E0;
    --cat-alpine: #4CAF50;
    --link: #b3330a;
    --shadow: 0 1px 2px rgba(20, 18, 31, .06), 0 8px 24px rgba(20, 18, 31, .06);
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", system-ui, sans-serif;
    --maxw: 1120px;
    --pad: clamp(16px, 4vw, 36px);
    --r: 16px;
}
@media (prefers-color-scheme: dark) {
    :root {
        --paper: #0f0d18;
        --card: #1b1828;
        --ink: #f2eef6;
        --ink-soft: #a9a2b5;
        --line: rgba(255, 255, 255, 0.10);
        --link: #ff8a5c;
        --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, video { max-width: 100%; display: block; }
a { color: var(--link); text-underline-offset: 2px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
p { margin: 0 0 .6em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--accent); color: var(--night); padding: 10px 16px; border-radius: 0 0 10px 0; }
.skip:focus { left: 0; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.muted { color: var(--ink-soft); font-weight: 400; }

/* ---- top bar ---- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(20, 18, 31, .92); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid rgba(255,255,255,.07); }
.topbar { display: flex; align-items: center; gap: 18px; min-height: 56px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: #fff; text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.brand .logo { width: 30px; height: 30px; color: #fff; }
.links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.links a { color: rgba(255,255,255,.8); text-decoration: none; font-size: 14px; }
.links a:hover, .links a[aria-current="page"] { color: #fff; }
.links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--brand); }
.links .nav-cta { color: var(--accent); font-weight: 600; }
.langs { display: flex; gap: 4px; }
.flag { display: inline-flex; padding: 3px; border-radius: 5px; border: 1px solid transparent; opacity: .62; }
.flag svg { width: 20px; height: 13px; border-radius: 2px; }
.flag:hover { opacity: 1; }
.flag.is-active { opacity: 1; border-color: rgba(255,255,255,.35); }
.navt { position: absolute; opacity: 0; pointer-events: none; }
.navt-btn { display: none; color: #fff; cursor: pointer; padding: 6px; margin-left: auto; }
.navt-btn svg { width: 22px; height: 22px; }
@media (max-width: 860px) {
    .navt-btn { display: block; }
    .langs { order: 2; }
    .brand { order: 1; }
    .navt-btn { order: 3; margin-left: 0; }
    .topbar { gap: 10px; }
    .langs { margin-left: auto; }
    .links { order: 4; display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 2px; padding: 4px 0 14px; margin-left: 0; }
    .links a { font-size: 16px; padding: 8px 0; width: 100%; }
    .navt:checked ~ .links { display: flex; }
}
@media (max-width: 380px) { .brand span { display: none; } .flag svg { width: 18px; height: 12px; } }

/* ---- hero ---- */
.hero { position: relative; overflow: hidden; background: var(--night); color: var(--night-text); padding: clamp(28px, 6vw, 64px) 0 clamp(30px, 6vw, 60px); }
.hero .glow { position: absolute; inset: -40% -10% auto auto; width: 70vw; max-width: 760px; aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(232, 67, 12, .45), rgba(255, 201, 60, .12) 60%, transparent); filter: blur(30px); pointer-events: none; }
.hero .wrap { position: relative; }
.hero h1 { font-size: clamp(32px, 6.2vw, 64px); letter-spacing: -0.035em; max-width: 20ch; overflow-wrap: anywhere; }
.hero .sub { font-size: clamp(17px, 2vw, 21px); color: var(--night-muted); max-width: 62ch; margin-top: 14px; }
.hero a { color: #fff; }
.hero-where { margin-top: 12px; font-size: 17px; color: var(--night-muted); }
.hero-counts { color: var(--night-muted); }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.crumbs { font-size: 13px; color: var(--night-muted); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--night-muted); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs .sep { opacity: .5; }

/* ---- big category badge ---- */
.badge { display: flex; gap: 16px; align-items: center; margin-top: 22px; padding: 16px 20px; border-radius: 20px; max-width: 640px;
    background: rgba(255,255,255,.06); border: 2px solid var(--cat-coaster); }
.badge-icon { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--cat-coaster); color: #fff; }
.badge-icon svg { width: 30px; height: 30px; }
.badge-text { display: flex; flex-direction: column; gap: 2px; }
.badge-text strong { font-size: clamp(20px, 3vw, 28px); letter-spacing: -0.02em; color: #fff; }
.badge-text span { color: var(--night-muted); font-size: 15px; }
.badge-text .badge-src { font-size: 13px; opacity: .85; }
.badge-kiddie { border-color: var(--cat-kiddie); } .badge-kiddie .badge-icon { background: var(--cat-kiddie); }
.badge-alpine { border-color: var(--cat-alpine); } .badge-alpine .badge-icon { background: var(--cat-alpine); }

/* ---- chips ---- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; line-height: 1; padding: 5px 9px; border-radius: 99px; white-space: nowrap;
    background: rgba(20,18,31,.06); color: var(--ink-soft); }
.chip svg { width: 12px; height: 12px; }
.cat-coaster { background: color-mix(in srgb, var(--cat-coaster) 14%, transparent); color: #b3330a; }
.cat-kiddie { background: color-mix(in srgb, var(--cat-kiddie) 16%, transparent); color: #19729f; }
.cat-alpine { background: color-mix(in srgb, var(--cat-alpine) 16%, transparent); color: #2e7d32; }
@media (prefers-color-scheme: dark) { .cat-coaster { color: #ff8a5c; } .cat-kiddie { color: #7cc8ef; } .cat-alpine { color: #85d389; } .chip { background: rgba(255,255,255,.08); } }
.st-construction, .st-announced { background: color-mix(in srgb, var(--accent) 30%, transparent); color: #6b4c00; }
.st-sbno { background: rgba(120,120,120,.18); }
.st-closed, .st-removed { background: rgba(120,120,120,.18); text-decoration: line-through; }
.hero .chip { background: rgba(255,255,255,.12); color: #fff; }
.hero .st-construction, .hero .st-announced { background: var(--accent); color: var(--night); }
.chip.seal { background: var(--accent); color: var(--night); }
.chip.seal svg { width: 14px; height: 14px; color: var(--brand-deep); }
.seal-mini { display: inline-flex; vertical-align: -2px; margin-left: 5px; color: var(--brand); }
.seal-mini svg { width: 16px; height: 16px; }

/* ---- main ---- */
.main { padding-top: clamp(24px, 4vw, 40px); padding-bottom: 56px; }
.block { margin: 0 0 clamp(30px, 5vw, 48px); }
.block h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 16px; }
.block.small h2 { font-size: 18px; margin-bottom: 8px; }
.note { font-size: 14px; color: var(--ink-soft); }
.count { color: var(--ink-soft); font-size: 14px; margin: 18px 0 12px; }
.empty { padding: 28px; text-align: center; background: var(--card); border-radius: var(--r); color: var(--ink-soft); }
.prose p { max-width: 70ch; }

/* ---- filters ---- */
.filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; align-items: end; background: var(--card);
    padding: 16px; border-radius: var(--r); box-shadow: var(--shadow); }
.fld { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-soft); min-width: 0; }
.fld-q { grid-column: 1 / -1; }
.fld input, .fld select { font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; width: 100%; min-width: 0; }
.fld-btns { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.reset { font-size: 14px; }
.active-filter { margin: 14px 0 0; font-size: 14px; }
.active-filter .x { text-decoration: none; font-weight: 700; margin-left: 4px; }
.search-one { display: flex; gap: 8px; margin: 16px 0; max-width: 520px; }
.search-one input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 600; font-size: 15px; border: 0; cursor: pointer; text-decoration: none;
    background: var(--brand); color: #fff; padding: 11px 18px; border-radius: 99px; transition: transform .15s, background .15s; }
.btn:hover { background: #d03a08; transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }
.btn-ghost { background: transparent; color: var(--link); border: 1.5px solid currentColor; }
.btn-ghost:hover { background: color-mix(in srgb, var(--brand) 8%, transparent); }
.more { font-weight: 600; }

/* ---- cards (coasters) ---- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.card.is-hl { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.card-link { display: flex; flex-direction: column; color: inherit; text-decoration: none; height: 100%; }
.card-link:hover .card-title { color: var(--link); }
.thumb { display: block; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #2a2540, var(--night)); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .ph { display: grid; place-items: center; height: 100%; color: rgba(255, 201, 60, .55); }
.thumb .ph svg { width: 42%; }
.thumb .ph-coaster { background: linear-gradient(135deg, var(--cat-coaster), #7A1F06); color: rgba(255,255,255,.85); }
.thumb .ph-kiddie { background: linear-gradient(135deg, var(--cat-kiddie), #1d5f82); color: rgba(255,255,255,.85); }
.thumb .ph-alpine { background: linear-gradient(135deg, var(--cat-alpine), #2b6a2e); color: rgba(255,255,255,.85); }
.thumb.ph-hero { aspect-ratio: auto; height: 180px; border-radius: 18px; margin: 18px 0 4px; }
.thumb.ph-hero .ph svg { width: auto; height: 60%; }
.gallery figcaption a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; min-width: 0; }
.card-title { font-weight: 700; font-size: 17px; line-height: 1.25; overflow-wrap: anywhere; }
.card-where { font-size: 14px; color: var(--ink-soft); overflow-wrap: anywhere; }
.card-facts { font-size: 13px; color: var(--ink-soft); }
.countdown { display: inline-block; font-weight: 700; color: var(--brand-deep); background: var(--accent); border-radius: 99px; padding: 4px 10px; font-size: 13px; }
p.countdown { font-size: 16px; padding: 8px 14px; margin-bottom: 24px; }
@media (max-width: 560px) {
    .cards { grid-template-columns: 1fr; gap: 10px; }
    .card-link { flex-direction: row; }
    .thumb { flex: none; width: 108px; aspect-ratio: auto; min-height: 96px; }
    .card-body { padding: 10px 12px; }
    .card-title { font-size: 16px; }
}

/* ---- park rows ---- */
.prows { list-style: none; margin: 0; padding: 0; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.prow a { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 13px 16px; color: inherit; text-decoration: none; border-top: 1px solid var(--line); }
.prow:first-child a { border-top: 0; }
.prow a:hover { background: color-mix(in srgb, var(--brand) 5%, transparent); }
.prow-name { font-weight: 650; overflow-wrap: anywhere; }
.prow-where { grid-column: 1; font-size: 14px; color: var(--ink-soft); }
.prow-count { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 14px; color: var(--ink-soft); text-align: right; }
@media (max-width: 560px) { .prow a { grid-template-columns: 1fr; } .prow-count { grid-column: 1; grid-row: auto; text-align: left; } }

/* ---- tables ---- */
.table-wrap { overflow-x: auto; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td { padding: 11px 14px; text-align: left; border-top: 1px solid var(--line); }
.tbl thead th { border-top: 0; font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---- detail ---- */
.cols { display: grid; grid-template-columns: 1fr; gap: 0 40px; }
@media (min-width: 900px) { .cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.facts { margin: 0; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.facts div { display: grid; grid-template-columns: minmax(110px, 42%) 1fr; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); }
.facts div:first-child { border-top: 0; }
.facts dt { color: var(--ink-soft); font-size: 14px; }
.facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.gallery figure { margin: 0; min-width: 0; }
.gallery .ph-main { grid-column: 1 / -1; }
.gallery img { width: 100%; height: auto; border-radius: 12px; background: var(--night); object-fit: cover; }
.gallery .ph-main img { max-height: 620px; }
.gallery .ph-sm img { aspect-ratio: 4 / 3; }
.gallery figcaption { font-size: 12px; color: var(--ink-soft); margin-top: 5px; overflow-wrap: anywhere; }
.videos { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-direction: column; gap: 12px; }
.videos li { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.videos video { width: 100%; max-width: 720px; border-radius: 12px; background: #000; }
.park-logo { max-height: 80px; width: auto; margin-bottom: 14px; }

/* ---- CTA ---- */
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 clamp(30px, 5vw, 48px);
    padding: clamp(20px, 4vw, 32px); border-radius: 22px; background: var(--night); color: var(--night-text); position: relative; overflow: hidden; }
.cta h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 6px; }
.cta p { color: var(--night-muted); margin: 0; max-width: 52ch; }
.cta .btn { background: var(--accent); color: var(--night); }
.cta .btn:hover { background: #ffd666; }

/* ---- records ---- */
.records { display: grid; grid-template-columns: 1fr; gap: 0 32px; }
@media (min-width: 900px) { .records { grid-template-columns: 1fr 1fr; } }
.rank { list-style: none; margin: 0; padding: 0; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.rank li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); }
.rank li:first-child { border-top: 0; }
.rank .rk { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: rgba(20,18,31,.06); }
.rank li:nth-child(-n+3) .rk { background: var(--accent); color: var(--night); }
.rank a { flex: 1; min-width: 0; display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.rank a strong { overflow-wrap: anywhere; }
.rank a:hover strong { color: var(--link); }
.rank a .muted { font-size: 13px; }
.rank .val { flex: none; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---- pager ---- */
.pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 24px; font-size: 15px; flex-wrap: wrap; }
.pager a, .pager .off { padding: 9px 14px; border-radius: 99px; background: var(--card); box-shadow: var(--shadow); text-decoration: none; }
.pager .off { opacity: .45; }
.pager .pg { color: var(--ink-soft); }
.notice { max-width: 640px; }

/* ---- footer ---- */
.foot { background: var(--night); color: var(--night-muted); padding: 44px 0 36px; font-size: 14px; }
.foot a { color: var(--night-text); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-bottom: 18px; }
.foot-tag { margin: 0; }
.foot-links, .foot-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 14px 0; }
.foot-links a[aria-current] { color: var(--accent); }
.foot-data { max-width: 80ch; }
.foot-copy { margin-top: 18px; opacity: .7; font-size: 13px; }
