/* Tools and Mods: the four tools, each with its state (nearly done, done, proof of concept). */
:root { --accent: #7fd8ff; --accent-2: #ffd36b; --accent-ink: #03202e; --glow: rgba(127, 216, 255, .4); }
body { background: radial-gradient(900px 600px at 85% 0%, rgba(127, 216, 255, .14), transparent 70%),
  radial-gradient(700px 500px at 0% 55%, rgba(255, 211, 107, .08), transparent 70%), var(--bg); }

.tools-hero { padding-bottom: clamp(24px, 4vw, 48px); }
.tools-hero .lead { max-width: 64ch; }
.tool-index { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; margin-top: 32px; }
.tool-index a { display: grid; gap: 10px; padding: 18px 20px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); text-decoration: none; transition: transform .2s, border-color .2s, background .2s; }
.tool-index a:hover { transform: translateY(-3px); border-color: var(--accent); background: var(--surface-2); }
.tool-index b { font: 700 1.1rem/1.2 var(--font-display); }

.state { justify-self: start; display: inline-flex; align-items: center; gap: 7px; width: fit-content; padding: 5px 10px; border-radius: 999px;
  font: 600 .7rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; border: 1px solid currentColor; }
.state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.state--done { color: #6be3a0; }
.state--near { color: #ffd36b; }
.state--poc { color: #b9a6ff; }
.tool .state { margin-bottom: 14px; }

.tool-list { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.tool-list li { position: relative; padding-left: 22px; color: var(--muted); }
.tool-list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.tool-list b { color: var(--text); }

.tool-shot { margin: 0; }
.tool-shot img { display: block; }
@media (min-width: 900px) { .split--flip > :first-child { order: 2; } }

/* previous / next pages, the same as on the other Grandia pages */
.next-row { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; flex-wrap: wrap; }
.next-row a { display: grid; gap: 4px; padding: 18px 24px; border-radius: 12px; border: 1px solid var(--border); text-decoration: none; transition: background .2s; flex: 1; min-width: 220px; }
.next-row a:last-child { text-align: right; }
.next-row a:hover { background: var(--surface-2); }
.next-row small { color: var(--muted); font: 500 .75rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .14em; }
.next-row b { font: 600 1.25rem/1.2 var(--font-display); }
