:root {
  color-scheme: light;
  --paper: #f3f0e8;
  --paper-2: #efeae1;
  --card: #fffdf8;
  --ink: #1b1914;
  --muted: #5c564c;
  --line: #ddd6c8;
  --teal: #0f5c56;
  --teal-ink: #f4fbfa;
  --danger: #9f1239;
  --ok: #166534;
  --shadow: 0 1px 0 rgba(27, 25, 20, 0.04);
  font-family: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 400px at 10% -10%, #e7f3f1, transparent 50%),
    var(--paper);
  font-family: system-ui, sans-serif;
  line-height: 1.5;
}
h1, h2, h3, .brand, .stamp {
  font-family: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.05; margin: 0 0 0.6rem; }
h2 { font-size: 1.35rem; margin: 0 0 0.5rem; }
p { margin: 0 0 0.8rem; }
a { color: var(--teal); }
a:hover { text-decoration-thickness: 2px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; }
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: white;
  padding: 0.4rem 0.7rem;
}
.skip:focus { top: 0.5rem; }
.site-header, .site-footer, main { width: min(72rem, calc(100% - 2rem)); margin: 0 auto; }
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
}
.brand { color: var(--ink); text-decoration: none; font-size: 1.25rem; }
.brand span { color: var(--teal); }
.site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.site-header nav a, .site-footer nav a { color: var(--ink); text-decoration: none; }
.site-header nav a:hover, .site-footer nav a:hover { color: var(--teal); }
.banner {
  width: min(72rem, calc(100% - 2rem));
  margin: 0 auto 1rem;
  background: #fff6d8;
  border: 1px solid #e6d48a;
  padding: 0.7rem 0.9rem;
}
main { padding-bottom: 3rem; }
.site-footer { border-top: 1px solid var(--line); padding: 1.4rem 0 2rem; color: var(--muted); }
.hero { padding: 1.5rem 0 1rem; max-width: 44rem; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 42rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; color: var(--teal); margin-bottom: 0.4rem; }
.scan-form, .finding, .grid-3 article, .grid-2 article, .guide-list a, .actions > div {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 14px;
}
.scan-form { padding: 1rem; margin-top: 1rem; }
label { display: block; font-size: 0.92rem; margin-bottom: 0.35rem; }
.row { display: flex; gap: 0.6rem; }
input[type="url"], textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
}
textarea { resize: vertical; }
button, .button {
  display: inline-block;
  background: var(--teal);
  color: var(--teal-ink);
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font: inherit;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
}
button.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.row button { white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.coming {
  display: inline-block;
  margin: 0 0 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  color: var(--muted);
  background: var(--paper-2);
}
.ok { color: var(--ok); }
.grid-3, .grid-2, .actions { display: grid; gap: 1rem; margin: 1.5rem 0; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.actions { grid-template-columns: repeat(3, 1fr); }
.grid-3 article, .grid-2 article, .actions > div { padding: 1rem 1.05rem; }
.note { color: var(--muted); max-width: 44rem; }
.stamp {
  width: 4.5rem;
  height: 4.5rem;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: white;
  font-size: 2.4rem;
  margin: 0.4rem 0 1rem;
}
.stamp.mini { width: 2rem; height: 2rem; border-radius: 8px; font-size: 1rem; }
.g-A { background: #166534; }
.g-B { background: #3f6212; }
.g-C { background: #a16207; }
.g-D { background: #c2410c; }
.g-F { background: #9f1239; }
.finding, .guide { padding: 1rem 1.1rem; margin: 1rem 0; }
.sev { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.2rem; }
.sev-critical, .sev-high { color: var(--danger); }
.sev-medium { color: #a16207; }
.sev-low, .sev-info { color: var(--muted); }
.mask code, .where { color: var(--muted); }
.where { font-size: 0.92rem; }
.grade-label { color: var(--muted); font-size: 0.6em; }
.score { color: var(--muted); }
.hidden-count { font-weight: 600; }
.findings, .history, .guide-list, .grade-row { list-style: none; padding: 0; }
.guide-list a { display: grid; gap: 0.25rem; padding: 0.9rem 1rem; margin: 0.6rem 0; color: inherit; text-decoration: none; }
.guide-list a strong { font-family: "Iowan Old Style", Palatino, Georgia, serif; font-size: 1.25rem; }
.grade-row { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.grade-row li { display: flex; gap: 0.45rem; align-items: center; }
.guide h2 { margin-top: 1.6rem; }
.guide pre { overflow: auto; background: #1b1914; color: #f3f0e8; padding: 0.8rem; border-radius: 10px; }
.guide blockquote { margin: 0; padding-left: 0.8rem; border-left: 3px solid var(--teal); color: var(--muted); }
details { margin: 1rem 0; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
@media (max-width: 720px) {
  .grid-3, .grid-2, .actions, .row { grid-template-columns: 1fr; display: grid; }
  .row { display: grid; }
  .site-header { align-items: flex-start; flex-direction: column; }
}
