:root {
    color-scheme: light dark;
    --paper: #f5f2e9;
    --surface: #fcfbf7;
    --ink: #263b32;
    --muted: #69736a;
    --line: #d9dcd0;
    --accent: #966532;
    --secondary: #64745f;
    --badge: #e4e8dc;
    --control-border: #c9cfc1;
    --hover: #eeeee5;
}
@media (prefers-color-scheme: dark) {
    :root {
        --paper: #171d19;
        --surface: #202922;
        --ink: #e5e9df;
        --muted: #acb7a9;
        --line: #39443a;
        --accent: #deb17b;
        --secondary: #b4c4a7;
        --badge: #344231;
        --control-border: #54634f;
        --hover: #222c24;
    }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; font-size: 15px; line-height: 1.6; }
a { color: inherit; }
button, input, select { font: inherit; }
button, a, input, select { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.site-header, main, .site-footer { max-width: 1240px; margin: auto; padding-left: 40px; padding-right: 40px; }
.site-header { height: 106px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; text-decoration: none; font-weight: 700; letter-spacing: 2px; font-size: 17px; }
.brand-icon { display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; width: 38px; height: 38px; margin-right: 12px; font: italic 25px Georgia, serif; }
.brand-dot { color: var(--accent); }
.header-count { font-size: 13px; color: var(--muted); white-space: nowrap; }
.intro { padding: 68px 0 0; max-width: 850px; }
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 2px; color: var(--accent); }
h1 { font: normal clamp(38px, 5vw, 64px)/1.12 Georgia, serif; letter-spacing: -2px; margin: 20px 0; }
h1 em { font-weight: normal; color: var(--secondary); }
.section-heading { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 24px; }
.section-heading h2 { font: normal 28px Georgia, serif; margin: 0; }
.section-heading h2 span { display: inline-block; font: 12px Arial, sans-serif; background: var(--badge); border-radius: 20px; padding: 6px 10px; vertical-align: middle; margin-left: 8px; }
.section-heading p { font-size: 12px; color: var(--muted); }
.tools { display: flex; gap: 16px; margin-top: 24px; }
.tools label { display: block; font-size: 11px; font-weight: 700; margin-bottom: 6px; color: var(--muted); }
.search-field { flex: 1; }
.tools input, .tools select { width: 100%; border: 1px solid var(--control-border); border-radius: 4px; background: var(--surface); color: var(--ink); height: 48px; padding: 0 15px; }
.tools input::placeholder { color: var(--muted); opacity: 1; }
.tools select { min-width: 190px; }
.table-scroll { overflow-x: auto; margin-top: 20px; }
.whisky-table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 13px; }
.whisky-table th, .whisky-table td { border: 1px solid var(--control-border); padding: 12px 14px; text-align: left; vertical-align: top; }
.whisky-table thead th { background: var(--badge); padding: 0; vertical-align: middle; }
.sort-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; border: 0; padding: 13px 14px; background: transparent; color: var(--ink); font-weight: 600; text-align: left; cursor: pointer; white-space: nowrap; }
.sort-header:hover { background: var(--hover); }
.sort-header:focus-visible { outline-offset: -3px; }
.sort-header span { color: var(--accent); }
.whisky-table tbody th { min-width: 240px; font-weight: normal; }
.whisky-table td { min-width: 80px; }
.whisky-table tbody tr:hover { background: var(--hover); }
.whisky-name { font: normal 19px/1.3 Georgia, serif; }
.whisky-table a { color: var(--accent); white-space: nowrap; }
.missing-value { color: var(--muted); }
h3 { font: normal 23px/1.3 Georgia, serif; margin: 0; }
.description { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.empty-state { text-align: center; padding: 48px; }
.empty-state button { background: var(--ink); color: var(--paper); border: 0; border-radius: 4px; padding: 10px 20px; cursor: pointer; }
.site-footer { margin-top: 70px; padding-top: 24px; padding-bottom: 30px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.skip-link { position: absolute; top: -100px; left: 20px; background: var(--ink); color: var(--paper); padding: 12px; z-index: 2; }
.skip-link:focus { top: 10px; }
@media (max-width: 600px) {
    .site-header, main, .site-footer { padding-left: 22px; padding-right: 22px; }
    .site-header { height: 80px; }
    .intro { padding: 42px 0 0; }
    .tools { flex-direction: column; }
    .section-heading p { display: none; }
    .site-footer { gap: 20px; }
    h1 { letter-spacing: -1px; }
}

.rating-stars { display: inline-flex; gap: 3px; white-space: nowrap; font-size: 14px; }
.rating-star { position: relative; display: inline-block; color: var(--control-border); }
.rating-star-fill { position: absolute; left: 0; top: 0; height: 100%; overflow: hidden; color: var(--accent); }

