/* Reruns & Rebels base styles.
   The EmVB editor canvas loads this file too, through emvb({ canvasStyles }) in
   astro.config, so pages look the same in the editor as on the live site.
   Brand reference: the "Reruns & Rebels Brand" design system. */

:root {
  --rr-orange: #fd6b35;
  --rr-orange-ink: #c2410c;
  --rr-ink: #13100f;
  --rr-ink-muted: #3a3533;
  --rr-pink: #dd135f;
  --rr-cream: #fbe7a8;
  --rr-surface: #ffffff;
  --rr-surface-warm: #fff4e6;
  --rr-released: #1f7a3d;

  --rr-font-display: "Luckiest Guy", "Arial Black", Impact, sans-serif;
  --rr-font-body: Rubik, "Helvetica Neue", Arial, sans-serif;

  font-family: var(--rr-font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--rr-ink);
  background: var(--rr-surface);
  -webkit-text-size-adjust: 100%;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

img,
video,
svg {
  max-width: 100%;
  height: auto;
}

h1,
h2 {
  font-family: var(--rr-font-display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 1px;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(40px, 6vw, 56px);
}

h2 {
  font-size: clamp(26px, 4vw, 32px);
  line-height: 1;
  letter-spacing: 0.5px;
}

h3,
h4 {
  font-family: var(--rr-font-body);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 0.5em;
}

h3 {
  font-size: 22px;
}

h4 {
  font-size: 17px;
}

p {
  margin: 0 0 1em;
  max-width: 68ch;
}

a {
  color: var(--rr-orange-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--rr-pink);
}

:focus-visible {
  outline: 3px solid var(--rr-ink);
  outline-offset: 2px;
}

/* Fallback header and footer, used until EmVB Theme Builder parts replace them. */
body > header {
  border-bottom: 3px solid var(--rr-ink);
  background: var(--rr-surface);
}

body > header nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
}

body > header nav > a:first-child {
  margin-right: auto;
  text-decoration: none;
  color: var(--rr-ink);
  font-family: var(--rr-font-display);
  font-size: 26px;
  letter-spacing: 0.5px;
}

body > header nav a {
  font-weight: 700;
  color: var(--rr-ink);
  text-decoration: none;
}

body > header nav a:hover {
  color: var(--rr-orange-ink);
}

/* Default page content (EmDash pages and posts outside EmVB). */
main > article,
main > h1,
main > ul,
main > p {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

main > article {
  padding-top: 48px;
  padding-bottom: 80px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
