:root {
  color-scheme: light;
  --ink: #151a17;
  --muted: #68716b;
  --paper: #f6f6f4;
  --line: rgba(21, 26, 23, 0.16);
  --card: #ffffff;
  --green: #e9f1e5;
  --violet: #eceaf2;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
}

a {
  color: inherit;
}

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

.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: white;
}

h2 {
  margin: 0;
  letter-spacing: -0.035em;
}

.tools-section {
  padding: 72px 0 90px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 42px;
}

h2 {
  max-width: 720px;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1;
}

.tool-count {
  flex: 0 0 auto;
  margin: 0;
  color: var(--muted);
}

.tool-count strong {
  color: var(--ink);
  font-size: 1rem;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tool-card {
  position: relative;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 4vw, 42px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

a.tool-card:hover,
a.tool-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(21, 26, 23, 0.08);
}

a.tool-card:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

.tool-card--green {
  background: linear-gradient(135deg, var(--card), var(--green));
}

.tool-card--violet {
  background: linear-gradient(135deg, var(--card), var(--violet));
}

.tool-card--coming {
  min-height: 190px;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: center;
  border-style: dashed;
  background: rgba(255, 255, 255, 0.32);
  text-align: center;
}

.tool-number {
  position: absolute;
  top: 24px;
  right: 28px;
  color: rgba(21, 26, 23, 0.48);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.tool-content {
  display: flex;
  flex-direction: column;
  margin-top: auto;
}

.tool-kicker {
  margin-bottom: 10px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tool-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 850;
  letter-spacing: -0.05em;
  line-height: 1;
}

.tool-description {
  max-width: 440px;
  margin-top: 18px;
  color: rgba(21, 26, 23, 0.7);
  line-height: 1.55;
}

.tool-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(21, 26, 23, 0.25);
  font-weight: 800;
}

.tool-action span {
  font-size: 1.4rem;
}

.coming-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 34px 0 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

footer span:first-child {
  color: var(--ink);
  font-weight: 800;
}

@media (max-width: 720px) {
  .site-header,
  main,
  footer {
    width: min(100% - 28px, 1180px);
  }

  .tools-section {
    padding: 48px 0 70px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .tool-grid {
    grid-template-columns: 1fr;
  }

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

  .tool-card--coming {
    min-height: 180px;
    grid-column: auto;
  }

  footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
