/* FTN Platform Website — base reset and element defaults */

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

* {
  margin: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--text-body-size);
  line-height: var(--text-body-line);
  color: var(--color-black);
  background: var(--color-white);
  min-height: 100vh;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: break-word;
}

h1 {
  font-size: var(--text-h1-size);
  line-height: var(--text-h1-line);
}

h2 {
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-line);
}

h3 {
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line);
}

p {
  max-width: 65ch;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

/* Visible, high-contrast focus state for keyboard navigation (CLAUDE.md §11) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link — hidden until focused, first focusable element on every page */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-16);
  z-index: 100;
  padding: var(--space-8) var(--space-16);
  background: var(--color-black);
  color: var(--color-white);
  border-radius: var(--radius-8);
}

.skip-link:focus {
  top: var(--space-16);
}

/* Layout container (AEB-06 grid: 12 columns, 24px gutter/margin, 1260px max) */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--grid-margin);
}

@media (min-width: 1820px) {
  .container {
    max-width: 1600px;
  }
}
