@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;600;700;800&display=swap');

:root {
  --ink: #121411;
  --paper: #f1f0e9;
  --acid: #d7ff3f;
  --red: #ff4d39;
  --muted: #686b62;
  --line: #c8c8be;
  --panel: #faf9f3;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Manrope, system-ui, sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.masthead, footer {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--ink);
  font: 500 12px/1 DM Mono, monospace;
  letter-spacing: .08em;
}
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; font-weight: 600; }
.brand span { display: grid; place-items: center; width: 30px; height: 30px; color: var(--acid); background: var(--ink); }
.masthead p { margin: 0; color: var(--muted); }

main { width: min(1160px, calc(100% - 40px)); margin: auto; }
.hero { padding: clamp(72px, 11vw, 150px) 0 88px; }
.eyebrow { margin: 0 0 20px; font: 500 12px/1.2 DM Mono, monospace; letter-spacing: .12em; }
h1 { max-width: 950px; margin: 0; font-size: clamp(52px, 9vw, 122px); line-height: .88; letter-spacing: -.072em; font-weight: 800; }
.dek { max-width: 700px; margin: 32px 0 52px; color: #40423c; font-size: clamp(18px, 2.2vw, 26px); line-height: 1.35; }
form label { display: block; margin-bottom: 10px; font: 500 11px/1 DM Mono, monospace; letter-spacing: .1em; }
.url-row { display: grid; grid-template-columns: 1fr auto; border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.url-row input { min-width: 0; padding: 22px 24px; border: 0; outline: 0; background: var(--panel); font-size: 18px; }
.url-row input:focus { box-shadow: inset 0 0 0 3px var(--acid); }
.url-row button { display: flex; align-items: center; gap: 28px; padding: 0 28px; border: 0; border-left: 2px solid var(--ink); color: var(--ink); background: var(--acid); font: 700 13px DM Mono, monospace; letter-spacing: .04em; }
.url-row button:hover { filter: brightness(.94); }
.url-row button b { font-size: 24px; }
.fineprint { color: var(--muted); font: 400 11px/1.4 DM Mono, monospace; }

.loading, .error-card { margin-bottom: 70px; border: 1px solid var(--ink); background: var(--panel); padding: 28px; }
.loading { display: flex; gap: 18px; align-items: center; font: 13px DM Mono, monospace; }
.scanner { width: 14px; height: 14px; background: var(--acid); border: 1px solid var(--ink); animation: scan .75s steps(2) infinite; }
@keyframes scan { 50% { transform: translateX(8px); background: var(--ink); } }
.error-card { border-left: 12px solid var(--red); }
.error-card strong { font: 700 13px DM Mono, monospace; }
.error-card p { margin-bottom: 0; }

.report { margin-bottom: 100px; border-top: 2px solid var(--ink); }
.score-card { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; padding: 42px 0; border-bottom: 1px solid var(--ink); }
.verdict-line { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.stamp { display: inline-block; padding: 8px 12px; border: 3px solid currentColor; color: #225b22; font: 800 26px/1 DM Mono, monospace; transform: rotate(-2deg); }
.stamp.fix { color: #8a4b00; }
.stamp.blocked { color: #a01e16; }
.score { margin-left: 16px; font-size: clamp(68px, 10vw, 120px); line-height: .8; font-weight: 800; letter-spacing: -.08em; }
.out-of { color: var(--muted); font: 500 16px DM Mono, monospace; }
.target-meta { align-self: end; }
.target-meta strong { display: block; margin-bottom: 8px; font-size: 24px; overflow-wrap: anywhere; }
.target-meta a { display: block; color: var(--muted); font: 12px/1.5 DM Mono, monospace; overflow-wrap: anywhere; }
.target-meta p { font: 500 11px DM Mono, monospace; }
.report-toolbar { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.report-toolbar p { margin: 0; font-weight: 700; }
.report-toolbar button { border: 1px solid var(--ink); padding: 10px 13px; background: transparent; font: 500 11px DM Mono, monospace; }
.report-toolbar button:hover { color: var(--paper); background: var(--ink); }
.check { display: grid; grid-template-columns: 36px minmax(150px, .7fr) 1.3fr; gap: 18px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.check-icon { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--ink); font: 700 12px DM Mono, monospace; }
.check.pass .check-icon { background: var(--acid); }
.check.warn .check-icon { background: #ffd56a; }
.check.fail .check-icon { color: white; background: var(--red); }
.check h3 { margin: 3px 0 0; font-size: 16px; }
.check p { margin: 3px 0 0; color: var(--muted); font: 12px/1.5 DM Mono, monospace; }

.method { padding: 72px 0 100px; border-top: 1px solid var(--ink); }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ink); border: 1px solid var(--ink); }
.method article { min-height: 210px; padding: 28px; background: var(--paper); }
.method article b { font: 500 11px DM Mono, monospace; }
.method h2 { margin: 42px 0 10px; font-size: 22px; }
.method article p { color: var(--muted); font-size: 14px; line-height: 1.5; }
footer { border-top: 1px solid var(--ink); border-bottom: 0; color: var(--muted); }

[hidden] { display: none !important; }

@media (max-width: 720px) {
  .masthead p { display: none; }
  main { width: min(100% - 28px, 1160px); }
  .hero { padding-top: 68px; }
  h1 { font-size: clamp(50px, 17vw, 80px); }
  .url-row { grid-template-columns: 1fr; box-shadow: 5px 5px 0 var(--ink); }
  .url-row button { justify-content: space-between; min-height: 60px; border-left: 0; border-top: 2px solid var(--ink); }
  .score-card { grid-template-columns: 1fr; }
  .target-meta { align-self: auto; }
  .report-toolbar { align-items: flex-start; flex-direction: column; }
  .check { grid-template-columns: 32px 1fr; }
  .check p { grid-column: 2; }
  .method-grid { grid-template-columns: 1fr; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 10px; }
}
