/* ==========================================================================
   "Swiss / brutalist editorial" — light theme
   Paper page, ink type, one signal-red accent. Flat: no gradients, no shadows,
   no rounded corners. 2px ink rules separate blocks, 1px rules inside them.
   Fonts: Archivo (900 display / 400–500 body) + IBM Plex Mono (labels, numbers).
   All layout on flexbox.
   ========================================================================== */

:root {
  /* Palette */
  --paper: #f4f2ee;
  --ink:   #121212;
  --red:   #d62828;
  --grey:  #8a8a86;                        /* rules, text on ink */
  --grey-text: #656561;                    /* small text on paper (AA ≥ 4.5:1) */
  --line:  rgba(18, 18, 18, 0.18);          /* 1px hairlines on paper */
  --line-on-ink: rgba(244, 242, 238, 0.28); /* 1px hairlines on ink */

  /* Type */
  --ff-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --ff-body:    "Archivo", "Helvetica Neue", Arial, sans-serif;
  --ff-mono:    "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  /* Layout */
  --wrap:   1520px;
  --gutter: clamp(16px, 3.5vw, 56px);
  --rule:   2px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  background: var(--paper);
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, p, ol, dl, dd { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--red); color: var(--paper); }

:focus-visible {
  outline: var(--rule) solid var(--red);
  outline-offset: 2px;
}

/* ---------- Primitives ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.rule--2 { height: var(--rule); background: var(--ink); }

/* mono label: uppercase, letter-spaced */
.label {
  font-family: var(--ff-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
}

/* the red square motif */
.sq {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--red);
  vertical-align: middle;
  flex: 0 0 auto;
}

/* ---------- 1. Top bar (ink band) ---------- */
.topbar {
  background: var(--ink);
  color: var(--paper);
  border-bottom: var(--rule) solid var(--red);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo { display: flex; align-items: center; flex: 0 0 auto; }
.logo img { height: 40px; width: auto; }

.topbar__tag {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.topbar__label {
  font-family: var(--ff-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--paper);
}

/* fallback wordmark (only shown when there is no per-domain logo file) */
.brand-mark { display: flex; align-items: center; gap: 10px; }
.brand-emblem { width: 32px; height: 32px; flex: 0 0 auto; }
.brand-name {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.04em;
}

/* ---------- 2. Hero ---------- */
.hero { padding-top: clamp(28px, 4vw, 56px); }

.hero__title {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(44px, 9vw, 140px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  padding-bottom: clamp(24px, 3vw, 48px);
}

.hero__row {
  display: flex;
  align-items: flex-start;
  gap: clamp(24px, 4vw, 64px);
  padding-top: clamp(24px, 3vw, 44px);
  padding-bottom: clamp(36px, 5vw, 80px);
}

/* left column: mono meta */
.hero__meta {
  flex: 0 0 30%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.meta__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--ff-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  line-height: 1.2;
}

.meta__item:first-child { padding-top: 0; }

.meta__k { color: var(--grey-text); font-weight: 400; }
.meta__v {
  color: var(--ink);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

/* right column: intro paragraph */
.hero__lead {
  flex: 1 1 0;
  min-width: 0;
  max-width: 60ch;
  font-size: clamp(18px, 1.35vw, 21px);
  line-height: 1.5;
  font-weight: 400;
}

/* ---------- 3. Contents — index table ---------- */
.index { border-top: var(--rule) solid var(--ink); }

.index__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
  color: var(--grey-text);
}

.index__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  border-bottom: var(--rule) solid var(--ink);
}

.index__item + .index__item { border-top: 1px solid var(--line); }

.index__row {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 40px);
  padding-top: clamp(14px, 1.6vw, 24px);
  padding-bottom: clamp(14px, 1.6vw, 24px);
  background: transparent;
  color: var(--ink);
  transition: background-color 0.12s linear, color 0.12s linear;
}

.index__num {
  flex: 0 0 auto;
  min-width: 2.5em;
  font-family: var(--ff-mono);
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--grey-text);
  transition: color 0.12s linear;
}

.index__title {
  flex: 1 1 0;
  min-width: 0;
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(20px, 2.6vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.index__arrow {
  flex: 0 0 auto;
  font-family: var(--ff-mono);
  font-size: clamp(20px, 2.2vw, 32px);
  line-height: 1;
  transition: transform 0.12s linear, color 0.12s linear;
}

/* hover / focus inverts the row */
.index__row:hover,
.index__row:focus-visible {
  background: var(--ink);
  color: var(--paper);
  outline: none;
}

.index__row:hover .index__num,
.index__row:focus-visible .index__num { color: var(--paper); }

.index__row:hover .index__arrow,
.index__row:focus-visible .index__arrow { color: var(--red); transform: translateX(6px); }

/* the inverted row bleeds to the viewport edge: extend its background past the wrap */
.index__item {
  padding-left: calc((100% - var(--wrap)) / 2);
  padding-right: calc((100% - var(--wrap)) / 2);
}

.index__item .index__row {
  max-width: none;
  margin: 0;
}

/* ---------- 4. Sections (bands) ---------- */
.band { border-top: var(--rule) solid var(--ink); }

.band__inner {
  display: flex;
  align-items: flex-start;
  gap: clamp(24px, 4vw, 64px);
  padding-top: clamp(36px, 5vw, 80px);
  padding-bottom: clamp(44px, 6vw, 96px);
}

.band__head {
  flex: 0 0 30%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.5vw, 20px);
}

/* the very large outlined number */
.band__num {
  display: block;
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(72px, 8vw, 120px);
  line-height: 0.82;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
  user-select: none;
}

.band__title {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(26px, 2.9vw, 44px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.band__body {
  flex: 1 1 0;
  min-width: 0;
  padding-top: clamp(0px, 1vw, 14px);
}

.band__text {
  max-width: 65ch;
  font-size: clamp(17px, 1.25vw, 19px);
  line-height: 1.55;
}

/* the conclusion: inverted band */
.band--inverse {
  background: var(--ink);
  color: var(--paper);
  border-top-color: var(--ink);
}

.band--inverse .band__num {
  color: var(--red);
  -webkit-text-stroke: 0;
}

/* ---------- 5. Footer (ink band) ---------- */
.footer {
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid var(--line-on-ink);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 32px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.footer__brand { display: flex; align-items: center; flex: 0 0 auto; }
.footer__brand img { height: 36px; width: auto; }

.footer__copy { color: var(--grey); flex: 1 1 auto; }

.footer__top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  padding: 10px 0;
  border-bottom: 1px solid var(--paper);
  transition: color 0.12s linear, border-color 0.12s linear;
}

.footer__top:hover { color: var(--red); border-color: var(--red); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .band__head { flex-basis: 34%; }
}

@media (max-width: 760px) {
  .topbar__inner { min-height: 60px; padding-top: 10px; padding-bottom: 10px; }
  .logo img { height: 30px; }
  .topbar__label { font-size: 11px; }

  .hero { padding-top: 28px; }
  .hero__title { font-size: 13vw; line-height: 0.94; letter-spacing: -0.02em; }

  .hero__row {
    flex-direction: column;
    gap: 28px;
    padding-top: 24px;
    padding-bottom: 40px;
  }

  .hero__meta { flex: 0 0 auto; width: 100%; max-width: none; }
  .hero__lead { max-width: none; font-size: 17px; }

  .index__row { align-items: flex-start; gap: 14px; padding-top: 16px; padding-bottom: 16px; }
  .index__num { min-width: 2em; padding-top: 0.25em; }
  .index__title { font-size: 20px; }
  .index__arrow { font-size: 20px; padding-top: 0.1em; }

  .band__inner { flex-direction: column; gap: 20px; padding-top: 32px; padding-bottom: 44px; }
  .band__head { flex: 0 0 auto; width: 100%; gap: 10px; }
  .band__num { font-size: 72px; }
  .band__title { font-size: 26px; }
  .band__body { padding-top: 0; }
  .band__text { font-size: 17px; }

  .footer__inner { padding-top: 22px; padding-bottom: 22px; }
  .footer__brand img { height: 30px; }
}

@media (max-width: 480px) {
  .topbar__label-region { display: none; }
  .footer__copy { flex-basis: 100%; order: 3; }
}

@media (max-width: 359px) {
  .topbar__label { display: none; }
}

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

/* ---------- Multi-paragraph copy (client text) ---------- */
.hero__lead + .hero__lead,
.band__text + .band__text { margin-top: 1em; }
