/* Sciumo Web. The look of sciumo.com (Eric, 2026-11-21: "look at https://sciumo.com AND FIX IT"): white page,
   slate text, a white-to-slate hero band, bordered white cards with the picture on top, filled navy buttons.
   Colors are sciumo.com's own, defined once here. */
:root {
  color-scheme: light;
  --background: #ffffff;
  --foreground: #020817;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --border: #e2e8f0;
  --primary: #0f172a;
  --primary-foreground: #f8fafc;
  --link: #1d4ed8;
  --radius: 0.5rem;
  --header: 3.5rem;
  --on-loop: #1e293b;  /* words over a hero loop: 5.2:1 on the loop's darkest pixel before the veil, 6.6:1 under it (Sciumo Web task 22) */
}
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header) + 1rem); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem; line-height: 1.5; color: var(--foreground); background: var(--background);
}
img { max-width: 100%; }
a { color: var(--link); text-underline-offset: 0.2em; }
a:focus-visible { outline: 2px solid var(--foreground); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0.5rem; }
.skip:focus { left: 1rem; background: var(--background); padding: 0.5rem 1rem; z-index: 60; }
.container { width: 100%; max-width: 80rem; margin: 0 auto; padding: 0 2rem; }
@media (max-width: 40rem) { .container { padding: 0 1rem; } }

/* Header: 56 px, the 32 px round mark and the name, as on sciumo.com; the menu to the right. */
header.site { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / 0.95); border-bottom: 1px solid var(--border); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.5rem; min-height: var(--header); }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--foreground); text-decoration: none; font-weight: 600; font-size: 1.125rem; }
.brand:hover { opacity: 0.8; }
.logo-mark, .mark { width: 2rem; height: 2rem; }
header nav { margin-left: auto; }
header nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; list-style: none; margin: 0; padding: 0; }
header nav a { color: var(--muted-foreground); text-decoration: none; font-size: 0.875rem; font-weight: 500; display: inline-block; padding: 0.5rem 0; }
header nav a:hover, header nav a[aria-current="page"] { color: var(--foreground); }
@media (max-width: 40rem) { header.site { position: static; } header nav { margin-left: 0; } }

main { flex: 1; }

/* Hero: 80 px above and below, white to slate; the logo 96 px high; the words centered, 56 rem wide at most. */
.hero { padding: 5rem 0; background: linear-gradient(to bottom, var(--background), var(--muted)); }
.hero-logo { display: block; width: auto; height: 6rem; margin: 0 auto 3rem; }
.hero-text { max-width: 56rem; margin: 0 auto; text-align: center; }
.hero h1 { font-size: 2.25rem; line-height: 2.5rem; font-weight: 700; letter-spacing: -0.025em; margin: 0 0 1rem; }
.hero p { font-size: 1.25rem; line-height: 1.75rem; color: var(--muted-foreground); margin: 0 0 1rem; }
.cover { display: block; width: 100%; max-width: 640px; height: auto; border-radius: var(--radius); margin: 1.5rem auto; border: 1px solid var(--border); }
/* A page's title art is its h1: the picture carries the title, at most 36rem wide so the lead and the action stay on the first screen. */
.title-art img { display: block; width: 100%; max-width: 36rem; height: auto; margin: 0 auto; border-radius: var(--radius); }
@media (max-width: 40rem) { .hero { padding: 3rem 0; } .hero h1 { font-size: 1.875rem; line-height: 2.25rem; } .hero p { font-size: 1.125rem; } }

/* A hero loop (a page's hero_loop): a muted video behind the hero's words, its still under it. A white veil keeps
   the loop pale and fades into the hero's own slate at the bottom. The still alone shows when the visitor prefers
   reduced motion, or when hero.js finds that the video will not play. No player controls, ever. */
.hero.has-loop { position: relative; overflow: hidden; isolation: isolate; }
.hero.has-loop .hero-still, .hero.has-loop .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; pointer-events: none; z-index: -3; }
.hero.has-loop .hero-bg { z-index: -2; }
.hero.has-loop::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgb(255 255 255 / 0.15) 0%, rgb(255 255 255 / 0.15) 75%, var(--muted) 100%); }
.hero.has-loop p { color: var(--on-loop); }
.hero .hero-credit { position: absolute; right: 2rem; bottom: 0.5rem; margin: 0; font-size: 0.75rem; line-height: 1rem; color: var(--on-loop); }
.hero.has-loop .hero-bg::-webkit-media-controls, .hero.has-loop .hero-bg::-webkit-media-controls-panel,
.hero.has-loop .hero-bg::-webkit-media-controls-start-playback-button, .hero.has-loop .hero-bg::-webkit-media-controls-overlay-play-button { display: none !important; -webkit-appearance: none; }
.hero.has-loop.still .hero-bg { display: none; }
@media (prefers-reduced-motion: reduce) { .hero.has-loop .hero-bg { display: none; } }
@media (max-width: 40rem) { .hero .hero-credit { left: 1rem; right: 1rem; text-align: center; } .hero.has-loop { padding-bottom: 4rem; } }

.band { padding: 5rem 0; }
.band + .band { padding-top: 0; }
.band h2 { font-size: 1.875rem; line-height: 2.25rem; font-weight: 700; letter-spacing: -0.025em; margin: 0 0 2rem; }
.band h3 { font-size: 1.25rem; margin: 1.5rem 0 0.5rem; }
.band-text p, .band-text li { max-width: 70ch; }
.band ul:not(.tiles):not(.shelf) { padding-left: 1.25rem; }

/* Cards: one to three columns, 32 px apart; the picture 16:9 on top; 24 px inside. */
.tiles, .shelf { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 48rem) { .tiles, .shelf { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .tiles, .shelf { grid-template-columns: repeat(3, 1fr); } }
.tile, .game { position: relative; display: flex; flex-direction: column; background: var(--background); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); overflow: hidden; }
.tile-picture { position: relative; aspect-ratio: 16 / 9; background: var(--muted); overflow: hidden; }
.tile-picture img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.tile-head { padding: 1.5rem 1.5rem 0; }
.tile h3, .game h3 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; letter-spacing: -0.025em; margin: 0; }
.tile-subtitle { font-size: 0.875rem; line-height: 1.25rem; color: var(--muted-foreground); margin: 0.375rem 0 0; }
.tile-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.tile-body p { font-size: 0.875rem; line-height: 1.25rem; margin: 0 0 1rem; flex: 1; }
/* The button is the card's link; its area covers the whole card, as each card on sciumo.com is one link. */
.tile-action::after { content: ""; position: absolute; inset: 0; }
.tile:hover { box-shadow: 0 4px 12px 0 rgb(0 0 0 / 0.08); }
.tile-action, .action {
  display: inline-flex; align-items: center; justify-content: center; height: 2.5rem; padding: 0 1rem;
  background: var(--primary); color: var(--primary-foreground); border-radius: calc(var(--radius) - 2px);
  font-size: 0.875rem; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.tile-action:hover, .action:hover { background: rgb(15 23 42 / 0.9); }
.hero .action { height: 2.75rem; padding: 0 2rem; margin-top: 1rem; }
.game { padding: 1.5rem; }
.game img { width: 100%; height: auto; border-radius: calc(var(--radius) - 2px); margin-bottom: 1rem; }
.game h3 a { color: var(--foreground); text-decoration: none; }
.game p { color: var(--muted-foreground); font-size: 0.875rem; }

footer.site { border-top: 1px solid var(--border); padding: 2rem 0; color: var(--muted-foreground); font-size: 0.875rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
footer.site p { margin: 0; }
footer.site ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }

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

/* A card's points: a short list under its lead sentence. Links inside a card sit above the card's own link. */
.tile-body ul { margin: 0 0 1rem; padding-left: 1.1rem; font-size: 0.875rem; line-height: 1.35rem; flex: 1; }
.tile-body li { margin: 0 0 0.4rem; }
.tile-body li strong { color: var(--foreground); }
.tile-body p:has(+ ul) { flex: 0; }
.tile-body a:not(.tile-action) { position: relative; z-index: 1; }

/* Feature video: centered 16:9 playable recording under the hero, with a crisp border and caption. */
.band-video { padding: 3rem 0 2rem; }
.feature-video { max-width: 64rem; margin: 0 auto; }
.feature-video video { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: 0 4px 16px 0 rgb(0 0 0 / 0.08); background: #020817; }
.feature-video figcaption { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.4; color: var(--muted-foreground); text-align: center; }
