:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --border: #d0d4df;
  --accent: #1f7a8c;
  --accent-dark: #134056;
  --text: #111827;
  --muted: #4b5563;
  --radius: 1rem;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1rem;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 1rem;
  background: #fff;
  padding: 0.75rem 1rem;
  border: 2px solid var(--accent);
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  z-index: 100;
}

.skip-link:focus-visible {
  top: 1rem;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem clamp(1rem, 4vw, 2.5rem);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.site-header nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-header nav a {
  text-decoration: none;
  font-weight: 500;
}

main {
  padding: 2rem clamp(1rem, 4vw, 2.5rem) 3rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.hero {
  background: linear-gradient(135deg, #e0f0ff, #fef9f1);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.1);
}

.hero h1 {
  font-size: clamp(2.5rem, 4vw, 3.25rem);
  margin-bottom: 0.75rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.45em;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.primary-cta,
.secondary-cta {
  text-decoration: none;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
}

.primary-cta {
  background: var(--accent);
  color: #fff;
}

.secondary-cta {
  border: 1px solid var(--accent);
  color: var(--accent);
}

.section-heading h2 {
  margin-bottom: 0.4rem;
  font-size: clamp(1.75rem, 2.25vw, 2.25rem);
}

.section-heading p {
  color: var(--muted);
  margin-top: 0;
}

section {
  background: var(--surface);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

article {
  padding: 1rem;
  border-radius: 0.75rem;
  background: #fdfdfd;
  border: 1px solid rgba(17, 24, 39, 0.05);
}

article h3 {
  margin-top: 0;
}

article ul {
  padding-left: 1.2rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.resource-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.resource-list article {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 220px;
}

.resource-list h3 {
  margin-bottom: 0.25rem;
}

.search-bar {
  display: grid;
  gap: 0.4rem;
  margin: 1rem 0 0.5rem;
}

.search-bar label {
  font-weight: 600;
  color: var(--text);
}

.search-bar input[type="search"] {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.75rem 0.9rem;
  font: inherit;
  background: #fff;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.tool-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: #fdfdfd;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.tool-card form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.tool-card label {
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.tool-card input[type="number"],
.tool-card input[type="range"] {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.65rem;
  font: inherit;
}

.slider-value {
  font-weight: 600;
  margin: 0;
}

.glossary-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.glossary-list div {
  background: #f6f7fb;
  border-radius: 0.75rem;
  padding: 1rem;
}

dt {
  font-weight: 600;
}

dd {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.disclaimer {
  background: #fff4f0;
  border: 1px solid #ffd4c2;
  border-radius: 0.75rem;
  padding: 1rem;
  color: #7a2f1a;
}

.site-footer {
  padding: 1.5rem clamp(1rem, 4vw, 2.5rem);
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  background: var(--surface);
}

@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .site-footer {
    flex-direction: column;
  }
}
