/* Tokens, type and the mark follow the Russell brand guide (Oct 27 2026). */

@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Albert Sans";
  src: url("fonts/albert-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}

@font-face {
  font-family: "Source Code Pro";
  src: url("fonts/source-code-pro-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f4f5f4;
  --surface: #ffffff;
  --line: #d8dcdc;
  --ink-3: #6b717a;
  --ink-2: #4b5159;
  --ink: #17191c;
  --harbor: #0b4f63;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Albert Sans", system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
  --code: "Source Code Pro", "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

::selection { background: var(--harbor); color: var(--surface); }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}

main,
footer {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-inline: 24px;
}

main {
  flex: 1;
  padding-top: 32px;
  padding-bottom: 64px;
}

/* Serif is the voice: wordmark, display line, titles. Always 500, optical size 60. */
.wordmark,
h1,
.when {
  font-family: var(--serif);
  font-weight: 500;
  font-variation-settings: "opsz" 60;
  letter-spacing: 0;
}

.lockup {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mark {
  width: 32px;
  height: 32px;
  flex: none;
}

.mark path {
  fill: none;
  stroke: var(--harbor);
  stroke-width: 4;
  stroke-linecap: round;
}

.lockup-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.wordmark {
  font-size: 30px;
  line-height: 1;
}

.descriptor {
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 64px 0 0;
  font-size: clamp(34px, 9.6vw, 72px);
  line-height: 1.1;
}

h1 span { display: block; }

.figure { margin: 48px 0 0; }

.order {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.order-wide { display: none; }

.order rect {
  fill: var(--surface);
  stroke: var(--ink);
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
}

.order path {
  fill: none;
  stroke: var(--ink-3);
  stroke-opacity: 0.55;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

/* The one paper pulled out of the row. Ink, not Harbor: Harbor is for the mark. */
.order .is-source rect { fill: var(--ink); }

.order .is-source path {
  stroke: var(--paper);
  stroke-opacity: 0.7;
}

.body { margin-top: 48px; }

.lede {
  margin: 16px 0 0;
  max-width: 560px;
  color: var(--ink-2);
  font-size: 18px;
  text-wrap: pretty;
}

.lede-first {
  margin-top: 0;
  max-width: 620px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.45;
}

.lede-first + .lede { margin-top: 24px; }

.for { margin-top: 48px; }

.label {
  margin: 0 0 12px;
  color: var(--ink-3);
  font: 400 12px/1.45 var(--code);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fields {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.fields li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
}

.when {
  margin: 64px 0 0;
  font-size: 28px;
  line-height: 1.25;
}

footer {
  padding-bottom: 32px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.45;
}

@media (min-width: 720px) {
  main,
  footer { padding-inline: 48px; }

  main { padding-top: 48px; padding-bottom: 96px; }

  h1 { margin-top: 96px; }

  .figure { margin-top: 64px; }

  .order-wide { display: block; }
  .order-narrow { display: none; }

  .body { margin-top: 64px; }

  .lede-first { font-size: 22px; }

  .when { margin-top: 96px; }
}

@media (min-width: 960px) {
  .body {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    column-gap: 96px;
    align-items: start;
  }

  .for { margin-top: 8px; }
}

/* The papers start a little out of place and settle once, on load. */
@media (prefers-reduced-motion: no-preference) {
  .order .paper {
    transform-box: fill-box;
    transform-origin: center;
    animation: settle 1.5s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(var(--i) * 30ms + 250ms);
  }

  @keyframes settle {
    from { transform: translate(var(--dx), var(--dy)) rotate(var(--dr)); }
    to { transform: none; }
  }
}
