:root {
  color-scheme: dark;
  --ink: #f4f1dc;
  --muted: #a8b7c4;
  --night: #07111b;
  --panel: #102337;
  --panel-hi: #17334d;
  --line: #3e5b73;
  --blue: #2d74b8;
  --blue-hi: #79b9e8;
  --amber: #e5aa32;
  --amber-hi: #ffd56a;
  --shadow: #02070c;
}

* { box-sizing: border-box; }

html {
  background: var(--night);
  scroll-behavior: smooth;
}

body {
  min-width: 280px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(45,116,184,.07) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(rgba(45,116,184,.07) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--night);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: 16px;
  line-height: 1.7;
}

a { color: var(--blue-hi); text-underline-offset: 3px; }
a:hover { color: var(--amber-hi); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--amber-hi); outline-offset: 3px; }

.site-header {
  border-bottom: 4px solid var(--line);
  background: #0b1a29;
  box-shadow: 0 6px 0 rgba(2,7,12,.7);
}

.header-inner,
.page-shell,
.footer-inner {
  width: min(980px, calc(100% - 32px));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 84px;
  padding-block: 14px;
}

.pixel-mark {
  display: grid;
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 4px solid #0b1a29;
  border-top-color: var(--blue-hi);
  border-left-color: var(--blue-hi);
  color: #fff;
  background: var(--blue);
  box-shadow: inset -5px -5px 0 #174c7b, 5px 5px 0 var(--shadow);
  font-weight: 900;
  letter-spacing: -.08em;
  text-decoration: none;
}

.brand { min-width: 0; }
.brand-name { margin: 0; font-size: clamp(1.2rem, 4vw, 1.8rem); line-height: 1.15; }
.brand-subtitle { margin: 3px 0 0; color: var(--muted); font-size: .78rem; }

.language-switch {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.language-switch button,
.pixel-link {
  min-height: 42px;
  padding: 7px 12px;
  border: 3px solid #112b40;
  border-top-color: #638aac;
  border-left-color: #638aac;
  color: var(--ink);
  background: #234b6a;
  box-shadow: inset -3px -3px 0 #102d45, 3px 3px 0 var(--shadow);
  font: 800 .75rem/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
  cursor: pointer;
}

.language-switch button[aria-pressed="true"] {
  border-top-color: var(--amber-hi);
  border-left-color: var(--amber-hi);
  background: #9a681f;
  box-shadow: inset -3px -3px 0 #5f3d11, 3px 3px 0 var(--shadow);
}

.page-shell { padding-block: 38px 64px; }

.breadcrumb {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: .78rem;
}

.hero,
.legal-card,
.link-card,
.notice {
  border: 4px solid var(--line);
  background: var(--panel);
  box-shadow: 7px 7px 0 var(--shadow);
}

.hero {
  margin-bottom: 28px;
  padding: clamp(20px, 5vw, 38px);
  border-top-color: var(--blue-hi);
  border-left-color: var(--blue-hi);
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--amber-hi);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.25; }
h1 { margin: 0 0 14px; font-size: clamp(1.65rem, 6vw, 3rem); }
h2 {
  margin: 34px 0 12px;
  padding-left: 12px;
  border-left: 6px solid var(--blue);
  font-size: clamp(1.1rem, 3vw, 1.4rem);
}
h3 { margin: 22px 0 8px; font-size: 1rem; }
p, ul { margin: 0 0 16px; }
li + li { margin-top: 7px; }

.lead { max-width: 760px; color: #d8e4ec; font-size: 1.03rem; }
.updated { margin: 18px 0 0; color: var(--muted); font-size: .78rem; }
.updated time { color: var(--ink); }

.legal-card { padding: clamp(18px, 4vw, 34px); }
.legal-card > h2:first-child { margin-top: 0; }

.notice {
  margin: 22px 0;
  padding: 15px 18px;
  border-width: 3px;
  border-color: #7a581c;
  border-top-color: var(--amber-hi);
  border-left-color: var(--amber-hi);
  background: #332713;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.link-card {
  display: flex;
  min-height: 240px;
  padding: 22px;
  flex-direction: column;
  border-top-color: var(--blue-hi);
  border-left-color: var(--blue-hi);
}

.link-card h2 { margin-top: 0; }
.link-card p { color: var(--muted); }
.link-card .pixel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  color: #fff;
  text-decoration: none;
}

.contact-box {
  display: grid;
  gap: 8px;
  margin: 22px 0;
  padding: 18px;
  border: 3px solid #496881;
  background: var(--panel-hi);
}

.contact-box strong { color: var(--amber-hi); }
.contact-box a { overflow-wrap: anywhere; }

.site-footer {
  border-top: 4px solid #2e465a;
  color: var(--muted);
  background: #050c13;
}

.footer-inner {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  padding-block: 18px;
  font-size: .76rem;
}

.footer-links { display: flex; gap: 14px; flex-wrap: wrap; }
.language-copy[hidden] { display: none !important; }

@media (max-width: 760px) {
  .card-grid { grid-template-columns: 1fr; }
  .link-card { min-height: 0; }
  .link-card .pixel-link { margin-top: 12px; }
}

@media (max-width: 520px) {
  body { font-size: 15px; }
  .header-inner { align-items: flex-start; flex-wrap: wrap; }
  .language-switch { width: 100%; margin-left: 64px; }
  .language-switch button { flex: 1; }
  .page-shell { padding-top: 26px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  :root { color-scheme: light; }
  body { color: #111; background: #fff; font-family: Arial, sans-serif; }
  .site-header, .site-footer, .breadcrumb, .language-switch { display: none; }
  .page-shell { width: 100%; padding: 0; }
  .hero, .legal-card, .notice { border: 1px solid #777; color: #111; background: #fff; box-shadow: none; }
  a { color: #111; }
}
