/* ====================================================================================================================
   ZELu Games site. Colors: the shared Chalk palette (palettes.css), light or dark following the system.
   Layout: one narrow column; game cards in a grid that stacks on phones.
   ==================================================================================================================== */

@font-face { font-family: "Titan One"; font-weight: 400; font-display: swap; src: url(fonts/TitanOne.woff2) format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 400; font-display: swap; src: url(fonts/Fredoka-400.woff2) format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 600; font-display: swap; src: url(fonts/Fredoka-600.woff2) format("woff2"); }
@font-face { font-family: "Cabin Sketch"; font-weight: 700; font-display: swap; src: url(fonts/CabinSketch.woff2) format("woff2"); }

:root {
  --f-logo:  "Titan One", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --f-body:  "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --f-chalk: "Cabin Sketch", "Chalkboard SE", "Comic Sans MS", cursive;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 18px/1.55 var(--f-body); }
img { max-width: 100%; }
a { color: var(--track); }
a:focus-visible, button:focus-visible { outline: 3px dashed var(--focus); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 780px; margin: 0 auto; padding-inline: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header: the small ZELu mark and two links */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: flex; align-items: baseline; font-family: var(--f-logo); font-size: 28px; line-height: 1; text-decoration: none; }
.brand .z, .brand .l { color: var(--track); }
.brand .e { color: var(--baton); }
.brand .u { display: inline-block; font-size: .6em; margin-left: .04em; color: var(--ink-2); transform: rotate(-10deg); }
.top nav { display: flex; gap: 18px; }
.top nav a { color: var(--ink-2); font-weight: 600; text-decoration: none; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }

h1, h2, h3 { font-weight: 600; line-height: 1.15; text-wrap: balance; }
h2 { font-size: 26px; margin: 44px 0 12px; }
.lede { font-size: 21px; color: var(--ink-2); max-width: 34em; margin: 0 0 8px; }

/* home: the logo plays once, then the games */
.hero { text-align: center; padding-block: 48px 28px; }
.hero .zl-mark { font-size: clamp(72px, 21vw, 124px); justify-content: center; }
.hero .zl-games { font-size: clamp(16px, 4.2vw, 23px); }
.hero .zl-logo.pre { visibility: hidden; }
.hero .lede { margin: 22px auto 0; text-align: center; }
.hero .lede b { font-weight: 600; }   /* the Z, E and L of the logo, in its colors */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-block: 28px 12px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
        overflow: hidden; box-shadow: var(--shadow); }
.card .pic { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 62%; background: #1C2925; }
.card .body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 18px 20px 22px; }
.card h3 { margin: 0; font-size: 30px; }
.card p { margin: 0; color: var(--ink-2); }
.card .more { margin-top: auto; padding-top: 6px; font-weight: 600; text-decoration: none; }
.chip { align-self: flex-start; padding: 2px 11px; border-radius: 999px; font-size: 14px; font-weight: 600;
        background: var(--baton-soft); color: var(--ink); border: 1px solid var(--baton-line); }

/* game titles in each game's own lettering */
.fg { font-family: var(--f-chalk); font-weight: 700; }
.fg .a { color: var(--p0); }
.fg .b { color: var(--p1); }
.r8 { font-family: var(--f-logo); letter-spacing: .02em; }
.r8 em { font-style: normal; color: var(--baton); }
.page-title { font-size: clamp(60px, 16vw, 104px); line-height: 1; margin: 28px 0 10px; }

/* REL8 card: the relay line with its five stations, a "coming soon" band across it */
.r8-panel { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
            aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.soon { position: absolute; left: -10%; right: -10%; top: 74%; transform: translateY(-50%) rotate(-7deg);
        padding: 10px 0; background: var(--baton); color: var(--on-baton); text-align: center;
        font-weight: 600; font-size: 20px; letter-spacing: .28em; text-transform: uppercase;
        box-shadow: 0 6px 16px -8px rgba(0,0,0,.45); }
.soon-chip { display: inline-block; padding: 8px 18px; border-radius: 999px; background: var(--baton); color: var(--on-baton);
             font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-size: 15px; }
.subtitle { margin: -4px 0 12px; font-weight: 600; font-size: 15px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
.legs { list-style: none; padding: 0; margin: 0; }
.legs li { padding: 6px 0; }
.legs .em { display: inline-block; width: 1.7em; }
.r8-panel .r8 { font-size: 72px; line-height: 1; }
.relay { position: relative; width: 62%; height: 14px; }
.relay::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 4px; border-radius: 2px; background: var(--track); }
.relay i { position: absolute; top: 0; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%;
           background: var(--baton); border: 3px solid var(--surface-2); box-shadow: 0 0 0 2.5px var(--track); }

/* game pages */
.steps { padding-left: 1.2em; margin: 0; }
.steps li { margin-bottom: 8px; max-width: 36em; }
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0; }
.shots figure { margin: 0; }
.shots img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); }
.shots figcaption { margin-top: 6px; font-size: 15px; color: var(--muted); text-align: center; }
@media (max-width: 620px) { .shots { grid-template-columns: repeat(2, 1fr); } }
.events { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0 28px; }
.events li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.events .mv { color: var(--muted); font-size: 16px; text-align: right; }
.events .free { margin-left: 8px; font-size: 13px; font-weight: 600; color: var(--track); }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; }
.box p { margin: 0 0 8px; }
.box p:last-child { margin: 0; }
.btn { display: inline-block; padding: 12px 24px; border-radius: 999px; background: var(--baton); color: var(--on-baton);
       font-weight: 600; text-decoration: none; }
.btn:hover { filter: brightness(1.06); }

/* privacy policy */
.prose h2 { font-size: 21px; margin: 30px 0 6px; }
.prose p, .prose li { max-width: 40em; }
.dated { color: var(--muted); font-size: 16px; }

footer { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 64px; padding-block: 24px 44px; border-top: 1px solid var(--line);
         color: var(--muted); font-size: 15px; }
footer a { color: var(--ink-2); }

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