/* ─────────────────────────────────────────────────────────────────────────────
   Tools landing page (tools.marcelpater.com)
   Palette follows the marcelpater.com theme tokens. Each tool page is
   self-contained and does not load this file.
   ───────────────────────────────────────────────────────────────────────────── */

:root {
  --paper: #0d0d0f;
  --panel: #141417;
  --panel-hover: #19191d;
  --edge: #26262b;
  --ink: #ece7dc;
  --ink-soft: #949ea9;
  --ink-faint: #737887;
  --accent: #62a9d2;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { background-color: var(--paper); color: var(--ink); }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100svh;
}

.page {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: clamp(40px, 10vh, 96px) 20px 48px;
}

/* ---------- masthead ---------- */
.masthead { margin-bottom: 32px; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { color: var(--ink); }
.eyebrow a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

h1 {
  margin-top: 8px;
  font-size: clamp(34px, 7vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.lede { margin-top: 10px; max-width: 60ch; color: var(--ink-soft); }

/* ---------- tool list ---------- */
.tools { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.tool {
  --tint: var(--accent);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px 14px 14px;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s;
}
.tool:hover {
  background: var(--panel-hover);
  border-color: color-mix(in oklab, var(--tint) 55%, var(--edge));
}
.tool:focus-visible { outline: 2px solid var(--tint); outline-offset: 2px; }

.tool-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  color: var(--tint);
  background: color-mix(in oklab, var(--tint) 14%, transparent);
}
.tool-icon svg { width: 26px; height: 26px; }

.tool-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tool-name { font-weight: 600; }
.tool-desc { font-size: 14px; line-height: 1.4; color: var(--ink-soft); }

.tool-go {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--ink-faint);
  transition: color 0.15s, transform 0.15s;
}
.tool:hover .tool-go { color: var(--ink); transform: translateX(3px); }

/* Per-tool tint: drives the icon colour, icon tile and hover border. */
.tool--color { --tint: #4f8df5; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
