/* GREENWAVE · base */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-padding-top: calc(var(--gw-header-h) + env(safe-area-inset-top, 0px)); }

body {
  margin: 0;
  background: var(--gw-black);
  color: var(--gw-ivory);
  font: 400 var(--gw-body)/1.55 var(--gw-serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Paints the phone status-bar band behind the sticky header */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--gw-black);
}

img, video, svg { max-width: 100%; }
p { margin: 0; }
a { color: inherit; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--gw-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

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

.gw-wrap {
  width: 100%;
  max-width: var(--gw-max);
  margin-inline: auto;
  padding-left: var(--gw-pad-l);
  padding-right: var(--gw-pad-r);
}

/* label: serif small capitals, tracked out, muted. Gold is kept for the mark, numerals and the main button. */
.gw-label {
  font: 600 var(--gw-label)/1.45 var(--gw-serif);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gw-muted);
}
.gw-label--gold { color: var(--gw-gold); }

.gw-lead { font-size: var(--gw-lead); line-height: 1.5; max-width: 52ch; color: var(--gw-ivory); }

/* Buttons (radius-sm) and toggles (radius-pill) */
.gw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--gw-line);
  border-radius: var(--gw-r-sm);
  background: transparent;
  color: var(--gw-ivory);
  font: 600 0.8rem/1 var(--gw-serif);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.25s var(--gw-ease), background 0.25s var(--gw-ease), color 0.25s var(--gw-ease);
}
.gw-btn:hover { border-color: var(--gw-gold); }
.gw-btn--gold { background: var(--gw-gold); border-color: var(--gw-gold); color: var(--gw-on-gold); }
.gw-btn--gold:hover { background: var(--gw-ivory); border-color: var(--gw-ivory); }
.gw-toggle { border-radius: var(--gw-r-pill); min-height: 38px; padding: 0 14px; font-weight: 400; }
.gw-toggle[aria-pressed="true"] { border-color: var(--gw-gold); color: var(--gw-gold); }

.gw-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Motion off: the Motion toggle or the OS setting */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
.gw-reduced *, .gw-reduced *::before, .gw-reduced *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
}
