:root {
  color-scheme: dark;
  --bg: #101513;
  --panel: #17211d;
  --panel-strong: #1f312a;
  --text: #f4f1e8;
  --muted: #bac7bc;
  --line: #365145;
  --gold: #f4c56a;
  --mint: #74c69d;
  --blue: #7bb7ff;
  --shadow: rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, rgba(116, 198, 157, 0.10), transparent 320px),
    linear-gradient(135deg, #101513 0%, #141c19 45%, #1d231b 100%);
  color: var(--text);
}

a {
  color: inherit;
}

.page-shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.site-header {
  max-width: 760px;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: 4.5rem;
  line-height: 0.98;
}

.intro {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.tool-grid {
  display: grid;
  gap: 16px;
}

.tool-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(244, 197, 106, 0.10), transparent 42%),
    linear-gradient(180deg, var(--panel-strong), var(--panel));
  box-shadow: 0 18px 40px var(--shadow);
}

.tool-icon {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  border: 1px solid rgba(244, 197, 106, 0.42);
  background: #111816;
}

.tool-copy {
  min-width: 0;
}

.tool-type {
  margin-bottom: 4px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tool-copy h2 {
  margin-bottom: 6px;
  font-size: 1.35rem;
}

.tool-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(244, 197, 106, 0.70);
  border-radius: 8px;
  background: #f4c56a;
  color: #1d1608;
  font-weight: 900;
  text-decoration: none;
}

.tool-link:hover,
.tool-link:focus-visible {
  background: #ffda83;
  outline: 3px solid rgba(116, 198, 157, 0.42);
  outline-offset: 3px;
}

.not-found {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.not-found-panel {
  width: min(640px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 40px var(--shadow);
}

.not-found-panel h1 {
  font-size: 3.5rem;
}

@media (max-width: 680px) {
  .page-shell {
    width: min(100% - 24px, 1040px);
    padding: 32px 0;
  }

  .tool-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  h1 {
    font-size: 2.6rem;
  }

  .not-found-panel h1 {
    font-size: 2.2rem;
  }

  .tool-link {
    grid-column: 1 / -1;
    width: 100%;
  }
}
