/* Pixel Works LLC · Standards Manual
   Every colour and face goes through these tokens. */

:root {
  color-scheme: light;

  --paper: #fbfbf9;
  --ink: #121212;
  --ink-2: #3d3d3a;
  --red: #d62e16;          /* white on red 4.9:1, red on paper 4.8:1 */
  --on-red: #ffffff;
  --rule: var(--ink);

  --face: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --t-display: clamp(3rem, 6.6vw, 6rem);
  --t-title: clamp(1.375rem, 1.6vw, 1.75rem);
  --t-body: 1.0625rem;
  --t-small: 0.875rem;

  --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 144px;
  --sheet: 1440px;
  --gutter: 48px;
  --col-gap: 32px;
  --rule-w: 2px;
  --mast-h: 64px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 160ms;
  --t-slow: 900ms;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; scrollbar-color: var(--ink) var(--paper); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--face); font-size: var(--t-body); line-height: 1.55;
  -webkit-font-smoothing: antialiased; caret-color: var(--red);
}
::selection { background: var(--red); color: var(--on-red); }
h1, h2, p, ol { margin: 0; }
h1, h2 { font-weight: 800; letter-spacing: -0.025em; line-height: 1; text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: var(--rule-w); text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.red { color: var(--red); }

.sheet { width: 100%; max-width: var(--sheet); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- button ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
  padding: 0 var(--s-5); border: var(--rule-w) solid var(--ink); border-radius: 0;
  font: inherit; font-size: 1.125rem; font-weight: 700; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out);
}
.btn--red { background: var(--red); border-color: var(--red); color: var(--on-red); }
.btn--red:hover { background: var(--ink); border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { transition: none; }

/* ---------- masthead ---------- */
.mast { position: sticky; top: 0; z-index: 40; background: var(--red); color: var(--on-red); }
.mast__row { max-width: var(--sheet); margin-inline: auto; padding-inline: var(--gutter); height: var(--mast-h); display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); }
.mast__mark { display: inline-flex; align-items: center; gap: var(--s-3); text-decoration: none; font-size: 1.375rem; font-weight: 900; font-variation-settings: "wdth" 112; letter-spacing: -0.02em; }
.mast__mark svg { width: 22px; height: 22px; fill: var(--on-red); }
.mast__mark svg .hole { fill: none; stroke: var(--on-red); stroke-width: 1; }
.mast__link { font-weight: 700; text-decoration-color: transparent; transition: text-decoration-color var(--t-fast) var(--ease-out); }
.mast__link:hover { text-decoration-color: var(--on-red); }
.mast a:focus-visible { outline-color: var(--on-red); }

/* ---------- cover ---------- */
.cover { padding-block: var(--s-7) var(--s-10); }
.cover__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
.cover__margin {
  grid-column: 1 / span 3; display: grid; align-content: start; gap: var(--s-4);
  padding: var(--s-6) var(--s-5) var(--s-6) 0; border-top: var(--rule-w) solid var(--rule); border-right: var(--rule-w) solid var(--rule);
  color: var(--ink-2);
}
.cover__entity { font-size: 1.25rem; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
.cover__main { grid-column: 4 / -1; padding: var(--s-9) 0; border-top: var(--rule-w) solid var(--rule); }
.cover__head { font-size: var(--t-display); font-weight: 850; font-variation-settings: "wdth" 112; line-height: 0.98; letter-spacing: -0.035em; }
.cover__head .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.cover__head .line > span { display: inline-block; animation: rise var(--t-slow) var(--ease-out) both; }
.cover__head .line:nth-child(2) > span { animation-delay: 90ms; }
@keyframes rise { from { transform: translateY(100%); } }
.cover__actions { margin-top: var(--s-7); }

.cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; }
.cell { display: flex; align-items: baseline; gap: var(--s-5); padding: var(--s-6) var(--s-5) var(--s-7) 0; border-block: var(--rule-w) solid var(--rule); }
.cell + .cell { padding-left: var(--s-5); border-left: var(--rule-w) solid var(--rule); }
.cell__n { font-size: 2.5rem; font-weight: 900; font-variation-settings: "wdth" 75; line-height: 0.8; color: var(--red); font-variant-numeric: tabular-nums; }
.cell__t { font-size: var(--t-title); font-variation-settings: "wdth" 112; }
.cell p { margin-top: var(--s-3); max-width: 32ch; color: var(--ink-2); }

/* ---------- contact ---------- */
.contact { background: var(--red); color: var(--on-red); padding-block: var(--s-9) var(--s-10); }
.contact__head { padding-top: var(--s-4); border-top: var(--rule-w) solid var(--on-red); font-size: var(--t-title); font-variation-settings: "wdth" 112; }
.contact__addr {
  display: inline-block; margin-top: var(--s-7); max-width: 100%;
  font-size: clamp(2.25rem, 8vw, 7.5rem); font-weight: 850; font-variation-settings: "wdth" 112; letter-spacing: -0.035em; line-height: 1;
  overflow-wrap: anywhere; text-decoration-thickness: 6px; text-underline-offset: 0.14em; text-decoration-color: color-mix(in srgb, var(--on-red) 45%, var(--red));
  transition: text-decoration-color var(--t-fast) var(--ease-out);
}
.contact__addr:hover { text-decoration-color: var(--on-red); }
.contact__addr:focus-visible { outline-color: var(--on-red); outline-offset: 8px; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--paper); }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-4); padding-block: var(--s-6); font-size: var(--t-small); font-weight: 600; }

/* ---------- footer links ---------- */
.foot__links { display: flex; gap: var(--s-5); }
.foot a { text-decoration-color: transparent; transition: text-decoration-color var(--t-fast) var(--ease-out); }
.foot a:hover { text-decoration-color: var(--paper); }
.foot a:focus-visible { outline-color: var(--paper); }

/* ---------- legal documents ---------- */
.doc { padding-block: var(--s-7) var(--s-10); }
.doc__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
.doc__margin {
  grid-column: 1 / span 3; position: sticky; top: calc(var(--mast-h) + var(--s-5));
  display: grid; gap: var(--s-5); padding: var(--s-6) var(--s-5) var(--s-6) 0;
  border-top: var(--rule-w) solid var(--rule); border-right: var(--rule-w) solid var(--rule);
}
.doc__nav { display: grid; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.doc__nav a { font-weight: 600; color: var(--ink-2); text-decoration-color: transparent; }
.doc__nav a:hover { text-decoration-color: var(--red); }
.doc__nav a[aria-current="page"] { color: var(--red); text-decoration-color: var(--red); }
.doc__date { font-size: var(--t-small); color: var(--ink-2); }
.doc__body { grid-column: 4 / span 7; padding-top: var(--s-8); border-top: var(--rule-w) solid var(--rule); }
.doc__title { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 850; font-variation-settings: "wdth" 112; letter-spacing: -0.035em; }
.doc__intro { margin-top: var(--s-6); max-width: 62ch; font-size: 1.25rem; line-height: 1.5; }
.doc section { margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid color-mix(in srgb, var(--ink) 25%, var(--paper)); }
.doc h2 { font-size: var(--t-title); font-variation-settings: "wdth" 112; }
.doc section p, .doc section ul { max-width: 68ch; margin-top: var(--s-4); color: var(--ink-2); }
.doc section ul { padding-left: 1.25em; }
.doc section li + li { margin-top: var(--s-2); }
.doc section li::marker { color: var(--red); }
.doc strong { color: var(--ink); }
.doc__body a { text-decoration-color: var(--red); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  :root { --gutter: 24px; --col-gap: 16px; }
  .cover__margin { grid-column: 1 / -1; grid-row: 2; border-right: 0; padding-right: 0; }
  .cover__main { grid-column: 1 / -1; padding-block: var(--s-7); }
  .cells { grid-template-columns: minmax(0, 1fr); }
  .cell { border-bottom: 0; }
  .cell:last-child { border-bottom: var(--rule-w) solid var(--rule); }
  .cell + .cell { padding-left: 0; border-left: 0; }
  .cover { padding-bottom: var(--s-9); }
  .doc__margin { grid-column: 1 / -1; position: static; border-right: 0; padding-right: 0; }
  .doc__body { grid-column: 1 / -1; margin-top: var(--s-6); padding-top: var(--s-6); }
  .doc__nav { grid-auto-flow: column; justify-content: start; gap: var(--s-5); }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --mast-h: 56px; }
  .cover__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cover__head .line > span { animation: none; }
  .btn, .mast__link, .contact__addr { transition: none; }
}
