:root {
  --bg: #edf2f8;
  --bg-strong: #e4ebf4;
  --surface: rgba(255, 255, 255, 0.42);
  --surface-strong: rgba(255, 255, 255, 0.68);
  --line: rgba(34, 43, 58, 0.1);
  --line-strong: rgba(34, 43, 58, 0.16);
  --text: #111417;
  --muted: #58616c;
  --mono: "IBM Plex Mono", monospace;
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 18px 48px rgba(58, 78, 104, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --content-width: 1180px;
  --paper-stage-gutter: 0px;
  --paper-marquee-edge: 0px;
  --paper-card-width: 309px;
  --paper-card-height: 318px;
  --paper-card-padding-y: 13px;
  --paper-card-padding-x: 15px;
  --paper-card-body-gap: 15px;
  --paper-card-title-large-size: 36px;
  --paper-card-title-compact-size: 24px;
  --paper-card-subtitle-size: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.7), transparent 34%),
    radial-gradient(circle at top right, rgba(77, 136, 238, 0.08), transparent 28%),
    linear-gradient(180deg, #edf2f8 0%, #e9eff7 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.14), transparent 70%);
}

body.homepage {
  background: #eef5fa;
}

body.homepage::before {
  display: none;
}

a {
  color: inherit;
  text-decoration: none;
}

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

p,
li {
  line-height: 1.65;
}

.paper-stage {
  position: relative;
  width: min(100%, 1440px);
  height: 1660px;
  margin: 0 auto;
  background: #eef5fa;
  overflow-x: visible;
  overflow-y: clip;
}

.paper-hero,
.paper-about {
  position: absolute;
  overflow: clip;
}

.paper-hero {
  left: 105px;
  top: 134px;
  width: 790px;
  height: 122px;
  z-index: 1;
}

.paper-name {
  position: absolute;
  top: 5px;
  left: 16px;
  margin: 0;
  font-family: var(--sans);
  font-size: 50px;
  font-weight: 700;
  line-height: 60px;
  letter-spacing: -0.05em;
  color: #000;
}

.paper-tagline {
  position: absolute;
  top: 74px;
  left: 16px;
  width: 734px;
  height: 48px;
  margin: 0;
  font-family: var(--sans);
  font-size: 30px;
  font-weight: 700;
  line-height: 36px;
  letter-spacing: -0.045em;
  color: transparent;
  background-image: conic-gradient(from 266.51deg at 78.17315147577702% 10.026054604549017%, oklab(61.6% -0.051 -0.204) 0%, oklab(68.9% 0.155 0.139) 8.4%);
  -webkit-background-clip: text;
  background-clip: text;
  white-space: pre-wrap;
}

.paper-about {
  --about-reveal-x: 50%;
  --about-reveal-y: 50%;
  --about-reveal-opacity: 0;
  --about-reveal-size: 80px;
  --about-reveal-softness: 10px;
  left: 512px;
  top: 94px;
  width: 734px;
  height: 227px;
}

.paper-about-layer {
  position: absolute;
  inset: 0;
}

.paper-about-layer--blur {
  z-index: 0;
  filter: blur(4px);
  transition: -webkit-mask-image 180ms ease, mask-image 180ms ease;
  -webkit-mask-image: radial-gradient(
    circle calc(var(--about-reveal-size) + var(--about-reveal-softness)) at var(--about-reveal-x) var(--about-reveal-y),
    rgba(0, 0, 0, calc(1 - var(--about-reveal-opacity))) 0,
    rgba(0, 0, 0, calc(1 - var(--about-reveal-opacity))) calc(var(--about-reveal-size) - 8px),
    #000 calc(var(--about-reveal-size) + var(--about-reveal-softness))
  );
  mask-image: radial-gradient(
    circle calc(var(--about-reveal-size) + var(--about-reveal-softness)) at var(--about-reveal-x) var(--about-reveal-y),
    rgba(0, 0, 0, calc(1 - var(--about-reveal-opacity))) 0,
    rgba(0, 0, 0, calc(1 - var(--about-reveal-opacity))) calc(var(--about-reveal-size) - 8px),
    #000 calc(var(--about-reveal-size) + var(--about-reveal-softness))
  );
}

.paper-about-layer--reveal {
  z-index: 2;
  opacity: var(--about-reveal-opacity);
  pointer-events: none;
  transition: opacity 180ms ease;
  -webkit-mask-image: radial-gradient(
    circle calc(var(--about-reveal-size) + var(--about-reveal-softness)) at var(--about-reveal-x) var(--about-reveal-y),
    #000 0,
    #000 calc(var(--about-reveal-size) - 8px),
    transparent calc(var(--about-reveal-size) + var(--about-reveal-softness))
  );
  mask-image: radial-gradient(
    circle calc(var(--about-reveal-size) + var(--about-reveal-softness)) at var(--about-reveal-x) var(--about-reveal-y),
    #000 0,
    #000 calc(var(--about-reveal-size) - 8px),
    transparent calc(var(--about-reveal-size) + var(--about-reveal-softness))
  );
}

.paper-about-title {
  position: absolute;
  top: 10px;
  left: 19px;
  margin: 0;
  font-family: var(--sans);
  font-size: 30px;
  font-weight: 700;
  line-height: 36px;
  letter-spacing: -0.04em;
}

.paper-about-copy {
  position: absolute;
  top: 52px;
  left: 19px;
  width: 684px;
  height: 131px;
  margin: 0;
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 400;
  line-height: 28px;
  color: #000;
  white-space: pre-wrap;
}

.paper-projects {
  position: absolute;
  left: 0;
  top: 396px;
  width: 100%;
}

.paper-projects--classes {
  top: 860px;
}

.paper-projects-header {
  width: min(100%, 980px);
  padding: 0 120px;
}

.paper-project-card-meta,
.paper-project-card-cta {
  margin: 0;
  font-family: var(--mono);
  text-transform: uppercase;
}

.paper-projects-title {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
}

.paper-projects-marquee {
  --projects-gap: 14px;
  position: relative;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 20px;
  padding: 20px 0 44px;
  touch-action: pan-y pinch-zoom;
}

.paper-projects-marquee--native {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-snap-type: none;
  scroll-padding-inline: var(--paper-marquee-edge);
  scrollbar-width: none;
  touch-action: pan-x pan-y pinch-zoom;
}

.paper-projects-marquee--native.is-user-controlled {
  scroll-snap-type: x proximity;
}

.paper-projects-marquee--native::-webkit-scrollbar {
  display: none;
}

.paper-projects-marquee-track {
  display: flex;
  width: max-content;
  gap: var(--projects-gap);
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.paper-projects-marquee--native .paper-projects-marquee-track {
  will-change: auto;
  transform: none !important;
}

.paper-projects-marquee-group {
  display: flex;
  flex-shrink: 0;
  gap: var(--projects-gap);
}

.paper-project-card {
  position: relative;
  flex: 0 0 auto;
  width: var(--paper-card-width);
  height: var(--paper-card-height);
  transition: transform 180ms ease;
  scroll-snap-align: start;
}

.paper-project-card--blue {
  --project-card-bg: #0081FFCC;
}

.paper-project-card--orange {
  --project-card-bg: #FF6100CC;
}

.paper-project-card:hover,
.paper-project-card:focus-within {
  z-index: 3;
  transform: scale(1.045);
}

.paper-project-card-link {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  padding: var(--paper-card-padding-y) var(--paper-card-padding-x);
  background: var(--project-card-bg);
  color: #000;
  box-shadow: 0 12px 28px rgba(52, 76, 107, 0.1);
  transition: transform 180ms ease;
}

.paper-project-card-link--with-logo {
  gap: 0;
}

.paper-project-card-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(52px, 10vw, 86px);
  height: clamp(52px, 10vw, 86px);
  margin-top: auto;
  align-self: flex-start;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.26);
  overflow: hidden;
}

.paper-project-card-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.paper-project-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: var(--paper-card-body-gap);
  min-height: 0;
}

.paper-project-card-title {
  margin: 0;
  max-width: 100%;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.06em;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.paper-project-card-title--large {
  font-size: var(--paper-card-title-large-size);
  line-height: 1.22;
}

.paper-project-card-title--compact {
  font-size: var(--paper-card-title-compact-size);
  line-height: 1.25;
}

.paper-project-card-subtitle {
  margin: 0;
  max-width: 100%;
  font-size: var(--paper-card-subtitle-size);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.paper-project-card-footer {
  display: none;
}

.paper-project-card-meta,
.paper-project-card-cta {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
}

@media (any-pointer: fine) {
  .paper-projects-marquee {
    cursor: grab;
  }

  .paper-projects-marquee.is-user-dragging {
    cursor: grabbing;
    user-select: none;
  }
}

.site-shell {
  position: relative;
  padding: 28px 20px 40px;
}

.frame {
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

.page-header,
.page-footer {
  position: relative;
  z-index: 1;
}

.frame-header,
.frame-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.frame-header {
  padding: 10px 0 24px;
}

.frame-footer {
  padding-top: 26px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.82rem;
}

.wordmark {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-nav a,
.chip-link,
.inline-link {
  border: 1px solid transparent;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.page-nav a {
  padding: 10px 12px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.page-nav a:hover,
.page-nav a:focus-visible,
.chip-link:hover,
.chip-link:focus-visible,
.inline-link:hover,
.inline-link:focus-visible {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.45);
}

.page-main,
.detail-main {
  position: relative;
  z-index: 1;
}

.page-main {
  padding: 38px 0 20px;
}

.hero-block,
.content-block,
.detail-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-block {
  border-radius: 36px;
  padding: clamp(42px, 7vw, 86px);
  min-height: 320px;
}

.display-title {
  margin: 0;
  font-size: clamp(3rem, 9vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
  font-weight: 800;
}

.display-line {
  margin: 18px 0 0;
  max-width: 734px;
  font-size: clamp(1.5rem, 4vw, 3rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.05em;
  background: linear-gradient(90deg, #3a84f3 0%, #2d84eb 35%, #ea7b12 62%, #f0a41b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.content-block {
  margin-top: 26px;
  border-radius: 32px;
  padding: clamp(26px, 4vw, 40px);
}

.intro-block {
  display: grid;
  grid-template-columns: 128px minmax(0, 720px);
  gap: 22px;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 26px;
}

.eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-title {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.45rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.section-copy,
.intro-copy,
.lede,
.meta-copy,
.empty-state {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 1.02rem;
}

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

.item-card,
.detail-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.item-card::after,
.detail-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 45%);
  pointer-events: none;
}

.item-card {
  min-height: 240px;
  display: flex;
}

.card-link {
  width: 100%;
  display: grid;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: inherit;
  background: var(--surface-strong);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.card-link:hover,
.card-link:focus-visible {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.82);
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.card-kicker {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.card-title {
  margin: 8px 0 0;
  font-size: 1.3rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.arrow-mark {
  font-size: 1.4rem;
  line-height: 1;
  color: #3a84f3;
}

.card-body {
  display: grid;
  gap: 14px;
}

.card-summary {
  margin: 0;
  color: var(--muted);
}

.tag-row,
.detail-meta,
.resource-links,
.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag,
.meta-pill,
.chip-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.52);
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--muted);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.card-stat {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--muted);
}

.chip-link {
  color: var(--text);
}

.contact-list a {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.52);
  font-family: var(--mono);
  font-size: 0.82rem;
}

.detail-shell {
  min-height: 100vh;
}

.detail-main {
  padding: 38px 0 20px;
}

.detail-card {
  padding: clamp(28px, 4vw, 44px);
}

.detail-stack {
  display: grid;
  gap: 28px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.detail-header {
  display: grid;
  gap: 16px;
}

.detail-title {
  margin: 0;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.56);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.prose {
  display: grid;
  gap: 18px;
}

.prose h2,
.prose h3 {
  margin: 8px 0 0;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.prose h2 {
  font-size: 1.55rem;
}

.prose h3 {
  font-size: 1.2rem;
}

.prose p,
.prose ul,
.prose pre {
  margin: 0;
}

.prose ul {
  padding-left: 18px;
}

.prose code {
  font-family: var(--mono);
  font-size: 0.9em;
}

.prose pre {
  overflow: auto;
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.detail-section {
  display: grid;
  gap: 14px;
}

.detail-section-title {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.resource-list,
.download-list {
  display: grid;
  gap: 12px;
}

.resource-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.resource-label {
  color: var(--text);
}

.resource-note {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.download-item {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.download-meta {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--muted);
}

.download-title {
  margin: 0;
  font-size: 1rem;
}

.download-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.archived-note,
.footer-note {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
}

:focus-visible {
  outline: 2px solid rgba(58, 132, 243, 0.75);
  outline-offset: 3px;
}

@media (max-width: 920px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .intro-block {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-shell {
    padding: 16px 14px 28px;
  }

  .frame-header,
  .frame-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-nav {
    gap: 8px 6px;
  }

  .hero-block,
  .content-block,
  .detail-card {
    border-radius: 24px;
  }

  .hero-block {
    min-height: unset;
    padding: 30px 24px 34px;
  }

  .display-line {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .resource-item {
    align-items: flex-start;
  }
}

@media (max-width: 900px) {
  html,
  body.homepage,
  body.homepage .paper-stage,
  body.homepage .paper-projects,
  body.homepage .paper-projects-marquee {
    background: #fff;
  }

  body.homepage .paper-project-card-link {
    box-shadow: none;
  }

  .paper-stage {
    --paper-stage-gutter: 28px;
    --paper-marquee-edge: 28px;
    --paper-card-width: 272px;
    --paper-card-height: 282px;
    --paper-card-padding-y: 12px;
    --paper-card-padding-x: 13px;
    --paper-card-body-gap: 13px;
    --paper-card-title-large-size: 32px;
    --paper-card-title-compact-size: 22px;
    --paper-card-subtitle-size: 17px;
    height: auto;
    min-height: auto;
    padding: 56px var(--paper-stage-gutter) 96px;
  }

  .paper-hero,
  .paper-about {
    position: static;
    width: auto;
  }

  .paper-hero {
    margin-bottom: 44px;
    height: auto;
  }

  .paper-name {
    position: static;
    margin-bottom: 12px;
    font-size: clamp(42px, 11vw, 50px);
    line-height: 0.98;
  }

  .paper-tagline {
    position: static;
    width: auto;
    height: auto;
    font-size: clamp(28px, 7vw, 30px);
    line-height: 1.14;
  }

  .paper-about {
    display: grid;
    height: auto;
  }

  .paper-projects {
    position: static;
    width: calc(100% + (var(--paper-stage-gutter) * 2));
    margin: 56px calc(var(--paper-stage-gutter) * -1) 0;
  }

  .paper-projects--classes {
    margin-top: 10px;
  }

  .paper-projects-header {
    width: auto;
    padding: 0 var(--paper-stage-gutter);
  }

  .paper-projects-title {
    font-size: 32px;
  }

  .paper-projects-marquee {
    width: 100%;
    margin-left: 0;
    margin-top: 30px;
    padding: 18px var(--paper-marquee-edge) 26px;
  }

  .paper-about-layer {
    position: static;
    grid-area: 1 / 1;
  }

  .paper-about-layer--blur {
    filter: blur(4px);
  }

  .paper-about-title,
  .paper-about-copy {
    position: static;
    width: auto;
    height: auto;
    margin-left: 0;
  }

  .paper-about-title {
    margin-bottom: 12px;
  }

  .paper-about-copy {
    font-size: clamp(20px, 5vw, 22px);
    line-height: 1.3;
  }
}

@media (max-width: 640px) {
  .paper-stage {
    --paper-stage-gutter: 18px;
    --paper-marquee-edge: 12px;
    --paper-card-width: clamp(132px, 35vw, 154px);
    --paper-card-height: clamp(148px, 41vw, 176px);
    --paper-card-padding-y: 9px;
    --paper-card-padding-x: 9px;
    --paper-card-body-gap: 7px;
    --paper-card-title-large-size: 20px;
    --paper-card-title-compact-size: 15px;
    --paper-card-subtitle-size: 11px;
    padding-top: 42px;
    padding-bottom: 72px;
  }

  .paper-hero {
    margin-bottom: 30px;
  }

  .paper-name {
    margin-bottom: 10px;
    font-size: clamp(34px, 10vw, 42px);
  }

  .paper-tagline {
    font-size: clamp(21px, 6.5vw, 26px);
    line-height: 1.12;
  }

  .paper-about-title {
    margin-bottom: 10px;
    font-size: 25px;
    line-height: 1.05;
  }

  .paper-about-copy {
    font-size: clamp(17px, 4.5vw, 19px);
    line-height: 1.34;
  }

  .paper-projects {
    margin-top: 40px;
  }

  .paper-projects-title {
    font-size: 27px;
  }

  .paper-projects-marquee {
    --projects-gap: 10px;
    margin-top: 18px;
    padding-top: 12px;
    padding-bottom: 18px;
  }

  .paper-project-card-title {
    -webkit-line-clamp: 5;
  }
}

@media (any-pointer: coarse) {
  html,
  body.homepage,
  body.homepage .paper-stage,
  body.homepage .paper-projects,
  body.homepage .paper-projects-marquee {
    background: #fff;
  }

  body.homepage .paper-project-card-link {
    box-shadow: none;
  }

  .paper-stage {
    --paper-stage-gutter: clamp(20px, 6vw, 64px);
    --paper-marquee-edge: var(--paper-stage-gutter);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 36px;
    height: auto;
    min-height: auto;
    padding: 72px clamp(20px, 6vw, 64px) 96px;
  }

  .paper-hero,
  .paper-about {
    position: static;
    width: auto;
  }

  .paper-hero {
    height: auto;
    margin-bottom: 0;
  }

  .paper-name {
    position: static;
    margin-bottom: 12px;
  }

  .paper-tagline {
    position: static;
    width: auto;
    height: auto;
  }

  .paper-about {
    display: grid;
    width: min(100%, 734px);
    height: auto;
  }

  .paper-projects {
    position: static;
    width: calc(100% + (var(--paper-stage-gutter) * 2));
    margin: 28px calc(var(--paper-stage-gutter) * -1) 0;
  }

  .paper-projects--classes {
    margin-top: 0;
  }

  .paper-projects-header {
    padding: 0 var(--paper-stage-gutter);
  }

  .paper-projects-title {
    font-size: 28px;
  }

  .paper-project-card:hover,
  .paper-project-card:focus-within {
    transform: none;
  }

  .paper-project-card {
    width: var(--paper-card-width);
    height: var(--paper-card-height);
  }

  .paper-about-layer {
    position: static;
    grid-area: 1 / 1;
  }

  .paper-about-layer--blur {
    filter: blur(4px);
    opacity: 1;
    -webkit-mask-image: none;
    mask-image: none;
    transition: opacity 260ms ease, filter 260ms ease;
  }

  .paper-about-layer--reveal {
    display: block;
    opacity: 0;
    -webkit-mask-image: none;
    mask-image: none;
    transition: opacity 260ms ease;
  }

  .paper-about.is-touch-revealed .paper-about-layer--blur {
    opacity: 0;
    filter: blur(0);
  }

  .paper-about.is-touch-revealed .paper-about-layer--reveal {
    opacity: 1;
  }

  .paper-about-title,
  .paper-about-copy {
    position: static;
    width: auto;
    height: auto;
    margin-left: 0;
  }

  .paper-about-title {
    margin-bottom: 12px;
  }
}

body.detail-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.82), transparent 28%),
    radial-gradient(circle at top right, rgba(102, 168, 236, 0.2), transparent 24%),
    linear-gradient(180deg, #eef5fa 0%, #edf4fa 100%);
}

body.detail-page::before {
  display: none;
}

.detail-page .site-shell {
  padding: 22px 20px 56px;
}

.detail-page .frame-header {
  padding: 4px 0 22px;
  align-items: center;
}

.detail-page .wordmark {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
}

.detail-page .page-nav {
  gap: 8px;
}

.detail-page .page-nav a {
  border: 1px solid rgba(17, 20, 23, 0.08);
  background: rgba(255, 255, 255, 0.5);
  color: var(--text);
}

.detail-page .page-nav a:hover,
.detail-page .page-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.72);
}

.detail-page .detail-main {
  padding: 0;
}

.paper-detail-layout {
  display: grid;
  gap: 24px;
}

.paper-detail-hero,
.paper-panel {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 18px 42px rgba(57, 82, 111, 0.1);
}

.paper-detail-hero::before,
.paper-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.paper-detail-hero::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 78%);
}

.paper-panel::after {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.34), transparent 42%);
}

.paper-detail-hero {
  display: grid;
  gap: 16px;
  padding: clamp(30px, 5vw, 46px);
  min-height: 280px;
}

.paper-detail-hero--blue {
  background: linear-gradient(135deg, #6eaeea 0%, #8bc3f4 100%);
}

.paper-detail-hero--orange {
  background: linear-gradient(135deg, #ffb37d 0%, #ffd0a8 100%);
}

.paper-detail-hero::after {
  content: "";
  position: absolute;
  right: clamp(18px, 4vw, 34px);
  bottom: clamp(16px, 3vw, 28px);
  width: clamp(92px, 14vw, 152px);
  aspect-ratio: 1;
  border-radius: 28px;
  border: 1px solid rgba(17, 20, 23, 0.1);
  background: rgba(255, 255, 255, 0.22);
  transform: rotate(9deg);
  pointer-events: none;
}

.paper-back-link {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  min-height: 40px;
  padding: 10px 15px;
  border-radius: 999px;
  border: 1px solid rgba(17, 20, 23, 0.12);
  background: rgba(255, 255, 255, 0.58);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  transition: transform 160ms ease, background-color 160ms ease;
}

.paper-back-link:hover,
.paper-back-link:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.76);
}

.paper-detail-kicker,
.paper-section-kicker {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.paper-detail-title,
.paper-section-title {
  margin: 0;
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.paper-detail-title {
  max-width: 840px;
  font-size: clamp(2.6rem, 7vw, 5.15rem);
  text-wrap: balance;
}

.paper-detail-lead {
  margin: 0;
  max-width: 760px;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.48;
}

.paper-detail-note,
.paper-support-copy {
  margin: 0;
  max-width: 760px;
  color: rgba(17, 20, 23, 0.78);
  line-height: 1.65;
}

.paper-support-copy--mono {
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.75;
}

.paper-chip-row,
.paper-hero-actions,
.paper-action-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.paper-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(17, 20, 23, 0.1);
  background: rgba(255, 255, 255, 0.56);
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.03em;
}

.paper-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.78fr);
  gap: 22px;
  align-items: start;
}

.paper-detail-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.paper-detail-grid--class {
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.82fr);
}

.paper-detail-main-stack,
.paper-detail-sidebar {
  display: grid;
  gap: 22px;
  align-content: start;
}

.paper-panel {
  padding: clamp(24px, 3vw, 32px);
}

.paper-panel--white {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(17, 20, 23, 0.08);
}

.paper-panel--blue {
  background: rgba(214, 235, 255, 0.92);
  border: 1px solid rgba(72, 124, 176, 0.12);
}

.paper-panel--orange {
  background: rgba(255, 229, 209, 0.94);
  border: 1px solid rgba(183, 116, 67, 0.14);
}

.paper-panel--quiet {
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(17, 20, 23, 0.08);
}

.paper-section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.paper-section-title {
  font-size: clamp(1.65rem, 3vw, 2.4rem);
}

.paper-prose {
  display: grid;
  gap: 18px;
}

.paper-prose h2,
.paper-prose h3 {
  margin: 8px 0 0;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.paper-prose h2 {
  font-size: 1.5rem;
}

.paper-prose h3 {
  font-size: 1.18rem;
}

.paper-prose p,
.paper-prose ul,
.paper-prose pre {
  margin: 0;
}

.paper-prose ul {
  padding-left: 22px;
}

.paper-prose code {
  font-family: var(--mono);
  font-size: 0.92em;
}

.paper-prose pre {
  overflow: auto;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(17, 20, 23, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.paper-inline-link {
  color: #0e569f;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.paper-inline-link:hover,
.paper-inline-link:focus-visible {
  color: #083c74;
}

.paper-inline-link--inset,
.paper-inline-link--table {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid rgba(17, 20, 23, 0.08);
  border-bottom: 1px solid rgba(17, 20, 23, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-family: var(--mono);
  font-size: 0.74rem;
}

.paper-action-stack {
  display: grid;
}

.paper-action-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(17, 20, 23, 0.09);
  background: rgba(255, 255, 255, 0.62);
  font-family: var(--mono);
  font-size: 0.84rem;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.paper-action-link:hover,
.paper-action-link:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(17, 20, 23, 0.14);
}

.paper-action-link--compact {
  min-height: 40px;
  padding: 10px 13px;
  white-space: nowrap;
}

.paper-action-arrow {
  font-size: 1rem;
  line-height: 1;
}

.paper-resource-list {
  display: grid;
  gap: 14px;
}

.paper-resource-card {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(17, 20, 23, 0.08);
  background: rgba(255, 255, 255, 0.54);
}

.paper-resource-copy {
  display: grid;
  gap: 8px;
}

.paper-resource-title,
.paper-resource-note,
.paper-detail-footer-link {
  margin: 0;
}

.paper-resource-title {
  line-height: 1.6;
}

.paper-resource-note,
.paper-detail-footer-link {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.76rem;
}

.paper-notes-table-wrap {
  overflow-x: auto;
  border-radius: 22px;
  border: 1px solid rgba(17, 20, 23, 0.08);
  background: rgba(255, 255, 255, 0.58);
}

.paper-notes-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.paper-notes-table th,
.paper-notes-table td {
  padding: 16px 18px;
  text-align: left;
  vertical-align: top;
}

.paper-notes-table thead th {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(17, 20, 23, 0.08);
}

.paper-notes-table tbody td {
  border-top: 1px solid rgba(17, 20, 23, 0.08);
}

.paper-notes-table tbody tr:first-child td {
  border-top: 0;
}

.paper-notes-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.24);
}

.paper-table-empty {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.paper-detail-footer-link {
  padding: 0 4px;
}

@media (max-width: 980px) {
  .paper-detail-grid,
  .paper-detail-grid--class {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .detail-page .site-shell {
    padding: 14px 14px 36px;
  }

  .detail-page .frame-header,
  .detail-page .frame-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .paper-detail-hero,
  .paper-panel {
    border-radius: 24px;
  }

  .paper-detail-hero {
    min-height: unset;
    padding: 24px 22px 26px;
  }

  .paper-detail-hero::after {
    width: 84px;
    border-radius: 20px;
  }

  .paper-action-link {
    width: 100%;
  }

  .paper-resource-card {
    padding: 16px;
  }
}

.detail-page .page-header,
.detail-page .page-footer {
  display: none;
}

.detail-page .site-shell {
  padding: 0;
}

.detail-page .detail-main {
  width: 100%;
  max-width: none;
}

.paper-entry {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: clamp(42px, 6vw, 88px) clamp(22px, 7vw, 86px) clamp(72px, 8vw, 124px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  grid-template-areas:
    "brand brand"
    "head side"
    "body side"
    "foot foot";
  gap: 34px 44px;
}

.paper-entry--solo {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "brand"
    "head"
    "body"
    "foot";
}

.paper-entry--class {
  grid-template-areas:
    "brand brand"
    "head side"
    "links side2"
    "notes notes"
    "foot foot";
}

.paper-entry-brand {
  grid-area: brand;
  justify-self: start;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.05em;
}

.paper-entry-head {
  grid-area: head;
  display: grid;
  gap: 12px;
  align-content: start;
  max-width: 840px;
}

.paper-entry-back,
.paper-entry-textlink {
  justify-self: start;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: #0f4f9b;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.paper-entry-kind,
.paper-entry-card-label,
.paper-entry-table th {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.paper-entry-title {
  margin: 0;
  max-width: 980px;
  font-size: clamp(3rem, 7vw, 6.4rem);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.07em;
  text-wrap: balance;
}

.paper-entry-summary {
  margin: 0;
  max-width: 760px;
  font-size: clamp(1.2rem, 2.3vw, 1.8rem);
  line-height: 1.24;
  letter-spacing: -0.04em;
}

.paper-entry-meta,
.paper-entry-archive,
.paper-entry-footnote,
.paper-entry-card-meta,
.paper-entry-card-copy,
.paper-entry-resource-note {
  margin: 0;
  color: var(--muted);
}

.paper-entry-meta,
.paper-entry-footnote,
.paper-entry-card-meta {
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.7;
}

.paper-entry-archive,
.paper-entry-card-copy,
.paper-entry-resource-note {
  line-height: 1.65;
}

.paper-entry-card--blue .paper-entry-card-meta,
.paper-entry-card--blue .paper-entry-card-copy,
.paper-entry-card--orange .paper-entry-card-meta,
.paper-entry-card--orange .paper-entry-card-copy {
  color: rgba(17, 20, 23, 0.72);
}

.paper-entry-side,
.paper-entry-side-secondary,
.paper-entry-section--links,
.paper-entry-section--body,
.paper-entry-section--notes,
.paper-entry-foot {
  align-self: start;
}

.paper-entry-side {
  grid-area: side;
}

.paper-entry-side-secondary {
  grid-area: side2;
}

.paper-entry-section--links {
  grid-area: links;
}

.paper-entry-section--body {
  grid-area: body;
}

.paper-entry-section--notes {
  grid-area: notes;
}

.paper-entry-foot {
  grid-area: foot;
  display: grid;
  gap: 16px;
  align-content: start;
}

.paper-entry-tail {
  margin: 0;
}

.paper-entry-card,
.paper-entry-section {
  box-shadow: 0 12px 28px rgba(52, 76, 107, 0.1);
}

.paper-entry-card {
  padding: 20px 22px 22px;
}

.paper-entry-card--blue {
  background: #66a8ec;
}

.paper-entry-card--orange {
  background: #ffa166;
}

.paper-entry-section {
  padding: 24px 26px 28px;
  background: rgba(255, 255, 255, 0.78);
}

.paper-entry-card-title,
.paper-entry-section-title {
  margin: 8px 0 0;
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.paper-entry-card-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.paper-entry-section-title {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
}

.paper-entry-card-tags--spaced,
.paper-entry-linklist--topgap,
.paper-entry-card-copy {
  margin-top: 20px;
}

.paper-entry-linklist,
.paper-entry-resource-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.paper-entry-linkrow {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(17, 20, 23, 0.14);
  font-family: var(--mono);
  font-size: 0.82rem;
}

.paper-entry-linkrow--inline {
  padding-bottom: 0;
  border-bottom: 0;
}

.paper-entry-resource-list {
  margin-top: 0;
}

.paper-entry-resource {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 18px;
  padding: 14px 0;
  border-top: 1px solid rgba(17, 20, 23, 0.14);
}

.paper-entry-resource:first-child {
  border-top: 0;
  padding-top: 0;
}

.paper-entry-resource-title {
  margin: 0;
  line-height: 1.6;
}

.paper-entry-section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.paper-entry-prose {
  display: grid;
  gap: 18px;
  max-width: 820px;
}

.paper-entry-prose h2,
.paper-entry-prose h3 {
  margin: 8px 0 0;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.paper-entry-prose h2 {
  font-size: 1.4rem;
}

.paper-entry-prose h3 {
  font-size: 1.12rem;
}

.paper-entry-prose p,
.paper-entry-prose ul,
.paper-entry-prose pre {
  margin: 0;
}

.paper-entry-prose ul {
  padding-left: 22px;
}

.paper-entry-prose code,
.paper-entry-table td a,
.paper-entry-textlink {
  font-family: var(--mono);
}

.paper-entry-prose pre {
  overflow-x: auto;
  padding: 16px;
  background: rgba(255, 255, 255, 0.7);
}

.paper-entry-table-wrap {
  overflow-x: auto;
}

.paper-entry-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.paper-entry-table th,
.paper-entry-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}

.paper-entry-table thead th {
  border-bottom: 1px solid rgba(17, 20, 23, 0.18);
  font-weight: 500;
}

.paper-entry-table tbody td {
  border-top: 1px solid rgba(17, 20, 23, 0.1);
}

.paper-entry-table tbody tr:nth-child(even) {
  background: rgba(102, 168, 236, 0.08);
}

.paper-entry-table-empty {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
}

@media (max-width: 1024px) {
  .paper-entry,
  .paper-entry--class {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "brand"
      "head"
      "side"
      "links"
      "side2"
      "body"
      "notes"
      "foot";
  }
}

@media (max-width: 720px) {
  .paper-entry {
    padding: 28px 18px 64px;
    gap: 24px;
  }

  .paper-entry-title {
    font-size: clamp(2.4rem, 15vw, 4rem);
  }

  .paper-entry-summary {
    font-size: 1.05rem;
    line-height: 1.4;
  }

  .paper-entry-card,
  .paper-entry-section {
    padding: 18px;
  }

  .paper-entry-table {
    min-width: 540px;
  }

  .paper-entry-table th,
  .paper-entry-table td {
    padding: 10px 12px;
  }
}

.paper-doc {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: clamp(32px, 6vw, 68px) clamp(22px, 8vw, 96px) clamp(72px, 9vw, 132px);
}

.paper-doc-brand {
  display: inline-block;
  margin-bottom: 18px;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.05em;
}

.paper-doc-hero {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.paper-doc-kicker,
.paper-doc-table th {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #626d79;
}

.paper-doc-title {
  margin: 24px 0 0;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.07em;
  text-wrap: balance;
}

.paper-doc-meta {
  margin: 30px 0 0;
  font-family: var(--mono);
  font-size: clamp(0.92rem, 1.4vw, 1.05rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #626d79;
}

.paper-doc-summary,
.paper-doc-copy,
.paper-doc-prose {
  color: #20262e;
}

.paper-doc-summary {
  max-width: 1240px;
  margin: 64px auto 0;
  font-size: clamp(1.2rem, 2.25vw, 1.8rem);
  line-height: 1.55;
  letter-spacing: -0.03em;
  text-align: left;
}

.paper-doc-summary--center {
  max-width: 760px;
  text-align: center;
}

.paper-doc-note {
  max-width: 900px;
  margin: 22px auto 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.7;
}

.paper-doc-flow {
  max-width: 1280px;
  margin: 82px auto 0;
  display: grid;
  gap: 78px;
}

.paper-doc-section {
  display: grid;
  gap: 26px;
}

.paper-doc-section-head {
  display: grid;
  gap: 14px;
}

.paper-doc-section-title {
  margin: 0;
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
}

.paper-doc-section-rule {
  width: 124px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2d75ea 0%, #4b86ec 100%);
}

.paper-doc-link {
  color: #2d75ea;
  text-decoration: none;
}

.paper-doc-link:hover,
.paper-doc-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.paper-doc-list {
  display: grid;
  gap: 20px;
  margin: 0;
  padding-left: 34px;
  font-size: clamp(1.18rem, 2vw, 1.52rem);
  line-height: 1.55;
}

.paper-doc-list-note {
  color: var(--muted);
  font-size: 0.92em;
}

.paper-doc-copy {
  max-width: 1220px;
  margin: 0;
  font-size: clamp(1.18rem, 2vw, 1.52rem);
  line-height: 1.7;
  letter-spacing: -0.02em;
}

.paper-doc-prose {
  max-width: 1220px;
  display: grid;
  gap: 20px;
  font-size: clamp(1.16rem, 1.9vw, 1.4rem);
  line-height: 1.75;
}

.paper-doc-prose h2,
.paper-doc-prose h3 {
  margin: 8px 0 0;
  color: #1d232a;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.paper-doc-prose h2 {
  font-size: 1.8rem;
}

.paper-doc-prose h3 {
  font-size: 1.35rem;
}

.paper-doc-prose p,
.paper-doc-prose ul,
.paper-doc-prose pre {
  margin: 0;
}

.paper-doc-prose ul {
  padding-left: 28px;
}

.paper-doc-prose code {
  font-family: var(--mono);
  font-size: 0.9em;
}

.paper-doc-prose pre {
  overflow-x: auto;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(69, 95, 128, 0.12);
  background: rgba(255, 255, 255, 0.75);
}

.paper-doc-table-wrap {
  overflow-x: auto;
  border-radius: 20px;
  border: 1px solid rgba(69, 95, 128, 0.16);
  background: rgba(255, 255, 255, 0.72);
}

.paper-doc-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.paper-doc-table th,
.paper-doc-table td {
  padding: 18px 20px;
  text-align: left;
  vertical-align: top;
}

.paper-doc-table thead th {
  font-weight: 500;
  border-bottom: 1px solid rgba(69, 95, 128, 0.16);
}

.paper-doc-table tbody td {
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.5;
  border-top: 1px solid rgba(69, 95, 128, 0.12);
}

.paper-doc-table tbody tr:first-child td {
  border-top: 0;
}

.paper-doc-table-empty {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.82rem;
}

.paper-doc-backline {
  margin: 0;
  font-size: clamp(1.18rem, 1.9vw, 1.45rem);
}

.paper-doc-footer {
  max-width: 1280px;
  margin: 72px auto 0;
  padding-top: 28px;
  border-top: 1px solid rgba(69, 95, 128, 0.14);
}

.paper-doc-footer-note {
  max-width: 780px;
  margin: 0 auto;
  color: #626d79;
  font-size: clamp(0.98rem, 1.35vw, 1.1rem);
  line-height: 1.75;
  text-align: center;
}

@media (max-width: 720px) {
  .paper-doc {
    padding: 24px 18px 56px;
  }

  .paper-doc-brand {
    margin-bottom: 12px;
  }

  .paper-doc-title {
    margin-top: 18px;
    font-size: clamp(2.4rem, 14vw, 4rem);
  }

  .paper-doc-meta {
    margin-top: 20px;
    font-size: 0.76rem;
    line-height: 1.8;
  }

  .paper-doc-summary {
    margin-top: 34px;
    font-size: 1.02rem;
    line-height: 1.6;
  }

  .paper-doc-flow {
    margin-top: 52px;
    gap: 54px;
  }

  .paper-doc-section {
    gap: 20px;
  }

  .paper-doc-section-title {
    font-size: 1.85rem;
  }

  .paper-doc-list,
  .paper-doc-copy,
  .paper-doc-prose {
    font-size: 1rem;
  }

  .paper-doc-table {
    min-width: 620px;
  }

  .paper-doc-table th,
  .paper-doc-table td {
    padding: 12px 14px;
  }

  .paper-doc-footer {
    margin-top: 54px;
    padding-top: 22px;
  }
}
