* {
  box-sizing: border-box;
}

:root {
  --red: #e5322d;
  --red-dark: #c92520;
  --ink: #242424;
  --muted: #6d6d6d;
  --line: #ececec;
  --soft: #fff5f4;
}

body {
  margin: 0;
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  line-height: 1.5;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: auto;
  padding: 22px 24px;
}

.site-header h1 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.site-header h1 a {
  text-decoration: none;
  color: var(--ink);
}

.site-header h1 a::before {
  content: "●";
  color: var(--red);
  margin-right: 8px;
}

.sub-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 10px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sub-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: bold;
  padding: 9px 16px;
  border-radius: 999px;
  transition: .2s ease;
}

.sub-nav a:hover,
.sub-nav a.active {
  color: var(--red);
  background: var(--soft);
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 76px 24px 100px;
}

main h1 {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.06em;
  margin: 0 0 18px;
}

main > p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  text-align: center;
  font-size: 1.1rem;
}

.tool-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin-top: 42px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 250px);
  min-height: 170px;
  justify-content: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 8px 24px rgba(35, 35, 35, .05);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.tool-card:hover {
  border-color: #f2aaa7;
  box-shadow: 0 12px 28px rgba(229, 50, 45, .13);
  transform: translateY(-4px);
}

.tool-card .icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  border-radius: 16px;
  background: var(--soft);
  font-size: 2rem;
}

.tool-card span.label {
  text-align: center;
  font-weight: bold;
}

footer {
  text-align: center;
  padding: 26px 20px;
  border-top: 1px solid var(--line);
  font-size: .85rem;
  color: var(--muted);
}

@media (max-width: 600px) {
  .site-header {
    justify-content: center;
  }

  .sub-nav {
    padding-inline: 10px;
  }

  main {
    padding-top: 54px;
  }
}
