/* Tools — 緑 midori. Too light as text on the paper (2.9:1), so text uses
   the deeper --page-ink. Each entry carries its own tool's colour. */
:root { --page-color: #36a06b; --page-ink: #2a7d53; }

/* A catalogue, like the list of works at the back of an exhibition book */
.tools-grid { list-style: none; border-top: 2px solid var(--page-color); max-width: 62rem; margin-left: clamp(0px, 9vw, 150px); }
.tool-entry { border-bottom: 1px solid var(--rule); }
.tool-link {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr) auto;
  gap: clamp(20px, 3.5vw, 44px);
  align-items: start;
  padding: 28px 0;
  color: inherit;
}

/* The tool's character, set large in a hairline square like a manuscript cell */
.tool-glyph {
  position: relative;
  display: grid;
  place-items: center;
  width: 7.5rem;
  aspect-ratio: 1;
  border: 1px solid var(--rule-strong);
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: 4.2rem;
  line-height: 1;
  color: var(--ink);
  background:
    linear-gradient(var(--rule), var(--rule)) center / 1px 100% no-repeat,
    linear-gradient(var(--rule), var(--rule)) center / 100% 1px no-repeat;
}
.tool-glyph::after {            /* the tool's own colour, as a small seal */
  content: "";
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 9px;
  height: 9px;
  background: var(--tile-color);
}

.tool-body { display: grid; gap: 8px; max-width: 36rem; }
.tool-title { font-family: var(--font-mincho); font-weight: 600; font-size: 1.35rem; line-height: 1.4; color: var(--ink); }
.tool-desc { font-size: 14px; line-height: 1.9; color: var(--ink-soft); }
.tool-tags { font-size: 13px; color: var(--muted); }
.tool-tag:not(:last-child)::after { content: "・"; margin: 0 0.3em; }
.tool-open {
  align-self: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  white-space: nowrap;
}
.tool-link:hover .tool-title, .tool-link:hover .tool-open { color: var(--page-ink); border-color: var(--page-ink); }

.tools-soon { margin: 56px 0 0 clamp(0px, 9vw, 150px); font-size: 14px; }

@media (max-width: 899px) {
  .tools-grid, .tools-soon { margin-left: 0; }
  .tool-link { grid-template-columns: 4.5rem minmax(0, 1fr); gap: 18px; padding: 22px 0; }
  .tool-glyph { width: 4.5rem; font-size: 2.5rem; }
  .tool-open { grid-column: 2; justify-self: start; }
}
