:root {
  --ink: #172435;
  --muted: #667487;
  --line: #dce3ea;
  --paper: #f7f9fc;
  --surface: #ffffff;
  --accent: #2c6fbb;
  --accent-dark: #215b9e;
  --max-width: 1120px;
}
:root[data-theme="dark"], :root[data-theme="system"] {
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]), :root[data-theme="system"] {
    color-scheme: dark;
    --ink: #e7edf5;
    --muted: #a2afbf;
    --line: #2b3949;
    --paper: #111923;
    --surface: #182331;
    --accent: #79b5f3;
    --accent-dark: #a1ccf8;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e7edf5;
  --muted: #a2afbf;
  --line: #2b3949;
  --paper: #111923;
  --surface: #182331;
  --accent: #79b5f3;
  --accent-dark: #a1ccf8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible { outline: 3px solid #8bbcf0; outline-offset: 4px; border-radius: 3px; }
.container { width: min(calc(100% - 3rem), var(--max-width)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 94%, transparent); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.wordmark { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); font-size: 1.2rem; font-weight: 800; letter-spacing: .12em; text-decoration: none; }
.wordmark img { display: block; width: 2.5rem; height: 2.5rem; object-fit: contain; }
.nav-links { display: flex; gap: 2rem; color: var(--muted); font-size: .88rem; }
.nav-links a { text-decoration: none; }
.nav-links a:hover, .footer-meta a:hover, .card-link:hover { color: var(--accent-dark); }
.hero { padding-top: clamp(5rem, 12vw, 9rem); padding-bottom: clamp(5rem, 12vw, 9rem); }
.eyebrow, .section-label { color: var(--accent); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow { margin: 0 0 1.5rem; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 100%; margin-bottom: 1.7rem; font-size: clamp(1.55rem, 7.5vw, 5.25rem); font-weight: 650; letter-spacing: -.065em; line-height: .98; }
h1 span { white-space: nowrap; }
h1 span { color: var(--muted); }
.hero-copy { max-width: 430px; margin-bottom: 2.25rem; color: var(--muted); font-size: 1.1rem; }
.button { display: inline-flex; align-items: center; gap: 1rem; padding: .78rem 1rem .78rem 1.15rem; border: 1px solid var(--accent); border-radius: 4px; color: #fff; background: var(--accent); font-size: .9rem; font-weight: 650; text-decoration: none; transition: background .2s ease, border-color .2s ease; }
.button:hover { border-color: var(--accent-dark); background: var(--accent-dark); }
.section { display: grid; grid-template-columns: 180px 1fr; gap: 3rem; padding-top: 5.5rem; padding-bottom: 5.5rem; border-top: 1px solid var(--line); }
.section-label { padding-top: .45rem; color: var(--muted); }
h2 { margin-bottom: 2.5rem; font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 600; letter-spacing: -.045em; line-height: 1.08; }
.about-details { display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, .75fr); gap: 4rem; max-width: 840px; }
.about-details p, .tools-heading p { color: var(--muted); }
.research-areas { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.research-areas li { padding: .65rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.research-areas li::before { margin-right: .6rem; color: var(--accent); content: "—"; }
.tools { padding-bottom: 7rem; }
.tools-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.tools-heading h2 { margin-bottom: 3rem; }
.tools-heading p { max-width: 235px; margin-bottom: 3.2rem; font-size: .9rem; }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.tool-card { position: relative; display: flex; min-height: 310px; flex-direction: column; padding: 1.5rem; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.tool-card:hover, .tool-card:focus-within { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 8px 24px rgb(23 36 53 / 10%); }
.tool-card-muted { background: transparent; }
.card-topline { display: flex; justify-content: space-between; margin-bottom: 3.5rem; }
.status { display: inline-flex; align-items: center; gap: .45rem; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.status span { display: inline-block; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }
.status-available { color: #21775a; }
.status-soon { color: var(--muted); }
.card-index { color: var(--muted); font-size: .75rem; }
.tool-icon { display: block; width: 4rem; height: 4rem; margin: -1.25rem 0 1rem; object-fit: contain; }
.tool-card h3 { margin-bottom: .8rem; font-size: 1.35rem; letter-spacing: -.025em; }
.tool-card p { max-width: 340px; margin-bottom: 1.75rem; color: var(--muted); font-size: .9rem; }
.card-link { margin-top: auto; color: var(--accent-dark); font-size: .9rem; font-weight: 700; text-decoration: none; }
.card-link::after { position: absolute; inset: 0; content: ""; }
.card-link:focus-visible::after { outline: 3px solid #8bbcf0; outline-offset: 4px; border-radius: 6px; }
.card-link span { margin-left: .4rem; }
.card-link-disabled { color: var(--muted); cursor: default; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; padding-top: 2.5rem; padding-bottom: 2.5rem; }
.footer-inner p { margin: .7rem 0 0; color: var(--muted); font-size: .8rem; }
.footer-meta { display: flex; align-items: end; gap: 3rem; }
.footer-meta p { margin: 0; }
.footer-meta a { color: var(--accent-dark); font-size: .85rem; font-weight: 700; }

@media (max-width: 700px) {
  .container { width: min(calc(100% - 2rem), var(--max-width)); }
  .nav { min-height: 68px; flex-wrap: wrap; gap: .75rem 1rem; padding-block: .75rem; }
  .wordmark img { width: 2.25rem; height: 2.25rem; }
  .nav-links { gap: 1rem; font-size: .78rem; }
  .hero { padding-top: 4.5rem; padding-bottom: 5rem; }
  .section { display: block; padding-top: 4rem; padding-bottom: 4rem; }
  .section-label { margin-bottom: 2rem; }
  .about-details { display: block; }
  .about-details p { margin-bottom: 2.5rem; }
  .tools-heading { display: block; }
  .tools-heading h2 { margin-bottom: 1rem; }
  .tools-heading p { margin-bottom: 2rem; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 280px; }
  .footer-inner, .footer-meta { display: block; }
  .footer-meta { margin-top: 2rem; }
  .footer-meta a { display: inline-block; margin-top: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
