/* ==========================================================================
   BoringTools.io — layout.css
   ========================================================================== */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.site-header__inner {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.brand__mark {
  width: 22px;
  height: 22px;
  flex: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

main {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.tool-page main {
  padding-top: 2.25rem;
  padding-bottom: 4rem;
}

.tool-intro {
  max-width: var(--content-width);
  margin: 0 auto 2rem;
  text-align: center;
}
.tool-intro h1 { font-size: var(--step-4); margin-bottom: 0.4rem; }
.tool-intro p { margin: 0 auto; }

.prose {
  max-width: var(--content-width);
  margin: 0 auto;
}

.breadcrumbs {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0.9rem 1.25rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs span[aria-hidden] { margin: 0 0.35rem; }

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}

.site-footer__inner {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 2.25rem 1.25rem 2.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.site-footer h4 {
  font-size: 0.8rem;
  text-transform: none;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer a { color: var(--text); text-decoration: none; font-size: 0.92rem; }
.site-footer a:hover { text-decoration: underline; }

.site-footer__bottom {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 1rem 1.25rem 2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.home-hero {
  max-width: var(--content-width);
  margin: 3.5rem auto 2.5rem;
  text-align: center;
}
.home-hero .claim { color: var(--accent-strong); font-family: var(--font-mono); font-size: 1rem; }

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin: 2.5rem 0 3rem;
}

.tool-grid__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 1.35rem 1.4rem;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 108px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.tool-grid__item:hover { transform: translateY(-2px); }
.tool-grid__item .name { font-weight: 600; }
.tool-grid__item .desc { font-size: 0.85rem; color: var(--text-muted); }
.tool-grid__item.is-soon { color: var(--text-muted); }
.tool-grid__item.is-soon .tag {
  font-size: 0.7rem; color: var(--text-muted); border: 1px solid var(--border-strong);
  padding: 0.1rem 0.4rem; border-radius: var(--radius); width: fit-content;
}

@media (max-width: 860px) {
  .site-footer__inner { grid-template-columns: repeat(2, 1fr); }
  .site-nav { gap: 0.9rem; }
  main { padding: 0 1rem; }
}

@media (max-width: 560px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  h1, .tool-intro h1 { font-size: var(--step-3); }
}
