:root {
  --ink: #24211d;
  --ink-soft: #716b63;
  --paper: #f5eee3;
  --paper-deep: #e8dbc8;
  --white: #fffaf3;
  --moss: #a4473b;
  --moss-dark: #7f3029;
  --coral: #9c362b;
  --gold: #d7ad62;
  --line: #d7c8b7;
  --sans: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  --serif: Charter, "Bitstream Charter", "Iowan Old Style", Georgia, serif;
  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.92rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1: clamp(1.24rem, 1.13rem + 0.5vw, 1.56rem);
  --step-2: clamp(1.6rem, 1.35rem + 1vw, 2.25rem);
  --step-3: clamp(2.2rem, 1.74rem + 2vw, 3.5rem);
  --step-4: clamp(3rem, 2.15rem + 3.7vw, 5.5rem);
  --space-xs: clamp(0.5rem, 0.4rem + 0.4vw, 0.75rem);
  --space-s: clamp(0.75rem, 0.6rem + 0.7vw, 1.25rem);
  --space-m: clamp(1.25rem, 1rem + 1vw, 2rem);
  --space-l: clamp(2rem, 1.4rem + 2.5vw, 4rem);
  --space-xl: clamp(3.5rem, 2.5rem + 4vw, 7rem);
  --content: 78rem;
  --reading: 45rem;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(rgb(156 54 43 / 7%) 0.6px, transparent 0.6px);
  background-size: 7px 7px;
  content: "";
  pointer-events: none;
}

img {
  display: block;
  max-width: 100%;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: var(--moss);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
  overflow-wrap: break-word;
}

h1 {
  font-size: var(--step-4);
}

h2 {
  font-size: var(--step-3);
}

h3 {
  line-height: 1.25;
}

.sr-only {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.site-footer,
main {
  width: min(calc(100% - 2 * var(--space-m)), var(--content));
  margin-inline: auto;
}

.site-header {
  display: flex;
  min-height: 6.5rem;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: flex;
  flex-direction: column;
  font-family: var(--serif);
  font-size: 1.26rem;
  font-weight: 600;
  line-height: 0.85;
  text-decoration: none;
}

.wordmark span:last-child {
  margin-left: 1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 2rem);
  font-size: var(--step--1);
}

.site-nav a {
  position: relative;
  text-decoration: none;
}

.site-nav a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: -0.5rem;
  left: 0;
  height: 2px;
  background: var(--coral);
  content: "";
}

.site-nav a:last-child {
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--ink);
  border-radius: 100vmax;
}

.menu-button {
  display: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

main {
  min-height: 65vh;
}

.eyebrow,
.card-kicker {
  color: var(--moss);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  min-height: min(37rem, calc(100vh - 6.5rem));
  align-items: center;
  gap: var(--space-l);
  grid-template-columns: 1.25fr 0.75fr;
  padding-block: var(--space-xl);
}

.hero h1 {
  max-width: 13ch;
  margin-bottom: var(--space-m);
}

.hero-lede {
  max-width: 43rem;
  color: var(--ink-soft);
  font-size: var(--step-1);
}

.hero-actions,
.detail-links,
.publication-links,
.research-cta > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-m);
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  padding: 0.65rem 1.25rem;
  border: 1px solid var(--moss-dark);
  border-radius: 100vmax;
  background: var(--moss-dark);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.button:hover {
  background: var(--moss);
  transform: translateY(-2px);
}

.text-link {
  font-weight: 600;
}

.portrait-wrap {
  position: relative;
  width: min(100%, 23rem);
  justify-self: end;
}

.portrait {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 0;
  filter: saturate(0.96) contrast(1.02);
  object-position: 50% 22%;
}

.portrait-accent {
  position: absolute;
  inset: -0.8rem 0.8rem 0.8rem -0.8rem;
  border: 1px solid var(--coral);
  border-radius: 0;
  transform: none;
}

.home-research,
.home-story,
.research-focus {
  padding-block: var(--space-xl);
  border-top: 1px solid var(--line);
}

.split-heading,
.home-story,
.research-focus {
  display: grid;
  gap: var(--space-l);
  grid-template-columns: 0.8fr 1.2fr;
}

.split-heading h2,
.home-story h2 {
  max-width: 13ch;
}

.interest-grid {
  display: grid;
  gap: 1px;
  margin-top: var(--space-l);
  background: var(--line);
  grid-template-columns: repeat(3, 1fr);
}

.interest-grid article {
  padding: var(--space-m);
  background: var(--paper);
}

.interest-grid span,
.section-label span {
  color: var(--coral);
  font-family: var(--serif);
  font-size: var(--step-1);
}

.interest-grid h3 {
  margin-top: var(--space-m);
  font-family: var(--serif);
  font-size: var(--step-2);
}

.personal-note,
.research-cta {
  display: grid;
  align-items: end;
  gap: var(--space-l);
  padding: var(--space-l);
  border-radius: 0;
  margin-block: var(--space-xl);
  background: var(--gold);
  grid-template-columns: 1.2fr 0.8fr;
}

.personal-note h2,
.research-cta h2 {
  margin-bottom: 0;
}

.personal-note .eyebrow {
  color: var(--ink);
}

.page-intro {
  max-width: 60rem;
  padding-block: var(--space-xl);
}

.page-intro h1 {
  max-width: 15ch;
}

.page-intro > p:last-child {
  max-width: 44rem;
  color: var(--ink-soft);
  font-size: var(--step-1);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-l);
}

.filters button,
.citation-button {
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 100vmax;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.filters button[aria-pressed="true"] {
  border-color: var(--moss-dark);
  background: var(--moss-dark);
  color: var(--white);
}

.card-grid {
  display: grid;
  gap: var(--space-l) var(--space-m);
  padding-bottom: var(--space-xl);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--white);
}

.card[hidden] {
  display: none;
}

.card-image {
  display: block;
  overflow: hidden;
  background: var(--paper-deep);
}

.card-image img {
  width: 100%;
  aspect-ratio: 10 / 7;
  transition: transform 300ms ease;
}

.project-card .card-image img {
  height: auto;
  aspect-ratio: auto;
}

.card-image:hover img {
  transform: scale(1.025);
}

.card-body {
  padding: var(--space-m);
}

.card-body h2 {
  margin-bottom: var(--space-s);
  font-size: var(--step-2);
  line-height: 1.05;
}

.card-body h2 a {
  text-decoration: none;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0;
  margin: var(--space-m) 0 0;
  list-style: none;
}

.tag-list li {
  padding: 0.25rem 0.65rem;
  border-radius: 100vmax;
  background: var(--paper-deep);
  font-size: var(--step--1);
}

.bake-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bake-card:nth-child(3n + 2) {
  transform: translateY(var(--space-m));
}

.bake-card .card-image img {
  height: auto;
  aspect-ratio: auto;
}

.publication-list {
  padding-bottom: var(--space-xl);
  border-top: 1px solid var(--line);
}

.publication {
  display: grid;
  gap: var(--space-l);
  padding-block: var(--space-l);
  border-bottom: 1px solid var(--line);
  grid-template-columns: 5rem 1fr;
}

.publication-year {
  color: var(--coral);
  font-family: var(--serif);
  font-size: var(--step-2);
}

.publication h2 {
  font-size: var(--step-2);
  line-height: 1.1;
}

.citation-button {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-underline-offset: 0.18em;
}

.detail {
  padding-block: var(--space-l) var(--space-xl);
}

.back-link {
  display: inline-block;
  margin-bottom: var(--space-l);
}

.detail-header {
  display: grid;
  align-items: center;
  gap: var(--space-l);
  padding-bottom: var(--space-xl);
  grid-template-columns: 1fr 0.8fr;
}

.detail-header h1 {
  font-size: var(--step-3);
}

.detail-header img {
  width: 100%;
  aspect-ratio: 10 / 7;
  border-radius: 1rem;
}

.detail:not(.bake-detail) .detail-header img {
  height: auto;
  aspect-ratio: auto;
}

.bake-detail .detail-header img {
  height: auto;
  aspect-ratio: auto;
}

.lede,
.prose.large {
  color: var(--ink-soft);
  font-size: var(--step-1);
}

.prose {
  max-width: var(--reading);
}

.prose h2 {
  margin-top: var(--space-l);
  font-size: var(--step-2);
  line-height: 1.1;
}

.prose.narrow {
  padding-block: var(--space-xl);
}

.section-label {
  display: flex;
  align-items: baseline;
  gap: var(--space-s);
}

.section-label h2 {
  font-size: var(--step-2);
}

.research-focus {
  grid-template-columns: 0.65fr 1.35fr;
}

.method-list {
  display: grid;
  padding: 0;
  margin: 0;
  gap: var(--space-m);
  grid-template-columns: repeat(2, 1fr);
  list-style: none;
}

.method-list li {
  padding: var(--space-m);
  border-left: 3px solid var(--coral);
  background: var(--white);
}

.method-list p {
  margin-bottom: 0;
}

.site-footer {
  display: grid;
  align-items: end;
  gap: var(--space-m);
  padding-block: var(--space-l);
  border-top: 1px solid var(--line);
  grid-template-columns: 1fr auto;
}

.footer-name {
  margin-bottom: 0.2rem;
  font-family: var(--serif);
  font-size: var(--step-1);
  font-weight: 600;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-m);
}

.copyright {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--step--1);
}

.theme-trigger {
  padding: 0;
  border: 0;
  appearance: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.18em;
}

.theme-trigger:hover,
.theme-trigger[aria-pressed="true"] {
  text-decoration-color: var(--moss);
  text-decoration-thickness: 0.16em;
}

.theme-reset {
  position: fixed;
  z-index: 30;
  right: var(--space-m);
  bottom: var(--space-m);
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--line);
  border-radius: 100vmax;
  background: var(--white);
  box-shadow: 0 0.6rem 2rem rgb(23 20 50 / 25%);
  color: var(--ink);
  cursor: pointer;
  font: 600 var(--step--1) / 1.2 var(--sans);
}

.theme-reset[hidden] {
  display: none;
}

html[data-site-theme="blueprint"] {
  --ink: #eafafb;
  --ink-soft: #e0f9fa;
  --paper: #087a94;
  --paper-deep: #086b81;
  --white: #096d83;
  --moss: #fff;
  --moss-dark: #eafafb;
  --coral: #e0f9fa;
  --gold: #09677c;
  --line: rgb(224 249 251 / 55%);
  color-scheme: dark;
}

html[data-site-theme="blueprint"] body {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

html[data-site-theme="blueprint"] body::before {
  background-image:
    linear-gradient(rgb(224 249 251 / 13%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(224 249 251 / 13%) 1px, transparent 1px);
  background-size: 2rem 2rem;
}

html[data-site-theme="blueprint"] h1,
html[data-site-theme="blueprint"] h2,
html[data-site-theme="blueprint"] h3,
html[data-site-theme="blueprint"] .wordmark,
html[data-site-theme="blueprint"] .footer-name {
  font-family: var(--sans);
  letter-spacing: -0.025em;
}

html[data-site-theme="blueprint"] .site-header,
html[data-site-theme="blueprint"] .site-footer,
html[data-site-theme="blueprint"] .home-story,
html[data-site-theme="blueprint"] .publication-list,
html[data-site-theme="blueprint"] .publication,
html[data-site-theme="blueprint"] .detail-header {
  border-color: var(--line);
}

html[data-site-theme="blueprint"] .button,
html[data-site-theme="blueprint"] .filters button[aria-pressed="true"] {
  border-color: #eafafb;
  border-radius: 0;
  background: #eafafb;
  color: #086277;
}

html[data-site-theme="blueprint"] .button:hover {
  background: #fff;
}

html[data-site-theme="blueprint"] .site-nav a:last-child,
html[data-site-theme="blueprint"] .card,
html[data-site-theme="blueprint"] .detail-header img,
html[data-site-theme="blueprint"] .theme-reset {
  border-radius: 0;
}

html[data-site-theme="blueprint"] .portrait,
html[data-site-theme="blueprint"] .detail-header img {
  border: 2px solid #eafafb;
}

html[data-site-theme="blueprint"] .portrait-accent {
  border-width: 2px;
}

html[data-site-theme="blueprint"] .personal-note {
  border: 1px solid var(--line);
}

html[data-site-theme="blueprint"] .theme-reset {
  border-color: #eafafb;
  background: #eafafb;
  color: #086277;
}

html[data-site-theme="scifi"] {
  --ink: #fff4d1;
  --ink-soft: #ffd09b;
  --paper: #11183c;
  --paper-deep: #252756;
  --white: #1b2250;
  --moss: #ffad82;
  --moss-dark: #ffd09b;
  --coral: #ffd09b;
  --gold: #54295c;
  --line: rgb(255 244 209 / 38%);
  color-scheme: dark;
}

html[data-site-theme="scifi"] body::before {
  background:
    radial-gradient(circle at 20% 30%, rgb(255 255 255 / 34%) 0 1px, transparent 1.5px),
    radial-gradient(circle at 70% 60%, rgb(255 255 255 / 24%) 0 1px, transparent 1.5px),
    radial-gradient(circle at 48% 12%, rgb(255 208 155 / 18%) 0 1px, transparent 1.5px);
  background-size:
    83px 79px,
    127px 109px,
    173px 149px;
}

html[data-site-theme="scifi"] h1,
html[data-site-theme="scifi"] h2 {
  color: #fff3c4;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

html[data-site-theme="scifi"] .hero h1 {
  text-shadow:
    0.04em 0.05em 0 #d45b62,
    0.08em 0.1em 0 rgb(4 6 24 / 65%);
  transform: skewY(-2deg);
}

html[data-site-theme="scifi"] .wordmark,
html[data-site-theme="scifi"] .footer-name {
  color: #fff3c4;
}

html[data-site-theme="scifi"] .button,
html[data-site-theme="scifi"] .filters button[aria-pressed="true"] {
  border-color: #ffd09b;
  background: #ffd09b;
  color: #11183c;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

html[data-site-theme="scifi"] .button:hover {
  background: #fff3c4;
}

html[data-site-theme="scifi"] .portrait {
  border: 2px solid #ffd09b;
  border-radius: 50%;
  box-shadow: 0 0 2.5rem rgb(255 151 110 / 32%);
  filter: sepia(0.08) saturate(1.15);
}

html[data-site-theme="scifi"] .portrait-accent {
  inset: -1.4rem;
  border-color: #f19a71;
  border-radius: 50%;
  transform: rotate(-18deg) scaleY(0.58);
}

html[data-site-theme="scifi"] .personal-note {
  border: 1px solid #f19a71;
  background: linear-gradient(145deg, #322057, #71305e);
  box-shadow: 0 0 2.5rem rgb(255 139 99 / 18%);
}

html[data-site-theme="scifi"] .personal-note .eyebrow {
  color: #ffd09b;
}

html[data-site-theme="scifi"] .card {
  border-color: var(--line);
  box-shadow: 0 0.8rem 2rem rgb(2 4 18 / 22%);
}

html[data-site-theme="scifi"] .theme-reset {
  border-color: #ffd09b;
  background: #11183c;
  color: #fff4d1;
}

.style-switcher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-s);
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: var(--step--1);
}

.style-switcher span {
  color: var(--ink);
  font-weight: 600;
}

.style-options-intro h1 {
  max-width: 14ch;
}

.option-grid {
  display: grid;
  gap: var(--space-m);
  padding-bottom: var(--space-xl);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.option-card {
  display: flex;
  min-height: 24rem;
  align-items: flex-start;
  padding: var(--space-m);
  border: 1px solid var(--line);
  border-radius: 1rem;
  flex-direction: column;
}

.option-card h2 {
  margin-top: auto;
  font-size: var(--step-2);
}

.option-card .button {
  margin-top: var(--space-m);
}

.option-number {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.option-card-scifi {
  border-color: #ef8b5e;
  background:
    radial-gradient(circle at 75% 28%, #ffd978 0 8%, #ee724c 8.5% 14%, transparent 14.5%),
    linear-gradient(160deg, #11234f 10%, #552859 55%, #d95752);
  color: #fff5d6;
}

.option-card-scifi .button {
  border-color: #fff5d6;
  background: #fff5d6;
  color: #1b2856;
}

.option-card-blueprint {
  border-color: #caedf2;
  border-radius: 0;
  background:
    linear-gradient(rgb(202 237 242 / 16%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(202 237 242 / 16%) 1px, transparent 1px), #087a94;
  background-size: 1.5rem 1.5rem;
  color: #f0fcfc;
}

.option-card-blueprint .button {
  border-color: #f0fcfc;
  background: #f0fcfc;
  color: #07677d;
}

body[data-page="style-biotech-blueprint"] {
  background: #087a94;
  color: #eafafb;
}

body[data-page="style-biotech-blueprint"]::before {
  background-image:
    linear-gradient(rgb(224 249 251 / 13%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(224 249 251 / 13%) 1px, transparent 1px);
  background-size: 2rem 2rem;
}

body[data-page="style-biotech-blueprint"] .site-header,
body[data-page="style-biotech-blueprint"] .site-footer,
.blueprint-switcher {
  border-color: rgb(224 249 251 / 55%);
}

body[data-page="style-biotech-blueprint"] .site-nav a,
body[data-page="style-biotech-blueprint"] .wordmark,
body[data-page="style-biotech-blueprint"] .copyright,
.blueprint-switcher,
.blueprint-switcher span {
  color: #eafafb;
}

.blueprint-page {
  max-width: 70rem;
  margin-inline: auto;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

.blueprint-hero {
  display: grid;
  min-height: 39rem;
  align-items: center;
  gap: var(--space-xl);
  padding-block: var(--space-xl);
  border-bottom: 2px solid #eafafb;
  grid-template-columns: 1.3fr 0.7fr;
}

.blueprint-hero p,
.blueprint-spec > p {
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.blueprint-hero h1 {
  max-width: 13ch;
  color: #f5ffff;
  font-family: var(--sans);
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  font-weight: 650;
}

.blueprint-cell {
  position: relative;
  width: min(100%, 19rem);
  aspect-ratio: 1;
  border: 3px solid #eafafb;
  border-radius: 48% 52% 43% 57%;
}

.blueprint-cell::before,
.blueprint-cell::after,
.blueprint-cell span {
  position: absolute;
  border: 2px solid #eafafb;
  border-radius: 50%;
  content: "";
}

.blueprint-cell::before {
  inset: 18%;
}

.blueprint-cell::after {
  inset: 35%;
}

.blueprint-cell span:nth-child(1) {
  top: 15%;
  left: 18%;
  width: 2rem;
  height: 2rem;
}

.blueprint-cell span:nth-child(2) {
  right: 16%;
  bottom: 22%;
  width: 3rem;
  height: 1.5rem;
}

.blueprint-cell span:nth-child(3) {
  bottom: 14%;
  left: 22%;
  width: 1.4rem;
  height: 1.4rem;
}

.blueprint-spec {
  display: grid;
  gap: var(--space-l);
  padding-block: var(--space-xl);
  border-bottom: 2px solid #eafafb;
  grid-template-columns: 0.4fr repeat(2, 0.8fr);
}

.blueprint-spec h2 {
  color: #f5ffff;
  font-family: var(--sans);
  font-size: var(--step-1);
}

.blueprint-links {
  display: grid;
  padding-block: var(--space-l) var(--space-xl);
  grid-template-columns: repeat(4, 1fr);
}

.blueprint-links a {
  padding: var(--space-s);
  border-right: 1px solid #eafafb;
  text-decoration: none;
}

.blueprint-links a:last-child {
  border-right: 0;
}

body[data-page="style-scifi-paperback"] {
  background: #11183c;
  color: #fff4d1;
}

body[data-page="style-scifi-paperback"]::before {
  z-index: 0;
  background:
    radial-gradient(circle at 20% 30%, rgb(255 255 255 / 35%) 0 1px, transparent 1.5px),
    radial-gradient(circle at 70% 60%, rgb(255 255 255 / 25%) 0 1px, transparent 1.5px);
  background-size:
    83px 79px,
    127px 109px;
}

body[data-page="style-scifi-paperback"] .site-header,
body[data-page="style-scifi-paperback"] .site-footer,
body[data-page="style-scifi-paperback"] main {
  position: relative;
  z-index: 1;
}

body[data-page="style-scifi-paperback"] .site-header,
body[data-page="style-scifi-paperback"] .site-footer {
  border-color: rgb(255 244 209 / 35%);
}

body[data-page="style-scifi-paperback"] .site-nav a,
body[data-page="style-scifi-paperback"] .wordmark,
body[data-page="style-scifi-paperback"] .copyright {
  color: #fff4d1;
}

.scifi-switcher {
  border-color: rgb(255 244 209 / 35%);
  color: #ffd09b;
}

.scifi-switcher span {
  color: #fff4d1;
}

.scifi-cover {
  position: relative;
  overflow: hidden;
  min-height: 58rem;
  padding: var(--space-l);
  border: 2px solid #f19a71;
  margin-block: var(--space-l) var(--space-xl);
  background:
    linear-gradient(180deg, transparent 55%, rgb(13 14 49 / 80%) 82%),
    linear-gradient(145deg, #13295d 8%, #4e285f 53%, #c54e5e 100%);
  box-shadow:
    0 0 0 0.45rem #11183c,
    0 0 0 0.55rem #f19a71;
}

.scifi-cover::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background-image: repeating-linear-gradient(105deg, transparent 0 5px, rgb(255 255 255 / 2%) 5px 6px);
  content: "";
  pointer-events: none;
}

.scifi-sky {
  position: absolute;
  inset: 0;
}

.scifi-sun {
  position: absolute;
  top: 13rem;
  right: 7%;
  width: clamp(13rem, 31vw, 24rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    linear-gradient(180deg, transparent 48%, rgb(166 54 75 / 35%) 49% 51%, transparent 52%),
    radial-gradient(circle at 40% 35%, #fff4ad 0 7%, #ffb46f 32%, #e45d62 70%);
  box-shadow: 0 0 5rem rgb(255 139 99 / 55%);
}

.scifi-orbit {
  position: absolute;
  border: 2px solid rgb(255 222 168 / 60%);
  border-radius: 50%;
  transform: rotate(-24deg);
}

.scifi-orbit-one {
  top: 19rem;
  right: -5%;
  width: 50%;
  height: 10rem;
}

.scifi-orbit-two {
  top: 25rem;
  right: 13%;
  width: 55%;
  height: 13rem;
}

.scifi-moon {
  position: absolute;
  top: 25rem;
  right: 42%;
  width: 2.5rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #9dd5d2;
  box-shadow: 0 0 1.5rem #9dd5d2;
}

.scifi-title,
.scifi-story,
.scifi-links,
.scifi-edition {
  position: relative;
  z-index: 2;
}

.scifi-series {
  max-width: 46rem;
  color: #ffd09b;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.scifi-title h1 {
  max-width: 10ch;
  color: #fff3c4;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(4.2rem, 11vw, 9.5rem);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.76;
  text-shadow:
    0.05em 0.06em 0 #d45b62,
    0.1em 0.12em 0 rgb(25 17 61 / 55%);
  text-transform: uppercase;
  transform: skewY(-3deg);
}

.scifi-subtitle {
  color: #ffd09b;
  font-size: var(--step-0);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scifi-story {
  max-width: 34rem;
  padding: var(--space-m);
  margin-top: 19rem;
  border-left: 4px solid #ef8a6f;
  background: rgb(17 24 60 / 78%);
  font-family: var(--serif);
  font-size: var(--step-1);
}

.scifi-blurb {
  margin-bottom: 0;
  color: #ffd09b;
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scifi-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  margin-top: var(--space-l);
}

.scifi-links a {
  padding: 0.65rem 1rem;
  border: 1px solid #ffd09b;
  background: rgb(17 24 60 / 55%);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.scifi-edition {
  position: absolute;
  right: var(--space-l);
  bottom: var(--space-l);
  margin: 0;
  color: #ffd09b;
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 800px) {
  .site-header {
    position: relative;
    min-height: 5.5rem;
  }

  .js .menu-button {
    position: absolute;
    right: 0;
    display: flex;
    align-items: center;
    gap: 0.65rem;
  }

  .menu-icon,
  .menu-icon::before {
    display: block;
    width: 1.5rem;
    height: 2px;
    background: currentcolor;
    content: "";
    transition: transform 180ms ease;
  }

  .menu-icon::before {
    transform: translateY(-6px);
  }

  .menu-button[aria-expanded="true"] .menu-icon {
    transform: rotate(45deg);
  }

  .menu-button[aria-expanded="true"] .menu-icon::before {
    transform: rotate(-90deg);
  }

  .site-nav {
    position: absolute;
    z-index: 10;
    top: 5.5rem;
    right: var(--space-m);
    left: var(--space-m);
    display: flex;
    padding: var(--space-m);
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--white);
    box-shadow: 0 1rem 3rem rgb(23 37 31 / 15%);
    flex-direction: column;
    align-items: stretch;
  }

  .js .site-nav {
    display: none;
  }

  .js .site-nav[data-open="true"] {
    display: flex;
  }

  .site-nav a {
    padding: 0.5rem;
  }

  .site-nav a[aria-current="page"]::after {
    display: none;
  }

  body[data-page="style-scifi-paperback"] .site-nav {
    border-color: rgb(255 244 209 / 35%);
    background: #11183c;
  }

  body[data-page="style-biotech-blueprint"] .site-nav {
    border-color: rgb(224 249 251 / 55%);
    background: #087a94;
  }

  .hero,
  .split-heading,
  .home-story,
  .research-focus,
  .detail-header,
  .blueprint-hero,
  .blueprint-spec {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: var(--space-l);
  }

  h1 {
    font-size: clamp(2.55rem, 13vw, 3.75rem);
  }

  .eyebrow {
    max-width: 26rem;
  }

  .portrait-wrap {
    width: min(80%, 21rem);
    justify-self: center;
  }

  .portrait {
    aspect-ratio: 1;
  }

  .personal-note,
  .research-cta {
    grid-template-columns: 1fr;
  }

  .bake-grid,
  .option-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bake-card:nth-child(3n + 2) {
    transform: none;
  }

  .blueprint-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .blueprint-links a:nth-child(2) {
    border-right: 0;
  }

  .blueprint-cell {
    width: min(65%, 18rem);
  }
}

@media (max-width: 560px) {
  .interest-grid,
  .card-grid,
  .bake-grid,
  .method-list,
  .option-grid {
    grid-template-columns: 1fr;
  }

  .publication {
    gap: var(--space-s);
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .style-switcher {
    align-items: flex-start;
    gap: 0.5rem;
    flex-direction: column;
  }

  .option-card {
    min-height: 22rem;
  }

  .blueprint-links {
    grid-template-columns: 1fr;
  }

  .blueprint-links a,
  .blueprint-links a:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid currentcolor;
  }

  .blueprint-cell {
    width: min(80%, 16rem);
  }

  .scifi-cover {
    min-height: 52rem;
    padding: var(--space-m);
  }

  .scifi-sun {
    top: 16rem;
  }

  .scifi-orbit-one {
    top: 21rem;
    width: 75%;
  }

  .scifi-orbit-two {
    top: 27rem;
    width: 85%;
  }

  .scifi-story {
    margin-top: 17rem;
  }

  .scifi-edition {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: var(--space-l);
  }
}

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

