/* 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;
}
* { 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); }
@media (max-width: 40rem) { .hero { padding: 3rem 0; } .hero h1 { font-size: 1.875rem; line-height: 2.25rem; } .hero p { font-size: 1.125rem; } }

.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; } }
