:root {
  color-scheme: light dark;
  --bg: #faf8f4;
  --surface: #ffffff;
  --text: #1c1b19;
  --muted: #5f5b53;
  --border: #dad5cb;
  --accent: #0b5f73;
  --info-bg: #e1e9f5;
  --info-fg: #1f3a5f;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14130f;
    --surface: #1d1b17;
    --text: #ece8e0;
    --muted: #a8a298;
    --border: #3a362f;
    --accent: #6cc4d8;
    --info-bg: #17263b;
    --info-fg: #a9c7f0;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
}
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.container { width: min(68rem, calc(100% - 32px)); margin-inline: auto; }
.skip-link { position: absolute; left: 16px; top: -100px; padding: 8px 12px; background: var(--surface); z-index: 2; }
.skip-link:focus { top: 12px; }
.site-header { border-bottom: 1px solid var(--border); }
.header-inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { font-weight: 750; letter-spacing: -.02em; text-decoration: none; }
.wordmark span { color: var(--muted); font-weight: 500; }
.text-link { color: var(--muted); font-size: .8125rem; text-underline-offset: 4px; }
.hero { padding-block: 48px 56px; max-width: 47rem; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-family: var(--mono); font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(2.25rem, 6vw, 4.25rem); line-height: 1.05; letter-spacing: -.055em; font-weight: 700; }
.intro { margin: 24px 0 0; max-width: 40rem; color: var(--muted); font-size: 1.125rem; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
h2 { margin: 0; font-size: 1.125rem; line-height: 1.2; }
.count { color: var(--muted); font-family: var(--mono); font-size: .8125rem; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(18rem, 100%), 1fr)); gap: 16px; padding-block: 24px 64px; }
.project-card { display: flex; min-height: 240px; flex-direction: column; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; text-decoration: none; transition: border-color 140ms ease, transform 140ms ease; }
.project-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tag { color: var(--muted); font-family: var(--mono); font-size: .8125rem; }
.card-arrow { color: var(--accent); font-size: 1.25rem; }
.project-card h3 { margin: 28px 0 8px; font-size: 1.5rem; letter-spacing: -.025em; }
.project-card p { margin: 0 0 24px; color: var(--muted); }
.badge { align-self: flex-start; margin-top: auto; padding: 4px 10px; border: 1px solid currentColor; border-radius: 4px; font-size: .8125rem; font-weight: 600; }
.badge--login { background: var(--info-bg); color: var(--info-fg); }
.privacy { max-width: 46rem; padding-block: 32px 64px; border-top: 1px solid var(--border); }
.privacy p { color: var(--muted); }
.site-footer { display: flex; justify-content: space-between; gap: 16px; padding-block: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: .8125rem; }
.site-footer span:last-child { font-family: var(--mono); }

@media (min-width: 640px) {
  .container { width: min(68rem, calc(100% - 48px)); }
  .hero { padding-block: 72px; }
}
@media (max-width: 420px) {
  .site-footer { flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .project-card { transition: none; }
  .project-card:hover { transform: none; }
}
