/* Tekstsidene på juiceblock.app (bygges av scripts/build-site.mjs). Samme farger som spillet (src/ui/theme.ts). */
:root {
  color-scheme: dark;
  --bg: #0b1220;
  --panel: #121b2d;
  --border: #243352;
  --text: #eaf0ff;
  --muted: #cfd8ea;
  --dim: #8b9bbd;
  --accent: #58c322;
  --accent-dark: #06200a;
  --link: #6fc0ff;
  --speed: #2e9ff5;
  --daily: #ff8c1a;
  --versus: #a24bf0;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
a { color: var(--link); }
img, svg { max-width: 100%; height: auto; }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-dark); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Topp */
.top { border-bottom: 1px solid var(--border); background: rgba(11, 18, 32, 0.96); position: sticky; top: 0; z-index: 5; }
.top .wrap { display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 800; font-size: 19px; text-decoration: none; }
.brand img { border-radius: 8px; }
.top nav { display: flex; gap: 4px 16px; flex-wrap: wrap; flex: 1; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 4px 0; }
.top nav a:hover, .top nav a[aria-current] { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 560px) {
  .top nav { order: 3; flex-basis: 100%; }
  .top .btn.small { margin-left: auto; }
}

/* Innhold */
main { padding-top: 28px; padding-bottom: 56px; }
h1 { font-size: clamp(28px, 5vw, 38px); line-height: 1.2; margin: 0 0 10px; }
h2 { font-size: 23px; line-height: 1.3; margin: 40px 0 10px; color: var(--accent); }
h3 { font-size: 18px; margin: 24px 0 6px; }
p, li { color: var(--muted); }
li { margin: 4px 0; }
strong, b { color: var(--text); }
.lead { font-size: 19px; color: var(--text); max-width: 680px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 40px 0; }

.btn { display: inline-block; background: var(--accent); color: var(--accent-dark); font-weight: 800; padding: 12px 20px; border-radius: 12px; text-decoration: none; }
.btn:hover { filter: brightness(1.08); }
.btn.small { padding: 7px 14px; font-size: 15px; border-radius: 10px; }
.btn.speed { background: var(--speed); color: #04182a; }
.btn.daily { background: var(--daily); color: #2a1300; }
.btn.versus { background: var(--versus); color: #1d0533; }
.btn.ghost { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.note { font-size: 15px; color: var(--dim); }

table { border-collapse: collapse; margin: 10px 0; width: 100%; max-width: 620px; }
th, td { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--border); color: var(--muted); vertical-align: top; }
th { color: var(--text); }

/* Bilder og tegninger */
.media { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; margin: 16px 0; }
.media > div { flex: 1 1 320px; }
figure { margin: 16px 0; }
figure.shot { flex: 0 0 auto; width: min(270px, 100%); }
figure.shot img { border-radius: 18px; border: 1px solid var(--border); display: block; }
figcaption { font-size: 14px; color: var(--dim); margin-top: 6px; }
.boards { display: flex; flex-wrap: wrap; gap: 16px; margin: 16px 0; }
.boards figure { margin: 0; flex: 1 1 220px; max-width: 300px; }
svg.board { display: block; width: 100%; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 40px; margin: 12px 0; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--panel); border: 1.5px solid var(--accent); color: var(--text); font-weight: 800; font-size: 14px; display: grid; place-items: center; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 16px 0; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; text-decoration: none; display: block; }
.card strong { display: block; font-size: 17px; margin-bottom: 4px; }
.card span { color: var(--muted); font-size: 15px; }
a.card:hover { border-color: var(--accent); }

details { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; margin: 10px 0; }
details summary { cursor: pointer; font-weight: 700; color: var(--text); }
details[open] summary { margin-bottom: 6px; }
details p:last-child { margin-bottom: 0; }

/* Bunn */
.bottom { border-top: 1px solid var(--border); padding: 24px 0 32px; }
.bottom .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.bottom .fh { color: var(--text); font-weight: 700; margin: 0 0 6px; font-size: 15px; }
.bottom ul { list-style: none; padding: 0; margin: 0; }
.bottom li { margin: 3px 0; font-size: 15px; }
.bottom a { color: var(--muted); }
.legal { color: var(--dim); font-size: 14px; margin-top: 20px; }
