/**
 * Base — resets + base element styling from the design tokens.
 * Component/section styles live in main.css.
 */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--gfo-sand);
  color: var(--gfo-text);
  font-family: var(--gfo-font-body);
  font-size: var(--gfo-fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-family: var(--gfo-font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--gfo-ink);
}
h1 { font-size: var(--gfo-fs-h1); letter-spacing: -.02em; }
h2 { font-size: var(--gfo-fs-h2); }
h3 { font-size: var(--gfo-fs-h3); }

p { margin: 0 0 1em; }

a { color: var(--gfo-terracotta); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* eyebrow / mono label helper (IBM Plex Mono, uppercase, tracked) */
.gfo-eyebrow {
  font-family: var(--gfo-font-mono);
  font-size: var(--gfo-fs-mono);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gfo-terracotta);
}

/* layout container */
.gfo-container {
  width: 100%;
  max-width: var(--gfo-maxw);
  margin-inline: auto;
  padding-inline: var(--gfo-gutter);
}

/* buttons */
.gfo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 0;
  border-radius: var(--gfo-radius-btn);
  font-family: var(--gfo-font-body);
  font-size: var(--gfo-fs-ui);
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color .15s ease, transform .05s ease;
}
.gfo-btn:active { transform: translateY(1px); }
.gfo-btn--primary { background: var(--gfo-terracotta); color: #fff; }
.gfo-btn--primary:hover { background: #a95930; text-decoration: none; }
.gfo-btn--dark { background: var(--gfo-ink); color: #fff; }
.gfo-btn--ghost { background: transparent; color: var(--gfo-ink); box-shadow: inset 0 0 0 1px rgba(58,40,32,.25); }

/* accessibility: visible focus for keyboard users (non-negotiable a11y) */
:focus-visible { outline: 2px solid var(--gfo-terracotta); outline-offset: 2px; }

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

/* skip link */
.gfo-skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--gfo-ink); color: #fff; padding: 10px 16px; z-index: 1000;
}
.gfo-skip-link:focus { left: 8px; top: 8px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
