:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --ink: #1d1b18;
  --muted: #6b645a;
  --line: #e6dfd3;
  --accent: #9a7b4f;
  --accent-ink: #7a5f38;
  --score-standout-bg: #e2eee5;
  --score-standout-ink: #315b3b;
  --score-excellent-bg: #e8efe8;
  --score-excellent-ink: #49634e;
  --score-strong-bg: #f3ead7;
  --score-strong-ink: #86632c;
  --score-selective-bg: #f2e3df;
  --score-selective-ink: #915446;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151412;
    --surface: #1e1c19;
    --ink: #ece6dc;
    --muted: #a59d90;
    --line: #34302a;
    --accent: #c9a56f;
    --accent-ink: #d8b885;
    --score-standout-bg: #24372a;
    --score-standout-ink: #b6d7bd;
    --score-excellent-bg: #2b372c;
    --score-excellent-ink: #c0d2c1;
    --score-strong-bg: #403522;
    --score-strong-ink: #e3c98e;
    --score-selective-bg: #432b27;
    --score-selective-ink: #e5b1a2;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }

.wrap { width: 100%; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
@media (min-width: 1400px) { .wrap { padding: 0 48px; } }
.narrow { max-width: 760px; }
.section { padding-top: 56px; padding-bottom: 72px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.eyebrow a { color: inherit; text-decoration: none; }

/* Header / footer */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--ink); text-decoration: none; letter-spacing: 0.01em; white-space: nowrap; }
.site-header .brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 1.25em; height: 1.25em; flex: none; fill: var(--accent); }
.brand-mark-body { opacity: 0.6; }
.brand-mark-door { fill: var(--bg); }
.site-header a:focus-visible, .hero-actions a:focus-visible, .card-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: 15px; }
.site-footer p { margin: 0 0 6px; }
.site-footer .brand { font-size: 22px; }
.small { font-size: 13px; }

/* Home hero */
.hero { padding: 72px 0 48px; border-bottom: 1px solid var(--line); }
.hero h1 { font-size: clamp(40px, 5.2vw, 64px); margin: 0 0 20px; max-width: none; }
.hero h1 span { display: block; }
.lede { font-size: 19px; color: var(--muted); max-width: 68ch; margin: 0; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; margin-top: 26px; }
.hero-link { display: inline-flex; align-items: center; gap: 10px; padding: 10px 15px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); color: var(--accent-ink); font-size: 14px; font-weight: 500; text-decoration: none; transition: border-color .2s ease, background .2s ease; }
.hero-link:hover { border-color: var(--accent); background: var(--bg); color: var(--ink); }
.hero-link span { font-size: 17px; line-height: 1; }
.hero-secondary { color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.hero-secondary:hover { color: var(--ink); }

.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 28px; }
.section-head h2 { font-size: 34px; margin: 0; }
.section-head p { margin: 0; color: var(--muted); font-size: 15px; }

/* Cards */
/* At most three cards per row; each card is at least 320px, so narrower screens drop to two or one. */
.grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, max(320px, (100% - 56px) / 3)), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,.08); }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--line); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 22px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.card .card-title { font-size: 27px; margin: 0 0 10px; }
.card .verdict { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0 0 18px; flex: 1; }
.card-meta { display: flex; justify-content: space-between; align-items: center; margin: 0; font-size: 14px; }
.card .read { color: var(--accent-ink); font-weight: 500; }

.rating { display: inline-flex; align-items: baseline; gap: 2px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.rating b { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--ink); line-height: 1; }

/* Review */
/* One grid: header and prose share the centre column; TOC (left) and related reviews (right) stick beside them. */
.review-layout {
  display: grid; gap: 32px; padding-top: 48px; padding-bottom: 72px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "head" "toc" "prose" "related";
}
.review-head { grid-area: head; }
.review-layout > .toc { grid-area: toc; }
.review-layout > .prose { grid-area: prose; }
.review-layout > .related { grid-area: related; }
@media (min-width: 1000px) {
  .review-layout {
    grid-template-columns: 200px minmax(0, 1fr);
    grid-template-areas: "toc head" "toc prose" "toc related";
    column-gap: 56px; row-gap: 40px;
  }
  .toc { position: sticky; top: 96px; align-self: start; }
}
/* Fixed-width sidebars; the post fills whatever is left, and its text grows a little on big screens. */
@media (min-width: 1200px) {
  .review-layout {
    grid-template-columns: 220px minmax(0, 1fr) 240px;
    grid-template-areas: "toc head related" "toc prose related";
    column-gap: 64px;
  }
  .related { position: sticky; top: 96px; align-self: start; }
}
@media (min-width: 1600px) {
  .review-layout { grid-template-columns: 260px minmax(0, 1fr) 280px; column-gap: 80px; }
  .review-layout .prose, .verdict-box p { font-size: clamp(18px, 0.4vw + 11px, 20px); }
  .toc { font-size: 15px; }
}
.review-head h1 { font-size: clamp(34px, 4.4vw, 50px); margin: 0 0 24px; text-wrap: pretty; }
.verdict-box { display: flex; gap: 20px; align-items: flex-start; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; }
.verdict-box .rating b { font-size: 40px; }
.verdict-box p { margin: 0; font-size: 17px; }

.related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.related-link { display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; }
.related-name { display: block; font-family: var(--serif); font-size: 18px; font-weight: 600; line-height: 1.2; color: var(--ink); }
.related-meta { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); line-height: 1.4; }
.related-meta b { color: var(--ink); font-weight: 600; }
.related-link:hover .related-name { color: var(--accent-ink); }
.related-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.related-guides-title { margin-top: 28px; }
@media (max-width: 1199px) {
  .related { border-top: 1px solid var(--line); padding-top: 24px; }
  .related ul { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
}
.toc { font-size: 14px; }
.toc-title { font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; color: var(--muted); margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc li a { display: block; padding: 5px 0 5px 14px; color: var(--muted); text-decoration: none; line-height: 1.4; }
.toc li a:hover { color: var(--ink); }
@media (max-width: 999px) { .toc { border: 1px solid var(--line); padding: 16px 18px; background: var(--surface); } }

/* Prose */
.prose { min-width: 0; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.15em; }
.prose h2 { font-size: 34px; margin: 1.6em 0 .6em; scroll-margin-top: 88px; }
.prose h3 { font-size: 24px; margin: 1.6em 0 .5em; }
.prose li { margin-bottom: .45em; }
.prose strong { font-weight: 600; }
.prose figure { margin: 2em 0; }
.prose figure img { width: 100%; border-radius: 3px; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.prose blockquote { margin: 1.5em 0; padding: 0 0 0 20px; border-left: 2px solid var(--accent); font-family: var(--serif); font-size: 22px; font-style: italic; }
.table-wrap { overflow-x: auto; margin: 1.5em 0; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { white-space: nowrap; width: 1%; }
@media (max-width: 600px) {
  .prose td:first-child { white-space: normal; width: 34%; }
  .prose th, .prose td { padding: 10px 12px; }
}

/* /admin/ stats */
.stats .prose td:first-child { white-space: normal; width: auto; word-break: break-all; }
.stats .prose th:not(:first-child), .stats .prose td:not(:first-child) { text-align: right; white-space: nowrap; }
.stats-ranges { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.stats-ranges [aria-current] { font-weight: 600; text-decoration: none; color: var(--ink); }

.page { padding-top: 56px; padding-bottom: 72px; }
.page h1 { font-size: clamp(36px, 5vw, 52px); margin: 0 0 24px; }
.more { border-top: 1px solid var(--line); }
.home-comparison { padding-top: 24px; padding-bottom: 48px; }
.leaderboard-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 18px; container-type: inline-size; }
/* One line at every width: the title is ~14.5em wide in Cormorant Garamond 600, so size it to the container (15.5 leaves a margin for kerning). */
.leaderboard-heading h1 { margin: 0; font-size: min(46px, calc((100vw - 32px) / 15.5)); font-size: min(46px, calc(100cqi / 15.5)); line-height: 1.1; white-space: nowrap; }
.leaderboard-heading .eyebrow { margin: 0 0 4px; }
.leaderboard-summary { margin: 0; color: var(--muted); font-size: 14px; }
.comparison-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.comparison-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.comparison-table th, .comparison-table td { padding: 12px 16px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.comparison-table thead th { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.comparison-table tbody tr { cursor: pointer; transition: background .15s ease; }
.comparison-table tbody tr:hover { background: var(--bg); }
.comparison-table .ranking-position { width: 76px; color: var(--muted); font-family: var(--serif); font-size: 22px; font-weight: 600; }
.comparison-table tbody th.hotel-name { width: 48%; font-size: 15px; font-weight: 500; }
.comparison-table tbody th a { color: var(--ink); text-decoration: none; }
.comparison-table tbody th a:hover { color: var(--accent-ink); text-decoration: underline; }
.comparison-table tbody th.hotel-name > span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 400; }
.comparison-table .brand-cell { color: var(--muted); font-size: 13px; white-space: nowrap; }
.brand-logo { display: inline-grid; width: 34px; height: 34px; margin-right: 10px; place-items: center; vertical-align: middle; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); overflow: hidden; }
.brand-logo img { width: 24px; height: 24px; object-fit: contain; }
.score-cell { width: 110px; }
.sort-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: var(--accent-ink); font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.sort-toggle:hover { color: var(--ink); }
.sort-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.sort-toggle svg { transition: transform .2s ease; }
[aria-sort="ascending"] .sort-toggle svg { transform: rotate(180deg); }
.score-badge { display: inline-flex; min-width: 66px; align-items: baseline; justify-content: center; gap: 3px; padding: 7px 10px; border-radius: 4px; white-space: nowrap; }
.score-badge strong { font-family: var(--serif); font-size: 20px; font-weight: 600; line-height: 1; }
.score-badge > span { font-size: 10px; }
.score-standout { background: var(--score-standout-bg); color: var(--score-standout-ink); }
.score-excellent { background: var(--score-excellent-bg); color: var(--score-excellent-ink); }
.score-strong { background: var(--score-strong-bg); color: var(--score-strong-ink); }
.score-selective { background: var(--score-selective-bg); color: var(--score-selective-ink); }
.comparison-table tr:last-child th, .comparison-table tr:last-child td { border-bottom: 0; }
.comparison-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.leaderboard-frame { position: relative; scroll-margin-top: 88px; }
.leaderboard-frame.is-collapsed .comparison-table tbody tr:nth-child(n+8) { display: none; }
.leaderboard-expand { display: flex; width: 100%; justify-content: center; margin-top: 12px; padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.leaderboard-expand > span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--accent-ink); font-size: 13px; font-weight: 500; transition: border-color .2s ease, color .2s ease; }
.leaderboard-expand:hover > span { border-color: var(--accent); color: var(--ink); }
.leaderboard-expand:focus-visible { outline: none; }
.leaderboard-expand:focus-visible > span { outline: 2px solid var(--accent); outline-offset: 3px; }
.leaderboard-expand svg { transition: transform .2s ease; }
.leaderboard-expand[aria-expanded="true"] svg { transform: rotate(180deg); }
/* Collapsed: the button becomes a fade over the last visible rows; the whole fade is clickable. */
.is-collapsed .leaderboard-expand { position: absolute; z-index: 2; left: 1px; right: 1px; bottom: 1px; width: auto; height: 128px; margin: 0; align-items: flex-end; padding-bottom: 18px; border-radius: 0 0 3px 3px; background: linear-gradient(to bottom, transparent, var(--surface) 72%); }

@media (max-width: 480px) {
  .header-inner { height: auto; min-height: 64px; flex-wrap: wrap; gap: 0 12px; padding-top: 8px; padding-bottom: 8px; }
  .brand { font-size: clamp(18px, 5.4vw, 21px); }
  .site-header .brand { gap: 7px; }
  .hero { padding-top: 52px; }
  .hero h1 { font-size: clamp(38px, 10vw, 48px); }
  .lede { font-size: 17px; }
  .home-comparison { padding-top: 24px; padding-bottom: 24px; }
  .leaderboard-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
}
@media (max-width: 600px) {
  .comparison-table { min-width: 0; }
  .comparison-table th, .comparison-table td { padding: 12px 8px; }
  .comparison-table th:first-child, .comparison-table td:first-child { padding-left: 14px; }
  .comparison-table th:last-child, .comparison-table td:last-child { padding-right: 14px; }
  .comparison-table .ranking-position { width: 40px; font-size: 18px; }
  .comparison-table tbody th.hotel-name { width: auto; }
  .comparison-table thead th:nth-child(3), .comparison-table .brand-cell { display: none; }
  .score-cell { width: auto; }
  .score-badge { min-width: 0; padding: 6px 8px; }
  .score-badge strong { font-size: 18px; }
}
