/* Copyright 2026 Rune Berg */
/* SPDX-License-Identifier: LicenseRef-Proprietary */

:root {
  color-scheme: dark;
  --bg: #0a101b;
  --panel: #101b2c;
  --ink: #edf3ff;
  --muted: #a2afc4;
  --line: #27354a;
  --orange: #ff8b3d;
  --blue: #68aaff;
  --font: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family: var(--font);
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
::selection { background: #174a91; color: #f4f8ff; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 6px; }
img { display: block; max-width: 100%; height: auto; }
figure, p, h1, h2, h3 { margin: 0; }
[hidden] { display: none !important; }
.wrap { width: min(1248px, calc(100% - 112px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 10; padding: 14px; background: var(--ink); color: var(--bg); }
.skip-link:focus { top: 20px; }
.preview-banner { padding: 8px 20px; background: #101f36; color: #8cbdff; text-align: center; font: 10px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.preview-banner span { margin-left: 16px; color: #b0c4df; }
.site-header { height: 113px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; flex-direction: column; align-items: center; gap: 0; }
.brand img { width: 164px; }
.brand > span { font: 7px/1.8 var(--mono); letter-spacing: .18em; color: var(--muted); }
.site-header nav { display: flex; gap: 35px; font-size: 13px; }
.site-header nav a { padding-block: 14px; }
.site-header nav a:hover, .back-link:hover, .site-footer a:hover { color: var(--orange); }
.eyebrow { color: var(--muted); font: 10px/1.7 var(--mono); letter-spacing: .12em; }
.hero-blue { color: var(--blue); }
.signal { display: inline-block; width: 6px; height: 6px; margin-right: 9px; background: var(--blue); border-radius: 50%; vertical-align: 1px; box-shadow: 0 0 13px #3984ff66; }
.hero { min-height: 650px; display: grid; grid-template-columns: 1fr 1.08fr; align-items: center; padding-block: 42px 56px; gap: 20px; }
.hero-copy { position: relative; z-index: 1; }
.hero h1 { margin: 27px -70px 26px 0; font-size: clamp(54px, 6.7vw, 90px); line-height: 1.05; letter-spacing: -.065em; font-weight: 550; }
em { color: var(--orange); font-style: normal; }
.hero-description { max-width: 395px; color: var(--muted); font-size: 15px; line-height: 1.85; }
.text-link { color: var(--blue); display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; padding-block: 12px; font-size: 13px; border-bottom: 1px solid #3465a4; transition: color .15s, border-color .15s; }
.text-link:hover { color: var(--orange); border-color: var(--orange); }
.text-link span { font-size: 21px; line-height: 1; }
.hero .text-link { margin-top: 21px; }
.hero-platforms { display: flex; gap: 23px; color: #83b5fa; font: 9px var(--mono); letter-spacing: .1em; margin-top: 48px; }
.hero-art { position: relative; align-self: stretch; min-width: 0; display: flex; align-items: center; padding-block: 44px 34px; }
.hero-art > img { width: 100%; }
.art-label { position: absolute; top: 25px; left: 20px; font: 9px var(--mono); letter-spacing: .16em; color: var(--muted); }
.hero-art figcaption { position: absolute; bottom: 8px; left: 20px; right: 20px; display: flex; align-items: center; gap: 12px; color: #8dabc9; font: 8px var(--mono); letter-spacing: .08em; }
.hero-art figcaption i { flex: 1; height: 1px; background: var(--line); }
.art-corner { position: absolute; width: 15px; height: 15px; border-color: #3a6496; border-style: solid; }
.corner-top { top: 0; right: 0; border-width: 1px 1px 0 0; }
.corner-bottom { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.journal { padding-block: 65px 94px; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
h2 { font-size: 35px; letter-spacing: -.04em; font-weight: 500; line-height: 1.2; }
.section-heading h2 { margin-top: 10px; }
.section-note { color: var(--muted); font-size: 12px; padding-bottom: 4px; }
.journal-toolbar { margin-top: 35px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.filters { display: flex; gap: 27px; }
.filters button { color: var(--muted); padding: 16px 0; background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; font-size: 12px; }
.filters button[aria-pressed="true"] { color: var(--blue); border-color: var(--blue); }
.filters button:hover { color: var(--orange); }
.filters button span { margin-left: 5px; color: #83a6d6; font: 9px var(--mono); }
.draft-note { color: #a3b4ce; font: 8px var(--mono); letter-spacing: .14em; }
.entry { display: grid; grid-template-columns: .88fr 1fr; gap: 55px; padding-block: 38px; border-bottom: 1px solid var(--line); align-items: center; }
.entry-art { min-height: 272px; position: relative; overflow: hidden; background: #111d30; display: grid; place-items: center; }
.mini-label, .art-bottom { position: absolute; left: 23px; z-index: 2; font: 8px var(--mono); letter-spacing: .09em; color: #adc9f1; }
.mini-label { top: 23px; }
.art-bottom { bottom: 23px; }
.studio-art { background: radial-gradient(ellipse at center, #164a91 0, #102b52 45%, #0c192c 100%); }
.studio-art img { position: relative; z-index: 1; width: min(78%, 310px); filter: drop-shadow(10px 18px 16px #0008); }
.studio-orbit { position: absolute; width: 280px; height: 148px; border: 1px solid #4c94ff70; border-radius: 50%; transform: rotate(-28deg); }
.orbit-two { transform: rotate(32deg); width: 220px; height: 220px; }
.orbit-three { transform: rotate(-56deg); width: 200px; height: 110px; border-color: #ff8b3d90; }
.entry-meta { display: flex; gap: 16px; align-items: center; color: var(--blue); font: 9px var(--mono); letter-spacing: .12em; }
.entry[data-topic="rendering"] .entry-meta { color: var(--orange); }
.entry-meta > span:first-child { color: #8ca6c9; }
.draft-tag { font-size: 8px; color: #b1bfd2; padding: 4px 7px; border: 1px solid #3b4b65; letter-spacing: .05em; }
.entry h3 { font-size: 32px; line-height: 1.23; font-weight: 500; letter-spacing: -.035em; margin-block: 14px; }
.entry h3 a:hover { color: var(--orange); }
.entry-copy > p:not(.entry-meta) { color: var(--muted); font-size: 13px; line-height: 1.85; max-width: 455px; }
.entry .text-link { margin-top: 15px; padding-bottom: 7px; font-size: 12px; }
.entry-author { font: 8px var(--mono); letter-spacing: .1em; color: #8ca6c9; margin-left: 26px; white-space: nowrap; }
.portal-art { background: radial-gradient(ellipse at 65% 40%, #ff681d33, transparent 70%), #0c1727; }
.portal-frame { width: 110px; height: 155px; border: 1px solid #6b93cb55; position: absolute; transform: skewY(-17deg); }
.frame-back { margin: -10px 0 0 95px; background: linear-gradient(130deg, #ed641b99, #4b2518); border-color: #ff8b3d; }
.frame-front { margin: 26px 0 0 -95px; border-color: var(--blue); background: #164b9588; box-shadow: 0 0 35px #287cff33; }
.portal-line { width: 260px; height: 1px; background: repeating-linear-gradient(to right, #ff8b3d 0 4px, transparent 4px 10px); transform: rotate(-25deg); }
.portal-point { position: absolute; width: 9px; height: 9px; background: var(--ink); border-radius: 50%; box-shadow: 0 0 18px #438bff88; }
.game-section { background: #0e1a2e; border-block: 1px solid var(--line); padding-block: 80px; }
.game-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 85px; align-items: center; }
.game-section h2 { font-size: clamp(32px, 3.5vw, 48px); margin-top: 22px; line-height: 1.25; }
.game-section em { color: var(--blue); }
.game-copy { font-size: 14px; line-height: 1.9; color: #a8b9d3; }
.game-copy p + p { margin-top: 20px; }
.game-details { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 9px 20px; color: var(--blue); font: 9px/1.6 var(--mono); }
.about-section { display: grid; grid-template-columns: .4fr 1fr; gap: 70px; padding-block: 85px; }
.about-section > .eyebrow { padding-top: 9px; }
.about-section p:not(.eyebrow) { color: var(--muted); font-size: 14px; line-height: 1.9; margin-top: 18px; max-width: 640px; }
.about-section .text-link { margin-top: 19px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 25px; border-top: 1px solid var(--line); padding-block: 30px; font: 9px/1.8 var(--mono); color: var(--muted); }
.footer-name { color: var(--ink); letter-spacing: .08em; }
.footer-name span { color: #8ca6c9; font-size: 8px; }
.article-page { max-width: 1100px; padding-top: 43px; }
.back-link { font-size: 12px; color: var(--muted); }
.article-header { max-width: 900px; margin-top: 55px; }
.article-header h1 { font-size: clamp(36px, 5vw, 65px); font-weight: 500; letter-spacing: -.05em; line-height: 1.13; margin-top: 20px; }
.article-byline { font-size: 12px; margin-top: 30px; }
.article-byline span { margin-left: 20px; color: var(--muted); }
.article-notice { margin-top: 35px; padding: 18px 22px; background: #14223a; border-left: 2px solid var(--blue); font-size: 12px; }
.article-notice p { margin-top: 7px; color: #b1bfd2; line-height: 1.7; }
.article-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 64px; margin-block: 55px 80px; }
.article-sidebar { align-self: start; position: sticky; top: 30px; }
.article-sidebar summary { font: 10px var(--mono); color: var(--blue); cursor: pointer; padding-block: 10px; }
.article-sidebar nav { display: flex; flex-direction: column; gap: 14px; margin-top: 15px; }
.article-sidebar a { color: var(--muted); font-size: 11px; line-height: 1.5; border-left: 1px solid var(--line); padding-left: 12px; }
.article-sidebar a:hover, .article-sidebar a[aria-current] { color: var(--ink); border-left-color: var(--blue); }
.article-body { min-width: 0; max-width: 72ch; font-size: 16px; line-height: 1.85; color: #bcc9dd; overflow-wrap: break-word; }
.article-body h2 { color: var(--ink); margin: 56px 0 22px; font-size: 30px; }
.article-body h3 { font-size: 22px; color: var(--ink); font-weight: 500; margin: 35px 0 20px; }
.article-body > :first-child { margin-top: 0; }
.article-body p { margin-block: 0 22px; }
.article-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.article-body strong { font-weight: 600; color: #edf3ff; }
.article-body em { color: inherit; font-style: italic; }
.article-body ul, .article-body ol { padding-left: 23px; margin-block: 22px 28px; }
.article-body li { padding-left: 6px; margin-bottom: 15px; }
.article-body li::marker { color: var(--blue); }
.article-body code { font: .85em var(--mono); background: #172b48; padding: 3px 6px; border-radius: 3px; }
.table-scroll { max-width: 100%; overflow-x: auto; margin-block: 30px; }
.article-body table { border-collapse: collapse; width: 100%; font-size: 12px; text-align: left; line-height: 1.65; }
.article-body th { color: var(--orange); font-weight: 500; }
.article-body th, .article-body td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: top; min-width: 120px; }
.article-body th:first-child, .article-body td:first-child { padding-left: 0; }
.article-end { margin-top: 65px; padding-top: 25px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; font-size: 11px; }
.article-end span { color: var(--muted); font: 9px/2 var(--mono); }
.article-end a { text-decoration: none; }
.not-found { min-height: 60vh; display: grid; align-content: center; gap: 24px; }
.not-found h1 { font-size: clamp(45px, 7vw, 80px); font-weight: 500; letter-spacing: -.05em; }
.not-found .text-link { justify-self: start; }

@media (min-width: 1500px) {
  .hero { min-height: 720px; }
}

@media (max-width: 1000px) {
  .wrap { width: calc(100% - 64px); }
  .hero { min-height: 580px; grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 66px; }
  .hero-description { font-size: 14px; max-width: 330px; }
  .hero-art figcaption { font-size: 7px; left: 8px; right: 8px; }
  .entry { gap: 30px; }
  .entry h3 { font-size: 27px; }
  .entry-author { display: none; }
  .entry-art { min-height: 260px; }
  .game-layout { gap: 45px; }
  .article-layout { grid-template-columns: 150px minmax(0, 1fr); gap: 35px; }
  .section-note { max-width: 150px; text-align: right; line-height: 1.7; }
}

@media (max-width: 700px) {
  .wrap { width: calc(100% - 40px); }
  .preview-banner { font-size: 8px; }
  .preview-banner span { margin-left: 8px; }
  .site-header { height: 92px; }
  .brand img { width: 118px; }
  .brand > span { font-size: 6px; }
  .site-header nav { gap: 20px; font-size: 11px; }
  .nav-about { display: none; }
  .hero { display: flex; flex-direction: column; gap: 38px; padding-block: 42px 37px; }
  .hero-copy { width: 100%; }
  .hero h1 { font-size: clamp(54px, 12.8vw, 82px); margin-right: 0; margin-block: 23px; }
  .hero-description { max-width: 440px; font-size: 14px; }
  .hero-platforms { margin-top: 30px; font-size: 8px; }
  .hero-art { width: 100%; max-width: 480px; align-self: center; }
  .hero-art img { margin-block: 15px; }
  .hero-art figcaption { font-size: 7px; bottom: 6px; }
  .art-label { top: 10px; left: 10px; font-size: 8px; }
  .journal { padding-block: 45px 55px; }
  h2 { font-size: 29px; }
  .section-note { display: none; }
  .journal-toolbar { margin-top: 20px; }
  .filters { gap: 22px; }
  .filters button { font-size: 11px; }
  .draft-note { display: none; }
  .entry { display: flex; flex-direction: column; align-items: stretch; gap: 27px; padding-block: 30px; }
  .entry-art { min-height: 250px; }
  .entry h3 { font-size: 30px; }
  .entry-copy { padding-bottom: 5px; }
  .game-section { padding-block: 48px; }
  .game-layout { grid-template-columns: 1fr; gap: 32px; }
  .game-section h2 { font-size: 37px; }
  .game-copy { font-size: 13px; }
  .about-section { grid-template-columns: 1fr; gap: 20px; padding-block: 45px; }
  .about-section p:not(.eyebrow) { font-size: 13px; }
  .site-footer { flex-wrap: wrap; gap: 17px; font-size: 8px; padding-block: 25px; }
  .footer-name { flex-basis: 100%; }
  .site-footer > a:last-child { margin-left: auto; }
  .article-page { padding-top: 30px; }
  .article-header { margin-top: 35px; }
  .article-header h1 { font-size: 39px; }
  .article-layout { display: flex; flex-direction: column; gap: 32px; margin-top: 30px; }
  .article-sidebar { position: static; border-bottom: 1px solid var(--line); padding-bottom: 20px; width: 100%; }
  .article-sidebar nav { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
  .article-body { font-size: 15px; }
  .article-body h2 { font-size: 27px; margin-top: 40px; }
  .article-notice { padding: 15px; }
  .article-end { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
