/* The Entry Fee: The Starred Bill's layout, rebranded. Slate-navy band, warm stone page, terracotta accent,
   and prices printed on a cream admission ticket (the paper stays cream in dark mode). */
:root {
  --bg: #F5F2EA;
  --surface: #FFFFFF;
  --ink: #1B2430;
  --muted: #5D6673;
  --line: #DDD6C8;
  --accent: #A54A27;
  --accent-soft: #F3E1D7;
  --band: #182A3A;
  --band-ink: #EEF2F5;
  --band-muted: #A9B8C6;
  --gold: #D9A441;
  --danger: #A33A2E;
  --danger-soft: #F7E3DF;
  --font-display: "Gloock", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-num: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --radius: 10px;
  --tk-paper: #F6EFDF; --tk-ink: #2A2418; --tk-muted: #6E6452; --tk-dots: #B3A78E; --tk-rule: #CDBF9F; --tk-band: #B5532E;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F151C; --surface: #16202A; --ink: #E6EAEE; --muted: #9AA6B2; --line: #26323E;
    --accent: #E8946C; --accent-soft: #3A231A; --band: #0B1620; --band-ink: #E6EDF2; --band-muted: #93A5B5;
    --gold: #E6B85C; --danger: #F08C7E; --danger-soft: #3A1E1A; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F151C; --surface: #16202A; --ink: #E6EAEE; --muted: #9AA6B2; --line: #26323E;
  --accent: #E8946C; --accent-soft: #3A231A; --band: #0B1620; --band-ink: #E6EDF2; --band-muted: #93A5B5;
  --gold: #E6B85C; --danger: #F08C7E; --danger-soft: #3A1E1A; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.55; }
[hidden] { display: none !important; }
img { max-width: 100%; }
a { color: var(--accent); }
.wrap { max-width: 1120px; margin-inline: auto; padding-inline: 20px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; text-wrap: balance; margin: 0; line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin-bottom: 18px; }
h3 { font-size: 1.2rem; margin-bottom: 6px; }
p { margin: 0; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.eyebrow { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--gold); margin-bottom: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 20; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; padding-top: env(safe-area-inset-top, 0px); background: var(--band); color: var(--band-ink); border-bottom: 1px solid color-mix(in srgb, var(--band-ink) 12%, transparent); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; padding-block: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-family: var(--font-display); font-size: 1.35rem; }
.brand svg { width: 32px; height: 22px; flex: none; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--band-muted); text-decoration: none; font-size: .9rem; font-weight: 500; padding: 6px 10px; border-radius: 6px; }
.nav a:hover { color: var(--band-ink); background: color-mix(in srgb, var(--band-ink) 10%, transparent); }
.crumbs { font-size: .85rem; color: var(--muted); padding-block: 10px; }
.crumbs a { color: var(--muted); }

/* Hero */
.hero { background: var(--band); color: var(--band-ink); padding-block: 44px 52px; }
.crumbs + main .hero { margin-top: 0; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p { color: var(--band-muted); margin-top: 16px; max-width: 56ch; }
.hero a { color: var(--gold); }
.hero .unesco-name { font-size: .9rem; }
.whs { font-size: .95rem; }
.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: color-mix(in srgb, var(--band-ink) 16%, transparent); border-radius: var(--radius); overflow: hidden; }
.figure { background: var(--band); padding: 16px 14px; min-width: 0; }
.figure .label { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--band-muted); }
.figure .value { display: block; font-size: clamp(1.1rem, 1vw + .6rem, 1.5rem); margin-top: 4px; white-space: nowrap; }

main > section { padding-block: 48px; }
main > section + section { border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head h2 { margin-bottom: 0; }
.section-head p { color: var(--muted); max-width: 60ch; }

/* Search */
.search { position: relative; margin-top: 24px; max-width: 520px; }
.search svg { position: absolute; left: 15px; top: 24px; transform: translateY(-50%); width: 20px; height: 20px; color: var(--accent); pointer-events: none; }
.search input { width: 100%; padding: 13px 14px 13px 46px; border: 2px solid color-mix(in srgb, var(--accent) 55%, transparent); border-radius: var(--radius); background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem; }
.search input::placeholder { color: var(--muted); opacity: 1; }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.results { list-style: none; margin: 6px 0 0; padding: 6px; position: absolute; left: 0; right: 0; z-index: 5; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(0, 0, 0, .18); max-height: 360px; overflow: auto; }
.results a { display: block; padding: 8px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; }
.results a:hover, .results a.active { background: var(--accent-soft); }
.results small { display: block; color: var(--muted); font-size: .8rem; }

/* Attraction cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.card { display: grid; gap: 2px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; border-left: 4px solid var(--accent); }
.card:hover { border-color: var(--accent); }
.card-name { font-family: var(--font-display); font-size: 1.25rem; }
.card-place, .card-conv { font-size: .85rem; color: var(--muted); }
.card-price { font-size: 1.3rem; margin-top: 6px; }

/* The admission ticket */
.ticket { position: relative; background: var(--tk-paper); color: var(--tk-ink); border-radius: 12px; padding: 0 0 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
/* The punched notches either side of the tear line, cut in the hero's colour. */
.ticket::before, .ticket::after { content: ""; position: absolute; top: 80px; width: 24px; height: 24px; border-radius: 50%; background: var(--band); }
.ticket::before { left: -12px; }
.ticket::after { right: -12px; }
.tk-head { display: grid; gap: 2px; padding: 16px 22px 14px; height: 92px; border-bottom: 2px dashed var(--tk-rule); align-content: center; }
.tk-admit { font-family: var(--font-num); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--tk-band); }
.tk-name { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.1; }
.tk-sub { font-size: .78rem; color: var(--tk-muted); }
.tk-rows { list-style: none; margin: 0; padding: 12px 22px 4px; display: grid; gap: 10px; }
.tk-rows li { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 8px; }
.tk-label { font-size: .92rem; font-weight: 600; max-width: 30ch; }
.tk-note { display: block; font-weight: 400; font-size: .78rem; color: var(--tk-muted); line-height: 1.35; }
.tk-dots { border-bottom: 2px dotted var(--tk-dots); transform: translateY(-4px); min-width: 12px; }
.tk-price { font-size: 1.05rem; font-weight: 500; }
.tk-conv, .tk-foot { padding: 8px 22px 0; font-size: .78rem; color: var(--tk-muted); }
.tk-foot a { color: var(--tk-band); }

/* Facts and FAQ */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-bottom: 22px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.fact p { color: var(--muted); }
.official { font-weight: 600; }
.facts-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 0 0 18px; }
.facts-list div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.facts-list dt { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts-list dd { margin: 2px 0 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin-top: 8px; color: var(--muted); max-width: 70ch; }

/* Tables and lists */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.sites { width: 100%; border-collapse: collapse; font-size: .93rem; }
.sites th, .sites td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.sites th { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.sites tr:last-child td { border-bottom: 0; }
.tag { display: inline-block; font-size: .72rem; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.tag.danger { background: var(--danger-soft); color: var(--danger); }
.region { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 10px; }
.region summary { cursor: pointer; padding: 14px 16px; font-family: var(--font-display); font-size: 1.2rem; }
.region summary .muted { font-family: var(--font-body); font-size: .85rem; margin-left: 6px; }
.country-list { list-style: none; margin: 0; padding: 4px 16px 16px; columns: 3 220px; column-gap: 24px; }
.country-list li { padding: 4px 0; break-inside: avoid; }
.links { color: var(--muted); }

/* Info pages */
.prose { max-width: 70ch; display: grid; gap: 14px; }
.prose h2 { margin: 18px 0 0; }

.site-footer { border-top: 1px solid var(--line); padding-block: 32px 48px; font-size: .88rem; color: var(--muted); }
.site-footer .wrap { display: grid; gap: 10px; }
.site-footer a { color: var(--muted); }

.attraction .hero-grid { align-items: center; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 720px) {
  .wrap { padding-inline: 16px; }
  .hero { padding-block: 32px 36px; }
  .figure { padding: 12px 10px; }
  .figure .label { font-size: .64rem; letter-spacing: .06em; }
  .nav a { padding: 6px 8px; }
  .sites th:nth-child(2), .sites td:nth-child(2) { display: none; }
  .tk-rows li { grid-template-columns: 1fr auto; }
  .tk-dots { display: none; }
}
