/* LOCO. colour system, from Lois's palette (email, 7 Sept 2026):
   red #B70404, olive #97907C, cream #EDE1C7.
   Deep olive #615C4C is a darker step of her olive so cream text on it
   (and olive text on cream) is readable: her olive on cream is only 2.5:1.
 */

:root {
  --red: #B70404;
  --olive: #97907C;
  --olive-deep: #615C4C;
  --cream: #EDE1C7;
  --cream-light: #F6EFDF;
  --ink: #1E1B16;

  --page: var(--cream);
  --card: var(--cream-light);
  --text: var(--ink);
  --muted: rgba(30,27,22,0.72);
  --line: rgba(30,27,22,0.16);
  --accent: var(--red);
  --on-accent: var(--cream);
  --head-ink: var(--olive-deep);

  --dark: var(--olive-deep);
  --on-dark: var(--cream);
  --on-dark-muted: rgba(237,225,199,0.86);
  --dark-line: rgba(237,225,199,0.24);
  --overlay: 52,49,38;

  --mid: var(--olive);
  --on-mid: var(--ink);

  --ticker: var(--red);
  --on-ticker: var(--cream);
  --ticker-dim: rgba(237,225,199,0.5);
  --pop: var(--ink);
  --on-pop: var(--cream);

  --book: var(--red);
  --on-book: var(--cream);
  --button-dark: var(--olive-deep);

  --header-bg: rgba(237,225,199,0.92);
  --header-text: var(--ink);
  --header-line: rgba(30,27,22,0.12);
  --logo: var(--red);
  --logo-on-dark: var(--cream);
}

html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--text); font-family: Archivo, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
* { box-sizing: border-box; }
a { color: var(--accent); text-decoration: none; }
img { display: block; }
::selection { background: var(--red); color: var(--cream); }
@keyframes loco-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
input, select, textarea, button { font-family: Archivo, Helvetica, Arial, sans-serif; }
input[type="date"] { -webkit-appearance: none; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* The cream-on-red marker used for highlighted words on dark or photo backgrounds. */
.loco-mark { display: inline-block; background: var(--red); color: var(--cream); line-height: 1.04; padding: 0.06em 0.14em 0; margin-top: 0.1em; }

.loco-scroller { scrollbar-width: none; }
.loco-scroller::-webkit-scrollbar { display: none; }

@media (max-width: 640px) {
  .loco-hide-sm { display: none !important; }
}

/* Hero. Phones show one full-screen portrait photo at a time, which fits a phone perfectly.
   On laptops the visible hero (between the header and the name banner) is roughly 2:1,
   so a single portrait photo gets cut to a thin, zoomed-in strip. Three portrait photos
   side by side fill that shape with almost no cropping. */
.loco-hero-shade { background: linear-gradient(180deg, rgba(var(--overlay),0.55) 0%, rgba(var(--overlay),0.18) 40%, rgba(var(--overlay),0.9) 100%); }
@media (min-width: 900px) {
  .loco-only-sm { display: none !important; }
  .loco-hero-shade { background: linear-gradient(90deg, rgba(var(--overlay),0.86) 0%, rgba(var(--overlay),0.58) 34%, rgba(var(--overlay),0.12) 66%, rgba(var(--overlay),0.04) 100%), linear-gradient(0deg, rgba(var(--overlay),0.5) 0%, rgba(var(--overlay),0) 32%); }
}
@media (max-width: 899px) {
  .loco-only-lg { display: none !important; }
}

/* Text beside a framed portrait video on laptops; the frame drops underneath on phones. */
.loco-split { grid-template-columns: minmax(0, 1fr); }
.loco-split-media { justify-self: center; }
@media (min-width: 900px) {
  .loco-split { grid-template-columns: minmax(0, 1fr) auto; }
  .loco-split-media { justify-self: end; margin-right: clamp(0px, 4vw, 80px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .loco-marquee { animation: none !important; }
}
