:root {
  color-scheme: light;
  --bg: #fcf8f8;
  --bg-elevated: #ffffff;
  --bg-alt: #f8f1f1;
  --text: #1f1a1c;
  --text-muted: #62565a;
  --accent: #b4233a;
  --accent-hover: #971e31;
  --accent-soft: #fce9ec;
  --border: #eee2e5;
  --radius-lg: 0;
  --radius-md: 0;
  --shadow-card: none;
  --font-main: "Inter", "Avenir Next", "Segoe UI", "SF Pro Text", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --focus-ring: 2px solid var(--accent);
  --focus-offset: 2px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

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

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

.container {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

.container.narrow {
  max-width: 42rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 0.6rem 0;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: saturate(1.1) blur(4px);
}

.site-header .container {
  max-width: 58rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  min-height: 3rem;
  padding: 0.3rem 0.8rem;
  background: color-mix(in srgb, var(--bg-elevated) 96%, transparent);
  border: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
}

.logo {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  color: var(--accent);
}

.nav {
  display: flex;
  margin-left: auto;
  gap: 1.25rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.3rem 0.6rem;
  border-radius: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.nav-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 2rem;
  padding: 0.3rem;
}

.hero {
  padding: clamp(1.8rem, 4vw, 3rem) 0 clamp(2.2rem, 5vw, 3.6rem);
  background: linear-gradient(180deg, var(--accent-soft), var(--bg) 45%);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 58rem;
  margin-inline: 0;
  padding: clamp(1.1rem, 2.8vw, 2rem);
  background: color-mix(in srgb, var(--bg-elevated) 94%, transparent);
  border: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
}

.hero-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 4.8vw, 2.95rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  max-width: 18ch;
}

.hero-lead {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.5vw, 1.08rem);
  max-width: 62ch;
}

.hero .button {
  box-shadow: none;
}

@media (max-width: 42rem) {
  .hero-inner {
    padding: 1rem;
    border-radius: 0;
  }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.68rem 1.3rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

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

.button-primary:hover {
  background: var(--accent-hover);
}

.section {
  padding: clamp(2.35rem, 5vw, 3.7rem) 0;
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.section h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 2.6vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}

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

.section-intro {
  margin-bottom: 1.5rem !important;
  max-width: 42ch;
}

.tool-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  justify-items: stretch;
}

.tool-grid > li {
  margin: 0;
}

@media (max-width: 64rem) {
  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 42rem) {
  .tool-grid {
    grid-template-columns: 1fr;
  }
}

.tool-grid.centered-grid {
  grid-template-columns: minmax(17rem, 24rem);
  justify-content: center;
}

.tool-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tool-card-icon {
  width: fit-content;
  border-radius: var(--radius-md);
  overflow: hidden;
  line-height: 0;
}

.tool-card-icon img {
  display: block;
}

.tool-card h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
}

.tool-card p {
  margin: 0;
  flex-grow: 1;
  font-size: 0.9375rem;
}

.tool-card-meta {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
}

.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  margin: 0 0 0.35rem;
  font-weight: 700;
}

.footer-note {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}
