:root {
  color-scheme: light dark;
  --bg: #f3f7f7;
  --surface: #fff;
  --ink: #1e3a5f;
  --text: #273744;
  --muted: #5b6b78;
  --line: #d1e2e1;
  --teal: #007777;
  --teal-tint: #e3f2f1;
  --coral: #df655f;
  --shadow: 0 12px 32px rgba(30, 58, 95, .07);
  font-family: "Source Sans 3", Calibri, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101c22;
    --surface: #17272e;
    --ink: #d5e8f1;
    --text: #dce6e9;
    --muted: #9aadb3;
    --line: #2a4248;
    --teal: #65c4be;
    --teal-tint: #19383a;
    --coral: #ff8a82;
    --shadow: 0 12px 32px rgba(0, 0, 0, .2);
  }
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); line-height: 1.55; }
a { color: inherit; }
.site-header, main, .site-footer { width: min(1080px, calc(100% - 40px)); margin-inline: auto; }
.site-header { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 1.15rem; font-weight: 800; letter-spacing: .08em; }
.brand-mark { width: 30px; height: 30px; color: var(--teal); }
.header-note { color: var(--muted); font-size: .94rem; }
main { padding-block: 66px 54px; }
.intro { max-width: 760px; margin-bottom: 38px; }
.eyebrow { margin: 0 0 10px; color: var(--teal); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { max-width: 720px; margin-bottom: 14px; color: var(--ink); font-size: clamp(2.15rem, 5vw, 3.25rem); line-height: 1.08; letter-spacing: -.035em; }
.lead { max-width: 680px; margin-bottom: 0; color: var(--muted); font-size: 1.15rem; }
.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tool-card { display: flex; min-height: 100%; flex-direction: column; padding: clamp(22px, 3.5vw, 34px); background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: 12px; box-shadow: var(--shadow); }
.snomed-card { border-top-color: var(--coral); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 12px; background: var(--teal-tint); color: var(--teal); }
.snomed-card .icon { background: color-mix(in srgb, var(--coral) 12%, var(--surface)); color: var(--coral); }
.icon svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tag { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .78rem; font-weight: 700; }
h2 { margin-bottom: 10px; color: var(--ink); font-size: 1.45rem; line-height: 1.2; }
.tool-card > p:not(.address) { margin-bottom: 16px; color: var(--muted); }
.features { display: grid; gap: 9px; margin: 0 0 24px; padding: 0; list-style: none; color: var(--text); font-size: .94rem; }
.features li { position: relative; padding-left: 24px; }
.features li::before { position: absolute; left: 0; color: var(--teal); content: "✓"; font-weight: 800; }
.snomed-card .features li::before { color: var(--coral); }
.action { display: inline-flex; width: fit-content; align-items: center; gap: 12px; margin-top: auto; padding: 11px 16px; border-radius: 6px; background: var(--teal); color: #fff; text-decoration: none; font-weight: 700; transition: transform .15s ease, filter .15s ease; }
.snomed-card .action { background: #a84340; }
.action:hover { filter: brightness(1.08); transform: translateY(-1px); }
.action:focus-visible, .brand:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.address { margin: 10px 0 0; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8rem; }
.notice { display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--teal-tint); }
.notice-mark { display: grid; flex: 0 0 22px; height: 22px; place-items: center; border: 1.5px solid currentColor; border-radius: 50%; color: var(--teal); font-size: .82rem; font-weight: 800; }
.notice p { margin: 0; color: var(--text); font-size: .9rem; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding-block: 20px 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.footer-brand { color: var(--ink); font-weight: 800; letter-spacing: .08em; }
@media (max-width: 700px) {
  .site-header, main, .site-footer { width: min(100% - 32px, 560px); }
  .site-header { min-height: 68px; }
  .header-note { max-width: 160px; text-align: right; font-size: .8rem; line-height: 1.3; }
  main { padding-block: 44px 38px; }
  .tools { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }
