/* Base layer: reset, faces, container, focus. Nothing section-specific. */

@font-face {
  font-family: "NAVI";
  src: url("/assets/fonts/NAVI-Black.woff2?v=aef96c6c8d") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "NAVI";
  src: url("/assets/fonts/NAVI-Regular.woff2?v=c3eafb7c46") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Navi Text";
  src: url("/assets/fonts/NaviText-Regular.woff2?v=70481213fb") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Navi Text";
  src: url("/assets/fonts/NaviText-Bold.woff2?v=ea0ff0626f") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

/* The `hidden` attribute is display:none in the UA sheet, which any class
 * selector outranks. Without this, `.menu { display: flex }` keeps a
 * full-viewport overlay laid out at opacity 0 — invisible, but swallowing
 * every click on the page. Found while testing the burger, 2026-09-18. */
[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* The header is sticky, so an anchor jump would park its target underneath
   * the bar. This offsets every in-page target, including the one interaction
   * the Figma prototype actually specifies ("Learn more" -> HOW TO PLAY). */
  scroll-padding-top: calc(var(--header-h) + var(--sp-5));
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-white);
  font-family: var(--ff-text);
  font-size: var(--fs-card-body);
  line-height: var(--lh-card-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3,
p,
ul,
figure {
  margin: 0;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* The mock defines no focus state, and shipping without one is not an option.
 * The ring is drawn in the brand accent so it reads as part of the design
 * rather than as a browser default that survived. */
:focus-visible {
  outline: 2px solid var(--c-yellow);
  outline-offset: 3px;
  border-radius: 2px;
}

:where(a, button, summary):focus:not(:focus-visible) {
  outline: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
}

.section {
  padding: var(--section-pad-y) var(--section-pad-x);
}

.section__title {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: var(--fs-section);
  line-height: var(--lh-section);
  color: var(--c-yellow);
  text-align: center;
  text-transform: uppercase;
}

/* Accessible label that stays out of the visual design. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* The one button in the design. Two visual states are specified (filled,
 * outlined-on-hover); pressed and focus are ours. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(52px, calc(6.471px + 12.6vw), 79px);
  padding: 0 clamp(28px, calc(12.5px + 4.3vw), 45px);
  border: 2px solid var(--c-yellow);
  border-radius: var(--r-btn);
  background: var(--c-yellow);
  color: var(--c-section);
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: var(--fs-btn);
  line-height: var(--lh-btn);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition:
    background-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

.btn:hover {
  background: transparent;
  color: var(--c-yellow);
}

.btn:active {
  transform: translateY(1px);
}
