/* Type and colour tokens taken from aihero.dev (DM Sans, its light palette) on a white page. */
:root {
  color-scheme: light;
  --page: #fff;
  --fg: #14161a;
  --body: #14161acc;
  --muted: #14161a99;
  --line: #14161a1a;
  --card: #fff;
  --accent: #14161a;
  --wash: #14161a0a;
  --wash-line: #14161a38;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--body);
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
}

header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 62px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--page) 90%, transparent);
  backdrop-filter: blur(12px);
  font-size: 0.95rem;
}
header a { color: var(--muted); text-decoration: none; }
header a:hover, header a[aria-current] { color: var(--fg); }
header { overflow-x: auto; white-space: nowrap; }
@media (max-width: 480px) { header { gap: 0.9rem; font-size: 0.8rem; } }
header .home { margin-right: auto; color: var(--fg); font-weight: 700; letter-spacing: -0.02em; }

main { margin: 0 auto; padding: 3.5rem 18px 6rem; }
main > * { max-width: 44rem; margin-inline: auto; }
main > figure, main.wide > * { max-width: 1100px; }

h1, h2 { color: var(--fg); font-weight: 700; }
h1 { margin-block: 0 1.25rem; font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1.05; letter-spacing: -0.034em; }
h2 { margin-block: 3.5rem 1rem; font-size: 1.65rem; line-height: 1.2; letter-spacing: -0.025em; }
p { margin-block: 1.25rem; }
.lead { color: var(--fg); font-size: 1.3rem; line-height: 1.55; }
a { color: var(--accent); text-underline-offset: 3px; }

img, video { display: block; max-width: 100%; height: auto; border-radius: 9px; }
figure { margin-block: 2rem; }
figure img, figure video { width: 100%; }
figcaption { margin-top: 0.6rem; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.center { width: 100%; max-width: 640px; margin-inline: auto; }

.note {
  margin-block: 2rem;
  padding: 1.1rem 1.4rem;
  border: 1px solid var(--wash-line);
  border-radius: 12px;
  background: var(--wash);
  color: var(--fg);
  font-weight: 500;
}

.button {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--wash-line);
  border-radius: 9px;
  background: var(--wash);
  color: var(--fg);
  font-weight: 500;
  text-decoration: none;
}
.button:hover { border-color: var(--accent); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: inherit;
  text-decoration: none;
}
.card:hover { border-color: var(--wash-line); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 0; border-bottom: 1px solid var(--line); }
.card div { padding: 1.25rem 1.5rem 1.5rem; }
.card h2 { margin: 0 0 0.4rem; font-size: 1.35rem; }
.card p { margin: 0; font-size: 1rem; line-height: 1.6; }
