/* Base resets and shared element styles. */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Overlay-style scrollbar: floats over content with no reserved track,
     so no frame/gutter is painted behind it. Falls back to auto where
     unsupported. */
  overflow-y: overlay;
}

/* Custom scrollbar: green thumb, thin, frameless (no track frame, no
   up/down arrow buttons), with a small inset gap from the viewport edge.
   Uses webkit pseudo-elements only; no standard scrollbar-width/color,
   because those disable the webkit overrides in Chrome. */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  background: transparent;
}

::-webkit-scrollbar-track {
  background: transparent;
  border: none;
  box-shadow: none;
}

::-webkit-scrollbar-thumb {
  background-color: var(--color-accent);
  background-clip: content-box;
  border: 2px solid transparent;
  border-radius: 0;
  box-shadow: none;
}

::-webkit-scrollbar-thumb:hover,
::-webkit-scrollbar-thumb:active {
  background-color: var(--color-accent-strong);
}

::-webkit-scrollbar-corner {
  background: transparent;
}

::-webkit-scrollbar-button,
::-webkit-scrollbar-button:vertical:start,
::-webkit-scrollbar-button:vertical:end,
::-webkit-scrollbar-button:horizontal:start,
::-webkit-scrollbar-button:horizontal:end {
  display: none !important;
  background: transparent !important;
  border: none;
  height: 0;
  width: 0;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3 {
  line-height: var(--lh-tight);
  font-weight: 700;
  letter-spacing: -0.01em;
}

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

a {
  color: var(--color-accent-ink);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.section {
  padding: var(--space-5) var(--space-3);
}

.section--alt {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-title {
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-1);
}

.section-lede {
  color: var(--color-text-muted);
  max-width: 44rem;
  margin-bottom: var(--space-4);
}

/* Boxy, sharp-cornered green button. */
.btn {
  display: inline-block;
  padding: 0.9rem 1.6rem;
  border: 2px solid var(--color-accent);
  border-radius: var(--radius);
  background: var(--color-accent);
  color: #06140a;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease),
    transform 0.2s var(--ease);
}

.btn:hover {
  background: var(--color-accent-strong);
  border-color: var(--color-accent-strong);
  color: #fff;
  text-decoration: none;
}

/* Outlined variant for a secondary action. */
.btn--outline {
  background: transparent;
  color: var(--color-accent-ink);
}

.btn--outline:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #06140a;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
