:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted: #4a4a4a;
  --border: #e6e6e6;
  --shadow: rgba(0, 0, 0, 0.08);
  --maxw: 80vw;
  --radius: 14px;
  --hover: rgba(0, 0, 0, 0.03);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --fg: #f5f5f5;
    --muted: #b8b8b8;
    --border: #232323;
    --shadow: rgba(0, 0, 0, 0.5);
    --hover: rgba(255, 255, 255, 0.06);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial,
    "Apple Color Emoji",
    "Segoe UI Emoji";
  line-height: 1.55;
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
}

.brand {
  font-weight: 650;
  letter-spacing: -0.01em;
}

nav a {
  margin-left: 0.9rem;
  color: var(--muted);
}

nav a[aria-current="page"] {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.1rem;
}

main h1 {
  font-size: clamp(1.6rem, 2.5vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem 0;
}

main h2 {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 2.25rem 0 0.75rem 0;
  color: var(--muted);
}

.lede {
  font-size: 1.05rem;
  margin: 0;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1rem;
  box-shadow: 0 1px 0 var(--shadow);
}

.media {
  margin: 0.75rem 0 0 0;
  max-width: 450px;
}

.media img {
  width: 100%;
  max-width: none;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.media figcaption {
  margin-top: 0.6rem;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0 0;
  display: grid;
  gap: 0.75rem;
}

.list a {
  display: block;
  text-decoration: none;
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
}

.list a:hover {
  background: var(--hover);
}

.list a:hover .title {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.title {
  display: inline-block;
  font-weight: 620;
  letter-spacing: -0.01em;
}

.sub {
  margin-top: 0.25rem;
  color: var(--muted);
}

.meta {
  font-size: 0.95rem;
  color: var(--muted);
}

footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95em;
}

.row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: baseline;
}

.pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--muted);
}
