/* ============================================================
   tools.manabisa.com — shared shell
   Palette and type are lifted from the manabisa.com landing site
   on purpose: these are the same studio, so they should read as
   the same studio. Tool-specific styling lives beside each tool.
   ============================================================ */

:root {
  --night: #10131a;
  --ink: #1a2030;
  --mist: #e9ecf3;
  --paper: #ffffff;
  --surge: #ff4d2e;
  --surge-deep: #dd3c1d;
  --slate: #5b6373;
  --slate-dim: #8a91a1;
  --line: #d6dae4;
  --line-dark: #2a2f3d;

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --radius: 12px;
  --wrap: 1060px;
}

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

/* A `display` declaration outranks the [hidden] attribute's UA style, so any
   element the app hides with `hidden` and styles with flex/grid would still
   show. Several here do — the toolbar, the drop hint — so settle it once. */
[hidden] {
  display: none !important;
}

body {
  font-family: var(--body);
  background: var(--mist);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--night);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 10;
  border-radius: 0 0 8px 0;
}

.skip:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--surge);
  outline-offset: 2px;
}

/* ── Site header, shared by the index and every tool page ── */

.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark .slash {
  color: var(--slate-dim);
  margin: 0 0.15em;
  font-weight: 500;
}

.wordmark .dot {
  color: var(--surge);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.site-nav a {
  color: var(--slate);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink);
}

/* ── Buttons, shared ── */

.btn {
  font: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1;
  padding: 0.6rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.btn:hover {
  border-color: var(--slate-dim);
}

.btn-primary {
  background: var(--surge);
  border-color: var(--surge);
  color: #fff;
}

.btn-primary:hover {
  background: var(--surge-deep);
  border-color: var(--surge-deep);
}

.btn svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

/* ── Index page ── */

.hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 4rem 1.5rem 1.5rem;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-dim);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero h1 em {
  font-style: normal;
  color: var(--surge-deep);
}

.hero p {
  margin-top: 1rem;
  max-width: 46ch;
  color: var(--slate);
  font-size: 1.05rem;
}

.tool-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  list-style: none;
}

.tool-card {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  height: 100%;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.tool-card:hover {
  border-color: var(--slate-dim);
  transform: translateY(-2px);
}

.tool-card h2 {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 0.4rem;
}

.tool-card p {
  color: var(--slate);
  font-size: 0.925rem;
}

.tool-card .tags {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--slate);
  background: var(--mist);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
}

.tool-card.soon {
  border-style: dashed;
  background: transparent;
  cursor: default;
}

.tool-card.soon:hover {
  transform: none;
  border-color: var(--line);
}

.site-foot {
  border-top: 1px solid var(--line);
  padding: 1.5rem;
  text-align: center;
  color: var(--slate-dim);
  font-size: 0.85rem;
}

.site-foot a {
  color: var(--slate);
}

/* ── 404 ── */

.notfound {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 6rem 1.5rem;
  text-align: center;
}

.notfound h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.notfound p {
  margin: 1rem 0 2rem;
  color: var(--slate);
}
