:root {
  --color-paper: #f4f1e8;
  --color-ink: #111111;
  --color-signal-blue: #1648ff;
  --color-signal-red: #ff3d18;
  --color-white: #ffffff;
  --color-rule: rgb(17 17 17 / 28%);

  /* Prototype aliases; production components should use the semantic tokens. */
  --paper: var(--color-paper);
  --ink: var(--color-ink);
  --blue: var(--color-signal-blue);
  --red: var(--color-signal-red);
  --rule: var(--color-rule);
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

::selection {
  background: var(--blue);
  color: white;
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

.skip-link {
  background: var(--ink);
  color: white;
}

.site-header {
  border-bottom: 1px solid var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wordmark {
  font-size: 0.9rem;
}

.wordmark-mark {
  background: var(--blue);
  color: white;
}

.primary-nav a:hover,
.header-note:hover,
.text-link:hover,
.card-link:hover {
  color: var(--blue);
}

.hero {
  column-gap: clamp(3rem, 7vw, 7rem);
  grid-template-columns: minmax(0, 0.95fr) minmax(22rem, 0.72fr);
  row-gap: 0;
}

.hero-copy {
  align-self: center;
}

.hero h1 {
  color: var(--ink);
}

.hero-intro {
  color: var(--blue);
  margin-bottom: 1.1rem;
}

.hero-summary {
  max-width: 34rem;
}

.button {
  border: 1px solid var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.button-primary {
  background: var(--ink);
  color: white;
}

.button-primary:hover {
  background: var(--blue);
  border-color: var(--blue);
}

.button-secondary:hover {
  background: var(--red);
}

.hero-visual {
  align-self: center;
}

.fluid-field::before {
  background: var(--blue);
  filter: blur(5rem);
  opacity: 0.12;
}

.fluid-layer-outer {
  background:
    radial-gradient(circle at 35% 26%, rgb(255 255 255 / 80%), transparent 18%),
    linear-gradient(135deg, rgb(22 72 255 / 96%), rgb(22 72 255 / 45%) 48%, rgb(255 61 24 / 74%));
  box-shadow:
    0 2rem 5rem rgb(22 72 255 / 24%),
    inset 0 0 0 1px rgb(17 17 17 / 24%);
}

.fluid-layer-middle {
  backdrop-filter: blur(0.2rem);
  background: linear-gradient(145deg, rgb(244 241 232 / 18%), rgb(255 255 255 / 66%));
  border: 1px solid rgb(255 255 255 / 72%);
  box-shadow: inset 0 0 2.5rem rgb(244 241 232 / 48%);
}

.fluid-layer-inner {
  background: linear-gradient(135deg, var(--red), #ff9b4a);
  box-shadow: 0 0 2.2rem rgb(255 61 24 / 48%);
  mix-blend-mode: multiply;
}

.fluid-core {
  background: var(--paper);
  box-shadow:
    0 0 0 0.42rem rgb(255 255 255 / 22%),
    0 0 2rem rgb(255 255 255 / 90%);
}

.signal-point {
  background: var(--ink);
  box-shadow: 0 0 0 0.3rem var(--paper);
}

.signal-point-two,
.signal-point-three {
  background: var(--red);
}

.manifesto {
  background: var(--blue);
  color: white;
  max-width: none;
}

.manifesto p::first-line {
  color: var(--paper);
}

.writing-section,
.lab-section,
.about-section,
.concept-switcher,
.listing-section,
.article-layout,
.article-footer,
.related-section,
.about-profile {
  border-top: 1px solid var(--ink);
}

.secondary-page-shell,
.secondary-page-shell .about-profile {
  border-top: 0;
}

.page-blog-index .story {
  border-top-color: var(--rule);
}

.page-blog-index .story:first-child {
  border-top: 0;
}

.page-blog-index .story:last-child {
  border-bottom: 0;
}

.writing-search button:hover {
  background: var(--blue);
  border-color: var(--blue);
}

.section-heading h2:not(.eyebrow) {
  max-width: 11ch;
}

.story {
  border-top: 1px solid var(--ink);
}

.story:last-child {
  border-bottom: 1px solid var(--ink);
}

.story-index,
.story-meta {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.story h3 a:hover {
  color: var(--blue);
}

.story-series {
  color: var(--red);
}

.lab-section {
  background: var(--ink);
  color: white;
  max-width: none;
}

.lab-section > * {
  margin-inline: auto;
  max-width: calc(1600px - 8vw);
}

.lab-card {
  background: var(--paper);
  color: var(--ink);
}

.status i {
  background: var(--red);
}

.lab-card-media-image {
  background: var(--ink);
}

.lab-card-fluid {
  background: radial-gradient(circle at 50% 50%, rgb(22 72 255 / 12%), transparent 62%);
}

.lab-card-fluid .fluid-layer-outer {
  filter: saturate(0.9);
}

.portrait-placeholder {
  background:
    linear-gradient(135deg, transparent 48%, var(--ink) 49%, var(--ink) 51%, transparent 52%),
    var(--red);
  border: 1px solid var(--ink);
}

.about-copy .eyebrow {
  color: var(--blue);
}

.concept-option {
  border-top: 1px solid var(--ink);
}

.concept-option:last-child {
  border-bottom: 1px solid var(--ink);
}

.concept-option.is-active {
  background: var(--blue);
  color: white;
  margin-inline: -1rem;
  padding-inline: 1rem;
}

.site-footer {
  background: var(--red);
  max-width: none;
}

.lab-index-header .eyebrow,
.lab-detail-header .eyebrow {
  color: var(--red);
}

.lab-index-header h1 span {
  color: var(--blue);
}

.lab-listing {
  background: var(--paper);
}

.lab-listing .lab-card {
  border: 1px solid var(--ink);
  color: var(--ink);
}

.tag-list a:hover,
.related-link:hover,
.back-link:hover {
  color: var(--blue);
}

.related-link {
  border-top: 1px solid var(--ink);
}

.related-link:last-child {
  border-bottom: 1px solid var(--ink);
}

.article-footer {
  background: var(--paper);
  color: var(--ink);
}

.article-footer > * {
  align-self: start;
}

.article-footer .eyebrow {
  color: var(--blue);
}

.status-active i {
  background: var(--blue);
}

.status-paused i {
  background: #777;
}

.status-graduated i {
  background: var(--ink);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    row-gap: 2rem;
  }

  .hero-copy {
    order: 1;
  }

  .hero-visual {
    order: 2;
  }
}
