:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --text: #1f2a24;
  --muted: #5d6b63;
  --line: #dcd8cf;
  --accent: #2f6b4f;
  --ok: #1f7a4a;
  --error: #b42318;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  line-height: 1.5;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding: 16px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

nav a[aria-current='page'] {
  color: var(--accent);
  font-weight: 600;
}

main {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 16px 160px;
}

h1 {
  font-size: 32px;
  line-height: 1.2;
  margin: 24px 0 8px;
}

.lede {
  color: var(--muted);
  margin: 0 0 24px;
}

.test-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 14px;
}

.test-panel dl {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 6px 12px;
  margin: 0;
}

.test-panel dt {
  color: var(--muted);
}

.test-panel dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.status {
  margin: 12px 0 0;
  font-weight: 600;
}

.status[data-tone='ok'] {
  color: var(--ok);
}

.status[data-tone='error'] {
  color: var(--error);
}

.violations {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--error);
}

.violations:empty {
  display: none;
}

.switcher a[aria-current='true'] {
  font-weight: 700;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.product {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}

.product h2 {
  font-size: 16px;
  margin: 0 0 4px;
}

.product p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  font-size: 14px;
}

th,
td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-weight: 600;
}

code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.92em;
}
