/* IBM Plex Sans & IBM Plex Mono — SIL Open Font License 1.1.
   Files served from this domain, not from Google Fonts: nothing to fetch
   elsewhere to render a page, and `font-src 'self'` is enough in the CSP.
   Only the latin and latin-ext ranges are bundled, and only the weights
   actually used (Sans 400/600/700, Mono 400/600). IBM Plex Sans is a
   variable font: one file per range serves all three weights.
   To update them, see "Fonts and libraries" in the README. */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/ibm-plex-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/ibm-plex-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/ibm-plex-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/ibm-plex-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Tokens shared by the hub and the tools on tools.soguh.click.
   Each tool keeps its own stylesheet for what is specific to it;
   anything that must stay identical across tools lives here. */
:root {
  --paper: #f7f5f0;
  --paper-raised: #ffffff;
  --ink: #2a2620;
  --ink-soft: #6b6558;
  --line: #ddd8cc;
  --accent: #3d5a80;
  --accent-soft: #e8edf3;
  --accent-ink: #22374f;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1c1a16;
    --paper-raised: #26241f;
    --ink: #ece7db;
    --ink-soft: #a39c8a;
    --line: #3a362d;
    --accent: #7fa5c9;
    --accent-soft: #2b3742;
    --accent-ink: #cfe0ee;
  }
}

* { box-sizing: border-box; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  padding: 32px 16px 48px;
  display: flex;
  justify-content: center;
  margin: 0;
}
main { width: 100%; max-width: 760px; }

header { margin-bottom: 28px; }
.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 6px;
}
h1 { font-size: 26px; margin: 0 0 8px; letter-spacing: -0.01em; }
/* No reading-width cap: the intro runs the full column, like the footer. */
.lede { color: var(--ink-soft); margin: 0; font-size: 15px; line-height: 1.5; }

/* Back link to the hub, sitting at the top of every tool page. */
.back {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 18px;
}
.back:hover { color: var(--accent); }
.back::before { content: "\2190"; margin-right: 6px; }

/* Hub grid. One card per tool. auto-fill, not auto-fit: the empty tracks stay,
   so a lone card keeps the width it would have beside a neighbour instead of
   stretching across the whole column. */
.tools {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
/* The <li> holds the grid cell and the card stretches into it: two cards
   side by side keep the same height whatever the length of the text. */
.tools > li { display: flex; }
.tool {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.05s ease;
}
.tool:hover { border-color: var(--accent); background: var(--accent-soft); }
.tool:active { transform: translateY(1px); }
.tool h2 { font-size: 16px; margin: 0; letter-spacing: -0.01em; }
.tool h2::after { content: "\2192"; margin-left: 7px; color: var(--accent); }
.tool p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
}
.tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 3px 9px;
}
.tool:hover .tag { background: var(--paper-raised); }

footer {
  margin-top: 40px;
  font-size: 12px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 14px;
  line-height: 1.6;
}
footer a { color: var(--accent); }
footer code {
  font-family: "IBM Plex Mono", monospace;
  background: var(--accent-soft);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 11px;
}

/* 404 */
.notfound-code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 56px;
  font-weight: 600;
  color: var(--line);
  margin: 0 0 4px;
  line-height: 1;
}
