:root {
  color-scheme: light;
  --ink: #17201d;
  --muted: #5f6f68;
  --line: #dbe4df;
  --soft: #f5f8f6;
  --surface: #ffffff;
  --teal: #0f766e;
  --teal-dark: #0a514c;
  --blue: #355f88;
  --amber: #b9821f;
  --rose: #aa4d5f;
  --shadow: 0 18px 48px rgba(20, 34, 30, 0.1);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 15px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.brand,
.nav a,
.site-footer a {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
}

.brand-mark,
.tool-icon {
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-weight: 850;
}

.brand-mark {
  width: 36px;
  height: 36px;
  background: var(--teal);
  color: #fff;
  font-size: 13px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

.hero {
  min-height: min(760px, calc(100vh - 67px));
  padding: clamp(52px, 8vw, 98px) clamp(18px, 4vw, 56px);
  background:
    linear-gradient(115deg, rgba(245, 248, 246, 0.96), rgba(245, 248, 246, 0.78)),
    url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1600&q=80") center/cover;
}

.hero-copy {
  max-width: 880px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 850;
}

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

h1 {
  max-width: 880px;
  margin-bottom: 22px;
  font-size: clamp(42px, 8vw, 92px);
  line-height: 0.98;
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
}

h3 {
  font-size: 22px;
}

.lead,
p,
li {
  color: var(--muted);
  line-height: 1.75;
}

.lead {
  max-width: 760px;
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions,
.hero-metrics,
.related-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
}

.button.primary {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.78);
}

.hero-metrics {
  margin-top: 28px;
}

.hero-metrics span {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
}

.hero-metrics strong {
  color: var(--ink);
  font-size: 22px;
}

.page-section,
.tool-grid-section,
.feature-band,
.site-footer {
  padding: clamp(44px, 7vw, 86px) clamp(18px, 4vw, 56px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

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

.tool-card,
.content-card,
.callout {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.tool-card {
  display: grid;
  gap: 10px;
  padding: 24px;
  text-decoration: none;
  box-shadow: none;
}

.site-card {
  border-top: 5px solid var(--blue);
}

.site-card.primary-site {
  border-top-color: var(--teal);
}

.tool-icon {
  width: 46px;
  height: 46px;
  background: #e7f2ee;
  color: var(--teal-dark);
}

.card-link,
.content-card a {
  color: var(--teal-dark);
  font-weight: 850;
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.feature-copy {
  display: grid;
  gap: 14px;
  font-size: 18px;
}

.content-card {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 48px);
  box-shadow: none;
}

.article-card {
  max-width: 1040px;
}

.callout {
  margin: 24px 0;
  padding: 18px;
  border-left: 5px solid var(--teal);
  box-shadow: none;
}

pre {
  overflow-x: auto;
  border-radius: 8px;
  background: #202821;
  color: #f5f8f6;
  padding: 16px;
  line-height: 1.6;
}

code,
pre {
  font-family: Consolas, "SFMono-Regular", monospace;
}

.related-grid a,
.related-grid span {
  display: block;
  min-width: min(100%, 240px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #fff;
}

@media (max-width: 900px) {
  .tool-grid,
  .feature-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    font-size: 42px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
