/* Shared styles for every tool in the shed: fonts, colors, page frame, header with tool switcher */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/shared/fonts/inter-latin.woff2) format("woff2-variations");
  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: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/shared/fonts/inter-latin-ext.woff2) format("woff2-variations");
  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: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/shared/fonts/inter-cyrillic.woff2) format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/shared/fonts/inter-greek.woff2) format("woff2-variations");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(/shared/fonts/jetbrains-mono-latin.woff2) format("woff2-variations");
  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;
}

:root {
  --fg: #111111;
  --muted: #8c8c8c;
  --faint: #b5b5b5;
  --fainter: #b0b0b0;
  --bg: #ffffff;
  --border: #dadada;
  --border-soft: #e6e6e6;
  --line: #ececec;
  --divider: #efefef;
  --tint: #f5f5f4;
  --hover: #f2f2f1;
  --join: #d4d4d4;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  /* Glyph previews: whatever the OS can render, color emoji last */
  --glyph: "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 14px/17px var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  max-width: calc(720px + 2 * 16px);
  margin: 0 auto;
  padding: 48px 16px 96px;
}

/* Header: Tools / <switcher> */

.crumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 25px;
}
.crumbs-root {
  color: var(--muted);
  text-decoration: none;
}
a.crumbs-root:hover { color: var(--fg); }
.crumbs-root[aria-current] { color: var(--fg); font-weight: 500; }
.crumbs-sep { color: var(--faint); }

.switcher { position: relative; }
.switcher-button {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--fg);
  font: 500 14px/17px var(--sans);
  cursor: pointer;
}
.switcher-button:hover,
.switcher-button[aria-expanded="true"] { background: var(--hover); }
.switcher-button:focus-visible { outline: 2px solid var(--fg); outline-offset: 1px; }
.switcher-button svg { color: var(--muted); flex: none; }

.menu {
  position: absolute;
  z-index: 10;
  top: calc(100% + 6px);
  left: 0;
  width: 240px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  box-shadow: 0 8px 24px -4px rgb(0 0 0 / 0.08), 0 1px 2px rgb(0 0 0 / 0.04);
}
.menu[hidden] { display: none; }
.menu-divider { height: 1px; background: var(--divider); }
.menu-soon {
  padding: 6px 8px;
  color: var(--fainter);
  font-size: 12px;
  line-height: 15px;
}

/* A tool, as a menu item and on the index page */

.tool-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 8px;
  border-radius: 6px;
  color: var(--fg);
  text-decoration: none;
  outline: none;
}
.tool-item:hover,
.tool-item:focus-visible,
.tool-item[aria-current] { background: var(--tint); }
.tool-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  font: 14px/1 var(--glyph);
}
.tool-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.tool-title { font-weight: 500; font-size: 13px; line-height: 16px; }
.tool-subtitle { color: var(--muted); font-size: 12px; line-height: 15px; }
.tool-check { flex: none; }
