/* ============================================================
   BASE — resets, typography, layout primitives
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

body { margin: 0; background: var(--c-paper); color: var(--c-ink); font-family: var(--f-body); font-size: var(--p-l); line-height: var(--p-l-lh);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--t); }
:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; margin: 0; color: var(--c-navy); letter-spacing: .01em; }
h1 { font-size: var(--h1); line-height: var(--h1-lh); }
h2 { font-size: var(--h2); line-height: var(--h2-lh); }
h3 { font-size: var(--h3); line-height: var(--h3-lh); }
h4 { font-size: var(--h3); line-height: var(--h3-lh); }
p  { margin: 0 0 10px; color: var(--c-ink-soft); }
p:last-child { margin-bottom: 0; }
.lead { font-size: var(--p-xl); line-height: var(--p-xl-lh); }
.prose { max-width: 40rem; }
.prose p { margin-bottom: 20px; }
.prose a { text-decoration: underline; }
.prose a:hover { color: var(--c-accent); }
.small { font-size: var(--t-small); line-height: 22px; }
.muted { color: var(--c-ink-soft); }
ul, ol { margin: 0; padding: 0; list-style: none; }
.skip-link { position: absolute; left: -999px; top: 16px; background: var(--c-navy); color: #fff; padding: 8px 16px; z-index: 100; }
.skip-link:focus { left: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Layout */
.wrap { max-width: var(--w-max); margin-inline: auto; padding-inline: var(--gutter); }
.section { margin-block: var(--section); }
.section--tight { margin-block: calc(var(--section) / 2); }
.section--alt { background: var(--c-paper-2); padding-block: var(--section); margin-block: 0; }
.section--dark { background: var(--c-navy); color: #fff; padding-block: var(--section); margin-block: 0; }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark p { color: #fff; }
.section--dark .muted { color: var(--c-on-dark-soft); }
.section__intro { text-align: center; }
.section__intro h2 { margin-bottom: 24px; }
.section__intro .lead { max-width: 704px; margin-inline: auto; font-size: var(--p-l); line-height: var(--p-l-lh); }

/* Two-column: short lead-in left, content right (inner pages) */
.split { display: grid; gap: 32px; }
@media (min-width: 52em) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 72px; } }
.kicker { font-family: var(--f-body); font-weight: 700; font-size: var(--t-body); line-height: 26px; text-transform: uppercase; color: var(--c-ink); margin: 0; }
.section--dark .kicker { color: #fff; }

/* Buttons — pill, uppercase 13px, filled (ref .btn) */
.btn { border: none; display: inline-block; padding: 16px 24px 17px; background: var(--c-accent); color: #fff; font-size: var(--t-small); font-family: var(--f-body);
  font-weight: 700; letter-spacing: .02em; text-transform: uppercase; text-align: center; line-height: 1; border-radius: var(--btn-radius); cursor: pointer; transition: var(--t); }
.btn:hover { background: var(--c-navy-deep); color: #fff; }
.btn--light { background: #fff; color: var(--c-navy); }
.btn--light:hover { background: var(--c-accent); color: #fff; }
.btn--navy { background: var(--c-navy); color: #fff; }
.btn--navy:hover { background: var(--c-navy-deep); color: #fff; }
.btn--solid { }                      /* alias kept for inner pages */
.btn--ghost, .btn--outline { background: transparent; color: #fff; border: 1px solid #fff; }
.btn--ghost:hover, .btn--outline:hover { background: #fff; color: var(--c-navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 40px; }

/* Round arrow buttons (ref .play_icon.small) */
.round-btn { width: 50px; height: 50px; border-radius: 50px; border: none; background: var(--c-accent); color: #fff; cursor: pointer; display: grid; place-items: center; transition: var(--t); font-size: var(--t-body); }
.round-btn:hover { background: var(--c-navy-deep); }
.round-btn:disabled { opacity: .43; cursor: default; }
.round-btn:disabled:hover { background: var(--c-accent); }

/* Tag pill (ref .tag) */
.tag { display: inline-block; padding: 6px 18px 5px; background: var(--c-accent); border-radius: 15px; font-size: var(--t-label); line-height: 18px; font-weight: 700; color: #fff; text-transform: uppercase; }
.accent { color: var(--c-accent-deep); }

/* ---------- Moving between pages: a gentle cross-fade ---------- */
/* Browsers that support view transitions cross-fade the whole page; the rest simply fade in. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .24s; animation-timing-function: ease; }

@supports not (view-transition-name: none) {
  @media (prefers-reduced-motion: no-preference) {
    body { animation: page-fade-in .24s ease both; }
    @keyframes page-fade-in { from { opacity: 0; } to { opacity: 1; } }
  }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  body { animation: none !important; }
}

/* Every control uses the brand font, not the browser's default */
button, input, select, textarea { font-family: inherit; }
