/* Corinth Technologies. One page, no dependencies. */

@font-face {
  font-family: "Prata";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/Prata-400.woff2") format("woff2");
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/SchibstedGrotesk-400.woff2") format("woff2");
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/SchibstedGrotesk-500.woff2") format("woff2");
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  src: url("/fonts/SchibstedGrotesk-400i.woff2") format("woff2");
}
@font-face {
  font-family: "DM Mono";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/DMMono-400.woff2") format("woff2");
}
@font-face {
  font-family: "DM Mono";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/DMMono-500.woff2") format("woff2");
}

/* Hedge fund blue: deep navy ground, pale blue band. Type picked from a random roll. */
:root {
  color-scheme: dark;
  --bg: #0b1d38;
  --card: #10264a;
  --ink: #eef1f5;
  --ink-2: #aab7ca;
  --ink-3: #7386a3;
  --rule: #233b5f;
  --accent: #b9cde4;
  --on-accent: #0b1d38;
  --on-accent-2: #4b6283;

  --display: "Prata", "Didot", "Bodoni 72", Georgia, serif;
  --text: "Schibsted Grotesk", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --label: "Schibsted Grotesk", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --max: 80rem;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --section: clamp(4.5rem, 11vw, 9.5rem);
}

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.5;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ol, ul, dl, dd, figure {
  margin: 0;
  padding: 0;
}

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

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

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  transition: text-decoration-color 140ms ease, color 140ms ease;
}
a:hover {
  text-decoration-color: currentColor;
}
a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 1px;
}

/* Small mono labels, used once per section. */
.label {
  font-family: var(--label);
  font-weight: 400;
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- Masthead ---------- */

.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
  padding-bottom: 1rem;
}

.wordmark {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  margin-right: -0.32em;
  text-decoration: none;
  color: var(--ink);
}
.wordmark:hover {
  color: var(--accent);
}

.masthead-meta {
  display: flex;
  align-items: baseline;
  gap: 2rem;
  font-family: var(--label);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}
.masthead-meta a {
  text-decoration-color: var(--rule);
}
.masthead-meta a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}
.cities {
  display: none;
}

/* ---------- Hero ---------- */

.hero {
  padding-top: clamp(4.5rem, 14vw, 11rem);
  padding-bottom: var(--section);
}

.eyebrow {
  display: block;
  font-family: var(--label);
  font-weight: 400;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}

.display {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.625rem, 7.4vw, 6.75rem);
  line-height: 1.0;
  letter-spacing: -0.022em;
  max-width: 13.5em;
  text-wrap: balance;
}

.hero-sub {
  margin-top: clamp(2rem, 4.5vw, 3.75rem);
  max-width: 27rem;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.45;
  color: var(--ink-2);
  padding-top: 1.25rem;
  border-top: 1px solid var(--ink);
}

/* ---------- Track: the trade to the books ---------- */

.track {
  padding-bottom: var(--section);
}

.track .label {
  margin-bottom: 2.5rem;
}

.track-rail {
  position: relative;
  padding-left: 2rem;
}

/* The rail: vertical on small screens. */
.track-rail::before {
  content: "";
  position: absolute;
  left: 0.3125rem;
  top: 0.75rem;
  bottom: 0.75rem;
  width: 1px;
  background: var(--ink);
}

.terminus {
  position: relative;
  display: block;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ink-2);
}
.terminus::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 50%;
  width: 0.6875rem;
  height: 0.6875rem;
  margin-top: -0.34375rem;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--bg);
}
.terminus-end::before {
  background: var(--ink);
}

.stations {
  list-style: none;
  padding: 2.75rem 0;
  display: grid;
  gap: 2.75rem;
}

.stations li {
  position: relative;
}
.stations li::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 0.55rem;
  width: 0.6875rem;
  height: 0.6875rem;
  background: var(--accent);
}

.numeral {
  display: block;
  font-family: var(--label);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.stations h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.625rem, 2.6vw, 2.125rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.stations p {
  max-width: 24rem;
  color: var(--ink-2);
}

/* ---------- Exhibit: one exception ---------- */

.exhibit {
  display: grid;
  gap: 2.5rem;
  padding-bottom: var(--section);
}

.exhibit .label {
  margin-bottom: 1.5rem;
}

.exhibit-lead {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 22ch;
  text-wrap: pretty;
}

.ticket {
  background: var(--card);
  border: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--ink);
}

.ticket-head,
.ticket-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ticket-head {
  border-bottom: 1px solid var(--rule);
  color: var(--ink-2);
}
.ticket-tag {
  color: var(--ink-3);
}

.ticket-body {
  padding: 1.25rem;
  display: grid;
  gap: 1.25rem;
}

.ticket-title {
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.ticket-meta {
  display: grid;
  gap: 0.25rem;
}
.ticket-meta div {
  display: grid;
  grid-template-columns: 6.75rem 1fr;
  gap: 1rem;
}
.ticket-meta dt {
  color: var(--ink-3);
}

.ticket-figures {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.ticket-figures th {
  text-align: left;
  font-weight: 400;
  color: var(--ink-2);
  padding: 0.5rem 0;
  border-top: 1px solid var(--rule);
}
.ticket-figures td {
  text-align: right;
  padding: 0.5rem 0;
  border-top: 1px solid var(--rule);
}
.ticket-figures .diff th,
.ticket-figures .diff td {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  color: var(--accent);
  font-weight: 500;
}

.ticket-k {
  color: var(--ink-3);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.ticket-block p:not(.ticket-k) {
  max-width: 44ch;
}

.ticket-evidence {
  list-style: none;
  counter-reset: ev;
}
.ticket-evidence li {
  counter-increment: ev;
  padding-left: 2.25rem;
  position: relative;
}
.ticket-evidence li::before {
  content: "[" counter(ev) "]";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.ticket-foot {
  border-top: 1px solid var(--rule);
  background: var(--bg);
  color: var(--accent);
}
.ticket-sign {
  color: var(--ink-3);
  min-width: 9rem;
  text-align: left;
  border-bottom: 1px solid var(--ink-3);
  padding-bottom: 0.125rem;
}

/* ---------- Principle ---------- */

.principle {
  padding-bottom: var(--section);
}

.principle .label {
  margin-bottom: 2rem;
}

.principle-lines {
  font-family: var(--display);
  display: grid;
  font-size: clamp(2.25rem, 6vw, 5.25rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  border-top: 1px solid var(--ink);
}
.principle-lines span {
  display: block;
  padding: 0.18em 0 0.2em;
  border-bottom: 1px solid var(--rule);
}
.principle-lines span:last-child {
  color: var(--accent);
  border-bottom-color: var(--ink);
}

.principle-body {
  margin-top: clamp(2rem, 4vw, 3rem);
}
.principle-body p {
  max-width: 34rem;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.45;
  color: var(--ink-2);
}
.principle-body em {
  color: var(--ink);
}

/* ---------- Who ---------- */

.who {
  display: grid;
  gap: 1.5rem;
  padding-bottom: var(--section);
}

.who-body p {
  font-family: var(--display);
  text-wrap: balance;
  font-size: clamp(1.375rem, 2.2vw, 1.875rem);
  line-height: 1.3;
  letter-spacing: -0.005em;
  max-width: 30ch;
}
.who-body p + p {
  margin-top: 0.75rem;
  color: var(--ink-2);
}

/* ---------- Closing band ---------- */

.closing {
  background: var(--accent);
  color: var(--on-accent);
  padding-top: var(--section);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.label-inverse {
  color: var(--on-accent-2);
  margin-bottom: 1.75rem;
}

.closing-line {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 14em;
  text-wrap: balance;
}

.closing-links {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 2.5rem;
  font-family: var(--label);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}
.closing-links a {
  text-decoration-color: color-mix(in srgb, var(--on-accent) 40%, transparent);
}
.closing-links a:hover {
  color: #fff;
  text-decoration-color: #fff;
}
.closing-email {
  font-family: var(--display);
  font-size: clamp(1.375rem, 2.4vw, 1.875rem);
  letter-spacing: 0;
}

.closing-foot {
  margin-top: var(--section);
  padding-top: 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--on-accent) 25%, transparent);
  display: grid;
  gap: 1rem;
}

.nw {
  white-space: nowrap;
}

.closing-legal {
  font-family: var(--label);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--on-accent-2);
}

/* ---------- Larger screens ---------- */

@media (min-width: 40em) {
  .cities {
    display: inline;
    color: var(--ink-3);
  }
}

@media (min-width: 60em) {
  body {
    font-size: 1.125rem;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: 8%;
  }

  /* Rail turns horizontal: the trade on the left, the books on the right. */
  .track-rail {
    padding-left: 0;
    display: grid;
    grid-template-columns: auto 1fr auto;
    column-gap: 2rem;
    align-items: start;
  }
  .track-rail::before {
    left: 0;
    right: 0;
    top: 0.85rem;
    bottom: auto;
    width: auto;
    height: 1px;
  }
  .terminus {
    background: var(--bg);
    padding: 0 0.875rem 0 1.375rem;
    line-height: 1.7rem;
  }
  .terminus-end {
    padding: 0 1.375rem 0 0.875rem;
  }
  .terminus::before {
    left: 0;
    top: 0.85rem;
  }
  .terminus-end::before {
    left: auto;
    right: 0;
  }
  .stations {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    padding: 0;
  }
  .stations li {
    padding-top: 2.75rem;
  }
  .stations li::before {
    left: 0;
    top: 0.5rem;
  }
  .numeral {
    position: absolute;
    top: 0.3rem;
    left: 1.375rem;
    background: var(--bg);
    padding: 0 0.5rem;
    margin: 0;
  }

  .exhibit {
    grid-template-columns: 5fr 6fr;
    gap: 6rem;
    align-items: start;
  }
  .exhibit-copy {
    position: sticky;
    top: 3rem;
    padding-top: 0.25rem;
  }

  .ticket {
    font-size: 0.875rem;
  }
  .ticket-body {
    padding: 1.75rem;
    gap: 1.5rem;
  }
  .ticket-head,
  .ticket-foot {
    padding: 1rem 1.75rem;
  }
  .ticket-title {
    font-size: 1.75rem;
  }
  .ticket-meta div {
    grid-template-columns: 8.5rem 1fr;
  }

  .principle-lines span:nth-child(2) {
    padding-left: 12%;
  }
  .principle-lines span:nth-child(3) {
    padding-left: 24%;
  }
  .principle-body {
    margin-left: 24%;
  }

  .who {
    grid-template-columns: 5fr 6fr;
    gap: 6rem;
  }
}

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