:root {
  --ink: #14152a;
  --muted: #54566f;
  --line: #e3e4ee;
  --tint: #f6f6fa;
  --tint-line: #ecedf5;
  --indigo: #4f46e5;
  --indigo-deep: #3730a3;
  --indigo-bright: #6366f1;
  --indigo-tint: #eef0ff;
  --indigo-soft: #a5b4fc;
  --indigo-pale: #e0e7ff;
  --dark: #0d0e1c;
  --dark-line: #2a2c48;
  --on-dark: #f4f4fa;
  --on-dark-soft: #dadbea;
  --on-dark-muted: #c9cbe0;
  --on-dark-mono: #b4b6cf;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --edge: clamp(1.25rem, 4vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
h1, h2, h3, p, ol, ul { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--indigo-bright); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(100% - 2 * var(--edge), 75rem); margin-inline: auto; }

.skip {
  position: absolute;
  top: .75rem;
  left: .75rem;
  z-index: 2;
  padding: .65rem 1rem;
  border-radius: .5rem;
  background: #fff;
  color: var(--indigo);
  font-weight: 700;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* Icons: one shape per class, coloured by the surrounding text */
.i {
  display: inline-block;
  flex: 0 0 auto;
  width: 1em;
  height: 1em;
  background: currentColor;
  -webkit-mask: var(--shape) center / contain no-repeat;
  mask: var(--shape) center / contain no-repeat;
}
.i-right { --shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4'/%3E%3C/svg%3E"); }
.i-left { --shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 8H3M7 4L3 8l4 4'/%3E%3C/svg%3E"); }
.i-down { --shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3v10M4 9l4 4 4-4'/%3E%3C/svg%3E"); }
.i-out { --shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l5-5M4.5 3.5h4v4'/%3E%3C/svg%3E"); }

/* Header */
.header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .25rem 2rem;
  padding-block: .875rem;
}
.brand { display: flex; align-items: center; min-height: 2.75rem; }
.brand img { width: 10.9375rem; height: 2rem; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 2rem; font-size: .9375rem; font-weight: 700; }
.nav a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; }
.nav a:hover { color: var(--indigo); }
.nav a[aria-current="page"] { color: var(--indigo); text-decoration: underline; text-underline-offset: .4em; }
.nav .nav-cta { padding: 0 1.25rem; border-radius: 999px; background: var(--ink); color: #fff; transition: background-color .18s ease; }
.nav .nav-cta:hover { background: var(--indigo); color: #fff; }
.nav .nav-cta[aria-current="page"] { background: var(--indigo); color: #fff; text-decoration: none; }

/* Type */
.label {
  font-family: var(--mono);
  font-size: .8125rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--indigo);
}
.display {
  max-width: 65rem;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -.04em;
  font-weight: 800;
  text-wrap: balance;
}
.display em { font-style: normal; color: var(--indigo); }
.h-xl { font-size: clamp(2.125rem, 4.6vw, 4rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; text-wrap: balance; }
.h-lg { font-size: clamp(1.875rem, 3.6vw, 3rem); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; text-wrap: balance; }
.lede { max-width: 41.25rem; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.summary { font-size: 1.125rem; line-height: 1.6; color: var(--muted); text-wrap: pretty; }

/* Buttons and links */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.75rem; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  min-height: 3.25rem;
  padding: 0 1.625rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
}
.btn-primary { background: var(--indigo); color: #fff; }
.btn-primary:hover { background: var(--indigo-deep); }
.btn-white { background: #fff; color: #312e81; }
.btn-white:hover { background: var(--indigo-pale); }
.link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.75rem;
  width: fit-content;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
}
.link:hover { text-decoration: underline; text-underline-offset: .3em; }
.link-indigo { color: var(--indigo); }
.link .i, .btn .i { transition: transform .18s ease; }
.link:hover .i-out, .btn:hover .i-out { transform: translate(2px, -2px); }
.link:hover .i-right, .btn:hover .i-right { transform: translateX(3px); }
.link:hover .i-left { transform: translateX(-3px); }

/* Hero and page intros */
.hero, .page-intro {
  background-color: var(--tint);
  background-image: linear-gradient(var(--tint-line) 1px, transparent 1px), linear-gradient(90deg, var(--tint-line) 1px, transparent 1px);
  background-size: 4.5rem 4.5rem;
  border-bottom: 1px solid var(--line);
}
.hero-inner { display: flex; flex-direction: column; gap: 2.5rem; padding-block: clamp(4rem, 8vw, 7rem); }
.hero-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.page-intro-inner { display: flex; flex-direction: column; gap: 1.25rem; padding-block: clamp(3.5rem, 7vw, 6rem); }
.page-title { max-width: 22ch; font-size: clamp(2.5rem, 5.4vw, 4.75rem); line-height: 1.02; letter-spacing: -.04em; font-weight: 800; text-wrap: balance; }
.article-title { max-width: 26ch; font-size: clamp(2rem, 4.2vw, 3.5rem); line-height: 1.08; letter-spacing: -.035em; }
.article-meta { font-family: var(--mono); font-size: .8125rem; color: var(--muted); }
.article-meta span { margin-inline: .35rem; }

/* Sections */
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section-tint { background: var(--tint); border-top: 1px solid var(--line); }
.section-dark { background: var(--dark); color: var(--on-dark); }
.section-dark .label { color: var(--indigo-soft); }
.stack { display: flex; flex-direction: column; gap: clamp(2.5rem, 5vw, 4rem); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(26.25rem, 100%), 1fr)); gap: 1.5rem 5rem; align-items: end; }
.split-head { display: flex; flex-direction: column; gap: 1rem; }

/* Cards */
.cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(18.75rem, 100%), 1fr)); gap: 1rem; }
.card { display: flex; flex-direction: column; gap: .75rem; padding: 2rem; border: 1px solid var(--line); border-radius: 1.25rem; background: var(--tint); }
.card-white { background: #fff; }
.card-dark { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.card h2, .card h3 { margin-top: .5rem; font-size: 1.75rem; line-height: 1.15; letter-spacing: -.025em; font-weight: 800; }
.card p { color: var(--muted); }
.card-dark p { color: var(--on-dark-muted); }
.card .link { margin-top: auto; padding-top: .5rem; }
.num { font-family: var(--mono); font-size: .8125rem; color: var(--muted); }
.card-dark .num { color: var(--on-dark-mono); }
.card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: .875rem;
}
.card-meta { flex-wrap: wrap; }
.card-meta span { font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.card-meta strong { font-weight: 800; text-align: right; }
.card-dark .card-meta { border-top-color: var(--dark-line); }
.card-dark .card-meta span { color: var(--on-dark-mono); }
.card-dark .card-meta strong { color: var(--indigo-soft); }

/* Routes */
.route h3 { margin-top: .875rem; font-size: 1.5rem; line-height: 1.2; letter-spacing: -.02em; }
.bridge { display: flex; align-items: center; gap: .625rem; font-family: var(--mono); font-size: .75rem; letter-spacing: .04em; }
.bridge span { padding: .3rem .625rem; border-radius: 999px; background: #eeeff6; white-space: nowrap; }
.bridge span:last-child { background: var(--indigo-tint); color: var(--indigo-deep); }
.bridge i { flex: 1 1 1.5rem; min-width: 1rem; height: 2px; background: var(--indigo-bright); }
.band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-top: calc(-1 * clamp(1.5rem, 3vw, 3rem));
  padding: clamp(1.75rem, 3.4vw, 2.5rem);
  border-radius: 1.25rem;
  background: var(--dark);
  color: var(--on-dark);
}
.band-head { display: flex; flex-direction: column; gap: .5rem; flex: 1 1 18.75rem; max-width: 26.25rem; }
.band-head .label { font-size: .75rem; color: var(--indigo-soft); }
.band-head p { font-size: 1.25rem; line-height: 1.35; letter-spacing: -.015em; font-weight: 700; }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; flex: 1 1 26.25rem; font-size: .9375rem; font-weight: 600; }
.chips li { padding: .5625rem .875rem; border: 1px solid #3a3d63; border-radius: 999px; color: var(--on-dark-soft); }

/* LINC */
.linc { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(26.25rem, 100%), 1fr)); gap: 3rem 5rem; align-items: start; }
.linc-intro { display: flex; flex-direction: column; gap: 1rem; }
.linc-word { font-size: clamp(4rem, 9vw, 8rem); line-height: .9; letter-spacing: -.06em; font-weight: 800; }
.linc-name { font-size: clamp(1.1875rem, 1.8vw, 1.5rem); letter-spacing: -.015em; color: var(--on-dark-soft); }
.linc-intro .summary { max-width: 30rem; margin-top: 1rem; color: var(--on-dark-muted); }
.doors { display: flex; flex-direction: column; }
.door {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.625rem 0;
  border-top: 1px solid var(--dark-line);
  color: var(--on-dark);
  text-decoration: none;
}
.door:last-of-type { border-bottom: 1px solid var(--dark-line); }
.door strong { display: block; font-size: 1.375rem; letter-spacing: -.02em; font-weight: 800; transition: color .18s ease; }
.door small { display: block; margin-top: .375rem; font-size: 1rem; color: var(--on-dark-muted); }
.door .i { font-size: 1.375rem; color: var(--indigo-soft); transition: transform .18s ease; }
.door:hover strong { color: var(--indigo-soft); }
.door:hover .i { transform: translate(3px, -3px); }
.doors-note { margin-top: 1.5rem; font-size: .9375rem; color: var(--on-dark-mono); }

/* Closing call to action */
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(2rem, 5vw, 4.5rem);
  border-radius: 1.75rem;
  background: var(--indigo);
  color: #fff;
}
.cta-text { display: flex; flex-direction: column; gap: .875rem; max-width: 43.75rem; }
.cta .label { color: var(--indigo-pale); }
.cta h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; text-wrap: balance; }
.cta p { font-size: 1.1875rem; line-height: 1.5; color: var(--indigo-pale); text-wrap: pretty; }

/* Long-form pages */
.reading { max-width: 68ch; padding-block: clamp(2.5rem, 6vw, 5rem); color: var(--muted); font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); line-height: 1.7; }
.reading h2 { margin: 1.9em 0 .5em; color: var(--ink); font-size: clamp(1.375rem, 2.6vw, 1.875rem); line-height: 1.2; letter-spacing: -.025em; font-weight: 800; }
.reading > h2:first-child, .reading > section:first-child > h2:first-child { margin-top: 0; }
.reading p + p, .reading ul + p { margin-top: .9em; }
.reading strong { color: var(--ink); }
.reading a:not(.btn):not(.link) { color: var(--indigo); text-underline-offset: .2em; }
.reading ul { margin-top: .6em; padding-left: 1.15rem; }
.reading li + li { margin-top: .45em; }
.reading li::marker { color: var(--indigo-bright); }
.reading .btn, .reading .link { margin-top: 1.25rem; }
.reading .small { font-size: .9375rem; }

/* Article list */
.article-list { list-style: none; padding: 0; border-top: 1px solid var(--ink); }
.article-list li { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .5rem 2rem; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.article-list time { flex: 0 0 9.375rem; padding-top: .3rem; font-family: var(--mono); font-size: .8125rem; color: var(--muted); }
.article-list div { flex: 1 1 26.25rem; min-width: 0; display: flex; flex-direction: column; gap: .5rem; }
.article-list h2 { font-size: clamp(1.25rem, 2vw, 1.625rem); line-height: 1.25; letter-spacing: -.02em; font-weight: 800; }
.article-list a { text-decoration: none; }
.article-list a:hover { color: var(--indigo); text-decoration: underline; text-underline-offset: .2em; }
.article-list p { color: var(--muted); }
.article-list .i { margin-top: .4rem; font-size: 1.25rem; color: var(--indigo); }

/* Footer */
.footer { background: var(--tint); border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; padding-block: 2.5rem; }
.footer-brand { display: flex; flex-direction: column; gap: .625rem; }
.footer-brand img { width: 9.5625rem; height: 1.75rem; }
.footer-brand small { font-family: var(--mono); font-size: .8125rem; color: var(--muted); }
.footer .nav a { gap: .375rem; }

@media (max-width: 40rem) {
  .card { padding: 1.5rem; }
  .article-list time { flex-basis: 100%; }
  .article-list .i { display: none; }
}

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