:root {
  color-scheme: light;
  --ink: #102033;
  --muted: #657792;
  --paper: #f6fbff;
  --panel: #ffffff;
  --line: #cfdeef;
  --line-strong: #a9c7e8;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --sky: #0ea5e9;
  --violet: #7047e8;
  --kolbasos: #ff6548;
  --shadow: 0 14px 34px rgba(37, 99, 235, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(180deg, #eaf6ff 0, rgba(234, 246, 255, 0) 320px) no-repeat,
    var(--paper);
  background-size: 100% 320px, auto;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header,
.page,
.site-footer {
  width: min(1040px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-size: 22px;
  font-weight: 850;
}

.brand-logo {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  display: block;
  filter: drop-shadow(0 8px 14px rgba(54, 33, 155, 0.15));
}

.domain {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 750;
}

.domain:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.page {
  flex: 1;
  padding: 26px 0 58px;
}

.section-heading {
  margin-bottom: 24px;
}

h1,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tool-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 18px 16px;
  min-height: 190px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.tool-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.tool-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: #ffffff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 17px;
  font-weight: 900;
}

.tool-json .tool-icon {
  background: var(--sky);
}

.tool-db .tool-icon {
  background: var(--blue);
}

.tool-roadmap .tool-icon {
  background: #fff6f4;
  border: 1px solid #ffd7cc;
}

.tool-icon-image {
  padding: 4px;
}

.tool-icon-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

.tool-title {
  display: block;
  font-size: 21px;
  font-weight: 850;
  line-height: 1.2;
}

.tool-text {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

.tool-link {
  grid-column: 1 / -1;
  align-self: end;
  color: var(--blue-dark);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  font-weight: 850;
}

.site-footer {
  padding: 0 0 28px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 860px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .tool-card {
    min-height: 150px;
  }
}

@media (max-width: 560px) {
  .site-header,
  .page,
  .site-footer {
    width: min(100% - 28px, 1040px);
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 22px;
  }

  .domain {
    width: 100%;
    justify-content: center;
  }

  .page {
    padding-top: 18px;
  }

  h1 {
    font-size: 36px;
  }

  .tool-card {
    padding: 18px;
  }
}
