:root {
  color-scheme: dark;
  --ink: #e8e1d5;
  --muted: #918d86;
  --paper: #08090a;
  --surface: #111214;
  --line: #303033;
  --line-strong: #5b5050;
  --accent: #d12b25;
  --accent-soft: #260e10;
  --signal: #b6d54a;
  --danger: #ff5147;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(209, 43, 37, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(209, 43, 37, 0.035) 1px, transparent 1px),
    repeating-linear-gradient(118deg, transparent 0 72px, rgba(255, 255, 255, 0.012) 72px 73px),
    var(--paper);
  background-size: 36px 36px, 36px 36px, auto, auto;
  font-family: "Bahnschrift", "Franklin Gothic Medium", sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 4px, rgba(255, 255, 255, 0.012) 4px 5px);
}

header,
main,
footer {
  width: min(1440px, calc(100% - 40px));
  margin-inline: auto;
}

header {
  min-height: 210px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding-block: 48px 28px;
  border-bottom: 2px solid var(--accent);
}

h1,
h2,
p { margin: 0; }

h1 {
  font-family: "Palatino Linotype", "Book Antiqua", serif;
  font-size: clamp(3.2rem, 6vw, 5.8rem);
  font-weight: 700;
  line-height: 0.9;
  text-shadow: 4px 4px 0 #8c1714;
}

h2 {
  font-family: "Palatino Linotype", "Book Antiqua", serif;
  font-size: 1.5rem;
  font-weight: 500;
}

.wordmark {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--ink);
  font-family: "Bahnschrift Condensed", "Franklin Gothic Medium", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.wordmark::before { content: "◆●◇  "; color: var(--accent); text-shadow: 0 0 12px rgba(209, 43, 37, 0.8); }

.eyebrow {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.summary {
  text-align: right;
  color: var(--muted);
}

.summary strong {
  display: block;
  color: var(--accent);
  font-family: "Palatino Linotype", "Book Antiqua", serif;
  font-size: 2.4rem;
  font-weight: 500;
}

.specimen {
  min-height: 270px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 3fr) 44px;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, transparent, rgba(209, 43, 37, 0.06), transparent);
}

.symbol-line,
.symbol {
  font-family: "Segoe UI Symbol", "Noto Sans Symbols 2", "Apple Symbols", sans-serif;
}

.symbol-line {
  overflow-wrap: anywhere;
  color: #f0d9d4;
  font-size: clamp(2.6rem, 7vw, 6.8rem);
  line-height: 1;
}

button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--accent);
  border-radius: 0;
  color: var(--ink);
  background: #8c1714;
  font-size: 1.25rem;
  cursor: pointer;
}

button:focus-visible,
textarea:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }

.coverage { padding-block: 36px; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

#registry-meta,
footer { color: var(--muted); }

.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 0;
  box-shadow: 8px 8px 0 var(--accent-soft);
}

table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
  font-size: 0.88rem;
}

th,
td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  background: #0d0d0f;
  font-size: 0.72rem;
  text-transform: uppercase;
}

tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(209, 43, 37, 0.08); }

.symbol { font-size: 2rem; }
.check { color: var(--signal); font-weight: 800; text-align: center; }
.check.fail { color: var(--danger); }

.paste-check {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(300px, 2fr) auto;
  gap: 24px;
  align-items: center;
  padding-block: 36px;
  border-top: 1px solid var(--line);
}

.paste-check label { position: absolute; width: 1px; height: 1px; overflow: hidden; }

textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 12px;
  color: var(--ink);
  background: var(--surface);
  font: 1.6rem/1.4 "Segoe UI Symbol", "Noto Sans Symbols 2", "Apple Symbols", sans-serif;
}

output { min-width: 130px; color: var(--muted); }
output.pass { color: var(--signal); font-weight: 700; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 24px 40px;
  font-size: 0.8rem;
}

@media (max-width: 760px) {
  header,
  main,
  footer { width: min(100% - 24px, 1440px); }
  header { min-height: 150px; align-items: center; }
  .specimen { grid-template-columns: 1fr 44px; padding-block: 28px; }
  .specimen > div { grid-column: 1 / -1; }
  .paste-check { grid-template-columns: 1fr; }
  .section-heading { align-items: start; flex-direction: column; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: no-preference) {
  .symbol-line { animation: signal-in 650ms steps(6, end) both; }
  .summary strong { animation: signal-pulse 2.8s ease-in-out infinite; }

  @keyframes signal-in {
    from { opacity: 0; filter: blur(8px); transform: translateX(-12px); }
    to { opacity: 1; filter: blur(0); transform: translateX(0); }
  }

  @keyframes signal-pulse {
    0%, 85%, 100% { text-shadow: none; }
    90% { text-shadow: 0 0 18px rgba(182, 213, 74, 0.7); }
  }
}