:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f5f0;
  color: #17232d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
}

main {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.masthead {
  border-bottom: 2px solid #17232d;
  padding-bottom: 24px;
  margin-bottom: 42px;
}

.eyebrow {
  margin: 0 0 6px;
  color: #c84f28;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

section + section {
  margin-top: 38px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  border-bottom: 1px solid #b9c1ba;
  margin-bottom: 12px;
  padding-bottom: 8px;
}

h2 {
  margin-bottom: 0;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.tool {
  display: grid;
  min-height: 132px;
  align-content: start;
  gap: 7px;
  border: 1px solid #b9c1ba;
  border-radius: 4px;
  background: #ffffff;
  color: inherit;
  padding: 18px;
  text-decoration: none;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.tool:hover,
.tool:focus-visible {
  border-color: #177968;
  background: #e8f3ee;
  outline: none;
  transform: translateY(-2px);
}

.tool:focus-visible {
  box-shadow: 0 0 0 3px #9fd9c9;
}

.tool-name {
  font-size: 1.05rem;
  font-weight: 700;
}

.tool-description {
  color: #4e5c62;
  font-size: 0.9rem;
}

.tool-url {
  align-self: end;
  color: #177968;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  main {
    width: min(100% - 28px, 1080px);
    padding-top: 36px;
  }

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

  .tool {
    min-height: 112px;
  }
}
