/* InsideLife website: shared base (header, buttons, footer, legal pages, 404).
   The home page's scenes are in home.css. Plain CSS, mobile first. */
:root {
  --danfo: #f6c20f;
  --danfo-hot: #ffd84a;
  --black: #07090c;
  --ink: #10161c;
  --lagoon: #0a2a44;
  --sunset: #ff7a3d;
  --led: #ffb627;
  --cream: #fbf6ec;
  --paper: #ffffff;
  --muted: #4d5966;
  --line: #e4dccb;
  --gutter: 16px;
  --max: 1280px;
  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (min-width: 760px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--black); color: #fff; font: 400 1rem/1.6 var(--body); overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 0.95; letter-spacing: 0.005em; margin: 0 0 0.4em; text-transform: uppercase; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--danfo); outline-offset: 3px; border-radius: 4px; }
.light :focus-visible { outline-color: #16507c; }

.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--danfo); color: var(--ink); padding: 10px 14px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1.1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--danfo); color: var(--ink); }
.btn-primary:hover { background: var(--danfo-hot); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; background: rgba(0,0,0,.25); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: #fff; background: rgba(0,0,0,.4); }
.btn[aria-disabled="true"] { cursor: default; transform: none; opacity: .9; }
.btn .stack { display: flex; flex-direction: column; align-items: flex-start; text-align: left; line-height: 1.1; }
.btn small { font-weight: 500; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.btn svg { flex: none; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background-color .3s ease; }
.site-header::before { content: ""; position: absolute; inset: 0 0 -30px 0; z-index: -1; background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,0)); pointer-events: none; transition: opacity .3s; }
.site-header.scrolled { background: rgba(7,9,12,.82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.site-header.scrolled::before { opacity: 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font: 400 1.45rem/1 var(--display); letter-spacing: .03em; text-transform: uppercase; }
.brand-mark { width: 34px; height: 34px; border-radius: 8px; flex: none; }
.nav { display: none; gap: 28px; }
.nav a { color: rgba(255,255,255,.85); text-decoration: none; font-weight: 600; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; }
.nav a:hover { color: #fff; }
.header-play { min-height: 42px; padding: 8px 18px; font-size: .9rem; }
@media (min-width: 900px) { .nav { display: flex; } }
.site-header.static { position: sticky; top: 0; background: var(--black); }
.site-header.static::before { display: none; }

/* Footer */
.site-footer { background: var(--black); color: #a9a397; padding: 64px 0 40px; font-size: .92rem; border-top: 1px solid #1b2128; }
.site-footer a { color: #fff; }
.foot-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h3 { font: 700 .8rem/1.2 var(--body); letter-spacing: .12em; color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer .credit { margin-top: 40px; padding-top: 20px; border-top: 1px solid #1b2128; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: #8a8478; font-size: .85rem; }
.site-footer .credit a { color: #c9c3b6; }

/* Legal pages: light paper for long reading */
.light { background: var(--cream); color: var(--ink); }
.prose { max-width: 760px; margin: 0 auto; padding: 48px var(--gutter) 80px; }
.prose a { color: #16507c; }
.prose h1 { font-size: clamp(2.6rem, 10vw, 4rem); }
.prose h2 { font-size: clamp(1.5rem, 5vw, 1.9rem); margin-top: 2em; }
.prose h3 { font: 700 1.1rem/1.3 var(--body); text-transform: none; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.draft { background: #fff3cc; border: 2px solid #d9a400; color: #4a3a00; border-radius: 12px; padding: 14px 16px; margin: 0 0 26px; font-weight: 700; }
.draft span { display: block; font-weight: 400; font-size: .92rem; margin-top: 4px; }
.meta { color: var(--muted); font-size: .92rem; }
.toc { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 22px 0; }
.toc ol { margin: 6px 0 0; }
table.plain { width: 100%; border-collapse: collapse; font-size: .93rem; margin: 10px 0 18px; display: block; overflow-x: auto; }
table.plain th, table.plain td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.plain th { background: #f3ecdd; }

/* 404 */
.lost { position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 100px var(--gutter) 60px; overflow: hidden; isolation: isolate; }
.lost-bg { position: absolute; inset: 0; z-index: -1; background: #05080c url("/img/lagos-night.webp") center/cover no-repeat; opacity: .7; }
.lost h1 { font-size: clamp(3rem, 14vw, 8rem); }
.lost p { color: #cfd6dd; max-width: 30em; margin: 0 auto 1.6em; font-size: 1.1rem; }
.lost .row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.sign { display: inline-block; background: #1f7a3a; color: #fff; border: 3px solid #fff; border-radius: 8px; padding: 8px 18px; font: 400 1.1rem/1.2 var(--display); letter-spacing: .06em; margin-bottom: 24px; }

@media (prefers-reduced-motion: reduce) {
  .btn, .site-header { transition: none; }
  .btn:hover { transform: none; }
}
