:root {
    --navy: #101828;
    --navy-2: #1a2742;
    --ink: #141923;
    --muted: #5d6880;
    --paper: #f4f6fb;
    --white: #ffffff;
    --line: #e3e8f2;
    --orange: #ff4d1c;
    --orange-deep: #d63c10;
    --free: #e5f8ee;
    --free-ink: #0d6b3c;
    --paid: #fff1d8;
    --paid-ink: #8a4b00;
    --mixed: #eceff6;
    --shadow: 0 18px 40px rgba(16, 24, 40, 0.08);
    --display: "Bricolage Grotesque", "Avenir Next", sans-serif;
    --sans: "Public Sans", "Avenir Next", "Segoe UI", sans-serif;
    --serif: "Source Serif 4", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    font-size: 1.02rem;
    line-height: 1.5;
}
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3 {
    font-family: var(--display);
    font-weight: 680;
    letter-spacing: -0.04em;
    line-height: 0.98;
    margin: 0;
}
p { margin: 0 0 0.8rem; }
.wrap { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    background: var(--orange);
    color: white;
    padding: 0.55rem 0.8rem;
    z-index: 40;
}
.skip:focus { top: 1rem; }

.site-header {
    background: var(--navy);
    color: white;
    position: sticky;
    top: 0;
    z-index: 30;
}
.topbar {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-height: 4.6rem;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: white;
    text-decoration: none;
    flex: 0 0 auto;
}
.mark {
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 0.45rem;
    background:
        linear-gradient(var(--orange), var(--orange)) 0 0 / 38% 100% no-repeat,
        white;
    box-shadow: inset 0 0 0 2px white;
}
.brand-name {
    font-family: var(--display);
    font-size: 1.05rem;
    letter-spacing: -0.04em;
    line-height: 1;
}
.brand-name strong { font-weight: 720; }
.site-nav { display: flex; gap: 0.2rem; flex-wrap: wrap; }
.nav-link {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    padding: 0.4rem 0.55rem;
    border-radius: 999px;
    font-size: 0.92rem;
}
.nav-link:hover, .nav-link.is-active { color: white; background: rgba(255, 255, 255, 0.08); }
.nav-toggle {
    display: none;
    margin-left: auto;
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
}
.header-search { margin-left: auto; display: flex; min-width: 220px; }
.header-search input, .search-form input, .contact-form input, .contact-form textarea {
    width: 100%;
    border: 0;
    background: white;
    border-radius: 999px;
    padding: 0.72rem 1rem;
}
.header-search input { border-radius: 999px 0 0 999px; min-width: 0; }
.header-search button, .search-form button, .contact-form button {
    border: 0;
    background: var(--orange);
    color: white;
    font-weight: 680;
    cursor: pointer;
}
.header-search button { border-radius: 0 999px 999px 0; padding: 0 0.9rem; }
.header-search button:hover, .search-form button:hover, .contact-form button:hover { background: var(--orange-deep); }

.hero {
    background:
        radial-gradient(700px 280px at 90% -10%, rgba(255, 77, 28, 0.35), transparent 60%),
        linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
    color: white;
    padding: 2.2rem 0 3.4rem;
}
.hero-grid { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 2rem; align-items: end; }
.eyebrow {
    margin: 0 0 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.75rem;
    font-weight: 680;
    color: #ffb199;
}
.hero h1, .page-head h1 { font-size: clamp(2.7rem, 6vw, 5.3rem); max-width: 12ch; }
.lede { font-size: 1.15rem; max-width: 42rem; color: rgba(255, 255, 255, 0.82); }
.page-head .lede, .result-count { color: var(--muted); }
.search-form { display: flex; gap: 0.6rem; max-width: 640px; margin-top: 1.2rem; }
.search-form input { border-radius: 16px; padding: 1rem 1.1rem; box-shadow: var(--shadow); }
.search-form button { border-radius: 16px; padding: 0 1.2rem; }
.stats { display: grid; gap: 0.8rem; margin: 0; }
.stats div {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 0.9rem 1rem;
}
.stats dt { color: rgba(255, 255, 255, 0.62); font-size: 0.82rem; }
.stats dd {
    margin: 0.15rem 0 0;
    font-family: var(--display);
    font-size: 1.8rem;
    letter-spacing: -0.04em;
    color: white;
}

.band { padding: 2.6rem 0 3rem; }
.band-muted { background: #e8edf6; }
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.1rem;
}
.section-head h2, .narrow-head h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.text-link { color: var(--orange-deep); font-weight: 680; text-underline-offset: 0.18em; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.card {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 0.8rem;
    text-decoration: none;
    color: inherit;
    min-height: 92px;
}
.card:hover { border-color: #c9d3e6; transform: translateY(-1px); box-shadow: var(--shadow); }
.card-list { display: block; }
.card-kicker {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--orange-deep);
    font-weight: 680;
    margin-bottom: 0.3rem;
}
.card-name { display: block; font-weight: 680; letter-spacing: -0.03em; }
.card-meta { display: flex; gap: 0.45rem; flex-wrap: wrap; color: var(--muted); font-size: 0.86rem; margin-top: 0.25rem; }
.logo, .logo-fallback {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: cover;
    background: #e7ecf5;
    flex: 0 0 auto;
}
.logo-fallback {
    display: grid;
    place-items: center;
    font-family: var(--display);
    font-size: 1.4rem;
    color: var(--navy);
}
.sheet-logo .logo, .sheet-logo .logo-fallback { width: 92px; height: 92px; border-radius: 22px; }
.pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.12rem 0.5rem;
    font-size: 0.78rem;
    font-weight: 680;
    background: var(--mixed);
    color: var(--ink);
}
.pill.is-free { background: var(--free); color: var(--free-ink); }
.pill.is-paid { background: var(--paid); color: var(--paid-ink); }
.topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.topic {
    background: white;
    border-radius: 18px;
    padding: 1rem 1rem 0.9rem;
    border: 1px solid var(--line);
    border-top: 4px solid var(--orange);
}
.topic h3 { font-size: 1.25rem; margin-bottom: 0.55rem; }
.topic-title, .crumb, .rank-name, .more, .footer-link { text-underline-offset: 0.16em; }
.topic ul { margin: 0 0 0.7rem; padding: 0; list-style: none; }
.topic li { margin: 0.28rem 0; }
.topic li a { color: var(--ink); text-decoration: none; }
.topic li a:hover { color: var(--orange-deep); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.chip-list { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip {
    text-decoration: none;
    background: white;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.4rem 0.75rem;
    color: var(--ink);
}
.chip:hover { border-color: var(--orange); color: var(--orange-deep); }

.page-head { padding: 2.4rem 0 0.4rem; }
.page-head h1 span { color: var(--orange-deep); }
.sheet { padding: 1.6rem 0 0.4rem; }
.crumbs { color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }
.sheet-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}
.sheet-list { grid-template-columns: 1fr; }
.sheet-head h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); max-width: 16ch; }
.sheet-meta { display: flex; gap: 0.6rem; align-items: center; color: var(--muted); margin-top: 0.7rem; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    color: white;
    text-decoration: none;
    border-radius: 999px;
    padding: 0.75rem 1rem;
    font-weight: 680;
}
.btn:hover { background: var(--orange); }
.prose {
    font-family: var(--serif);
    font-size: 1.12rem;
    line-height: 1.6;
    color: #243049;
}
.prose p:last-child { margin-bottom: 0; }
.prose a { color: var(--orange-deep); }
.sheet-copy { max-width: 46rem; margin: 0.4rem 0 1.2rem; }
.lede-prose { max-width: 42rem; color: var(--ink); }
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; margin-top: 1rem; }
.shot { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; background: #e7ecf5; }
.ranks { list-style: none; margin: 0; padding: 0; }
.rank {
    display: grid;
    grid-template-columns: 4.2rem 84px 1fr;
    gap: 0.9rem;
    padding: 1.3rem 0;
    border-top: 1px solid var(--line);
}
.rank-num {
    font-family: var(--display);
    font-size: 1.8rem;
    color: var(--orange);
    letter-spacing: -0.05em;
}
.rank-name { font-family: var(--display); font-size: 1.45rem; font-weight: 680; color: var(--ink); text-decoration: none; letter-spacing: -0.04em; }
.rank-top { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; margin-bottom: 0.45rem; }
.more { display: inline-block; margin-top: 0.7rem; color: var(--orange-deep); font-family: var(--sans); font-weight: 680; font-size: 0.95rem; }
.empty { color: var(--muted); }
.pager { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-top: 1.4rem; }
.pager-num, .pager-arrow {
    display: inline-grid;
    place-items: center;
    min-width: 2.4rem;
    height: 2.4rem;
    padding: 0 0.7rem;
    border-radius: 999px;
    text-decoration: none;
    background: white;
    border: 1px solid var(--line);
    color: var(--ink);
}
.pager-num.is-current { background: var(--navy); color: white; border-color: var(--navy); }
.pager-gap { color: var(--muted); padding: 0 0.2rem; }
.prose-page, .narrow-head { width: min(820px, 100%); }
.form-wrap { width: min(640px, 100%); }
.contact-form { display: grid; gap: 0.45rem; }
.contact-form input, .contact-form textarea {
    border-radius: 14px;
    border: 1px solid var(--line);
    padding: 0.8rem 0.9rem;
}
.contact-form button { justify-self: start; border-radius: 999px; padding: 0.8rem 1.2rem; margin-top: 0.4rem; }
.notice { background: #e7f7ee; border-radius: 14px; padding: 0.8rem 1rem; }
.notice-bad { background: #ffe8e2; }
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.78); padding: 2.4rem 0 1.2rem; margin-top: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 1.4rem; }
.footer-grid h2 { color: white; font-size: 1rem; margin-bottom: 0.6rem; }
.footer-link { display: block; color: rgba(255, 255, 255, 0.78); text-decoration: none; margin: 0.3rem 0; }
.footer-link:hover, .brand-footer { color: white; }
.footer-base { margin-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 0.8rem; font-size: 0.9rem; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 2px;
}
@media (max-width: 980px) {
    .hero-grid, .split, .footer-grid, .topics, .cards { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .sheet-head { grid-template-columns: auto 1fr; }
    .btn { grid-column: 1 / -1; justify-self: start; }
    .shots { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
    .nav-toggle { display: inline-flex; }
    .site-nav { display: none; width: 100%; order: 4; padding-bottom: 0.8rem; }
    .site-nav.is-open { display: flex; flex-direction: column; }
    .topbar { flex-wrap: wrap; padding: 0.7rem 0; }
    .header-search { order: 3; flex: 1 1 100%; margin: 0; }
    .hero-grid, .split, .topics, .cards, .footer-grid { grid-template-columns: 1fr; }
    .rank { grid-template-columns: auto 64px 1fr; }
    .stats { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .card:hover { transform: none; }
}
