/* Matcha Haven: consistent typography
   Link this AFTER style.css on every page:
   <link rel="stylesheet" href="typography.css">
   Rule of thumb: Pixelify Sans = headings + buttons/nav only. Nunito = everything you read. */

:root {
  --font-pixel: "Pixelify Sans", "Nunito", sans-serif;
  --font-body: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* one type scale, used everywhere */
  --text-sm: 15px;
  --text-base: 18px;
  --text-lg: 20px;
  --h3: 24px;
  --h2: 32px;
  --h1: 44px;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
}

/* Headings: pixel font, same weight, clear size steps */
h1, h2, h3 {
  font-family: var(--font-pixel);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
}
h1 { font-size: clamp(32px, 6vw, var(--h1)); }
h2 { font-size: clamp(26px, 4.5vw, var(--h2)); }
h3 { font-size: var(--h3); }

/* All readable text: same font, size and weight */
p, li, td, th, label, input, select, textarea {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
}

/* The one lead/intro paragraph per section: slightly larger, not bold */
section > h2 + p,
.hero p:first-of-type {
  font-size: var(--text-lg);
  font-weight: 400;
}

/* Buttons and main nav: pixel font, one size, one weight */
.btn, button, .topbar .link, .menu-button {
  font-family: var(--font-pixel);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: 0;
}

/* Inline links inside text inherit the text around them */
p a, li a {
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
}

/* Overrides for one-off sizes in style.css */
.tagline { font-size: clamp(32px, 6vw, var(--h1)); }
.sign, .band h2 { font-size: clamp(26px, 4.5vw, var(--h2)); }
.feature h3 { font-size: var(--h3); }
.hero-card p, .feature p, .band p { font-size: var(--text-base); font-weight: 400; }
.about .lead { font-size: var(--text-lg); font-weight: 400; }
.btn, .menu-button, .lightbox button, .lightbox .caption, .platforms {
  font-family: var(--font-pixel);
  font-size: var(--text-lg);
  font-weight: 600;
}
.topbar a.link { font-size: var(--text-lg); font-weight: 600; }

/* Footer */
footer a, footer p {
  font-family: var(--font-body);
  font-size: var(--text-sm);
}
footer a { font-weight: 700; }
