:root {
  color-scheme: light;
  /* Matches the logo's background (#FFFFFF) so it blends in seamlessly */
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #4a4a4a;
  --accent: #b2233b;       /* red taken from the logo mark */
  --border: #ececec;
  --column: 760px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.75;
}

img { display: block; max-width: 100%; height: auto; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Header: logo left, language right */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.brand { display: block; line-height: 0; }
.brand img { height: 56px; width: auto; }

.lang-switch select {
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
}
.lang-switch select:focus-visible,
.brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Content: one stacked column - text, image, text, image... */
.article {
  max-width: var(--column);
  margin: 0 auto;
  padding: 48px 24px 96px;
}

.article h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.2;
  margin: 0 0 24px;
}

.article h2 {
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  line-height: 1.3;
  margin: 56px 0 16px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
}

.article p {
  color: var(--muted);
  margin: 0 0 1.25em;
}

.article p a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article p a:hover { text-decoration-thickness: 2px; }
.article p a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

[hidden] { display: none !important; }

/* Gallery: all images live here, below the article text */
.gallery { margin-top: 64px; }
.gallery h2 { margin-top: 0; }

/* Two columns; images keep their own proportions so screenshots stay readable */
.gallery-grid {
  column-count: 2;
  column-gap: 16px;
}

.gallery-grid figure {
  margin: 0 0 20px;
  break-inside: avoid;
}

.gallery-grid a {
  display: block;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.gallery-grid a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.gallery-grid img { width: 100%; height: auto; }

.gallery-grid figcaption {
  margin-top: 8px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}

@media (max-width: 560px) {
  .gallery-grid { column-count: 1; }
}
