:root,
html[data-theme="dragon"] {
  --ink: #102229;
  --muted: #5e7076;
  --cream: #f5f1e7;
  --paper: #fffdf8;
  --navy: #082a38;
  --teal: #0d5960;
  --aqua: #46aaa3;
  --gold: #f1c84c;
  --orange: #ea7540;
  --heading: #082a38;
  --line: rgba(8, 42, 56, 0.14);
  --hero-a: #0b5660;
  --hero-b: #082a38;
  --hero-c: #061f2c;
  --on-dark: #ffffff;
  --on-dark-muted: #b7cdd1;
  --accent-ink: #102229;
}

html[data-theme="normal"] {
  --ink: #373431;
  --muted: #746f69;
  --cream: #efede9;
  --paper: #fcfbf8;
  --navy: #3f3c38;
  --teal: #77716a;
  --aqua: #aaa39b;
  --gold: #d9d3ca;
  --orange: #968a7c;
  --heading: #33302d;
  --line: rgba(63, 60, 56, 0.16);
  --hero-a: #77716a;
  --hero-b: #3f3c38;
  --hero-c: #292725;
  --on-dark: #ffffff;
  --on-dark-muted: #d1ccc6;
  --accent-ink: #302e2b;
}

html[data-theme="fire"] {
  --ink: #431b16;
  --muted: #875c50;
  --cream: #f8e8df;
  --paper: #fff9f5;
  --navy: #3c1511;
  --teal: #9f2f22;
  --aqua: #e15c35;
  --gold: #ffb648;
  --orange: #f04a28;
  --heading: #541a14;
  --line: rgba(84, 26, 20, 0.16);
  --hero-a: #a93522;
  --hero-b: #541a14;
  --hero-c: #2c100e;
  --on-dark: #ffffff;
  --on-dark-muted: #f0c6b8;
  --accent-ink: #3c1811;
}

html[data-theme="water"] {
  --ink: #12324b;
  --muted: #5c7588;
  --cream: #e5f0f7;
  --paper: #f8fcff;
  --navy: #0d3557;
  --teal: #12669e;
  --aqua: #4bafe3;
  --gold: #a9ddf5;
  --orange: #2e8dcb;
  --heading: #113b5e;
  --line: rgba(17, 59, 94, 0.15);
  --hero-a: #12669e;
  --hero-b: #0d3557;
  --hero-c: #08243c;
  --on-dark: #ffffff;
  --on-dark-muted: #c1ddec;
  --accent-ink: #11324a;
}

html[data-theme="grass"] {
  --ink: #173c2a;
  --muted: #607766;
  --cream: #e8f2e4;
  --paper: #f9fff7;
  --navy: #153725;
  --teal: #2e7247;
  --aqua: #6dbb72;
  --gold: #b9dc68;
  --orange: #4b9d55;
  --heading: #183f2a;
  --line: rgba(24, 63, 42, 0.15);
  --hero-a: #347a4c;
  --hero-b: #183f2a;
  --hero-c: #0e281a;
  --on-dark: #ffffff;
  --on-dark-muted: #c4ddca;
  --accent-ink: #193a24;
}

html[data-theme="ice"] {
  --ink: #18444d;
  --muted: #658088;
  --cream: #eaf7f8;
  --paper: #fbffff;
  --navy: #174a57;
  --teal: #3c8792;
  --aqua: #9ddfe6;
  --gold: #d4f4f5;
  --orange: #61bbc6;
  --heading: #1b505b;
  --line: rgba(27, 80, 91, 0.14);
  --hero-a: #4b939d;
  --hero-b: #1b505b;
  --hero-c: #10333c;
  --on-dark: #ffffff;
  --on-dark-muted: #d0e9ec;
  --accent-ink: #19434b;
}

html[data-theme="fighting"] {
  --ink: #40221d;
  --muted: #80675e;
  --cream: #f1e8dd;
  --paper: #fffaf5;
  --navy: #3a1915;
  --teal: #874034;
  --aqua: #bd6a54;
  --gold: #d7b47a;
  --orange: #ad4433;
  --heading: #4c211b;
  --line: rgba(76, 33, 27, 0.16);
  --hero-a: #884235;
  --hero-b: #4c211b;
  --hero-c: #2b110f;
  --on-dark: #ffffff;
  --on-dark-muted: #ddc5bb;
  --accent-ink: #382019;
}

html[data-theme="poison"] {
  --ink: #381842;
  --muted: #7d6085;
  --cream: #f0e7f2;
  --paper: #fff9ff;
  --navy: #35153f;
  --teal: #743c82;
  --aqua: #b260ba;
  --gold: #d9a9df;
  --orange: #994ba4;
  --heading: #42194e;
  --line: rgba(66, 25, 78, 0.15);
  --hero-a: #773d85;
  --hero-b: #42194e;
  --hero-c: #270d2f;
  --on-dark: #ffffff;
  --on-dark-muted: #dbc3df;
  --accent-ink: #34163d;
}

html[data-theme="ground"] {
  --ink: #47311c;
  --muted: #806e55;
  --cream: #f3e9d2;
  --paper: #fffaf0;
  --navy: #493017;
  --teal: #8c6129;
  --aqua: #c7974d;
  --gold: #e6c56f;
  --orange: #b86d2f;
  --heading: #50351b;
  --line: rgba(80, 53, 27, 0.16);
  --hero-a: #93652e;
  --hero-b: #50351b;
  --hero-c: #2d1d0f;
  --on-dark: #ffffff;
  --on-dark-muted: #dfceb0;
  --accent-ink: #3d2b18;
}

html[data-theme="flying"] {
  --ink: #292e4b;
  --muted: #6f7290;
  --cream: #ececf8;
  --paper: #fbfbff;
  --navy: #303653;
  --teal: #6875af;
  --aqua: #9eb8e7;
  --gold: #d6d2f2;
  --orange: #778bd1;
  --heading: #333957;
  --line: rgba(51, 57, 87, 0.15);
  --hero-a: #6b78b2;
  --hero-b: #333957;
  --hero-c: #1f233b;
  --on-dark: #ffffff;
  --on-dark-muted: #d0d3ec;
  --accent-ink: #2d304b;
}

html[data-theme="dark"] {
  --ink: #edf1f3;
  --muted: #a3adb5;
  --cream: #101319;
  --paper: #191e26;
  --navy: #080a0e;
  --teal: #596779;
  --aqua: #7f8da1;
  --gold: #aeb8c7;
  --orange: #71839d;
  --heading: #f3f5f6;
  --line: rgba(255, 255, 255, 0.13);
  --hero-a: #252d39;
  --hero-b: #0b0e13;
  --hero-c: #030406;
  --on-dark: #ffffff;
  --on-dark-muted: #b3bdc6;
  --accent-ink: #0c1016;
}

html[data-theme="electric"] {
  --ink: #20202a;
  --muted: #68633f;
  --cream: #f6f1bd;
  --paper: #fffceb;
  --navy: #242039;
  --teal: #356fae;
  --aqua: #69a9ec;
  --gold: #ffe34d;
  --orange: #2f7fd7;
  --heading: #242039;
  --line: rgba(36, 32, 57, 0.17);
  --hero-a: #356fae;
  --hero-b: #242039;
  --hero-c: #161426;
  --on-dark: #ffffff;
  --on-dark-muted: #c7c9df;
  --accent-ink: #1c1b27;
}

html[data-theme="psychic"] {
  --ink: #321a39;
  --muted: #795f7d;
  --cream: #f4e9f4;
  --paper: #fff9ff;
  --navy: #29133a;
  --teal: #8b3d87;
  --aqua: #cf71bd;
  --gold: #f0b5dc;
  --orange: #df5d9b;
  --heading: #351642;
  --line: rgba(53, 22, 66, 0.15);
  --hero-a: #80377d;
  --hero-b: #351642;
  --hero-c: #21102e;
  --on-dark: #ffffff;
  --on-dark-muted: #dfc4df;
  --accent-ink: #29132f;
}

html[data-theme="bug"] {
  --ink: #303817;
  --muted: #707852;
  --cream: #eef2d7;
  --paper: #fcfff0;
  --navy: #303b14;
  --teal: #677d25;
  --aqua: #a6be42;
  --gold: #cddd66;
  --orange: #879b2e;
  --heading: #36431a;
  --line: rgba(54, 67, 26, 0.16);
  --hero-a: #6c8128;
  --hero-b: #36431a;
  --hero-c: #20290d;
  --on-dark: #ffffff;
  --on-dark-muted: #d5dcad;
  --accent-ink: #2b3516;
}

html[data-theme="rock"] {
  --ink: #443a2b;
  --muted: #7f735f;
  --cream: #efe9dc;
  --paper: #fffaf1;
  --navy: #493b26;
  --teal: #826e48;
  --aqua: #b39a68;
  --gold: #d8c18c;
  --orange: #9a7842;
  --heading: #4a3d2a;
  --line: rgba(74, 61, 42, 0.16);
  --hero-a: #806c48;
  --hero-b: #4a3d2a;
  --hero-c: #2b2318;
  --on-dark: #ffffff;
  --on-dark-muted: #dacfb9;
  --accent-ink: #3b3226;
}

html[data-theme="ghost"] {
  --ink: #f0ebf7;
  --muted: #b2a5c3;
  --cream: #151225;
  --paper: #211b36;
  --navy: #0e0b1c;
  --teal: #554276;
  --aqua: #8a73ae;
  --gold: #b8a5d4;
  --orange: #755c9e;
  --heading: #f4eff9;
  --line: rgba(255, 255, 255, 0.13);
  --hero-a: #41325f;
  --hero-b: #181128;
  --hero-c: #090711;
  --on-dark: #ffffff;
  --on-dark-muted: #c8bdd8;
  --accent-ink: #201a30;
}

html[data-theme="steel"] {
  --ink: #24343f;
  --muted: #687883;
  --cream: #e7edf0;
  --paper: #f9fcfd;
  --navy: #293844;
  --teal: #566f7d;
  --aqua: #91a8b4;
  --gold: #c6d2d8;
  --orange: #728b99;
  --heading: #2d3d47;
  --line: rgba(45, 61, 71, 0.15);
  --hero-a: #5d7481;
  --hero-b: #2d3d47;
  --hero-c: #1b252d;
  --on-dark: #ffffff;
  --on-dark-muted: #cbd5da;
  --accent-ink: #27343c;
}

html[data-theme="fairy"] {
  --ink: #44213b;
  --muted: #805f77;
  --cream: #f8e9f1;
  --paper: #fff9fc;
  --navy: #4a213c;
  --teal: #9b4f7d;
  --aqua: #df8fbd;
  --gold: #f5c4df;
  --orange: #d86fa9;
  --heading: #512441;
  --line: rgba(81, 36, 65, 0.14);
  --hero-a: #a35483;
  --hero-b: #512441;
  --hero-c: #311628;
  --on-dark: #ffffff;
  --on-dark-muted: #ead0df;
  --accent-ink: #3c1d33;
}

:root {
  --condensed: "Barlow Condensed", Impact, sans-serif;
  --sans: "DM Sans", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  line-height: 1.5;
  transition: color 180ms ease, background 180ms ease;
}

a {
  color: inherit;
}

a:focus-visible,
select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  transform: translateY(-180%);
  padding: 0.65rem 0.9rem;
  border-radius: 0.35rem;
  color: var(--on-dark);
  background: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(100% - 2.5rem, 1320px);
  margin: 0 auto;
  padding: 1rem 0;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: max-content;
  text-decoration: none;
}

.wordmark > span:last-child,
.wordmark strong,
.wordmark small {
  display: block;
}

.wordmark strong {
  color: var(--heading);
  font: 800 1.05rem/1 var(--condensed);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wordmark small {
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.wordmark-mark {
  position: relative;
  width: 2.65rem;
  height: 2.15rem;
}

.wordmark-mark i {
  position: absolute;
  width: 0.62rem;
  aspect-ratio: 1;
  border: 2px solid var(--cream);
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 1px var(--teal);
}

.wordmark-mark i:nth-child(1) {
  top: 0.1rem;
  left: 0.05rem;
}

.wordmark-mark i:nth-child(2) {
  top: 1.25rem;
  left: 0.9rem;
  background: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}

.wordmark-mark i:nth-child(3) {
  top: 0.25rem;
  right: 0.05rem;
  background: var(--orange);
  box-shadow: 0 0 0 1px var(--orange);
}

.wordmark-mark::before,
.wordmark-mark::after {
  content: "";
  position: absolute;
  z-index: -1;
  height: 1px;
  background: var(--teal);
  transform-origin: left center;
}

.wordmark-mark::before {
  top: 0.55rem;
  left: 0.55rem;
  width: 1.55rem;
  transform: rotate(8deg);
}

.wordmark-mark::after {
  top: 0.65rem;
  left: 0.45rem;
  width: 1.25rem;
  transform: rotate(43deg);
}

.site-nav {
  display: flex;
  gap: 1.25rem;
}

.site-nav a {
  color: var(--ink);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover {
  color: var(--orange);
}

.theme-picker {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.theme-picker label {
  color: var(--muted);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.theme-picker select {
  min-width: 7.4rem;
  padding: 0.5rem 1.9rem 0.5rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  color: var(--ink);
  background: var(--paper);
  font: 700 0.66rem/1 var(--sans);
  cursor: pointer;
}

.disclaimer-banner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  align-items: center;
  padding: 0.72rem max(1.25rem, calc((100vw - 1160px) / 2));
  color: var(--accent-ink);
  background: var(--gold);
}

.disclaimer-banner strong {
  font: 800 0.7rem/1 var(--condensed);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.disclaimer-banner p {
  margin: 0;
  font-size: 0.63rem;
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--on-dark);
  background:
    radial-gradient(circle at 76% 60%, color-mix(in srgb, var(--aqua) 25%, transparent), transparent 28rem),
    linear-gradient(120deg, var(--hero-a), var(--hero-b) 55%, var(--hero-c));
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: min(100% - 2.5rem, 1160px);
  min-height: 22rem;
  margin: 0 auto;
  padding: 3rem 0;
}

.network-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.45;
  pointer-events: none;
}

.network-field::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(90deg, transparent 20%, black);
}

.network-field .node {
  position: absolute;
  z-index: 2;
  width: 0.9rem;
  aspect-ratio: 1;
  border: 3px solid var(--navy);
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--gold) 18%, transparent);
}

.node-a { top: 18%; left: 64%; }
.node-b { top: 59%; left: 57%; }
.node-c { top: 31%; left: 78%; }
.node-d { top: 69%; left: 84%; }
.node-e { top: 17%; left: 92%; }

.network-field .edge {
  position: absolute;
  height: 1px;
  background: color-mix(in srgb, var(--gold) 68%, transparent);
  transform-origin: left center;
}

.edge-ab { top: 20%; left: 64%; width: 18rem; transform: rotate(132deg); }
.edge-ac { top: 20%; left: 64%; width: 11rem; transform: rotate(18deg); }
.edge-bd { top: 60%; left: 57%; width: 23rem; transform: rotate(12deg); }
.edge-cd { top: 33%; left: 78%; width: 15rem; transform: rotate(72deg); }
.edge-de { top: 69%; left: 84%; width: 22rem; transform: rotate(-69deg); }

.identity-card {
  display: grid;
  grid-template-columns: 8rem minmax(220px, 1fr) 15rem;
  gap: 1.15rem;
  align-items: center;
  width: min(100%, 850px);
  padding: 0.8rem;
  border: 7px solid var(--gold);
  border-radius: 0.7rem;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 20px 50px rgba(0, 14, 22, 0.25);
  transform: rotate(-0.5deg);
}

.identity-card img {
  display: block;
  width: 100%;
  aspect-ratio: 0.82;
  border: 2px solid var(--heading);
  object-fit: cover;
  object-position: center;
}

.identity-copy p {
  margin: 0 0 0.45rem;
  color: var(--teal);
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.identity-copy h1 {
  margin: 0;
  color: var(--heading);
  font: 800 2.8rem/0.9 var(--condensed);
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.identity-copy span {
  display: block;
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.67rem;
}

.profile-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}

.profile-links a {
  padding: 0.5rem 0.25rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  font-size: 0.58rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.profile-links a:hover {
  color: var(--orange);
}

.eyebrow {
  margin: 0;
  color: var(--teal);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.papers-section,
.wip-section,
.discussions-section,
.earlier-section {
  width: min(100% - 2.5rem, 1160px);
  margin: 0 auto;
  padding: 6rem 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: 2.4rem;
}

.section-heading h2,
.earlier-section h2 {
  margin: 0.3rem 0 0;
  color: var(--heading);
  font: 800 clamp(3rem, 6vw, 5rem)/0.85 var(--condensed);
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.section-heading > p {
  max-width: 30rem;
  justify-self: end;
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
}

.paper-list {
  border-top: 1px solid var(--line);
}

.paper-row {
  position: relative;
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr) 11rem;
  gap: 2rem;
  align-items: center;
  min-height: 13rem;
  padding: 2rem 1rem;
  border-bottom: 1px solid var(--line);
  transition: background 160ms ease, transform 160ms ease;
}

.paper-row:hover {
  z-index: 2;
  background: var(--paper);
  box-shadow: 0 14px 35px rgba(8, 42, 56, 0.09);
  transform: translateX(0.4rem);
}

.paper-row::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: var(--paper-accent, var(--teal));
  transform: scaleY(0);
  transition: transform 160ms ease;
}

.paper-row:hover::before {
  transform: scaleY(1);
}

.featured-paper {
  --paper-accent: var(--orange);
}

.network-paper {
  --paper-accent: var(--gold);
  background: color-mix(in srgb, var(--gold) 8%, transparent);
}

.paper-row:nth-child(3n + 1) {
  --paper-accent: var(--orange);
}

.paper-row:nth-child(3n + 2) {
  --paper-accent: var(--gold);
}

.paper-row:nth-child(3n) {
  --paper-accent: var(--teal);
}

.paper-index {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--teal);
}

.paper-index > span {
  font: 800 2.4rem/1 var(--condensed);
}

.mini-network {
  position: relative;
  width: 4rem;
  height: 2.6rem;
}

.mini-network i {
  position: absolute;
  width: 0.55rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--paper-accent, var(--teal));
}

.mini-network i:nth-child(1) {
  top: 0;
  left: 0;
}

.mini-network i:nth-child(2) {
  bottom: 0;
  left: 1.55rem;
}

.mini-network i:nth-child(3) {
  top: 0.15rem;
  right: 0;
}

.mini-network::before,
.mini-network::after {
  content: "";
  position: absolute;
  top: 0.35rem;
  left: 0.4rem;
  width: 2rem;
  height: 1px;
  background: var(--paper-accent, var(--teal));
  transform: rotate(39deg);
  transform-origin: left center;
}

.mini-network::after {
  left: 1.95rem;
  width: 1.8rem;
  transform: rotate(-36deg);
}

.paper-topic {
  margin: 0 0 0.5rem;
  color: var(--paper-accent, var(--teal));
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.paper-main h3 {
  max-width: 27ch;
  margin: 0;
  color: var(--heading);
  font: 800 clamp(1.75rem, 3vw, 2.6rem)/0.95 var(--condensed);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.paper-main h3 a {
  text-decoration: none;
}

.paper-main h3 a:hover {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2rem;
}

.paper-summary {
  max-width: 53rem;
  margin: 0.7rem 0 0;
  color: var(--ink);
  font-size: 0.78rem;
}

.coauthors {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.45;
}

.coauthor-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.coauthor-link:hover,
.coauthor-link:focus-visible {
  color: var(--teal);
  text-decoration-color: currentColor;
}

.paper-meta {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}

.draft-dates {
  display: grid;
  gap: 0.7rem;
}

.draft-dates span {
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 700;
}

.draft-dates small {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--muted);
  font-size: 0.5rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.paper-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
}

.paper-actions a {
  font-size: 0.6rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.paper-actions a:hover {
  color: var(--orange);
}

.publications-section {
  width: 100%;
  padding: 6rem max(1.25rem, calc((100vw - 1160px) / 2));
  color: var(--on-dark);
  background:
    radial-gradient(circle at 85% 10%, color-mix(in srgb, var(--aqua) 20%, transparent), transparent 30rem),
    var(--navy);
}

.publications-section .eyebrow {
  color: var(--gold);
}

.publications-section .section-heading h2 {
  color: var(--on-dark);
}

.publication-heading {
  grid-template-columns: 1fr auto;
}

.prize-counter {
  display: flex;
  gap: 0.45rem;
}

.prize-counter i {
  width: 1.45rem;
  aspect-ratio: 0.72;
  border: 2px solid var(--gold);
  border-radius: 0.18rem;
  background: linear-gradient(145deg, var(--teal), var(--navy));
  transform: rotate(var(--tilt, -3deg));
}

.prize-counter i:nth-child(even) {
  --tilt: 3deg;
}

.publication-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.publication-card {
  display: flex;
  flex-direction: column;
  min-height: 26rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.13);
  transition: transform 160ms ease, background 160ms ease;
}

.publication-card:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-0.35rem);
}

.publication-stamp {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  min-height: 10rem;
  padding: 1.25rem;
  color: var(--accent-ink);
  background:
    radial-gradient(circle at 84% 18%, rgba(255,255,255,0.35), transparent 4rem),
    var(--gold);
}

.publication-stamp span {
  max-width: 13rem;
  font: 800 0.86rem/1.05 var(--condensed);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.publication-stamp strong {
  font: 800 clamp(3.6rem, 5vw, 5rem)/0.75 var(--condensed);
  letter-spacing: -0.045em;
}

.publication-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem;
}

.publication-body h3 {
  margin: 0;
  font: 700 1.55rem/1 var(--condensed);
  text-transform: uppercase;
}

.publication-body h3 a {
  text-decoration: none;
}

.publication-body h3 a:hover {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.publication-body p {
  margin: 0.85rem 0 0;
  color: var(--on-dark-muted);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.45;
}

.publication-body .coauthor-link:hover,
.publication-body .coauthor-link:focus-visible {
  color: var(--gold);
}

.publication-body > a {
  margin-top: auto;
  padding-top: 1rem;
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.compact-heading {
  grid-template-columns: 1fr;
}

.wip-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.wip-list article {
  min-height: 12rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-top: 5px solid var(--gold);
  background: var(--paper);
}

.wip-list article > span {
  color: var(--teal);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.wip-list h3 {
  max-width: 28ch;
  margin: 0.8rem 0;
  color: var(--heading);
  font: 800 1.7rem/0.98 var(--condensed);
  text-transform: uppercase;
}

.wip-list h3 a {
  text-decoration: none;
}

.wip-list h3 a:hover {
  color: var(--teal);
  text-decoration: underline;
}

.wip-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.45;
}

.discussion-list {
  border-top: 1px solid var(--line);
}

.discussion-list article {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.6rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.discussion-list article + article {
  margin-top: 0.7rem;
}

.discussion-event {
  display: grid;
  place-items: center;
  min-height: 5rem;
  border: 4px solid var(--teal);
  border-radius: 0.4rem;
  color: var(--heading);
}

.discussion-event strong {
  font: 800 1.5rem/1 var(--condensed);
  text-transform: uppercase;
}

.discussion-event span {
  font-size: 0.58rem;
  font-weight: 800;
}

.discussion-list article > div:nth-child(2) > p {
  margin: 0 0 0.45rem;
  color: var(--teal);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.discussion-list h3 {
  margin: 0;
  color: var(--heading);
  font: 800 clamp(1.5rem, 3vw, 2.3rem)/0.95 var(--condensed);
  text-transform: uppercase;
}

.discussion-list h3 a {
  text-decoration: none;
}

.discussion-list h3 a:hover {
  color: var(--teal);
  text-decoration: underline;
}

.discussion-list article > div:nth-child(2) > span {
  display: block;
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.45;
}

.round-link {
  display: grid;
  place-items: center;
  width: 2.3rem;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  text-decoration: none;
}

.round-link:hover {
  color: var(--accent-ink);
  background: var(--gold);
}

.datasets-section {
  width: 100%;
  padding: 6rem 1.25rem;
  color: var(--on-dark);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--teal) 88%, var(--navy)), var(--navy));
}

.datasets-inner {
  width: min(100%, 1160px);
  margin: 0 auto;
}

.datasets-section .eyebrow {
  color: var(--gold);
}

.datasets-section .section-heading h2 {
  color: var(--on-dark);
}

.datasets-section .section-heading > p {
  color: var(--on-dark-muted);
}

.dataset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.dataset-grid a {
  position: relative;
  display: grid;
  min-height: 14rem;
  padding: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.24);
  color: var(--on-dark);
  background: rgba(255,255,255,0.07);
  text-decoration: none;
}

.dataset-grid a::after {
  content: "";
  position: absolute;
  right: -3rem;
  bottom: -3rem;
  width: 9rem;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 0 2rem rgba(255,255,255,0.025);
}

.dataset-grid a:hover {
  background: rgba(255,255,255,0.12);
}

.dataset-grid span {
  color: var(--gold);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.dataset-grid strong {
  max-width: 18ch;
  align-self: center;
  font: 800 clamp(2rem, 4vw, 3.3rem)/0.9 var(--condensed);
  text-transform: uppercase;
}

.dataset-grid i {
  justify-self: end;
  align-self: end;
  font-style: normal;
}

.earlier-section {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 4rem;
  align-items: start;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.earlier-section h2 {
  font-size: clamp(2.6rem, 5vw, 4rem);
}

.earlier-list {
  border-top: 1px solid var(--line);
}

.earlier-list > a,
.earlier-list > div {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 1rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.earlier-list span {
  grid-column: 1 / -1;
  color: var(--teal);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.earlier-list strong {
  color: var(--heading);
  font: 800 1.35rem/1 var(--condensed);
  text-transform: uppercase;
}

.earlier-list i {
  font-style: normal;
}

.earlier-list p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.63rem;
}

.earlier-list > a:hover strong {
  color: var(--teal);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2.5rem max(1.25rem, calc((100vw - 1160px) / 2));
  color: var(--on-dark-muted);
  background: var(--hero-c);
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  color: var(--on-dark);
  font: 800 1rem/1 var(--condensed);
  text-transform: uppercase;
}

.site-footer span,
.site-footer p {
  margin: 0.3rem 0 0;
  font-size: 0.6rem;
}

.fan-note {
  text-align: right;
}

@media (max-width: 1080px) {
  .site-nav {
    display: none;
  }

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

@media (max-width: 900px) {
  .identity-card {
    grid-template-columns: 8rem 1fr;
    max-width: 560px;
  }

  .profile-links {
    grid-column: 1 / -1;
    grid-template-columns: repeat(5, 1fr);
    padding: 0.7rem 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .paper-row {
    grid-template-columns: 5rem minmax(0, 1fr);
  }

  .paper-meta {
    grid-column: 2;
    flex-direction: row;
    justify-content: space-between;
    padding: 1rem 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .earlier-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 660px) {
  .site-header {
    grid-template-columns: 1fr auto;
    width: min(100% - 1.5rem, 1320px);
  }

  .theme-picker label {
    display: none;
  }

  .theme-picker select {
    min-width: 6.5rem;
  }

  .disclaimer-banner {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .hero-inner,
  .papers-section,
  .wip-section,
  .discussions-section,
  .earlier-section {
    width: min(100% - 1.5rem, 1160px);
  }

  .hero-inner {
    min-height: auto;
    padding: 2.8rem 0;
  }

  .identity-card {
    grid-template-columns: 6.2rem 1fr;
    border-width: 5px;
    transform: none;
  }

  .identity-copy h1 {
    font-size: 2rem;
  }

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

  .papers-section,
  .publications-section,
  .wip-section,
  .discussions-section,
  .datasets-section {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .section-heading > p {
    justify-self: start;
  }

  .paper-row {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding: 1.5rem 0.8rem;
  }

  .paper-index {
    flex-direction: row;
    align-items: center;
  }

  .mini-network {
    width: 3.5rem;
  }

  .paper-meta {
    grid-column: auto;
    flex-direction: column;
    gap: 0.8rem;
  }

  .paper-main h3 {
    font-size: 2rem;
  }

  .publication-heading {
    grid-template-columns: 1fr;
  }

  .prize-counter {
    margin-top: 0.5rem;
  }

  .publication-grid,
  .wip-list,
  .dataset-grid {
    grid-template-columns: 1fr;
  }

  .publication-card {
    min-height: 23rem;
  }

  .discussion-list article {
    grid-template-columns: 4.5rem 1fr;
    gap: 1rem;
  }

  .round-link {
    grid-column: 2;
  }

  .dataset-grid a {
    min-height: 12rem;
  }

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

  .fan-note {
    text-align: left;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
  }
}
