:root {
  color-scheme: light;
  --bg: #faf8f3;
  --ink: #142e45;
  --muted: #546773;
  --surface: #fffefa;
  --surface-soft: #f0eee7;
  --line: #d6d9d5;
  --accent: #245a78;
  --on-accent: #fff;
  --selected-surface: #e0edf0;
  --warm: #a4472e;
  --warm-surface: #f4e3d9;
  --on-warm: #fff;
  --focus: #17688c;
  --lime: var(--selected-surface);
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101c25;
  --ink: #e8edea;
  --muted: #b1c3ca;
  --surface: #192b38;
  --surface-soft: #203440;
  --line: #344956;
  --accent: #9acbde;
  --on-accent: #102733;
  --selected-surface: #274453;
  --warm: #f2a387;
  --warm-surface: #49342f;
  --on-warm: #311d17;
  --focus: #8bd4f1;
}
body { background: var(--bg); color: var(--ink); }
:where(button, a, select, summary, input, textarea):focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
body > header { background: var(--surface); border-color: var(--line); }
.bar, main, footer { max-width: 1420px; }
.bar { height: 74px; }
.bar .brand { gap: 0; font-size: 28px; line-height: 1; letter-spacing: -.06em; font-weight: 760; }
.bar .brandmark {
  width: 37px; height: 37px; margin-right: 10px; border-radius: 12px;
  background: var(--warm); color: var(--on-warm);
}
.brandmark svg { width: 25px; height: 25px; }
.brand .dot { color: var(--warm); }
.header-actions { gap: 8px; }
.header-actions button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px;
  border: 1px solid var(--line); border-radius: 24px; background: var(--surface); color: var(--ink);
  font-family: inherit; line-height: 1.2; font-size: 13px; font-weight: 650;
}
.header-actions .history-link { border-color: transparent; padding-inline: 12px; text-decoration: none; }
.header-actions #theme-toggle { width: 44px; padding: 0; }
.header-actions .lang { padding-inline: 13px; }
.header-actions button:hover { border-color: var(--accent); background: var(--selected-surface); }
.header-actions #theme-toggle[aria-pressed="true"] { background: var(--selected-surface); color: var(--accent); }
.theme-sun, [data-theme="dark"] .theme-moon { display: none; }
[data-theme="dark"] .theme-sun { display: block; }

.hero {
  grid-template-columns: minmax(0, .91fr) minmax(0, 1.09fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
  padding-block: clamp(25px, 2.85vw, 42px);
}
.hero .region { gap: 0; color: var(--warm); font-size: 11px; letter-spacing: .16em; }
.region span { display: inline-flex; align-items: center; gap: 7px; }
.region .ic { width: 15px; height: 15px; }
.hero h1 {
  margin: 14px 0 13px;
  font-size: clamp(50px, 5.2vw, 78px); line-height: .99; letter-spacing: -.065em; font-weight: 690;
}
.hero h1 span {
  display: block; margin-top: .04em; color: var(--warm);
  font-family: Georgia, 'Times New Roman', serif; font-size: 1.08em; font-weight: 400; font-style: italic;
  letter-spacing: -.06em; line-height: 1.07;
}
.hero h1 span::after { content: none; }
.hero .intro p { max-width: 42ch; color: var(--muted); font-size: clamp(14px, 1.13vw, 17px); line-height: 1.55; }
.ideas .eyebrow { color: var(--muted); font-size: 11px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 10px; margin-top: 20px; }
.hero-actions button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; margin: 0; padding: 10px 16px; border-radius: 10px;
  border: 1px solid var(--line); color: var(--ink); background: var(--surface);
  font-size: 14px; font-weight: 660;
}
.hero-actions .primary {
  min-height: 46px; margin: 0; gap: 13px; padding-inline: 18px;
  background: var(--accent); border-color: var(--accent); color: var(--on-accent);
}
.hero-actions .ic { width: 17px; height: 17px; }
.hero-actions .primary .ic { color: currentColor; }
#explore-guide:hover { background: color-mix(in srgb, var(--accent) 85%, var(--ink)); }
#create:hover { background: var(--selected-surface); border-color: var(--accent); }
.home-outing-focused .hero { grid-template-columns: 1fr; padding-block: 10px; }
footer { color: var(--muted); }
footer span { color: var(--ink); }

/* Shared visual states for neighbourhood filters, saved history and venue details. */
.history-row, .history-button, .mikro-filter, .mikro-empty, .mikro-activity, .mikro-activity-picker,
.local-controls :is(.local-price-band, .local-cuisine) {
  background-color: var(--surface); color: var(--ink); border-color: var(--line);
}
.mikro-activities, .mikro-menu, .detail-near, .detail-facts span, .mikro-activity-note {
  background: var(--surface-soft); border-color: var(--line);
}
.mikro-menu-list > div, .mikro-facts > div { border-color: var(--line); }
.mikro-activity-count, .detail-near:hover { background: var(--selected-surface); color: var(--accent); }
.mikro-filter[aria-pressed="true"], .detail-save[aria-pressed="true"] {
  background: var(--selected-surface); border-color: var(--accent); color: var(--accent);
}
.mikro-activity[aria-pressed="true"], .history-primary, #detail .primary {
  background: var(--accent); border-color: var(--accent); color: var(--on-accent);
}
.mikro-activity[aria-pressed="true"] .mikro-activity-count { background: var(--surface); color: var(--accent); }
.mikro-activity:hover, .history-row:hover, .history-button:hover { border-color: var(--accent); }
.mikro-style, .venue-gallery-link { color: var(--accent); }
.detail-meta { color: var(--muted); }
.history-turns li, .outing-context-note { border-color: var(--accent); }
.unpictured { background: var(--selected-surface); color: var(--accent); }
.unpictured > span:first-child .ic { color: inherit; }
dialog::backdrop { background: rgb(8 23 34 / 68%); }

@media (max-width: 950px) and (min-width: 691px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
  .hero-actions { gap: 6px; }
  .hero-actions button, .hero-actions .primary { font-size: 13px; padding-inline: 11px; gap: 7px; }
}
@media (max-width: 690px) {
  .bar { height: 59px; gap: 10px; }
  .bar .brand { font-size: 24px; }
  .brandmark svg { width: 22px; height: 22px; }
  .bar .brandmark { width: 32px; height: 32px; margin-right: 7px; border-radius: 10px; }
  .header-actions { gap: 4px; }
  .header-actions .history-link { padding-inline: 6px; }
  .header-actions .lang { padding-inline: 9px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-block: 15px 20px; }
  .hero .region { font-size: 10px; }
  .hero h1 { margin: 9px 0 7px; font-size: clamp(35px, 7.4vw, 52px); line-height: 1.08; }
  .hero h1 span { display: inline; }
  .hero .intro p { max-width: 48ch; }
  .hero-actions { margin-top: 13px; gap: 6px; }
  .hero-actions button, .hero-actions .primary { display: inline-flex; font-size: 13px; min-height: 44px; padding-inline: 12px; gap: 6px; }
}
@media (max-width: 420px) {
  .header-actions .history-link { min-width: 44px; }
  .header-actions .history-link span { display: none; }
}
@media (max-width: 355px) {
  .bar { gap: 5px; padding-inline: 10px; }
  .bar .brand { font-size: 21px; }
  .bar .brandmark { margin-right: 5px; }
  .header-actions .lang { padding-inline: 7px; }
  .hero-actions button, .hero-actions .primary { padding-inline: 10px; font-size: 12px; }
}
