/* strange-attractors: shared tokens and parts (strip, footer, type, figures) */
:root {
  --night: #070A14;      /* ground; darker since 2026-11-21 so the page and the chip read as one board */
  --dusk: #0D1122;       /* raised strips */
  --rule: #232B47;       /* hairlines */
  --moon: #E4E7F0;       /* text */
  --haze: #97A0BE;       /* secondary text */
  --indigo: #3A2010;     /* density ramp, low: dark copper (2026-11-21, the chip's palette) */
  --glacier: #B8713A;    /* density ramp, middle: copper */
  --sodium: #E9D49C;     /* density ramp, high; now / selected / focus */
  --link: #E0B27A;
  --serif: 'Literata', 'Iowan Old Style', Georgia, serif;
  --sans: 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', system-ui, sans-serif;
  --mono: ui-monospace, 'JetBrains Mono', 'DejaVu Sans Mono', monospace;
  --t-sm: 0.875rem;   /* 14 */
  --t-md: 1.09375rem; /* 17.5 */
  --t-lg: 1.367rem;   /* 21.9 */
  --t-xl: 1.709rem;   /* 27.3 */
  --t-2xl: 2.136rem;  /* 34.2 */
  --t-3xl: 4.25rem;   /* 68 */
  --gutter: clamp(16px, 5vw, 112px);
  --measure: 62ch;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--night); color: var(--moon);
  font-family: var(--serif); font-size: var(--t-md); line-height: 1.6;
  font-weight: 380; font-optical-sizing: auto;
  font-variant-numeric: oldstyle-nums proportional-nums;
  overflow-x: hidden;
}
::selection { background: #E9D49C55; color: #fff; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; text-decoration-color: #E0B27A66; }
a:hover { text-decoration-color: currentColor; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--sodium); outline-offset: 3px; border-radius: 2px; }
button { font: inherit; }
h1, h2, h3 { font-weight: 330; line-height: 1.15; margin: 0; letter-spacing: 0; }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-lg); font-weight: 450; }
p { margin: 0 0 0.8em; }
.wrap { padding-inline: var(--gutter); max-width: 1440px; margin-inline: auto; }
.sr { position: absolute; inset-inline-start: -9999px; }
.sr:focus { inset-inline-start: 16px; top: 8px; z-index: 50; background: var(--dusk); padding: 6px 10px; }
math { font-family: 'Literata', serif; font-size: 1.08em; }
math[display="block"] { margin: 0; }

/* strip: shared by every page of the family */
.strip { position: relative; z-index: 5; border-block-end: 1px solid var(--rule); background: var(--night); }
.strip .wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; min-height: 56px; flex-wrap: wrap; padding-block: 8px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--moon); text-decoration: none; font-size: 1.15rem; font-weight: 420; }
.wordmark svg { width: 28px; height: 28px; flex: none; }
.strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; font-family: var(--sans); font-size: 0.95rem; }
.strip nav a { color: var(--haze); text-decoration: none; padding-block: 4px; display: inline-block; }
.strip nav a:hover { color: var(--moon); }
.strip nav a[aria-current="page"] { color: var(--moon); box-shadow: inset 0 -1px 0 var(--sodium); }

/* figures and captions */
figure { margin: 0; }
figcaption, .caption { font-size: var(--t-sm); line-height: 1.55; color: var(--haze); max-width: var(--measure); }
figcaption b, .caption b { color: var(--moon); font-weight: 600; font-family: var(--sans); }
.eq { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; direction: ltr; }

/* sections */
.section { padding-block: 56px; border-block-start: 1px solid var(--rule); }
.section > .wrap > h2 { margin-block-end: 24px; }
.lede { font-size: var(--t-lg); line-height: 1.5; max-width: 34ch; font-weight: 340; }
.quiet { color: var(--haze); }
.placeholder { color: var(--haze); font-style: italic; }

/* footer */
.foot { border-block-start: 1px solid var(--rule); background: var(--dusk); padding-block: 28px 32px; font-size: 0.95rem; }
/* on the pages with a short text (Impressum and the like) the footer stays at the bottom of the window; a page longer
   than the window is laid out exactly as before. Only pages whose content is main.pg: not the main page, not gaming */
body:has(> main.pg) { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body:has(> main.pg) > main.pg { width: 100%; }   /* as wide as before: a centred flex item would shrink to its text */
body:has(> main.pg) > .foot { margin-block-start: auto; }
.foot .cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px 64px; }
.foot .cols > :only-child { grid-column: 1 / -1; }
.foot h2 { font-size: var(--t-lg); margin-block-end: 8px; font-weight: 400; }
.side { display: grid; gap: 18px; align-content: start; }
.fcontact ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 44px; }
.fcontact li { display: grid; gap: 2px; align-content: start; }
.fcontact .k { font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.05em; color: var(--haze); }
.fcontact a { font-family: var(--sans); font-size: 1rem; overflow-wrap: anywhere; }
.fcontact .legal { display: flex; gap: 20px; margin: 18px 0 0; font-family: var(--sans); font-size: 0.82rem; }
.fcontact .legal a { color: var(--haze); }
.fcontact .legal .copy { color: var(--haze); }   /* the copyright line (2026-11-20), quiet like the links */
.fcontact .legal { flex-wrap: wrap; row-gap: 8px; } .fcontact .legal > * { white-space: nowrap; }   /* a phone: whole items to the next line, never a word broken */
.fcontact .legal a:hover, .fcontact .legal a[aria-current="page"] { color: var(--moon); }
.fcontact .note { font-family: var(--sans); font-size: 0.78rem; color: var(--haze); }
.colophon { color: var(--haze); font-size: var(--t-sm); max-width: var(--measure); border-block-start: 1px solid var(--rule); padding-block-start: 14px; }
.colophon p { margin-block-end: 0.6em; }

@media (max-width: 720px) {
  :root { --t-3xl: 2.75rem; --t-2xl: 1.75rem; }
  .section { padding-block: 40px; }
  .foot .cols { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  :root { --night: #fff; --dusk: #fff; --moon: #151A2E; --haze: #4A5068; --rule: #C9CCD6; --link: #151A2E; --sodium: #8a6a1a; color-scheme: light; }
  body { background: #fff; color: #151A2E; font-size: 10.5pt; }
  .strip, .foot, .noprint { display: none !important; }
  a { text-decoration: none; }
}

