/* Cover 2 public site. Dark pine and forest greens from the YouTube branding (marketing/youtube/c2brand.py).
   The Godot UI follows the Cover 2 Light scheme; the web portal keeps its own dark theme (AGENTS.md 0C). */

@font-face {
  font-family: "Barlow Condensed";
  font-style: italic;
  font-weight: 700;
  src: url("/assets/fonts/BarlowCondensed-BoldItalic.ttf") format("truetype");
  font-display: swap;
}

:root {
  --deep: #091811;
  --pine: #10271b;
  --panel: #153324;
  --panel-2: #1b402d;
  --line: #2b5a41;
  --forest: #237a46;
  --bright: #30be40;
  --bright-ink: #06140c;
  --mint: #edf7f0;
  --text: #e6f2ea;
  --muted: #a8c3b3;
  --warn: #f2c14e;
  --danger: #ff9b8f;
  --font-head: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --diagram: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 400' fill='none' stroke='%2330be40' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M70 340 C70 200 200 120 380 110' stroke-dasharray='10 12'/%3E%3Cpath d='M360 88 L392 110 L362 134' stroke-dasharray='0'/%3E%3Cpath d='M120 340 C220 300 320 290 470 230' stroke-dasharray='10 12'/%3E%3Cpath d='M440 214 L474 228 L458 262'/%3E%3Cpath d='M500 60 l30 30 m0 -30 l-30 30'/%3E%3Cpath d='M90 90 l30 30 m0 -30 l-30 30'/%3E%3Ccircle cx='270' cy='330' r='15'/%3E%3Ccircle cx='520' cy='320' r='15'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--deep);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--bright); text-underline-offset: 3px; }
a:hover { color: #6ee07a; }
p { margin: 0 0 1rem; }
h1, h2, h3 { font-family: var(--font-head); font-style: italic; font-weight: 700; text-transform: uppercase; line-height: 1.05; margin: 0 0 .6rem; letter-spacing: .01em; }
h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); }
h3 { font-size: 1.45rem; }
ul { margin: 0 0 1rem; padding-left: 1.25rem; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .92em; background: var(--pine); border: 1px solid var(--line); border-radius: 4px; padding: .05em .35em; word-break: break-all; }

:focus-visible { outline: 3px solid var(--bright); outline-offset: 3px; border-radius: 3px; }

.skip-link { position: absolute; left: .5rem; top: -4rem; background: var(--bright); color: var(--bright-ink); padding: .6rem 1rem; z-index: 100; font-weight: 700; }
.skip-link:focus { top: .5rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { background: rgba(9, 24, 17, .96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.25rem; padding-top: .5rem; padding-bottom: .5rem; }
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { height: 44px; width: auto; }
.env-badge { margin-left: .5rem; padding: .1rem .5rem; border: 1px solid var(--warn); border-radius: 3px; color: var(--warn); font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: .95rem; letter-spacing: .12em; line-height: 1.3; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .25rem; margin-left: auto; }
.nav a { color: var(--text); text-decoration: none; padding: .45rem .7rem; border-radius: 4px; font-family: var(--font-head); font-style: italic; font-weight: 700; text-transform: uppercase; font-size: 1.15rem; letter-spacing: .03em; }
.nav a:hover { background: var(--panel); color: #fff; }
.nav a[aria-current="page"] { color: var(--bright); box-shadow: inset 0 -3px 0 var(--bright); border-radius: 4px 4px 0 0; }
.auth-slot { display: flex; align-items: center; gap: .6rem; font-size: .95rem; color: var(--muted); }
.auth-slot strong { color: var(--text); font-weight: 600; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .6rem 1.4rem; border-radius: 4px; border: 2px solid transparent; font-family: var(--font-head); font-style: italic; font-weight: 700; text-transform: uppercase; font-size: 1.25rem; letter-spacing: .04em; text-decoration: none; cursor: pointer; line-height: 1; }
.btn[hidden] { display: none; }
.btn-primary { background: var(--bright); color: var(--bright-ink); }
.btn-primary:hover { background: #55d664; color: var(--bright-ink); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--bright); color: #fff; }
.btn-small { min-height: 36px; padding: .35rem .9rem; font-size: 1.05rem; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 50% 40%, rgba(9, 24, 17, 0) 0%, rgba(9, 24, 17, .85) 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 88px),
    linear-gradient(180deg, #14452c 0%, #0d2b1c 100%); }
.hero::after { content: ""; position: absolute; inset: 0; background: var(--diagram) right 4% center / min(520px, 60%) no-repeat; opacity: .28; pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; padding-top: 3rem; padding-bottom: 3.5rem; display: grid; gap: 1.5rem; justify-items: start; }
.hero-logo { width: min(420px, 82%); height: auto; }
.hero h1 { max-width: 14ch; margin-bottom: 0; }
.hero-pitch { font-size: 1.25rem; max-width: 36rem; color: var(--text); margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.hero-note { color: var(--muted); font-size: .95rem; margin: 0; }
.hero-copy { display: grid; gap: 1.5rem; justify-items: start; min-width: 0; }
.hero-shot { margin: 0; width: 100%; min-width: 0; }
.hero-shot img { display: block; width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .04); }
.hero-shot figcaption { color: var(--muted); font-size: .85rem; margin-top: .6rem; }
@media (min-width: 960px) {
  .hero .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; column-gap: 3rem; justify-items: stretch; }
  .hero::after { display: none; }
}
.label-alpha { display: inline-block; font-family: var(--font-head); font-style: italic; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 1.05rem; color: var(--bright-ink); background: var(--warn); padding: .15rem .7rem; border-radius: 3px; }

/* Sections */
main { flex: 1 0 auto; }
.section { padding: 3rem 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-alt { background: var(--pine); }
.eyebrow { font-family: var(--font-head); font-style: italic; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--bright); font-size: 1.05rem; margin: 0 0 .25rem; }
.lead { font-size: 1.2rem; color: var(--text); max-width: 46rem; }
.muted { color: var(--muted); }
.small-print { color: var(--muted); font-size: .8rem; margin: 0; overflow-wrap: anywhere; }
.section-fine { padding: 1.25rem 0; }
.page-title { padding: 2.25rem 0 1.75rem; border-bottom: 1px solid var(--line); background:
  repeating-linear-gradient(90deg, rgba(255, 255, 255, .04) 0 2px, transparent 2px 88px), var(--pine); }
.page-title h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin-bottom: .4rem; }
.page-title p { margin: 0; color: var(--muted); max-width: 44rem; }

.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-points { grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-points { grid-template-columns: repeat(2, 1fr); } .grid-points .point-wide { grid-column: 1 / -1; } }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 1.25rem; }
.card h3 { color: #fff; }
.card p:last-child { margin-bottom: 0; }
.point { border-left: 4px solid var(--bright); }
.point-num { font-family: var(--font-head); font-style: italic; font-weight: 700; color: var(--bright); font-size: 1.1rem; letter-spacing: .1em; margin: 0 0 .25rem; }

.callout { border: 1px solid var(--warn); background: rgba(242, 193, 78, .08); border-radius: 6px; padding: 1rem 1.25rem; }
.callout strong { color: var(--warn); }

/* Screenshots and lightbox */
.shots { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.shot { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.shot button { all: unset; display: block; width: 100%; cursor: zoom-in; }
.shot button:focus-visible { outline: 3px solid var(--bright); outline-offset: -3px; }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.shot figcaption { padding: .75rem 1rem; font-size: .95rem; color: var(--muted); }
dialog.lightbox { width: min(1100px, 96vw); max-height: 94vh; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--deep); color: var(--text); }
dialog.lightbox::backdrop { background: rgba(0, 0, 0, .82); }
.lightbox-body { display: grid; gap: .5rem; padding: .75rem; }
.lightbox img { width: 100%; max-height: 74vh; object-fit: contain; background: #000; }
.lightbox-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; }
.lightbox-caption { margin: 0; color: var(--muted); font-size: .95rem; flex: 1 1 14rem; }
.lightbox-controls { display: flex; gap: .5rem; }

/* News */
.news-list { display: grid; gap: 1rem; }
.news-card { display: grid; gap: .35rem; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 1.1rem 1.25rem; text-decoration: none; color: var(--text); }
.news-card:hover { border-color: var(--bright); color: var(--text); }
.news-card h3 { margin: 0; color: #fff; font-size: 1.6rem; }
.news-meta { font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .25rem .9rem; }
.news-badge { font-family: var(--font-head); font-style: italic; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--bright); }
.news-summary { margin: 0; color: var(--text); }
.article { max-width: 46rem; }
.article h2 { font-size: 1.7rem; margin-top: 1.75rem; color: var(--bright); }
.article ul { margin-bottom: 1rem; }
.article li { margin-bottom: .35rem; }
.article-figure { margin: 1.25rem 0; }
.article-figure button { all: unset; display: block; cursor: zoom-in; }
.article-figure button:focus-visible { outline: 3px solid var(--bright); outline-offset: 3px; }
.article-figure img { border: 1px solid var(--line); border-radius: 6px; width: 100%; }
.article-figure figcaption { color: var(--muted); font-size: .92rem; margin-top: .4rem; }
.back-link { display: inline-block; margin-bottom: 1rem; }
.state-msg { padding: 1.25rem; border: 1px dashed var(--line); border-radius: 6px; color: var(--muted); }

/* Download facts */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.25rem; margin: 0 0 1.25rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; word-break: break-word; }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; gap: 0; } .facts dd { margin-bottom: .6rem; } }
.steps { padding-left: 1.4rem; }
.steps li { margin-bottom: .5rem; }

/* FAQ */
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; margin-bottom: .75rem; }
.faq summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 600; list-style: none; position: relative; padding-right: 3rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 1.25rem; top: 50%; width: .6rem; height: .6rem; border-right: 3px solid var(--bright); border-bottom: 3px solid var(--bright); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:focus-visible { outline-offset: -3px; }
.faq .answer { padding: 0 1.25rem 1rem; color: var(--text); }
.faq .answer p:last-child { margin-bottom: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--pine); padding: 2rem 0; font-size: .95rem; color: var(--muted); }
.site-footer .wrap { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.site-footer h2 { font-size: 1.15rem; color: var(--text); letter-spacing: .08em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .3rem; }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--bright); }
.footer-legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 1rem; }

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .site-header .wrap { gap: .25rem .75rem; }
  .brand img { height: 38px; }
  .nav { margin-left: 0; width: 100%; }
  .nav a { padding: .4rem .55rem; font-size: 1.05rem; }
  .hero .wrap { padding-top: 2rem; padding-bottom: 2.5rem; }
  .hero::after { opacity: .16; background-size: 90%; }
  .section { padding: 2.25rem 0; }
}

/* Heading focused by script after opening a post: no ring (it is not an interactive control). */
[tabindex="-1"]:focus { outline: none; }
.hero-actions + .muted { margin-top: .9rem; }
