:root {
  --bg: #e9ecf1; --surface: #ffffff; --ink: #1e2433; --muted: #566074; --line: #d2d8e2; --focus: #1e2433;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #12161f; --surface: #1a2030; --ink: #e8ebf2; --muted: #9ca5b8; --line: #2b3345; --focus: #e8ebf2; color-scheme: dark; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0 auto; max-width: 1160px; padding: 0 clamp(16px, 4vw, 40px);
  background: var(--bg); color: var(--ink);
  font: 400 1rem/1.5 "Archivo", system-ui, sans-serif;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; }
.skip:focus { top: 12px; }

.top { padding: clamp(36px, 7vw, 72px) 0 24px; }
.mark {
  margin: 0; font: 400 clamp(2.25rem, 7vw, 3.5rem)/1 "Archivo Black", "Archivo", system-ui, sans-serif;
  letter-spacing: -0.03em; margin-left: -0.02em;
}
.tagline { margin: 12px 0 0; max-width: 36em; font-size: 1rem; line-height: 1.5; color: var(--muted); }
.notice { margin: 16px 0 0; max-width: 40em; padding: 10px 14px; border-left: 4px solid var(--ink); background: var(--surface); border-radius: 0 8px 8px 0; }

.bar {
  position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  padding: 10px 0; margin: 0 0 24px; background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 5px 12px;
  font: 700 0.875rem/1 "Archivo", system-ui, sans-serif; color: var(--ink);
  background: transparent; border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip-n { font-weight: 400; opacity: 0.7; }
.find { margin-left: auto; }
.find input {
  min-height: 40px; width: min(260px, 100%); padding: 6px 14px; font: inherit; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px;
}

main:focus { outline: none; }

.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 16px; padding: 20px 0 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.875rem;
}
.foot p { margin: 0; max-width: 46em; }
.foot a { color: var(--ink); }

@media (max-width: 560px) {
  .find { margin-left: 0; width: 100%; }
  .find input { width: 100%; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .chip { flex: none; }
}

/* iPhone: no zoom on tap. Safari zooms into text fields under 16px and on quick double taps;
   pinch-zoom still works. */
html { touch-action: manipulation; }
@media (pointer: coarse) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]), select, textarea { font-size: 16px !important; }
}
