:root {
  --bg: #ffffff;
  --fg: #16181d;
  --muted: #6b7280;
  --line: #e5e7eb;
  --tile: #f6f7f9;
  --focus: #2563eb;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --fg: #e8eaed;
    --muted: #9aa1ac;
    --line: #262a31;
    --tile: #171a20;
    --focus: #7aa2f7;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: clamp(2rem, 6vw, 5rem) clamp(1.25rem, 5vw, 4rem);
  max-width: 62rem;
  margin-inline: auto;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

a:focus-visible,
.card a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

header { margin-bottom: clamp(2.5rem, 6vw, 4rem); }

h1 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 .prefix {
  display: block;
  font-size: clamp(0.85rem, 2.2vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

h1 .name { font-size: clamp(2rem, 6vw, 3rem); }

footer {
  margin-top: clamp(3rem, 8vw, 5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

footer p { margin: 0.25rem 0; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 1rem;
}

.card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  height: 100%;
}

/* The four older marks share one blue and one white-glyph treatment.
   A uniform inset tile makes that repetition read as a family rather
   than an accident. */
.card .mark {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--tile);
  border: 1px solid var(--line);
  padding: 6px;
  object-fit: contain;
}

.card .body { min-width: 0; }

.card .head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.card h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card h2 a { text-decoration: none; }
.card h2 a:hover { text-decoration: underline; }

.card .year {
  margin-left: auto;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.card .chip {
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  padding: 0.1rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}

.card .description {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

@media (max-width: 30rem) {
  .card { flex-direction: row; padding: 1rem; }
  .card .mark { width: 44px; height: 44px; }
}

.breadcrumb {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.prose { max-width: 42rem; }

.prose h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.prose p { margin: 0 0 1rem; }
.prose ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.prose li { margin-bottom: 0.5rem; }

.prose .updated {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--muted);
}
