/* ==========================================================================
   Pancake Mechanic: styles.css
   STRUCTURE ONLY. No visual styling has been applied yet.
   The tokens below come from the Brand Identity guide (06/26) and are
   ready to use when styling starts. Nothing on the page uses them yet.
   ========================================================================== */

:root {
  /* Colour palette (fixed swatches, brand guide p.40) */
  --batter-cream: #F5E9C8;
  --forge-red:    #EF2B00;
  --copper-brown: #9C350E;
  --cast-iron:    #160B05;

  /* Typography (brand guide p.42–44): General Sans only.
     Fallback: closest geometric sans-serif. Never a serif. */
  --font-brand: "General Sans", system-ui, sans-serif;
  --weight-regular:  400;  /* body copy */
  --weight-medium:   500;  /* body / supporting */
  --weight-semibold: 600;  /* headlines, subheadings */
  --weight-bold:     700;  /* headlines */

  /* Layout: laptop first */
  --content-width: 1200px;
}

/* Structural only: the kit's nav header is fixed, so push the page down
   by its height so the header doesn't cover the first content. */
body { padding-top: var(--kit-header-h); }

/* Menu links: bolder than the kit default (400) */
.fsnav__link { font-weight: var(--kit-weight-bold); }

/* Structural only: images and videos never push the page wider than the
   screen (the 1080px drawing made phones scroll sideways). */
img, video { max-width: 100%; height: auto; }

/* ---------- Loading screen (my-design-kit Flux Loader) ----------
   Hidden unless the <head> script adds .is-loading to <html>, so the page
   never gets stuck behind it if JavaScript is off or fails. */
.loading-screen { display: none; }
.is-loading .loading-screen,
.loading-screen.is-done {
  position: fixed;
  inset: 0;
  z-index: 100;                       /* above the nav (70) */
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: var(--kit-iron);        /* solid field, no logo on the glow */
  color: var(--kit-cream);
  font-family: var(--kit-font);
}
.loading-screen__inner { width: 100%; display: grid; gap: 1.5rem; justify-items: center; }
.loading-screen__name {
  margin: 0;
  font-size: 0.875rem;
  font-weight: var(--kit-weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--kit-tracking-eyebrow);
  opacity: 0.9;
}
.loading-screen.is-done {
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--kit-dur-base) var(--kit-ease-settle);
}
.is-loading body { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .loading-screen.is-done { transition-duration: var(--kit-dur-instant); }
}

/* Brand rules to remember when styling:
   - Logo always sits on a flat, solid field (never on a gradient).
   - Hatch lines: top and bottom borders only, never behind body copy.
   - Hierarchy comes from weight and size. Forge Red on dark is the only
     colour emphasis for text, and it should be used sparingly.
   - Italic is for fine print and captions only. */
