/* Base + shared primitives. DS tokens/base.css, then the DS components that every page uses
   (Button, arrow link, icon, eyebrow, logo) rebuilt as classes. Breakpoints:
   mobile < 768 · tablet 768–1023 · compact desktop 1024–1199 (phone hidden) · desktop ≥ 1200. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: var(--fs-body); line-height: var(--lh-body);
  color: var(--text-body); background: var(--surface-page); -webkit-font-smoothing: antialiased;
}
a { color: var(--text-link); text-decoration: none; }
a:hover { color: var(--text-link-hover); }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
img, svg { max-width: 100%; }
button { font: inherit; }
[hidden] { display: none !important; }
[data-theme] { color: var(--text-body); }

/* in-page anchors land below the sticky header; smooth unless reduced motion */
main [id] { scroll-margin-top: 88px; }
@media (max-width: 1023px) { main [id] { scroll-margin-top: 80px; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100; padding: 10px 16px;
  background: var(--surface-raised); color: var(--text-strong); font-weight: 600; border-radius: var(--radius-md);
  box-shadow: var(--shadow-2);
}
.skip-link:focus-visible { top: 12px; }

.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;
}

/* ---------- layout ---------- */
.container { max-width: 1280px; margin: 0 auto; padding-left: var(--page-x); padding-right: var(--page-x); }
@media (max-width: 1023px) { .container { padding-left: var(--page-x-m); padding-right: var(--page-x-m); } }

.section { position: relative; background: var(--surface-page); }
.section--subtle { background: var(--surface-subtle); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--rules { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__pad { padding-top: var(--section-y); padding-bottom: var(--section-y); }
@media (max-width: 767px) { .section__pad { padding-top: var(--section-y-m); padding-bottom: var(--section-y-m); } }

.h2 {
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h2); line-height: var(--lh-h2);
  letter-spacing: var(--tracking-heading); color: var(--text-strong); text-wrap: balance;
}
.h3 {
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h4); line-height: var(--lh-h4);
  letter-spacing: var(--tracking-heading); color: var(--text-strong);
}
.lead { font-size: var(--fs-body-lg); line-height: var(--lh-body-lg); text-wrap: pretty; }
@media (max-width: 767px) {
  .h2 { font-size: var(--fs-h2-m); }
  .h3 { font-size: var(--fs-h4-m); }
  .lead { font-size: 17px; }
}

/* ---------- icon (Material Symbols, DS shared.jsx icon()) ---------- */
.icon {
  flex: none; display: block; width: var(--icon-size, 16px); height: var(--icon-size, 16px); overflow: hidden;
  font-family: var(--font-icon); font-weight: normal; font-style: normal; font-size: var(--icon-size, 16px);
  line-height: 1; letter-spacing: normal; text-transform: none; white-space: nowrap; direction: ltr;
  user-select: none; -webkit-font-smoothing: antialiased; font-feature-settings: "liga";
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' var(--icon-opsz, 20);
}

/* ---------- eyebrow ---------- */
.eyebrow {
  font-family: var(--font-mono); font-weight: 500; font-size: var(--fs-eyebrow); line-height: 1.4;
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--text-accent);
}
.eyebrow--sm { font-size: var(--fs-caption); }

/* ---------- Button (DS Button: sm 36, md 40, lg 44, pill radius) ----------
   Colours are set on :hover too, so the global a:hover link colour can never leak into a button. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px;
  border-radius: 999px; font-family: var(--font-body); font-weight: 600; font-size: 14px; line-height: 1;
  white-space: nowrap; text-decoration: none; transition: background var(--dur-fast) var(--ease); cursor: pointer;
}
.btn--sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn--lg { height: 44px; padding: 0 22px; font-size: 15px; }
.btn--primary, .btn--primary:hover { color: var(--action-fg); }
.btn--primary { background: var(--action-bg); border: 0; }
.btn--primary:hover { background: var(--action-bg-hover); }
.btn--secondary, .btn--secondary:hover { color: var(--action2-fg); }
.btn--secondary { background: transparent; border: 1px solid var(--action2-border); }
.btn--secondary:hover { background: var(--action2-hover); }
.btn--block { width: 100%; }
@media (max-width: 767px) { .btn--block-m { width: 100%; } }
.btn .icon { --icon-size: 18px; }

/* Arrow link (DS Button variant="arrow") */
.arrow-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 0; color: var(--text-link);
  font-family: var(--font-body); font-weight: 600; font-size: 15px; line-height: 1.4; border-radius: var(--radius-sm);
  transition: gap var(--dur-fast) var(--ease);
}
.arrow-link span:first-child { white-space: normal; }
.arrow-link:hover { gap: 10px; color: var(--text-link-hover); }
.arrow-link--sm { font-size: 14px; }
.arrow-link--lg { font-size: 16px; }

/* ---------- logo (DS --logo-light / --logo-dark swap) ---------- */
.logo { display: flex; align-items: center; flex: none; border-radius: var(--radius-sm); }
.logo img { width: auto; }
.logo__light { display: var(--logo-light); }
.logo__dark { display: var(--logo-dark); }

/* ---------- motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

@media (max-width: 1023px){
  .arrow-link span:first-child { white-space: nowrap; }
}