:root {
  --bg: #f4f1ec;
  --ink: #1a1d1b;
  --muted: #5e6560;
  --line: #ddd6cc;
  --card: #fffcf8;
  --up: #0f7a45;
  --up-bg: #e7f6ee;
  --mixed: #8a5a00;
  --mixed-bg: #fff4df;
  --down: #9d2c2c;
  --down-bg: #fdecec;
  --unknown: #3e4741;
  --unknown-bg: #eef1ef;
  --sans: "Familjen Grotesk", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 1.06rem; line-height: 1.55; }
a { color: var(--ink); }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: white; padding: 0.45rem 0.7rem; }
.skip:focus { top: 1rem; }
.wrap { width: min(980px, calc(100% - 2rem)); margin: 0 auto; }
.wrap-narrow { width: min(740px, calc(100% - 2rem)); margin: 0 auto; }
.masthead { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.1rem 0; }
.brand { text-decoration: none; color: inherit; display: flex; gap: 0.7rem; align-items: center; }
.lamp { width: 0.85rem; height: 0.85rem; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 4px rgba(15, 122, 69, 0.15); }
.brand strong { font-size: 1.15rem; letter-spacing: -0.03em; }
nav { display: flex; gap: 1rem; flex-wrap: wrap; }
nav a { text-decoration: none; }
nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.28rem; }
h1, h2 { letter-spacing: -0.03em; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); margin: 0.4rem 0; font-weight: 620; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 0.5rem; }
.lede { font-size: 1.2rem; max-width: 40rem; }
.meta, .fine { color: var(--muted); }
.checker { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 1rem; margin: 1.2rem 0 1.5rem; }
.bar { display: flex; gap: 0.6rem; }
.bar input {
  flex: 1;
  font-family: var(--mono);
  font-size: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 0.9rem;
  background: #fff;
  color: var(--ink);
}
button, .button {
  font: inherit;
  background: var(--ink);
  color: white;
  border: 0;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  cursor: pointer;
  text-decoration: none;
}
button:disabled { opacity: 0.6; cursor: wait; }
button.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.samples { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.8rem; }
input:focus, textarea:focus, select:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
textarea, select, input { width: 100%; font: inherit; border: 1px solid var(--line); border-radius: 12px; padding: 0.75rem; background: white; color: var(--ink); }
textarea { min-height: 9rem; }
label { display: block; margin: 0.8rem 0; }
label span { display: block; margin-bottom: 0.3rem; }
.result { border-radius: 18px; padding: 1.1rem 1.2rem 1.2rem; margin-bottom: 1.5rem; border: 1px solid var(--line); }
.tone-up { background: var(--up-bg); }
.tone-mixed { background: var(--mixed-bg); }
.tone-down { background: var(--down-bg); }
.tone-unknown { background: var(--unknown-bg); }
.status-label { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 0; }
.tone-up .status-label { color: var(--up); }
.tone-mixed .status-label { color: var(--mixed); }
.tone-down .status-label { color: var(--down); }
.result h2 { margin-top: 0.25rem; }
dl { margin: 0.8rem 0 0; display: grid; gap: 0.55rem; }
dt { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
dd { margin: 0.1rem 0 0; font-family: var(--mono); font-size: 0.92rem; overflow-wrap: anywhere; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1rem; }
.card h3 { margin: 0 0 0.4rem; }
ol.steps { padding-left: 1.2rem; }
ol.steps li { margin: 0.45rem 0; }
.faq details { border-top: 1px solid var(--line); padding: 0.75rem 0; }
.faq summary { cursor: pointer; font-weight: 650; }
.publisher-note { background: #fff6df; border: 1px solid #ead7a4; padding: 0.8rem 1rem; border-radius: 12px; }
.site-footer { border-top: 1px solid var(--line); margin-top: 2rem; padding: 1.2rem 0 2rem; color: var(--muted); }
.footer-row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-links { display: flex; gap: 0.9rem; flex-wrap: wrap; }
code { font-family: var(--mono); font-size: 0.92em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
@media (max-width: 720px) {
  .bar, .grid-2, .masthead { display: block; }
  .bar button, .samples button { margin-top: 0.5rem; }
  nav { margin-top: 0.7rem; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
.ad-slot:not(:has(ins, iframe, .adsbygoogle)) { display: none; }
.ad-slot:has(ins, iframe, .adsbygoogle) {
  margin: 1.75rem auto;
  min-height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.ad-slot ins { display: block; width: 100%; }
