@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/static/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/static/fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #17352f;
  --green: #17604f;
  --green-dark: #104b3d;
  --wash: #f2f6fa;
  --line: #dce5e5;
  --muted: #566c67;
  --warning: #805218;
  --warning-wash: #fff5dd;
  --yellow: #f4d35e;
  --lilac: #d9d0f3;
  --field: #fff;
  --radius: 16px;
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--wash);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; font-size: 16px; line-height: 1.5; }
a { color: var(--green-dark); text-underline-offset: .2em; text-decoration-thickness: 1px; }
button, input, select { font: inherit; }
button, summary, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .65; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 2000; top: 8px; left: 12px; padding: 12px 16px; color: var(--ink); background: var(--paper); border: 2px solid var(--green); border-radius: 8px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.eyebrow { margin: 0 0 17px; color: var(--green); font-size: .85rem; font-weight: 650; }
.selection-feedback { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; vertical-align: middle; }
.implicit-submit { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); border: 0; white-space: nowrap; }
.site-header, .site-footer, .finder-shell { width: min(100% - 40px, 1120px); margin-inline: auto; }
.site-header { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { min-height: 44px; display: inline-flex; gap: 11px; align-items: center; color: var(--ink); text-decoration: none; }
.brand-symbol { width: 40px; height: 40px; display: grid; place-items: center; color: var(--paper); background: var(--green); border-radius: 14px 14px 14px 4px; }
.brand-symbol svg { width: 26px; height: 26px; }
.brand-name { display: grid; font-family: "Bricolage Grotesque", sans-serif; font-size: 1.15rem; font-weight: 750; line-height: 1.15; letter-spacing: -.04em; }
.brand-name small { margin-top: 4px; font-family: "Hanken Grotesk", sans-serif; color: var(--muted); font-size: .75rem; font-weight: 500; line-height: 1.4; letter-spacing: 0; }
.city-mark { padding: 7px 11px; display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--line); border-radius: 999px; font-size: .78rem; font-weight: 650; }
.city-mark .icon { width: 14px; height: 14px; }
.finder-shell { padding-block: 26px 52px; }
.intro { max-width: 610px; }
h1, h2, h3 { font-family: "Bricolage Grotesque", sans-serif; text-wrap: balance; }
h1 { margin: 0; max-width: 18ch; font-size: clamp(2.2rem, 8vw, 3.8rem); font-weight: 700; line-height: 1.04; letter-spacing: -.055em; }
h1 em { font-style: normal; color: var(--green); }
.home-shell h1 { font-size: clamp(3.25rem, 12.2vw, 5.5rem); letter-spacing: -.065em; line-height: .99; }
.intro > p:not(.eyebrow), .lead { margin: 18px 0 0; max-width: 49ch; color: var(--muted); font-size: 1.02rem; line-height: 1.55; }
.home-shell .intro > p:not(.eyebrow) { max-width: 34ch; }
.object-art { display: none; }
.finder-form { margin-top: 28px; padding: 22px; display: grid; gap: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; }
.field { min-width: 0; }
.field label { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; font-size: .93rem; font-weight: 700; }
.field label .icon { width: 18px; height: 18px; color: var(--green); }
.field-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.field-heading label { margin-bottom: 9px; }
.field small, .candidate-card small { display: block; margin-top: 8px; color: var(--muted); font-size: .79rem; line-height: 1.45; overflow-wrap: anywhere; }
input, select { width: 100%; min-height: 54px; padding: 12px 14px; color: var(--ink); background: var(--field); border: 1px solid #a3b8b2; border-radius: 11px; font-size: 1rem; }
input::placeholder { color: var(--muted); opacity: .9; }
select { padding-right: 42px; }
.search-message { padding: 13px 15px; border-left: 3px solid var(--warning); background: var(--warning-wash); border-radius: 0 10px 10px 0; }
.map-action { min-height: 44px; margin: -10px 0 -1px; padding: 0 2px; display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; color: var(--green-dark); background: transparent; border: 0; font-size: .78rem; font-weight: 650; text-decoration: underline; text-underline-offset: .2em; }
.map-action .icon { width: 15px; height: 15px; }
.suggestions-label { display: block; margin-top: 13px; color: var(--muted); font-size: .76rem; }
.field > .suggestions { margin-top: 12px; }
.suggestions { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 7px; }
.suggestions button { min-height: 44px; padding: 8px 12px; color: var(--green-dark); background: var(--wash); border: 1px solid var(--line); border-radius: 999px; font-size: .8rem; font-weight: 600; line-height: 1.2; }
.suggestions button[aria-pressed="true"] { color: #17352f; background: var(--lilac); border-color: #9e8fc8; }
.suggestions button:hover { background: var(--lilac); color: #17352f; border-color: var(--lilac); }
.more-suggestions { margin-top: 4px; }
.more-suggestions summary { width: fit-content; min-height: 44px; padding-block: 10px; color: var(--green-dark); font-size: .78rem; font-weight: 650; cursor: pointer; }
.more-suggestions[open] { position: relative; padding-bottom: max(44px, calc(1.17rem + 20px)); }
.more-suggestions[open] > summary { position: absolute; bottom: 0; left: 0; }
.primary-button, .secondary-button { min-height: 50px; padding: 12px 19px; display: inline-flex; gap: 9px; align-items: center; justify-content: center; border-radius: 11px; font-size: .93rem; font-weight: 750; line-height: 1.3; text-align: center; text-decoration: none; }
.primary-button { color: #fff; background: var(--green); border: 1px solid var(--green); }
.primary-button:hover { background: var(--green-dark); border-color: var(--green-dark); }
.secondary-button { color: var(--green-dark); background: var(--paper); border: 1px solid var(--green); }
.secondary-button:hover { background: var(--wash); }
.search-submit { width: 100%; }
.finder-form .primary-button.search-submit { color: #17352f; background: var(--yellow); border-color: var(--yellow); }
.finder-form .primary-button.search-submit:hover { background: #e6c34b; border-color: #e6c34b; }
.candidate-card { margin-top: 15px; padding: 22px; display: grid; gap: 11px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.candidate-card .secondary-button { justify-self: start; }
.candidate-card > a { min-height: 44px; display: inline-flex; align-items: center; width: fit-content; font-size: .88rem; }
.attribution { color: var(--muted); font-size: .78rem; }
.text-button { min-height: 44px; margin-top: 5px; padding: 5px 0; color: var(--green-dark); background: transparent; border: 0; text-decoration: underline; }
.guide-link { margin-top: 20px; color: var(--muted); font-size: .9rem; }
.back-link { min-height: 44px; margin-bottom: 19px; display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; font-weight: 650; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.compact-form { padding: 18px; }
.address { margin: 0; color: var(--muted); font-size: .88rem; overflow-wrap: anywhere; }
.next-panel > span { display: block; color: var(--muted); font-size: .76rem; font-weight: 600; }
.warning { margin: 12px 0; padding: 11px 13px; color: var(--warning); background: var(--warning-wash); border-left: 3px solid var(--warning); border-radius: 0 8px 8px 0; font-size: .84rem; }
.text-link { font-weight: 650; }
.empty-state { padding: 30px 0; }
.empty-state h2 { margin: 0; font-size: 1.3rem; }
.empty-state p { color: var(--muted); }
.flow-shell { max-width: 800px; }
.detail-shell { max-width: 880px; }
.detail-header h1 { margin: 17px 0 12px; max-width: 24ch; font-size: clamp(2.1rem, 7vw, 3.6rem); }
.detail-header .address { font-size: 1rem; }
.next-panel { margin-top: 27px; padding: 23px; display: grid; gap: 9px; background: #17604f; color: #fff; border-radius: 18px; }
.next-panel > span { color: #d3e8df; }
.next-panel > strong { white-space: pre-line; font-family: "Bricolage Grotesque", sans-serif; font-size: 1.5rem; line-height: 1.25; font-weight: 600; letter-spacing: -.025em; }
.next-panel.habitual-panel > strong { max-width: 50ch; font-family: "Hanken Grotesk", sans-serif; font-size: 1.02rem; line-height: 1.5; letter-spacing: 0; }
.next-panel .primary-button { margin-top: 9px; color: #17352f; background: var(--yellow); border-color: var(--yellow); }
.next-panel :focus-visible { outline-color: var(--yellow); }
.prominent { margin-top: 18px; }
.detail-grid { margin-top: 24px; display: grid; gap: 14px; }
.detail-grid section { padding: 23px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.detail-grid h2, .source-box h2, .method-note h2 { margin: 0 0 12px; font-size: 1.13rem; font-weight: 650; letter-spacing: -.02em; }
.detail-grid p { margin: 0; font-size: .95rem; }
.acceptance-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; font-size: .86rem; }
.source-box { margin-top: 30px; padding-top: 25px; border-top: 1px solid var(--line); font-size: .9rem; }
.source-box > a { display: inline-flex; align-items: center; min-height: 44px; }
dl { margin: 14px 0; font-size: .84rem; }
dl div { padding: 10px 0; display: flex; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 600; text-align: right; }
.method-shell { max-width: 820px; }
.method-shell h1 { font-size: clamp(2.25rem, 7vw, 3.6rem); }
.method-note { margin: 23px 0; padding: 23px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.method-note:first-of-type { border-left: 4px solid var(--green); }
.method-note p { margin: 0; color: var(--muted); font-size: .94rem; }
.method-note p + p { margin-top: 12px; }
.method-note a, .source-list a { overflow-wrap: anywhere; }
.independent-note { margin: 30px 0; padding-bottom: 26px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.independent-note strong { color: var(--ink); }
.source-list article { padding: 23px 0; border-bottom: 1px solid var(--line); }
.source-list h2 { margin: 0 0 9px; font-size: 1.15rem; }
.source-list p { margin: 0; color: var(--muted); font-size: .9rem; }
.site-footer { padding: 23px 0 32px; text-align: center; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.site-footer p { margin: 0 auto; max-width: 60ch; }
.map-page .map-back { min-width: 44px; min-height: 44px; }
@media (min-width: 720px) {
  .site-header, .site-footer, .finder-shell { width: min(100% - 80px, 1120px); }
  .site-header { min-height: 112px; }
  .finder-shell { padding-block: 42px 72px; }
  .home-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; padding-top: 48px; }
  .home-shell .intro { min-height: 0; }
  .home-shell .intro > p:not(.eyebrow) { max-width: 39ch; font-size: 1.13rem; }
  .object-art { position: relative; margin-top: 36px; width: 300px; height: 240px; display: block; pointer-events: none; }
  .object-tile { position: absolute; width: 124px; height: 136px; display: grid; place-items: center; color: #17352f; border: 1px solid rgb(23 53 47 / 10%); border-radius: 27px; }
  .object-tile svg { width: 68px; height: 76px; align-self: end; }
  .object-tile > span { align-self: start; font-size: .75rem; font-weight: 650; }
  .object-tile.battery { left: 6px; top: 13px; background: #d9d0f3; transform: rotate(-13deg); }
  .object-tile.lamp { right: 18px; top: 0; background: #f4d35e; transform: rotate(12deg); }
  .object-tile.shirt { left: 86px; top: 108px; background: #b7d9cc; transform: rotate(-3deg); }
  .finder-form { padding: 28px; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; gap: 25px 30px; }
  .home-shell .finder-form { margin-top: 0; grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .home-shell .search-submit { width: 100%; }
  .search-submit { grid-column: 1 / -1; justify-self: end; width: auto; min-width: 240px; }
  .next-panel { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 27px; }
  .next-panel > span, .next-panel > strong { grid-column: 1; }
  .next-panel .primary-button { grid-column: 2; grid-row: 1 / 3; margin: 0; }
}
@media (min-width: 1000px) {
  .home-shell { gap: 95px; }
  .object-art { margin-top: 46px; margin-left: 22px; }
}
@media (min-width: 720px) and (max-width: 900px) {
  .home-shell { gap: 32px; }
  .home-shell h1 { font-size: 3.7rem; }
  .object-art { transform: scale(.85); transform-origin: left top; }
  .home-shell .intro > p:not(.eyebrow) { max-width: 29ch; }
}
@media (max-width: 719px) {
  .site-header { min-height: 72px; }
  .home-shell { padding-top: 16px; }
  .home-shell .eyebrow { margin-bottom: 12px; }
  .home-shell .intro > p:not(.eyebrow) { margin-top: 14px; }
  .home-shell .finder-form { margin-top: 22px; gap: 16px; }
}
@media (max-width: 399px) {
  .site-header, .site-footer, .finder-shell { width: calc(100% - 32px); }
  .finder-form { padding: 18px; }
  .brand-name { font-size: 1.06rem; }
  .brand-name small { font-size: .75rem; }
  .brand-symbol { width: 35px; height: 38px; }
  .city-mark { padding: 6px 9px; }
  .field-heading { gap: 4px; }
  .map-action { font-size: .72rem; }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #1c302b;
  --ink: #edf5ee;
  --green: #a4d8bd;
  --green-dark: #b9e8cc;
  --wash: #13231f;
  --line: #3d514a;
  --muted: #b3c6bb;
  --field: #152820;
  --warning: #f2d28e;
  --warning-wash: #3a3020;
}
:root[data-theme="dark"] .primary-button { color: #17352f; }
:root[data-theme="dark"] .primary-button:hover { color: #17352f; }
:root[data-theme="dark"] .brand-symbol { color: #17352f; }
:root[data-theme="dark"] input, :root[data-theme="dark"] select { border-color: #647e71; }
:root[data-theme="dark"] .map-page .leaflet-control-attribution { color: #17352f; background: #fff; }
:root[data-theme="dark"] .map-page .leaflet-control-attribution a { color: #17604f; }
@media (prefers-reduced-motion: no-preference) {
  .primary-button, .secondary-button, .suggestions button { transition: background-color .15s ease, border-color .15s ease; }
}

.theme-toggle { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding: 4px; flex: 0 0 auto; color: var(--muted); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; font-size: .75rem; font-weight: 650; }
.theme-toggle span { padding: 6px 8px; border-radius: 999px; }
.theme-toggle[aria-pressed="false"] .theme-light,
.theme-toggle[aria-pressed="true"] .theme-dark { color: var(--paper); background: var(--ink); }
@media (max-width: 719px) {
  .site-header { gap: 8px; padding-block: 8px; }
  .site-header .brand { min-width: 0; gap: 8px; }
}

.footer-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; margin-top: 8px; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; padding: 6px 10px; font-size: .85rem; }
