:root {
  color: #111;
  background: #fff;
  font-family: "Avenir Next", "Neue Haas Grotesk Text", "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-feature-settings: "palt" 1;
  line-height: 1.9;
  font-weight: 400;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-shell {
  width: min(1100px, calc(100% - 78px));
  margin: 0 auto;
  padding: 56px 0 42px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 0 14px 40px;
  border-bottom: 1px solid #aaa79f;
}

.site-name,
.site-nav a,
.site-footer a {
  letter-spacing: 0.04em;
}

.site-name {
  font-size: 1.05rem;
  font-weight: 400;
}

.site-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: clamp(26px, 5vw, 66px);
  font-size: 0.94rem;
}

.site-nav a {
  position: relative;
  padding-bottom: 8px;
}

.site-nav a[aria-current="page"]::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  content: "";
  background: #111;
}

.hero {
  padding: clamp(82px, 12vw, 126px) 18px clamp(74px, 10vw, 106px);
}

.hero h1 {
  margin: 0 0 38px;
  font-family: "Avenir Next", "Gill Sans", "Helvetica Neue", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: clamp(2.65rem, 5.8vw, 4.45rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: 0.02em;
}

.hero p {
  max-width: 680px;
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  font-weight: 400;
  line-height: 2.15;
  letter-spacing: 0.03em;
}

.hero p + p {
  margin-top: 12px;
}

.tool-index {
  border-top: 1px solid #b8b5ae;
}

.tool-row {
  display: grid;
  grid-template-columns: 96px minmax(300px, 1fr) minmax(220px, 0.36fr) 36px;
  gap: 24px;
  align-items: center;
  min-height: 158px;
  padding: 36px 18px;
  border-bottom: 1px solid #b8b5ae;
  transition: background-color 160ms ease;
}

.tool-row:hover,
.tool-row:focus-visible {
  background: #f7f7f7;
  outline: none;
}

.tool-number {
  align-self: stretch;
  display: flex;
  align-items: flex-start;
  padding-top: 2px;
  color: #777;
  font-family: "Avenir Next", "Helvetica Neue", sans-serif;
  font-size: 1.42rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.tool-copy {
  min-width: 0;
  padding-left: 48px;
  border-left: 1px solid #c6c2ba;
}

.tool-title {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 450;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.tool-description {
  display: block;
  max-width: 540px;
  font-size: 0.96rem;
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0.03em;
}

.tool-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(82px, 1fr));
  gap: 20px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.tool-meta small {
  display: block;
  margin-bottom: 5px;
  font-size: 0.74rem;
  color: #222;
  letter-spacing: 0.02em;
}

.tool-arrow {
  justify-self: end;
  font-size: 1.55rem;
  line-height: 1;
}

.about {
  padding: clamp(70px, 10vw, 116px) 18px clamp(62px, 8vw, 94px);
}

.about h2 {
  margin: 0 0 28px;
  font-size: 1.18rem;
  font-weight: 350;
  letter-spacing: 0.05em;
}

.about p {
  margin: 0;
  max-width: 760px;
  font-size: 0.96rem;
  line-height: 2.15;
  letter-spacing: 0.03em;
}

.about p + p {
  margin-top: 22px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 36px 18px 0;
  border-top: 1px solid #aaa79f;
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0;
  line-height: 1.9;
}

.footer-name {
  margin-bottom: 6px !important;
  font-size: 1.05rem;
}

@media (max-width: 820px) {
  .site-shell {
    width: min(100% - 34px, 680px);
    padding-top: 28px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
    padding: 0 0 26px;
  }

  .site-nav,
  .site-footer nav {
    width: 100%;
    justify-content: space-between;
    gap: 18px;
    font-size: 0.88rem;
  }

  .hero {
    padding: 66px 0 72px;
  }

  .hero h1 {
    margin-bottom: 28px;
  }

  .tool-row {
    grid-template-columns: 58px minmax(0, 1fr) 28px;
    gap: 18px;
    min-height: auto;
    padding: 28px 0;
  }

  .tool-number {
    font-size: 1.1rem;
  }

  .tool-copy {
    padding-left: 20px;
  }

  .tool-meta {
    grid-column: 2 / 3;
    grid-row: 2;
    grid-template-columns: repeat(2, max-content);
    gap: 26px;
    padding-left: 20px;
    border-left: 1px solid #c6c2ba;
    font-size: 0.95rem;
  }

  .tool-arrow {
    grid-column: 3;
    grid-row: 1 / 3;
    align-self: center;
    font-size: 1.2rem;
  }

  .about {
    padding: 66px 0 58px;
  }

  .site-footer {
    flex-direction: column;
    padding: 28px 0 0;
  }
}

@media (max-width: 460px) {
  .site-shell {
    width: calc(100% - 28px);
  }

  .site-nav,
  .site-footer nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .hero h1 {
    font-size: 2.55rem;
  }

  .tool-row {
    grid-template-columns: 1fr 24px;
    gap: 14px;
  }

  .tool-number {
    grid-column: 1 / -1;
    padding: 0;
  }

  .tool-copy,
  .tool-meta {
    grid-column: 1;
    padding-left: 16px;
  }

  .tool-copy {
    display: contents;
    padding-left: 0;
    border-left: 0;
  }

  .tool-title,
  .tool-description,
  .tool-meta {
    border-left: 1px solid #c6c2ba;
    padding-left: 16px;
  }

  .tool-title {
    grid-column: 1;
    grid-row: 2;
  }

  .tool-meta {
    grid-row: 3;
    border-left: 1px solid #c6c2ba;
  }

  .tool-description {
    grid-column: 1;
    grid-row: 4;
  }

  .tool-arrow {
    grid-column: 2;
    grid-row: 2 / 5;
  }
}
