/* Landing page (overrides/landing.html + index.md).
   Structural indigo carries the hero only — the one "Committed" surface
   on an otherwise Restrained site (DESIGN.md's Two-Color Rule). Slim
   header/footer replace the doc shell's tabs/sidebar/TOC/pager for this
   page only; every other page keeps the stock Material template. */

:root {
  --landing-max: 61rem; /* matches Material's own .md-grid so header/hero/content line up */
}

/* ---------- Header ---------- */

.landing-header {
  position: sticky;
  top: 0;
  z-index: 10; /* only stacked element on this page: header above scrolling content */
  background-color: var(--md-default-bg-color);
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
}

.landing-header__inner {
  max-width: var(--landing-max);
  margin-inline: auto;
  padding: 0.9rem clamp(1.25rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.landing-header__brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--md-default-fg-color);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.landing-header__nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.landing-header__nav a {
  color: var(--md-default-fg-color--light);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding-block: 0.75rem; /* keeps the tap target near 44px without growing the visible label */
}

.landing-header__nav a:hover,
.landing-header__nav a:focus-visible {
  color: var(--md-accent-fg-color);
}

.landing-header__nav .md-header__option {
  margin: 0;
}

/* ---------- Hero ---------- */

.hero-band {
  background-color: var(--md-primary-fg-color);
  color: var(--md-primary-bg-color);
}

.hero-band__inner {
  max-width: 50rem;
  margin-inline: auto;
  padding: clamp(3.5rem, 10vw, 6.5rem) clamp(1.25rem, 5vw, 3rem);
}

.hero-band h1 {
  font-family: var(--md-text-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  font-size: clamp(2.5rem, 2rem + 3vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  max-width: 18ch;
  margin: 0 0 1.25rem;
  color: inherit;
}

.hero-band p {
  font-family: var(--md-text-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  line-height: 1.6;
  max-width: 46rem;
  margin: 0;
  color: inherit;
  opacity: 0.92;
}

.hero-band code {
  font-family: var(--md-code-font, "Roboto Mono", "SF Mono", Consolas, monospace);
  background-color: rgba(255, 255, 255, 0.16);
  border-radius: 0.25rem;
  padding: 0.1em 0.4em;
  font-size: 0.85em;
  opacity: 1;
}

.hero-band__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.25rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  font-family: var(--md-text-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.7rem 1.4rem;
  border-radius: 0.3rem;
  transition: background-color 150ms, border-color 150ms, opacity 150ms;
}

.hero-cta--primary {
  background-color: var(--md-primary-bg-color);
  color: var(--md-primary-fg-color);
}

.hero-cta--primary:hover,
.hero-cta--primary:focus-visible {
  opacity: 0.88;
}

.hero-cta--secondary {
  background-color: transparent;
  color: var(--md-primary-bg-color);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.hero-cta--secondary:hover,
.hero-cta--secondary:focus-visible {
  border-color: var(--md-primary-bg-color);
}

.hero-cta:focus-visible {
  outline: 2px solid var(--md-primary-bg-color);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .hero-cta {
    transition: none;
  }
}

/* ---------- Content sections ---------- */

.landing-content {
  padding: 0;
}

.section {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.section:first-of-type {
  padding-top: clamp(2.25rem, 5vw, 3.5rem);
}

.section h2 {
  font-size: 1.75rem;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.section--boundary .highlight {
  background-color: var(--md-code-bg-color);
}

.section--boundary pre,
.section--boundary code {
  font-size: 1.0625rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

.code-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
}

.code-showcase__item > p:first-child {
  font-weight: 600;
  font-size: 1rem;
  color: var(--md-default-fg-color);
  margin-bottom: 0.6rem;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem 2.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  margin: 0;
}

.feature-list strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
  color: var(--md-default-fg-color);
}

/* ---------- Footer ---------- */

.landing-footer {
  border-top: 1px solid var(--md-default-fg-color--lightest);
  margin-top: 1rem;
}

.landing-footer__inner {
  max-width: var(--landing-max);
  margin-inline: auto;
  padding: 1.5rem clamp(1.25rem, 4vw, 2rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--md-default-fg-color--light);
}

.landing-footer__inner a {
  color: inherit;
}
