/* Self-hosted fonts (SIL Open Font License 1.1; licenses in /fonts/). Served from this site, so no request goes to Google. */
@font-face {
  font-family: 'Funnel Display';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(/fonts/funnel-display-v3-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Funnel Display';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(/fonts/funnel-display-v3-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Host Grotesk';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/host-grotesk-italic-v5-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Host Grotesk';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/host-grotesk-italic-v5-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Host Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/host-grotesk-v5-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Host Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/host-grotesk-v5-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* New Locals app: phone-first, installable. Shares tokens with the site. */
:root {
  --blue: #3140EE; --blue-deep: #2330C9; --blue-tint: #E3E5FD;
  --ink: #17171C; --soft: #5E5B66; --paper: #F4F1EC; --paper-2: #EAE5DC; --white: #FFFFFF;
  --porch: #FFB547; --line: rgba(23, 23, 28, 0.12);
  --city-1: #B9472C; --city-2: #2E6B57; --city-3: #E8DFCC;
  --display: "Funnel Display", "Helvetica Neue", Arial, sans-serif;
  --text: "Host Grotesk", "Helvetica Neue", Arial, sans-serif;
  --tab-h: 72px;
  /* Room under the tabs: the home indicator, or the host's badge (see app.js), whichever is taller. */
  --host-badge: 0px;
  --tab-pad: max(env(safe-area-inset-bottom, 0px), var(--host-badge));
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { background: var(--paper-2); color: var(--ink); font-family: var(--text); font-size: 16px; line-height: 1.5; font-variant-numeric: tabular-nums; }
button { font: inherit; color: inherit; }
a { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.icon { width: 24px; height: 24px; fill: currentColor; flex: none; display: block; }
.d { font-family: var(--display); letter-spacing: -0.035em; line-height: 0.96; }
.n { font-weight: 300; } .l { font-weight: 800; }
.muted { color: var(--soft); }

/* The phone-width shell; on desktop it sits centered beside a brand panel */
.shell { position: relative; max-width: 480px; min-height: 100%; margin: 0 auto; background: var(--paper); display: flex; flex-direction: column; }
@media (min-width: 900px) {
  body { display: grid; grid-template-columns: 1fr 480px 1fr; }
  .shell { grid-column: 2; box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(23, 23, 28, .18); }
  .aside { grid-column: 3; align-self: center; padding: 48px; max-width: 360px; }
  .aside .d { font-size: 40px; }
}
@media (max-width: 899px) { .aside { display: none; } }

.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 14px 20px; background: rgba(244, 241, 236, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .mark { height: 28px; color: var(--blue); display: block; }
.mark svg { height: 100%; width: auto; display: block; }
.top .wm { width: 104px; }
.top .city { margin-left: auto; font-weight: 500; font-size: 13px; color: var(--soft); }
main { flex: 1; padding: 20px 20px calc(var(--tab-h) + var(--tab-pad) + 28px); }
.view-title { font-family: var(--display); font-weight: 800; font-size: 32px; letter-spacing: -0.035em; line-height: 1; margin: 6px 0 16px; }
.kicker { font-weight: 600; font-size: 13px; color: var(--soft); margin: 0 0 6px; }
.section { margin-top: 28px; }
.section h2 { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; margin: 0 0 12px; }

/* Tab bar */
.tabs { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; height: calc(var(--tab-h) + var(--tab-pad)); z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--white); border-top: 1px solid var(--line); padding-bottom: var(--tab-pad); }
.tabs a { display: grid; justify-items: center; align-content: center; gap: 3px; text-decoration: none; color: var(--soft); font-size: 11px; font-weight: 600; }
.tabs a .icon { width: 26px; height: 26px; }
.tabs a[aria-current="page"] { color: var(--blue); }

/* Cards and rows */
.card { background: var(--white); border-radius: 18px; padding: 18px; border: 1px solid var(--line); }
.card + .card { margin-top: 10px; }
.hero-card { background: var(--blue); color: var(--paper); border: 0; padding: 22px; }
.hero-card .day { font-family: var(--display); font-size: 44px; letter-spacing: -0.04em; line-height: .95; }
.hero-card p { margin: 10px 0 0; color: #E4E6FD; }
.meter { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .22); overflow: hidden; margin-top: 16px; }
.meter i { display: block; height: 100%; background: var(--porch); border-radius: 999px; transition: width .4s ease; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.list li:first-child { padding-top: 0; }
.list li:last-child { border-bottom: 0; padding-bottom: 0; }
.list .t { font-weight: 600; line-height: 1.3; }
.list .s { grid-column: 1 / -1; font-size: 14px; color: var(--soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.when { font-family: var(--display); font-weight: 700; color: var(--blue-deep); white-space: nowrap; }
.when.past { color: var(--ink); background: var(--porch); padding: 0 6px; border-radius: 5px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper); font-weight: 700; text-decoration: none; cursor: pointer; }
.btn.light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.block { width: 100%; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 2px 20px 8px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); font-weight: 600; font-size: 14px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--white); }
.local-tag { display: inline-block; font-size: 12px; font-weight: 600; background: var(--porch); border-radius: 6px; padding: 2px 7px; }

/* Checklist */
.step { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.step input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--blue); }
.step .t { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; line-height: 1.25; }
.step.done .t { text-decoration: line-through; color: var(--soft); }
.step .s { font-size: 14px; color: var(--soft); margin-top: 2px; }
.step .due { font-weight: 600; font-size: 13px; color: var(--blue-deep); white-space: nowrap; padding-top: 3px; }
.step.done .due { color: var(--city-2); }
.step button.more { grid-column: 2 / -1; justify-self: start; background: none; border: 0; padding: 0; color: var(--blue-deep); font-weight: 600; font-size: 14px; cursor: pointer; }

/* Places */
.search { width: 100%; min-height: 48px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--white); padding: 0 16px; font: inherit; margin-bottom: 12px; }
.toggle-row { display: flex; gap: 8px; margin-bottom: 14px; }
.mapbox { height: 280px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 14px; position: relative; background: var(--paper-2); }
.place { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 0 14px 12px; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; cursor: pointer; }
.place.local { border-left-color: var(--porch); }
.place .t { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.place .s { grid-column: 1 / -1; font-size: 14px; color: var(--soft); }
.save { background: none; border: 0; padding: 4px; color: var(--soft); cursor: pointer; }
.save[aria-pressed="true"] { color: var(--blue); }
.pin { width: 26px; height: 26px; border-radius: 50%; background: var(--white); color: var(--ink); display: grid; place-items: center; border: 0; box-shadow: 0 2px 8px rgba(23,23,28,.25); padding: 0; cursor: pointer; }
.pin .icon { width: 18px; height: 18px; }
.pin.local { background: var(--porch); }

/* Bottom sheet */
.scrim { position: fixed; inset: 0; background: rgba(23, 23, 28, .35); z-index: 40; }
.sheet { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 480px; max-height: 82vh; overflow-y: auto; z-index: 41; background: var(--paper); border-radius: 22px 22px 0 0; padding: 10px 20px 28px; box-shadow: 0 -12px 40px rgba(23, 23, 28, .2); }
.sheet .grab { width: 44px; height: 5px; border-radius: 999px; background: var(--line); margin: 4px auto 16px; }
.sheet h3 { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 6px; }
.sheet .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.sheet ol { padding-left: 1.2em; }
.sheet { overflow-wrap: anywhere; }
.sources { font-size: 13px; color: var(--soft); margin-top: 16px; }
.sources a { color: var(--soft); word-break: break-word; }

/* Local Since card */
.pass { container-type: inline-size; aspect-ratio: 1.586; border-radius: 18px; background: var(--blue); color: var(--paper); padding: 18px 20px; display: grid; grid-template-rows: auto 1fr auto; box-shadow: 0 18px 40px rgba(23, 23, 28, .2); }
.pass-top, .pass-bot { display: flex; justify-content: space-between; align-items: center; }
.pass .mark { height: 32px; color: var(--paper); display: block; }
.pass .meta { font-weight: 500; font-size: 13px; color: #D6D9FC; }
.pass .label { font-weight: 600; font-size: 14px; color: #D6D9FC; align-self: end; }
.pass .date { font-family: var(--display); font-size: 15cqw; letter-spacing: -0.04em; line-height: .95; }
.pass .wm { width: 96px; color: var(--paper); }

/* Onboarding */
.onb { position: fixed; inset: 0; z-index: 50; background: var(--blue); color: var(--paper); display: flex; justify-content: center; overflow-y: auto; }
.onb-in { width: 100%; max-width: 480px; padding: 28px 24px 40px; display: flex; flex-direction: column; min-height: 100%; }
.onb .mark { height: 36px; color: var(--paper); display: block; }
.onb h1 { font-family: var(--display); font-size: 46px; letter-spacing: -0.045em; line-height: .92; margin: 40px 0 14px; }
.onb p { color: #E4E6FD; margin: 0 0 22px; }
.onb .steps { display: flex; gap: 6px; margin-top: 18px; }
.onb .steps i { flex: 1; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .25); }
.onb .steps i.on { background: var(--porch); }
.onb input[type="date"] { width: 100%; min-height: 56px; border-radius: 14px; border: 0; padding: 0 16px; font: inherit; font-size: 18px; }
.onb .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.onb .opt { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid rgba(244, 241, 236, .5); background: transparent; color: var(--paper); font-weight: 600; cursor: pointer; }
.onb .opt[aria-pressed="true"] { background: var(--paper); color: var(--blue-deep); border-color: var(--paper); }
.onb .foot { margin-top: auto; padding-top: 28px; display: flex; gap: 10px; }
.onb .foot .btn { flex: 1; }
.settle-in { animation: settle 1.4s cubic-bezier(.2, .7, .2, 1) .2s both; display: inline-block; }
@keyframes settle { from { font-weight: 300; } to { font-weight: 800; } }

.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + var(--tab-pad) + 16px); transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; z-index: 60; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.maplibregl-ctrl-attrib { font-size: 10px; line-height: 1.35; }
.hood-link { display: grid; gap: 4px; margin-top: 16px; color: var(--ink); text-decoration: none; }
.hood-link b { font-family: var(--display); font-size: 20px; letter-spacing: -.015em; }
