/* Same back-office palette as the tools themselves. */
:root {
  --bg: #f1f5f4;
  --surface: #ffffff;
  --ink: #15211f;
  --muted: #586966;
  --line: #d3dcd9;
  --accent: #0f5c55;
  --accent-soft: #dfecea;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-label: "IBM Plex Sans Condensed", "Arial Narrow", "IBM Plex Sans", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1514; --surface: #172020; --ink: #e5eeec; --muted: #9baba7; --line: #2a3836;
    --accent: #72c9bd; --accent-soft: #1c3430;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1514; --surface: #172020; --ink: #e5eeec; --muted: #9baba7; --line: #2a3836;
  --accent: #72c9bd; --accent-soft: #1c3430;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.5; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 40px max(16px, env(safe-area-inset-left, 0px)) 64px; }

header { margin-bottom: 28px; }
h1 { font-family: var(--font-label); font-weight: 600; font-size: 32px; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
.lede { margin: 6px 0 0; color: var(--muted); max-width: 64ch; }

.tools { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.tool { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; color: inherit; text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s; }
.tool:hover { border-color: var(--accent); box-shadow: 0 4px 18px rgb(15 92 85 / 0.12); }
.tool:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tool img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; border-bottom: 1px solid var(--line); background: var(--accent-soft); }
.tool-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 4px; }
h2 { font-family: var(--font-label); font-weight: 600; font-size: 19px; margin: 0; }
.tool:hover h2 { color: var(--accent); }
.tool p { margin: 0; color: var(--muted); font-size: 14px; }

footer { margin-top: 36px; color: var(--muted); font-size: 13px; max-width: 80ch; }
footer p { margin: 0 0 6px; }
