@font-face {
  font-family: Geist;
  src: url("assets/geist.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --coal: #161616;
  --snow: #efefef;
  --burnt: #ff3800;
  --fog: #d9dddc;
  --muted: #5c6068;
  font-family: Geist, -apple-system, "Segoe UI", sans-serif;
  color: var(--coal);
  background: var(--snow);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
svg { display: block; }
.shell { max-width: 1136px; padding: 0 40px; margin: 0 auto; }
.header { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 112px; border-bottom: 1px solid var(--fog); }
.brand { display: block; width: 204px; height: auto; }
.panel-label { color: var(--muted); font-size: .875rem; overflow-wrap: anywhere; }
.intro { padding: 42px 0 30px; }
h1 { margin: 0; font-size: clamp(2.25rem, 4vw, 2.75rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.15; }
.intro p { margin: 12px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tool-card { display: flex; flex-direction: column; align-items: flex-start; min-height: 230px; padding: 26px 30px; color: var(--coal); background: #fff; border: 1px solid #e0e2e1; border-radius: 18px; text-decoration: none; box-shadow: 0 2px 3px #16161603; transition: border-color .16s, box-shadow .16s, transform .16s; }
.card-top { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 19px; }
.tool-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--coal); background: var(--snow); flex-shrink: 0; }
.tool-icon svg { width: 24px; height: 24px; }
.category { font-size: .875rem; line-height: 1.4; color: var(--muted); }
.tool-card h2 { margin: 0; font-size: 1.5rem; line-height: 1.3; font-weight: 600; letter-spacing: -.025em; }
.tool-card p { margin: 8px 0 23px; font-size: 1rem; line-height: 1.5; color: var(--muted); }
.card-action { margin-top: auto; font-size: .875rem; font-weight: 600; line-height: 1.5; border-bottom: 1px solid var(--fog); padding-bottom: 2px; }
.featured { color: var(--snow); background: var(--coal); border-color: var(--coal); }
.featured .tool-icon { color: var(--burnt); background: #ffffff0d; }
.featured .category, .featured p { color: #b9bdc5; }
.featured .card-action { color: #ff704a; border-color: #ff704a66; }
.tool-card:hover { border-color: #a7aba9; box-shadow: 0 8px 24px #1616160c; transform: translateY(-2px); }
.tool-card:hover .card-action { border-color: var(--coal); }
.featured:hover { border-color: #ff704a; }
.featured:hover .card-action { border-color: #ff704a; }
a:focus-visible { outline: 3px solid var(--burnt); outline-offset: 5px; }
.previous { padding: 32px 0 28px; }
.previous-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 14px; }
.previous h2 { font-size: 1rem; line-height: 1.5; font-weight: 600; margin: 0; }
.previous-heading p { color: var(--muted); font-size: .875rem; line-height: 1.5; margin: 0; }
.previous-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.previous-links a { display: flex; gap: 12px; align-items: center; min-height: 58px; padding: 15px 18px; border: 1px solid #d5d8d7; border-radius: 12px; font-size: .875rem; line-height: 1.5; text-decoration: none; }
.previous-links svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--muted); }
.legacy-action { margin-left: auto; color: var(--muted); }
.previous-links a:hover { background: #fff; border-color: #a7aba9; }
.previous-links a:hover .legacy-action { text-decoration: underline; text-underline-offset: 4px; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 20px 0 26px; border-top: 1px solid var(--fog); font-size: .8125rem; line-height: 1.5; color: var(--muted); }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 10; padding: 12px 16px; background: var(--coal); color: white; border-radius: 8px; }
.skip-link:focus { top: 16px; }

@media (max-width: 620px) {
  .shell { padding: 0 22px; }
  .header { min-height: 88px; gap: 14px; }
  .brand { width: 160px; }
  .panel-label { max-width: 92px; text-align: right; line-height: 1.4; }
  .intro { padding: 32px 0 24px; }
  .tools, .previous-links { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .tool-card { min-height: 214px; padding: 23px 24px; }
  .card-top { margin-bottom: 16px; }
  .tool-card h2 { font-size: 1.375rem; }
  .tool-card p { margin-bottom: 19px; }
  .previous { padding-top: 28px; }
  .previous-heading { gap: 4px; }
  .previous-heading p { width: 100%; }
  .previous-links { gap: 10px; }
  .footer { padding-bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .tool-card { transition: none; }
  .tool-card:hover { transform: none; }
}
