/* ============================================================
   King Of The Wings — Base styles
   Reset + typography defaults + theme switching
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color var(--dur-medium) var(--ease-out),
              color var(--dur-medium) var(--ease-out);
}

main {
  display: block;
}

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

img {
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

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

a {
  color: var(--text-accent);
  text-decoration: none;
  transition: color var(--dur-micro) var(--ease-out);
}

a:hover {
  color: var(--color-sunburst-yellow);
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-sunburst-yellow);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---------- Headings ---------- */

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--lh-heading);
  color: var(--text-primary);
  letter-spacing: var(--tracking-tight);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

.display-xl,
.display-lg {
  font-family: var(--font-display);
  font-weight: 400; /* Bangers has no weight variants */
  line-height: var(--lh-display);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.display-xl { font-size: var(--fs-display-xl); }
.display-lg { font-size: var(--fs-display-lg); }

.eyebrow {
  font-family: var(--font-heading);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--text-accent);
  margin: 0 0 var(--space-3) 0;
}

.quote {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: var(--fs-body-lg);
  color: var(--text-primary);
  line-height: 1.4;
}

p {
  margin: 0 0 var(--space-4) 0;
  max-width: 65ch;
}

p:last-child { margin-bottom: 0; }

strong, b { font-weight: 700; color: var(--text-primary); }

small { font-size: var(--fs-caption); color: var(--text-secondary); }

ul, ol { margin: 0; padding: 0 0 0 var(--space-5); }
li { margin-bottom: var(--space-2); }

hr {
  border: 0;
  border-top: 1px solid var(--border-default);
  margin: var(--space-8) 0;
}

::selection {
  background: var(--color-sunburst-yellow);
  color: var(--color-royal-black);
}

/* ---------- Container ---------- */

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

.container-wide {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--container-gutter);
}

/* ---------- Section base ---------- */

.section {
  position: relative;
  padding-block: var(--section-pad-y);
}

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

.section-title {
  font-family: var(--font-heading);
  font-size: var(--fs-display-lg);
  text-transform: uppercase;
  margin-bottom: var(--space-6);
}

/* ---------- Utility ---------- */

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

.text-accent { color: var(--text-accent); }
.text-yellow { color: var(--color-sunburst-yellow); }
.text-cream { color: var(--color-cream); }
.text-muted { color: var(--text-muted); }

.bg-surface { background-color: var(--bg-surface); }
.bg-sunburst { background: var(--gradient-sunburst); }
