/* Secretly Lava. Colours are the logo's own; the footer is the lava its icon drips into. */
@font-face { font-family: 'Jersey 20'; src: url('/fonts/jersey20.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --night: #140932; --lilac: #BF80FF; --mint: #C4F2DE; --lava: #FF6C00; --ink: #140932;
  --pixel: 'Jersey 20', system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--night); }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; background: var(--night); color: var(--mint); font: 400 17px/1.65 system-ui, -apple-system, 'Segoe UI', sans-serif; overflow-x: hidden; }
a { color: inherit; }
main { flex: 1; width: 100%; }

/* the front page: lava.js draws the logo and its animation in the place of the picture */
.home main { display: grid; place-items: center; padding: min(48px, 5svh) 24px min(130px, 14svh); }
.home h1 { margin: 0; width: min(88vw, 900px, 110svh); line-height: 0; }
.home h1 img { width: 100%; height: auto; opacity: 0; animation: show 0s 2.5s forwards; }
.live .home h1 img { animation: none; }
@keyframes show { to { opacity: 1; } }

/* the lava */
.lava { position: absolute; left: 0; pointer-events: none; }
.home .lava { top: 0; }
footer .lava { bottom: 0; }
.home { position: relative; }
.home main, .home footer { position: relative; z-index: 1; }
footer { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 clamp(18px, 7vw, 36px); padding: 18px 24px max(22px, env(safe-area-inset-bottom)); background: var(--lava); color: var(--mint); }
.live footer { background: none; }
/* outlined, so that the words read on crust and on lava */
footer a { position: relative; padding: 8px 2px; font: 400 26px/1.3 var(--pixel); text-decoration: none; text-shadow: 2px 0 var(--ink), -2px 0 var(--ink), 0 2px var(--ink), 0 -2px var(--ink), 2px 2px var(--ink), -2px 2px var(--ink), 2px -2px var(--ink), -2px -2px var(--ink), 0 4px var(--ink), 2px 4px var(--ink), -2px 4px var(--ink); }
footer a:hover, footer a:active { color: #FFDB66; }

/* a page to read */
.page main { max-width: 704px; margin: 0 auto; padding: 32px 24px 150px; }
.page .back { display: inline-block; line-height: 0; }
.page .back img { width: 190px; height: auto; }
.page h1 { margin: 52px 0 24px; font: 400 clamp(54px, 12vw, 76px)/1 var(--pixel); color: #FF8A33; }
.page h2 { margin: 36px 0 6px; font: 400 30px/1.2 var(--pixel); }
.page p { margin: 0 0 14px; color: #DDD3EE; }
.page p a { color: var(--mint); text-underline-offset: 3px; overflow-wrap: anywhere; }

main a:focus-visible { outline: 3px solid var(--lilac); outline-offset: 4px; }
footer a:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; color: #FFDB66; }
