@font-face {
  font-family: "DM Sans";
  src: url("vendor/dm-sans/latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  color-scheme: light;
  --bg: #f7f8f5;
  --surface: #fff;
  --ink: #1c201c;
  --muted: #60675f;
  --line: #dce0d7;
  --soft: #f1f3ed;
  --accent: #c4f478;
  --active: #e9f6d7;
  --green: #365916;
  --danger: #99362d;
  font: 100%/1.5 "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, p { margin: 0; }
button, input, select, summary { font: inherit; }
button, summary { cursor: pointer; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
[hidden], .hidden { display: none !important; }
:focus-visible { outline: 3px solid #668f32; outline-offset: 3px; }
.sr-only, .skip:not(:focus), .drop-zone input {
  position: absolute;
  width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip:focus { position: fixed; z-index: 20; top: 1rem; left: 1rem; padding: .65rem; background: #fff; }
.glyph { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
h1, h2 { line-height: 1.13; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 4.2vw, 3.8rem); letter-spacing: -.063em; font-weight: 650; }
h2 { font-size: 1.35rem; letter-spacing: -.044em; font-weight: 650; }
.subtle { color: var(--muted); margin-top: .55rem; }
.button, .icon, .flag-button, .details-link, .size-option, .flag-filter, .close, .filter-panel summary {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 1px solid transparent; border-radius: .6rem; background: transparent;
  font-size: .875rem; font-weight: 600; line-height: 1.2;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.button { min-height: 42px; padding: .6rem 1rem; background: var(--ink); color: #fff; text-decoration: none; }
.button:hover { background: #353d32; }
.button.secondary, .button.danger { background: var(--surface); color: var(--ink); border-color: var(--line); }
.button.secondary:hover, .icon:hover, .flag-button:hover, .details-link:hover, .flag-filter:hover { background: var(--soft); }
.button.danger { color: var(--danger); }
.button.danger:hover, .danger-icon:hover { background: #fff0ef; }
button:disabled { opacity: .58; cursor: default; }
.icon, .flag-button { min-width: 32px; min-height: 32px; padding: .37rem; color: var(--muted); }
.icon .glyph, .flag-button .glyph { width: 17px; height: 17px; }
[aria-pressed="true"].flag-button, [aria-pressed="true"].flag-filter, .flag-setting .is-enabled {
  color: var(--green); background: var(--active); border-color: #cfe2ac;
}
button[aria-pressed="true"] .glyph { stroke-width: 2.3; }
input[type="text"], select {
  background-color: var(--surface); border: 1px solid var(--line); border-radius: .6rem;
  padding: .55rem .8rem; min-height: 42px; color: var(--ink); font-size: .875rem;
}
select { appearance: none; padding-right: 2.15rem; background-image: url("vendor/lucide/chevron-down.svg"); background-repeat: no-repeat; background-position: right .65rem center; background-size: .95rem; }
.result { width: min(32rem, calc(100% - 2rem)); margin: 12vh auto; padding: 2rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); }
.result p { margin-top: 1rem; }
.result h1 { font-size: 2rem; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
