@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  --ink: #252121;
  --muted: #625d5d;
  --paper: #fff;
  --soft: #faf8f4;
  --line: #ded9d5;
  --accent: #aa224e;
  font: 16px/1.5 "DM Sans", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--soft);
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible, aside:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p, ol, figure { margin: 0; }
.wrap { width: min(1180px, calc(100% - clamp(36px, 8.6vw, 140px))); margin-inline: auto; }
.skip { position: fixed; top: 8px; left: 8px; padding: 8px 14px; background: white; transform: translateY(-160%); z-index: 5; }
.skip:focus { transform: none; }
.masthead { border-bottom: 1px solid var(--line); }
.nav-row, nav, .brand, .actions, .footer-row { display: flex; align-items: center; }
.nav-row { justify-content: space-between; min-height: 76px; gap: 16px; }
.brand { gap: 8px; font-size: 1.45rem; letter-spacing: -.06em; font-weight: 850; }
.brand img { object-fit: contain; }
nav { gap: clamp(16px, 3vw, 36px); font-size: .91rem; font-weight: 680; }
nav a, .language { padding-block: 11px; }
nav a:hover, .secondary:hover, .footer-row a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.language { border: 1px solid var(--line); background: transparent; padding: 5px 9px; border-radius: 7px; font-size: .75rem; font-weight: 750; min-height: 34px; }
.hero { display: grid; grid-template-columns: 1fr 1.04fr; gap: clamp(26px, 5vw, 78px); align-items: center; padding-block: clamp(40px, 5.5vw, 78px); }
.hero-copy { padding-block: 6px; }
.city, .sample { color: var(--accent); font-size: .75rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.city { display: flex; gap: 9px; align-items: center; margin-bottom: 17px; }
.city > span:first-child { width: 20px; height: 3px; background: var(--accent); }
h1 { font-size: clamp(3.05rem, 5.35vw, 4.9rem); line-height: .98; letter-spacing: -.072em; font-weight: 730; text-wrap: balance; }
h1 em { color: var(--accent); font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.065em; }
.intro { margin-top: 24px; max-width: 39ch; font-size: clamp(1.05rem, 1.45vw, 1.23rem); line-height: 1.55; color: var(--muted); }
.actions { flex-wrap: wrap; gap: 12px 22px; margin-top: 28px; font-size: .94rem; font-weight: 730; }
.primary { background: var(--accent); color: #fff; display: inline-flex; align-items: center; gap: 13px; padding: 13px 20px; border-radius: 9px; }
.primary:hover { background: #8b1640; }
.arrow { font-size: 1.15em; line-height: 1; }
.secondary { padding-block: 10px; border-bottom: 1px solid #b0a8a5; }
.hero-photo { position: relative; overflow: hidden; background: #50453d; border-radius: 18px; aspect-ratio: 1.39; }
.hero-photo picture, .hero-photo img { display: block; width: 100%; height: 100%; }
.hero-photo img { object-fit: cover; }
.hero-photo figcaption { position: absolute; inset: auto 0 0; color: white; padding: 30px 21px 17px; background: linear-gradient(transparent, rgb(25 22 25 / .83)); display: flex; align-items: center; gap: 10px; }
figcaption strong, figcaption small { display: block; }
figcaption strong { font-size: .97rem; letter-spacing: -.015em; }
figcaption small { font-size: .75rem; color: #f1ece9; }
.pin { position: relative; width: 15px; height: 15px; border: 2px solid white; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.pin::before { content: ""; position: absolute; inset: 3px; background: white; border-radius: 50%; }
#how { scroll-margin-top: 12px; background: var(--paper); border-block: 1px solid var(--line); }
.tutorial { padding-block: clamp(32px, 5vw, 68px); display: grid; grid-template-columns: 1fr .92fr; gap: clamp(32px, 9vw, 140px); align-items: center; }
h2 { font-size: clamp(2.1rem, 3.2vw, 3rem); line-height: 1.06; letter-spacing: -.058em; font-weight: 710; }
.guide ol { list-style: none; counter-reset: step; padding: 0; margin-top: 23px; }
.guide li { counter-increment: step; display: flex; align-items: baseline; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); }
.guide li::before { content: counter(step); display: inline-grid; place-items: center; flex: 0 0 25px; height: 25px; border: 1px solid #d3c6bf; border-radius: 50%; font-size: .75rem; font-weight: 750; color: var(--accent); }
.guide h3 { font-size: 1.04rem; letter-spacing: -.025em; }
.plan-link { display: inline-block; margin: 7px 0 0 39px; padding-block: 6px; font-weight: 700; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.guide li p { font-size: .9rem; color: var(--muted); margin-top: 2px; }
.ballot { background: #f9f3f0; border: 1px solid #e2d8d3; border-radius: 17px; padding: clamp(19px, 3vw, 34px); }
.ballot-heading, .option { display: flex; align-items: center; }
.ballot-heading { justify-content: space-between; }
.ballot-symbol { color: var(--accent); font-size: .87rem; font-weight: 800; border: 1px solid #d9b5be; border-radius: 5px; padding: 0 4px; }
.ballot h3 { font-size: clamp(1.4rem, 2.3vw, 2rem); line-height: 1.12; letter-spacing: -.05em; margin: 12px 0 4px; }
.ballot-help, .result { color: var(--muted); font-size: .87rem; }
.ballot-options { display: grid; gap: 9px; margin: 17px 0 11px; }
.option { background: #fff; border: 1px solid #dcd4cf; border-radius: 9px; padding: 8px 11px 8px 8px; gap: 10px; text-align: start; }
.option:hover:enabled, .option[aria-pressed="true"] { border-color: var(--accent); }
.option[aria-pressed="true"] { background: #fff8fa; }
.option img { border-radius: 5px; }
.venue { flex: 1; }
.venue strong, .venue small { display: block; }
.venue strong { font-size: .93rem; }
.venue small { color: var(--muted); font-size: .77rem; }
.vote-count, .result { font-variant-numeric: tabular-nums; }
.vote-count { font-size: .86rem; color: var(--muted); }
.choice { width: 17px; height: 17px; border: 1px solid #aaa19b; border-radius: 50%; }
.option[aria-pressed="true"] .choice { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 3px white; }
.home-footer { padding-block: 23px; }
.footer-row { gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: .83rem; }
.footer-brand { margin-right: auto; font-size: 1.05rem; font-weight: 800; letter-spacing: -.05em; color: var(--ink); }
#analytics-settings { border: none; background: transparent; padding: 7px 0; font-size: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.home-footer #analytics-panel { position: static; width: min(100%, 34rem); margin: 14px 0; box-shadow: none; }
.credit { margin-top: 10px; color: var(--muted); font-size: .72rem; }
.credit a { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 720px) {
  .nav-row { min-height: 62px; }
  nav { gap: 15px; font-size: .84rem; }
  .brand { font-size: 1.28rem; gap: 5px; }
  .brand img { width: 31px; height: 31px; }
  .hero, .tutorial { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 24px; padding-block: 30px; }
  h1 { font-size: clamp(3.1rem, 9.5vw, 4rem); }
  .city { margin-bottom: 13px; }
  .intro { margin-top: 15px; }
  .actions { margin-top: 19px; }
  .hero-photo { aspect-ratio: 1.85; border-radius: 13px; }
  .hero-photo figcaption { padding: 25px 15px 12px; }
  .tutorial { gap: 22px; }
  .guide ol { margin-top: 16px; }
}
@media (max-width: 480px) {
  .how-link { display: none; }
  .map-link { display: none; }
  .footer-row { gap: 8px 13px; }
}
@media (max-width: 350px) {
  nav { gap: 9px; }
  h1 { font-size: 2.85rem; }
  .actions { gap: 2px 14px; }
}
