:root {
  color-scheme: light;
  --bg: #f7f8f5;
  --surface: #ffffff;
  --surface-muted: #eef1ed;
  --text: #1d2522;
  --muted: #68736e;
  --line: #dce3de;
  --accent: #116149;
  --accent-strong: #0b4c39;
  --warm: #b45f32;
  --shadow: 0 16px 40px rgba(25, 36, 31, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
}

.site-header,
.site-footer,
main {
  width: min(100% - 32px, 1040px);
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
}

.brand {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 900;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 8px;
}

nav a,
.secondary-link,
.card-link,
.site-footer a {
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

nav a {
  border-radius: 8px;
  padding: 8px 10px;
}

nav a:hover,
.secondary-link:hover,
.card-link:hover,
.site-footer a:hover {
  color: var(--accent);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  align-items: end;
  gap: 32px;
  min-height: calc(100vh - 172px);
  padding: 54px 0 42px;
}

.hero-copy {
  display: grid;
  gap: 18px;
  max-width: 720px;
}

.eyebrow {
  margin: 0;
  color: var(--warm);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(4rem, 18vw, 11rem);
  line-height: 0.82;
}

h2 {
  font-size: clamp(1.8rem, 5vw, 3.3rem);
  line-height: 0.96;
}

h3 {
  font-size: 1.28rem;
}

.lead {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.primary-link,
.secondary-link,
.card-link {
  display: inline-grid;
  place-items: center;
  min-height: 46px;
  border-radius: 8px;
  padding: 0 16px;
}

.primary-link {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.secondary-link {
  border: 1px solid var(--line);
  background: var(--surface);
}

.status-panel {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.status-panel span,
.tool-kicker {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-panel strong {
  font-size: 1.5rem;
}

.status-panel p,
.tool-card p,
.about-section p {
  color: var(--muted);
  line-height: 1.7;
}

.section {
  padding: 56px 0;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

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

.tool-card {
  display: grid;
  align-content: space-between;
  gap: 24px;
  min-height: 250px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.tool-card > div {
  display: grid;
  gap: 10px;
}

.muted-card {
  background: var(--surface-muted);
  box-shadow: none;
}

.card-link {
  width: fit-content;
  border: 1px solid var(--line);
  background: var(--surface-muted);
}

.about-section {
  max-width: 740px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 24px 0 34px;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 44px 0 24px;
  }

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

@media (max-width: 420px) {
  .site-header,
  .site-footer {
    width: min(100% - 24px, 1040px);
  }

  main {
    width: min(100% - 24px, 1040px);
  }

  nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  h1 {
    font-size: clamp(3.2rem, 21vw, 5rem);
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
