/* Perth Wakes. A quiet guide: masthead, filters beside the list on wide screens, then each venue
   as its own bounded card with one fixed anatomy (name, facts, food and drink, prices, links). */
:root {
  --bg: #F2F3EF;          /* pale limestone */
  --surface: #FFFFFF;
  --tint: #F7F6F1;        /* price panel, inputs */
  --ink: #1D2A2D;         /* Swan River ink */
  --muted: #56646A;
  --line: #DFE3DF;
  --line-strong: #C7CFCB;
  --accent: #3D6A59;      /* gum leaf */
  --accent-deep: #2F5547;
  --accent-soft: #E3ECE7;
  --on-accent: #FFFFFF;
  --warm: #8C5B17;        /* banksia */
  --warm-soft: #F5ECDC;
  --focus: #2F7A62;
  --shadow: 0 1px 2px rgba(29, 42, 45, 0.05), 0 3px 8px -2px rgba(29, 42, 45, 0.07);
  --display: "Spectral", Georgia, "Times New Roman", serif;
  --body: "Source Sans 3", "Source Sans Pro", -apple-system, "Segoe UI", system-ui, sans-serif;
  --r-card: 18px; --r-ctl: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111718; --surface: #182022; --tint: #1E2729; --ink: #E6ECEA; --muted: #A3B0AD;
    --line: #2A3537; --line-strong: #3A4749; --accent: #8FBFAB; --accent-deep: #A8D0BF; --accent-soft: #1F332C;
    --on-accent: #0F1E19; --warm: #E2B06C; --warm-soft: #382A18; --focus: #8FBFAB;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 3px 8px -2px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111718; --surface: #182022; --tint: #1E2729; --ink: #E6ECEA; --muted: #A3B0AD;
  --line: #2A3537; --line-strong: #3A4749; --accent: #8FBFAB; --accent-deep: #A8D0BF; --accent-soft: #1F332C;
  --on-accent: #0F1E19; --warm: #E2B06C; --warm-soft: #382A18; --focus: #8FBFAB;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 3px 8px -2px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.6; font-variant-numeric: lining-nums;
  padding: 0 16px 48px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--accent-soft); color: var(--ink); }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; text-wrap: balance; margin: 0; letter-spacing: -0.005em; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow); z-index: 10; }
.skip:focus { top: 12px; }
.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.page { max-width: 48rem; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); }
.page > *, .layout > *, .list > *, .venue > * { min-width: 0; }

/* Masthead + hero */
.mast { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; padding: 22px 0 16px; border-bottom: 1px solid var(--line); }
.brand { font-family: var(--display); font-weight: 600; font-size: 1.3rem; letter-spacing: 0.01em; color: var(--ink); text-decoration: none; }
a.brand:hover { color: var(--accent); }
.mast small { color: var(--muted); font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.hero { display: grid; gap: 16px; padding: 48px 0 32px; }
.hero h1 { font-size: clamp(2.5rem, 1.7rem + 3.4vw, 4rem); line-height: 1.04; letter-spacing: -0.015em; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .h1-sub { margin: -6px 0 0; font-family: var(--display); font-style: italic; font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.7rem); line-height: 1.25; color: var(--muted); }
.hero p { max-width: 36rem; margin: 0; font-size: 1.125rem; line-height: 1.6; }
.stats { display: flex; flex-wrap: wrap; gap: 6px 0; color: var(--muted); font-size: 0.9375rem; font-variant-numeric: tabular-nums; margin: 4px 0 0; padding: 0; list-style: none; }
.stats { column-gap: 18px; }
.stats b { color: var(--ink); font-weight: 600; }

/* Browse by area and guides */
.browse { display: grid; gap: 18px; padding: 0 0 36px; }
.browse h2, .site-foot h2, .eyebrow { font-family: var(--body); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; margin: 0 0 8px; }
.pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); text-decoration: none;
  font-size: 0.9375rem; font-weight: 600; line-height: 1.3; transition: border-color .15s ease-out, background-color .15s ease-out;
}
.pills a:hover { border-color: var(--accent); background: var(--accent-soft); }
.pills .n { color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }

/* Filters */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; display: grid; gap: 18px; box-shadow: var(--shadow); }
.filters h2 { font-size: 1.25rem; }
.frow { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span, fieldset legend { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; padding: 0; }
.ctl { position: relative; display: block; }
.ctl .i { position: absolute; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.ctl-search .i { left: 13px; }
.ctl-select .i { right: 13px; }
input[type=search], select {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--tint); border: 1px solid var(--line-strong);
  border-radius: var(--r-ctl); padding: 10px 14px; width: 100%; min-width: 0; min-height: 46px; caret-color: var(--accent);
  -webkit-appearance: none; appearance: none; transition: border-color .15s ease-out, background-color .15s ease-out;
}
input[type=search] { padding-left: 38px; }
select { padding-right: 38px; cursor: pointer; }
input[type=search]::placeholder { color: var(--muted); opacity: 1; }
input[type=search]:hover, select:hover { border-color: var(--accent); }
input[type=search]:focus, select:focus { background: var(--surface); border-color: var(--accent); }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.segs { display: flex; flex-wrap: wrap; gap: 8px; }
.seg, .tog { position: relative; }
.seg input, .tog input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.seg span, .tog span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); font-size: 0.9375rem; line-height: 1.3; cursor: pointer;
  transition: border-color .15s ease-out, background-color .15s ease-out, color .15s ease-out;
}
.seg span:hover, .tog span:hover { border-color: var(--accent); }
.seg input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.tog span::before {
  content: ""; width: 16px; height: 16px; flex: none; border-radius: 5px; border: 1.5px solid var(--line-strong); background: var(--surface);
  background-position: center; background-repeat: no-repeat; background-size: 11px 11px;
}
.tog input:checked + span { background: var(--accent-soft); border-color: var(--accent); font-weight: 600; }
.tog input:checked + span::before {
  border-color: var(--accent); background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.3 5 8.6l4.5-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.seg input:focus-visible + span, .tog input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.ftrail { display: flex; justify-content: space-between; align-items: center; gap: 8px 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 14px; }
#count { font-variant-numeric: tabular-nums; color: var(--muted); }
#count b { color: var(--ink); font-weight: 600; }
button.reset { font: inherit; font-size: 0.9375rem; font-weight: 600; background: none; border: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 6px 2px; }
button.reset:hover { color: var(--accent-deep); }

/* Venue cards: one anatomy for every venue */
.list { display: grid; gap: 20px; }
.venue {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow);
  padding: 20px; display: grid; gap: 20px; scroll-margin-top: 24px;
}
.venue[hidden] { display: none; }
.v-head { display: grid; gap: 4px; }
.v-head h3 { font-size: 1.4rem; line-height: 1.2; overflow-wrap: break-word; }
.v-head h3 a { color: inherit; text-decoration: none; }
.v-head h3 a:hover { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; }
.where { margin: 0; color: var(--muted); }
.chips { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 0.8125rem; font-weight: 600; line-height: 1.4; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); white-space: nowrap; }
.chip-pkg { background: var(--accent-soft); border-color: transparent; color: var(--accent-deep); }
.chip-wake { border-color: var(--accent); color: var(--accent); }
.chip-free { background: var(--warm-soft); border-color: transparent; color: var(--warm); }

.v-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-block: 1px solid var(--line); }
.v-facts > div { padding: 14px 12px; display: grid; gap: 6px; align-content: space-between; }
.v-facts > div:last-child { padding-right: 0; }
.v-facts > div:first-child { padding-left: 0; }
.v-facts > div + div { border-left: 1px solid var(--line); }
.v-facts dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; line-height: 1.3; }
.v-facts dd { margin: 0; font-size: 1.375rem; line-height: 1.3; font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }
.v-facts dd.na { font-size: 0.9375rem; font-weight: 400; line-height: 1.35; color: var(--muted); padding-top: 3px; }

.v-detail { margin: 0; display: grid; gap: 14px; }
.v-detail > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.v-detail dt { color: var(--muted); font-weight: 600; font-size: 0.9375rem; }
.v-detail dd { margin: 0; max-width: 64ch; overflow-wrap: break-word; }

.prices { border-radius: var(--r-ctl); }
.prices > summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 50px; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: var(--r-ctl);
  background: var(--tint); color: var(--accent-deep); font-weight: 600; cursor: pointer;
  transition: background-color .15s ease-out, border-color .15s ease-out;
}
.prices > summary::-webkit-details-marker { display: none; }
.prices > summary::marker { content: ""; }
.prices > summary:hover { background: var(--accent-soft); border-color: var(--accent); }
.prices > summary .chev { width: 18px; height: 18px; transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.prices[open] > summary { border-radius: var(--r-ctl) var(--r-ctl) 0 0; }
.prices[open] > summary .chev { transform: rotate(180deg); }
.prices-body { border: 1px solid var(--line-strong); border-top: 0; border-radius: 0 0 var(--r-ctl) var(--r-ctl); background: var(--tint); padding: 18px 18px 16px; display: grid; gap: 16px; }
.prices-open { border: 1px solid var(--line-strong); border-radius: var(--r-ctl); background: var(--tint); padding: 18px 18px 16px; display: grid; gap: 16px; }
.plist, .plist ul { list-style: none; margin: 0; padding: 0; }
.plist { display: grid; gap: 10px; }
.plist > li { position: relative; padding-left: 18px; line-height: 1.6; overflow-wrap: break-word; }
.plist > li::before { content: ""; position: absolute; left: 2px; top: 0.68em; width: 6px; height: 6px; border-radius: 50%; background: var(--warm); }
.plist strong { font-weight: 600; color: var(--ink); }
.pgroup > strong { display: block; margin-bottom: 4px; }
.plist ul { display: grid; gap: 4px; }
.plist ul li { position: relative; padding-left: 16px; }
.plist ul li::before { content: ""; position: absolute; left: 1px; top: 0.8em; width: 7px; height: 1.5px; border-radius: 1px; background: var(--line-strong); }
.pnote { margin: 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.875rem; }
.noprice { margin: 0; padding: 13px 16px; border-radius: var(--r-ctl); border: 1px solid var(--line); color: var(--muted); font-size: 0.9375rem; }

.v-foot { display: grid; gap: 14px; }
.links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.links .btn { width: 100%; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 14px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); text-decoration: none;
  font-size: 0.9375rem; font-weight: 600; line-height: 1.3;
  transition: background-color .15s ease-out, border-color .15s ease-out, color .15s ease-out;
}
.btn .i { color: var(--muted); }
.btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary .i { color: currentColor; }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.v-more { margin: 0; font-weight: 600; font-size: 0.9375rem; }
.checked { margin: 0; color: var(--muted); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.empty { margin: 0; padding: 28px 20px; text-align: center; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }

/* Questions + about */
.split { display: grid; gap: 16px; border-top: 1px solid var(--line); margin-top: 56px; padding-top: 32px; }
.split h2 { font-size: 1.875rem; line-height: 1.15; }
.qas { display: grid; }
.qa { display: grid; gap: 6px; padding: 18px 0; border-top: 1px solid var(--line); }
.qa:first-child { border-top: 0; padding-top: 4px; }
.qa h3 { font-size: 1.25rem; line-height: 1.3; }
.qa p, .about-body p { margin: 0; max-width: 66ch; }
.about-body { display: grid; gap: 12px; color: var(--muted); }
.about h2 { font-size: 1.5rem; }

/* Inner pages: breadcrumbs, page heading, sections */
.page.narrow { max-width: 50rem; }
.crumbs { padding: 18px 0 0; font-size: 0.9375rem; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; row-gap: 2px; }
.crumbs li { overflow-wrap: anywhere; }
.crumbs li + li::before { content: "›"; margin: 0 9px; color: var(--line-strong); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.phead { display: grid; gap: 14px; padding: 28px 0 32px; }
.phead h1 { font-size: clamp(2.1rem, 1.6rem + 2.2vw, 3.1rem); line-height: 1.08; letter-spacing: -0.012em; overflow-wrap: break-word; }
.phead .chips { margin: 0; }
.lead { margin: 0; font-size: 1.1875rem; line-height: 1.55; max-width: 40rem; }
.intro { margin: 0; max-width: 40rem; color: var(--muted); }
.sec { display: grid; gap: 16px; border-top: 1px solid var(--line); margin-top: 40px; padding-top: 28px; }
.sec > h2 { font-size: 1.625rem; line-height: 1.2; }
.sec > p, .prose p { margin: 0; max-width: 42rem; }
.prose { display: grid; gap: 14px; }
.prose ul { margin: 0; padding-left: 22px; display: grid; gap: 8px; max-width: 42rem; }
.vcard { gap: 22px; }
.vcard .v-facts { border-top: 0; }
.related { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.related li { border-bottom: 1px solid var(--line); }
.related a { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 16px; flex-wrap: wrap; padding: 12px 2px; text-decoration: none; color: var(--ink); font-weight: 600; }
.related a:hover { color: var(--accent); }
.related .where { font-weight: 400; font-size: 0.9375rem; }
.morelinks { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 600; }
.subhead { font-size: 1.375rem; line-height: 1.25; margin-top: 8px; }
.toc, .prose .toc { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.toc .btn { min-height: 40px; padding: 7px 13px; }
.cost-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cost-list > li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px 20px; box-shadow: var(--shadow); display: grid; gap: 10px; min-width: 0; }
.cost-list .vname { font-family: var(--display); font-size: 1.25rem; line-height: 1.25; font-weight: 500; margin: 0; }
.cost-list .vname a { color: var(--ink); text-decoration: none; }
.cost-list .vname a:hover { color: var(--accent); text-decoration: underline; }
.quote { margin: 0; padding: 12px 16px; border-left: 3px solid var(--warm); background: var(--warm-soft); border-radius: 0 var(--r-ctl) var(--r-ctl) 0; overflow-wrap: break-word; }
.quote p { margin: 0; }
.quote p + p { margin-top: 6px; }
.glist { display: grid; gap: 16px; }
.glist .subhead + .list { margin-bottom: 24px; }
.capnote, .olddoc { margin: 0; padding: 10px 14px; border-radius: var(--r-ctl); background: var(--warm-soft); color: var(--ink); font-size: 0.9375rem; line-height: 1.5; max-width: 42rem; }
.note { margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--surface); color: var(--muted); font-size: 0.9375rem; max-width: 42rem; }
.countlist { margin: 0; padding-left: 22px; display: grid; gap: 6px; max-width: 42rem; }

/* Footer */
.site-foot { margin-top: 72px; border-top: 1px solid var(--line); padding-top: 32px; display: grid; gap: 28px; color: var(--muted); font-size: 0.9375rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-foot a { color: var(--ink); }
.site-foot a:hover { color: var(--accent); }
.site-foot .fine { margin: 0; grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; }

@media (min-width: 600px) {
  .stats { column-gap: 0; }
  .stats li + li::before { content: ""; display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: currentColor; margin: 0 12px; vertical-align: middle; opacity: 0.7; }
  .links { display: flex; flex-wrap: wrap; }
  .links .btn { width: auto; }
  .frow { grid-template-columns: minmax(0, 1fr) 13rem; }
  .venue { padding: 28px; gap: 22px; }
  .v-facts > div { padding: 14px 18px; }
  .v-head h3 { font-size: 1.55rem; }
  .v-detail > div { grid-template-columns: 7.5rem minmax(0, 1fr); gap: 16px; }
  .site-foot { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cost-list > li { padding: 22px 26px; }
}
@media (min-width: 1080px) {
  body { padding-inline: 32px; }
  .page { max-width: 76rem; }
  .page.narrow { max-width: 50rem; }
  .hero { padding: 64px 0 40px; }
  .browse { grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: start; }
  .layout { grid-template-columns: 20rem minmax(0, 1fr); gap: 40px; }
  .filters input[type=search] { font-size: 0.9375rem; }
  .filters { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow: auto; }
  .frow { grid-template-columns: minmax(0, 1fr); }
  .list { gap: 24px; }
  .venue { padding: 32px; }
  .split { grid-template-columns: 20rem minmax(0, 1fr); gap: 40px; margin-top: 72px; }
  .qa:first-child { padding-top: 0; }
}
/* Contact form (about page) */
.cform { display: grid; gap: 14px; max-width: 34rem; margin-top: 6px; }
.cform input[type=text], .cform input[type=email], .cform input[type=url], .cform textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--tint); border: 1px solid var(--line-strong);
  border-radius: var(--r-ctl); padding: 10px 14px; width: 100%; min-width: 0; min-height: 46px; caret-color: var(--accent);
}
.cform textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.cform input:hover, .cform textarea:hover { border-color: var(--accent); }
.cform input:focus, .cform textarea:focus { background: var(--surface); border-color: var(--accent); }
.cform .btn { justify-self: start; cursor: pointer; font: inherit; font-weight: 600; padding-inline: 22px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
