/* alenadenisova.com
   Layout concept: a white page inside a black frame; thin ink lines with dot terminals run down the left edge,
   page titles sit on a yellow bar, and pentagons, a grey circle and skewed triangles are the only shapes. */
:root {
  --paper: #ffffff;
  --ink: #141414;        /* lines, frame, shapes */
  --text: #262626;       /* running text */
  --muted: #595959;      /* secondary text, 7:1 on paper */
  --stone: #d9d9d9;      /* the grey circle */
  --wash: #f3f3f2;       /* quiet panels */
  --sun: #f9d95b;        /* the yellow bar */
  --on-sun: #1b1b1b;     /* text on yellow, same in both themes */
  --font: "Inter", "Helvetica Neue", Arial, sans-serif;                  /* running text */
  --font-head: "Wix Madefor Text", "Helvetica Neue", Arial, sans-serif; /* headings and labels */
  --frame: 6px;
  --measure: 62ch;
  --step--1: 0.8125rem;                        /* labels, 13px */
  --step-0: 0.9375rem;                         /* body, 15px */
  --step-1: 1.0625rem;                         /* lede and intro, 17px */
  --step-2: clamp(1.75rem, 2.8vw, 2.4rem);     /* section headings */
  --step-3: clamp(2.2rem, 4vw, 3.2rem);
  --step-4: clamp(2.8rem, 7vw, 5.5rem);        /* page titles */
  --space-section: clamp(4rem, 8vw, 7.5rem);  /* gap between sections */
}
/* Light (black on white) is the default; the dark version is used only when chosen with the footer switch.
   It uses its own data-scheme attribute so nothing else (browser, app or host page) can switch it. */
:root[data-scheme="dark"] {
  --paper: #111111; --ink: #ededed; --text: #e8e8e8; --muted: #b5b5b5;
  --stone: #353535; --wash: #1b1b1b; --sun: #f2cf4c; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: -0.003em;
  font-feature-settings: "cv11", "ss01";
}
/* the black frame from the original design */
body::after {
  content: "";
  position: fixed;
  inset: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  border: var(--frame) solid var(--ink);
  pointer-events: none;
  z-index: 40;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.12; text-wrap: balance; font-weight: 500; letter-spacing: -0.015em; margin: 0; font-family: var(--font-head); }
/* headings font for navigation and small labels too, so the serif is kept for reading text */
.nav, .title-mark, .eyebrow, .breadcrumb, .meta, .chip, .btn, .filter-btn, .filter-row, .foot-h, .type-tag,
.lineage .rel, .news time, .result-count, .feat-card .meta, .person dl, .skip, .count { font-family: var(--font-head); }
h2 { font-size: var(--step-2); }
h3 { font-size: 1.2rem; letter-spacing: -0.005em; }
p { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 7px var(--sun); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 60; background: var(--sun); color: var(--on-sun); padding: 0.6rem 1rem; }
.skip:focus { top: 1rem; }

/* ---------- layout shell */
.wrap {
  max-width: 84rem;
  margin: 0 auto;
  padding-left: max(calc(var(--frame) + 16px), env(safe-area-inset-left, 0px));
  padding-right: max(calc(var(--frame) + 16px), env(safe-area-inset-right, 0px));
}
@media (min-width: 48rem) { .wrap { padding-left: max(3rem, env(safe-area-inset-left, 0px)); padding-right: max(3rem, env(safe-area-inset-right, 0px)); } }
@media (min-width: 72rem) { .wrap { padding-left: max(5rem, env(safe-area-inset-left, 0px)); padding-right: max(5rem, env(safe-area-inset-right, 0px)); } }

.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  padding-block: calc(var(--frame) + 1.8rem) 1.5rem;
}
.logo { display: inline-flex; color: var(--ink); width: 3.6rem; }
.logo svg { width: 100%; height: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem 1.25rem; }
.nav a {
  display: block; text-decoration: none; color: var(--text);
  font-size: 0.8125rem; padding: 0 0 0.3rem 1.6rem; border-bottom: 2px solid var(--ink);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.nav a:hover { border-bottom-width: 4px; padding-bottom: calc(0.3rem - 2px); }
.nav a[aria-current="page"] { border-bottom: 5px solid var(--sun); padding-bottom: calc(0.3rem - 3px); }
@media (max-width: 40rem) {
  .nav a { font-size: 0.75rem; padding-left: 0.9rem; }
}

main { display: block; }

/* ---------- signature pieces */
.title-mark { display: inline-block; }
.title-mark .bar {
  display: inline-block; background: var(--sun); color: var(--on-sun);
  text-transform: uppercase; letter-spacing: 0.005em; font-weight: 500;
  padding: 0.12em 0.6em 0.06em 0.55em;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.title-mark::after { content: ""; display: block; width: 6.5rem; height: 2px; background: var(--ink); margin: 0.6rem 0 0 0.9rem; }

.eyebrow { font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.rule {
  height: 12px; margin-block: var(--space-section);
  background:
    radial-gradient(circle at 6px 6px, var(--ink) 5px, transparent 5.5px),
    radial-gradient(circle at calc(100% - 6px) 6px, var(--ink) 5px, transparent 5.5px),
    linear-gradient(var(--ink), var(--ink)) center / calc(100% - 12px) 2px no-repeat;
}

.tri-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.tri-list li { position: relative; padding-left: 1.9rem; max-width: var(--measure); }
.tri-list li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 1rem; height: 1.05rem;
  background: var(--ink); clip-path: polygon(30% 0, 100% 24%, 0 100%);
}

.chip {
  display: inline-block; font-size: var(--step--1); text-decoration: none; color: var(--text);
  border-bottom: 2px solid var(--ink); padding: 0 0.1rem 0.1rem 0.7rem; line-height: 1.5;
}
a.chip:hover { border-bottom-width: 4px; }
.chip.is-primary { border-bottom-color: var(--sun); border-bottom-width: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; }

.student { font-weight: 700; text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 4px; text-underline-offset: 0.15em; }
.me { font-weight: 700; }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer;
  font: inherit; font-size: 1rem; color: var(--text); background: transparent;
  border: 2px solid var(--ink); padding: 0.5rem 1rem; text-decoration: none;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.btn-sun { background: var(--sun); color: var(--on-sun); border-color: var(--sun); }
.btn.btn-sun:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* pentagon used for people and artwork; points match the hero frame */
.pent { clip-path: polygon(43.6% 0, 100% 26.4%, 92% 88.5%, 29.7% 100%, 0 45.6%); }

/* placeholder artwork */
.motif { width: 100%; height: auto; display: block; }
.motif .m-stone { fill: var(--stone); }
.motif .m-frame { fill: none; stroke: var(--ink); stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.motif .m-fill { fill: var(--wash); stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.motif .m-ink { fill: var(--ink); }
.motif .m-sun { fill: var(--sun); }

/* ---------- inner page skeleton with the left rail */
.page { position: relative; padding-block: clamp(2.5rem, 5vw, 4.5rem) var(--space-section); }
.page-head { position: relative; display: grid; gap: 1.75rem; margin-bottom: var(--space-section); }
.page-head h1 { font-size: var(--step-4); }
.page-head .lede { font-size: var(--step-1); color: var(--muted); max-width: 52ch; }
@media (min-width: 64rem) {
  .page { padding-left: 4.5rem; }
  .page::before { content: ""; position: absolute; left: 1.4rem; top: 3.4rem; bottom: 0; border-left: 2px solid var(--ink); }
  .page-head::before { content: ""; position: absolute; left: calc(-4.5rem + 1.4rem - 5px); top: 0.55rem; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); }
}
.section { display: grid; gap: 2rem; margin-top: var(--space-section); align-content: start; }
.section > h2 { display: flex; align-items: baseline; gap: 0.75rem; }
.prose { display: grid; gap: 1rem; max-width: var(--measure); }
.breadcrumb { font-size: var(--step--1); color: var(--muted); }
.breadcrumb a { color: var(--muted); }

/* ---------- home hero */
.hero { display: grid; gap: 3rem; align-items: center; padding-block: 2rem 4rem; }
.hero-art { width: min(100%, 34rem); justify-self: center; }
.hero-art svg { width: 100%; height: auto; display: block; overflow: visible; }
.hero-art .h-line { stroke: var(--ink); stroke-width: 2; fill: none; }
.hero-art .h-frame { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }
.hero-art .h-stone { fill: var(--stone); }
.hero-art .h-ink { fill: var(--ink); }
.hero-text { display: grid; gap: 1.4rem; max-width: 36rem; }
.hero-text h1 { font-size: clamp(2.6rem, 6vw, 4.75rem); line-height: 1.02; }
.hero-text .intro { display: grid; gap: 1rem; font-size: var(--step-1); color: var(--muted); line-height: 1.6; max-width: 46ch; }
.hero-text .intro strong { font-weight: 400; color: var(--text); }
.hero-contact { font-size: var(--step-1); font-weight: 400; color: var(--muted); }
.hero-contact em { color: var(--text); }
.hero-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; font-size: 1.05rem; }
.hero-links a { color: var(--text); }
/* profile links with a pentagon badge (or an official icon file) */
.social { display: inline-flex; align-items: center; gap: 0.5rem; }
.badge {
  flex: none; display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem;
  background: var(--ink); color: var(--paper); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.04em;
  clip-path: polygon(43.6% 0, 100% 26.4%, 92% 88.5%, 29.7% 100%, 0 45.6%); padding-top: 0.12rem;
}
.social:hover .badge { background: var(--sun); color: var(--on-sun); }
.link-icon { display: inline-flex; width: 1.9rem; height: 1.9rem; flex: none; }
.link-icon svg { width: 100%; height: 100%; }
.link-icon .li-disc { fill: var(--stone); transition: fill .15s; }
.link-icon .li-line { stroke: var(--ink); }
.social:hover .li-disc, .social:focus-visible .li-disc { fill: var(--sun); }
.social:hover .li-line, .social:focus-visible .li-line { stroke: var(--on-sun); }
/* every other link to another website gets a small arrow */
a[href^="http"]:not(.social)::after {
  content: ""; display: inline-block; width: 0.62em; height: 0.62em; margin-left: 0.28em; vertical-align: 0.02em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 13L13 3M6 3h7v7' fill='none' stroke='black' stroke-width='2.2'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 13L13 3M6 3h7v7' fill='none' stroke='black' stroke-width='2.2'/></svg>") center / contain no-repeat;
}
@media (min-width: 56rem) {
  .hero { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(3rem, 7vw, 7rem); padding-block: 1rem 3rem; min-height: min(78vh, 52rem); }
  .hero-art { justify-self: start; }
}

.home-grid { display: grid; gap: var(--space-section); }
.hero-highlights { margin-top: 0.5rem; }
.home-themes { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 1rem 1.5rem; }
.home-themes li { display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: 0.9rem; align-items: center; }
@media (min-width: 56rem) { .home-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 4rem; } }

/* news list (home + archive) */
.news { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.15rem; }
.news li { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr); gap: 1rem; }
.news time { font-size: var(--step--1); color: var(--muted); padding-top: 0.15rem; font-variant-numeric: tabular-nums; }
.news-year { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
.news-year h2 { font-size: var(--step-2); }

/* ---------- research overview */
.theme-grid { display: grid; gap: 2.5rem 3rem; }
@media (min-width: 48rem) { .theme-grid.core { grid-template-columns: repeat(2, minmax(0, 1fr)); } .theme-grid.related { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .theme-grid.related { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.theme-card { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.theme-card .motif { width: 7.5rem; }
/* theme illustrations and logo: colours come from the design tokens */
.t-icon { display: block; width: 7.5rem; aspect-ratio: 1; flex: none; }
.t-icon svg { display: block; width: 100%; height: auto; }
.t-icon .f-ink, .logo .f-ink { fill: var(--ink); }
.t-icon .s-ink, .logo .s-ink { stroke: var(--ink); }
.t-icon .f-paper { fill: var(--paper); }
.t-icon .f-stone { fill: var(--stone); }
.t-icon .f-sun { fill: var(--sun); }
.logo .logo-disc { fill: var(--stone); }
.logo .logo-cut { stroke: var(--stone); }
.t-icon.lg { width: 8rem; }
.t-icon.sm { width: 4rem; }
.theme-title { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
li.with-icon { display: grid !important; grid-template-columns: 4rem minmax(0, 1fr); gap: 0.9rem; align-items: start; }
li.with-icon > span { display: grid; gap: 0.2rem; }
.compact li.with-icon { padding-left: 0; }
.compact li.with-icon::before { content: none; }
.theme-card h3 { font-size: 1.2rem; letter-spacing: -0.005em; }
.theme-card h3 a { text-decoration: none; border-bottom: 2px solid var(--ink); padding-bottom: 0.1rem; }
.theme-card h3 a:hover { border-bottom: 4px solid var(--sun); }
.theme-card .body { display: grid; gap: 0.5rem; min-width: 0; }
.theme-card .meta { font-size: var(--step--1); color: var(--muted); }
.theme-grid.related .theme-card { grid-template-columns: minmax(0, 1fr); }
.theme-grid.related .theme-card .motif { display: none; }
.other-line { max-width: var(--measure); }

/* ---------- paper cards (theme pages, publications) */
.papers { display: grid; gap: 2.25rem; }
.paper-card { display: grid; gap: 1.25rem; }
@media (min-width: 44rem) { .paper-card.has-art { grid-template-columns: 11rem minmax(0, 1fr); gap: 2rem; } }
.paper-card .art { width: 11rem; max-width: 100%; }
.paper-card .body { display: grid; gap: 0.6rem; min-width: 0; max-width: var(--measure); }
.paper-card h3 { font-size: var(--step-1); line-height: 1.3; }
.paper-card h3 a { text-decoration-color: var(--ink); }
.paper-card .meta { font-size: var(--step--1); color: var(--muted); }
.paper-card .summary { color: var(--text); }
.paper-card .authors-line { font-size: 0.95rem; color: var(--muted); }
.paper-card .authors-line .me, .paper-card .authors-line .student { color: var(--text); }
.paper-card .links { display: flex; flex-wrap: wrap; gap: 0.3rem 1.4rem; font-size: 1rem; }
.compact { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.compact li { position: relative; padding-left: 1.9rem; max-width: var(--measure); }
.compact li::before { content: ""; position: absolute; left: 0; top: 0.4em; width: 0.9rem; height: 0.95rem; background: var(--ink); clip-path: polygon(30% 0, 100% 24%, 0 100%); }
.compact .meta { display: block; font-size: var(--step--1); color: var(--muted); }

.split { display: grid; gap: clamp(3rem, 6vw, 6rem); }
@media (min-width: 64rem) { .split { grid-template-columns: minmax(0, 1fr) 18rem; gap: 4rem; } }
.aside { display: grid; gap: 2rem; align-content: start; }
.aside h2 { font-size: var(--step-1); }
.aside .block { display: grid; gap: 0.75rem; }

/* ---------- paper page */
.paper-head h1 { font-size: clamp(2rem, 4.2vw, 3.5rem); line-height: 1.08; max-width: 24ch; }
.page-head.paper-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.authors { font-size: var(--step-1); font-weight: 400; max-width: var(--measure); }
.venue { color: var(--muted); }
.paper-layout { display: grid; gap: clamp(3rem, 6vw, 6rem); }
@media (min-width: 64rem) { .paper-layout { grid-template-columns: minmax(0, 1fr) 20rem; gap: 4rem; } }
.paper-art { position: relative; width: min(100%, 20rem); }
.teaser { margin: 0 0 3rem; display: grid; gap: 0.5rem; max-width: 64rem; }
.teaser-link { display: block; background: var(--wash); padding: clamp(0.75rem, 2vw, 1.5rem); border-left: 6px solid var(--sun); }
.teaser img { width: 100%; max-height: 34rem; object-fit: contain; background: #ffffff; }
.paper-card .art img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #ffffff; padding: 0.4rem; outline: 1px solid var(--stone); }
.paper-art img { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cite { background: var(--wash); padding: 1.25rem 1.4rem; display: grid; gap: 1rem; max-width: var(--measure); border-left: 6px solid var(--sun); }
.cite p { overflow-wrap: anywhere; }
.copy-status { font-size: var(--step--1); color: var(--muted); min-height: 1.2em; }

/* line-of-work timeline */
.lineage { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 1.1rem; }
.lineage::before { content: ""; position: absolute; left: 5px; top: 0.6rem; bottom: 0.6rem; border-left: 2px solid var(--ink); }
.lineage li { position: relative; padding-left: 2rem; max-width: var(--measure); }
.lineage li::before { content: ""; position: absolute; left: 0; top: 0.42rem; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); }
.lineage li.here::before { width: 16px; height: 16px; left: -2px; top: 0.3rem; background: var(--sun); border: 2px solid var(--ink); }
.lineage .rel { display: block; font-size: var(--step--1); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.lineage li.here .t { background: var(--sun); color: var(--on-sun); padding: 0 0.3rem; }

/* ---------- people */
.people { display: grid; gap: 4rem clamp(3rem, 6vw, 6rem); }
@media (min-width: 52rem) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3.5rem 4rem; } }
.person { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 1.5rem; align-items: start; }
@media (max-width: 30rem) { .person { grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1rem; } }
.portrait { position: relative; aspect-ratio: 1; max-width: 100%; }
.portrait .pent { position: absolute; inset: 6%; background: var(--stone); display: grid; place-items: center; overflow: hidden; }
.portrait .pent img { width: 100%; height: 100%; object-fit: cover; }
.portrait .ini { font-size: 1.8rem; letter-spacing: 0.04em; color: var(--text); }
.portrait svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.portrait svg polygon { fill: none; stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; }
.person .body { display: grid; gap: 0.55rem; min-width: 0; }
.person h3 { font-size: 1.2rem; letter-spacing: -0.005em; }
.person .project { font-style: italic; }
.person dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.2rem 0.9rem; font-size: var(--step--1); }
.person dt { color: var(--muted); }
.person dd { margin: 0; }
.join { background: var(--wash); padding: 1.75rem; display: grid; gap: 0.9rem; max-width: 46rem; border-left: 6px solid var(--sun); }

/* ---------- publications filters */
.filters { display: grid; gap: 1rem; padding: 1.25rem 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.6rem; }
.filter-row .label { font-size: var(--step--1); color: var(--muted); min-width: 4.5rem; }
.filter-btn {
  font: inherit; font-size: 0.95rem; color: var(--text); background: transparent; cursor: pointer;
  border: 0; border-bottom: 2px solid var(--ink); padding: 0.2rem 0.3rem 0.2rem 0.8rem;
}
.filter-btn[aria-pressed="true"] { background: var(--sun); color: var(--on-sun); border-bottom-color: var(--sun); }
.filter-row select { font: inherit; font-size: 0.95rem; color: var(--text); background: var(--paper); border: 2px solid var(--ink); padding: 0.3rem 0.5rem; max-width: 100%; }
.result-count { font-size: var(--step--1); color: var(--muted); }
.pub-year { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
.pub-year > h2 { font-size: var(--step-3); font-weight: 400; }
.pub-type { display: grid; gap: 1.5rem; margin-top: var(--space-section); }
/* featured papers */
.featured-grid { display: grid; gap: 2rem 2.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr)); }
@media (min-width: 48rem) { .featured-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.feat-card { display: grid; gap: 0.5rem; align-content: start; }
.feat-card .feat-art { display: block; background: var(--wash); padding: 0.75rem; }
.feat-card .feat-art img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #ffffff; }
.feat-card h3 { font-size: 1.05rem; line-height: 1.35; }
.feat-card .meta { font-size: var(--step--1); color: var(--muted); }
.link-groups { display: grid; gap: 0.6rem; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 2rem 2.5rem; }
.foot-h { font-size: var(--step--1); color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.6rem; font-weight: 400; }
.foot-links { list-style: none; margin: 0; padding: 0; }
.pub-type:first-child { margin-top: 2rem; }
.type-head { font-size: var(--step-3); display: flex; align-items: baseline; gap: 0.8rem; }
.type-head .count { font-size: var(--step-0); color: var(--muted); font-variant-numeric: tabular-nums; }
.year-head { font-size: var(--step-2); font-weight: 400; }
.pub-type .pub-year { margin-top: 1.5rem; }
.type-tag { display: inline-block; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-sun); background: var(--sun); padding: 0 0.35rem; margin-right: 0.25rem; }
.small-links { display: flex; flex-wrap: wrap; gap: 0.2rem 1.2rem; font-size: 0.9rem; margin-top: 0.15rem; }

/* ---------- footer */
.site-footer { margin-top: 2rem; padding-block: 3rem calc(var(--frame) + 2.5rem); border-top: 2px solid var(--ink); }
.site-footer .wrap { display: grid; gap: 2rem; }
@media (min-width: 52rem) { .site-footer .wrap { grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 3rem; } }
.site-footer .logo { width: 4.2rem; }
.contact { display: grid; gap: 0.6rem; }
.contact h2 { font-size: var(--step-1); }
.email-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; font-size: var(--step-1); font-weight: 400; }
.email-line em { color: var(--text); }
.foot-links { display: grid; gap: 0.55rem; justify-items: start; }
.small { font-size: var(--step--1); color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .nav a, .chip, .btn, .theme-card h3 a { transition: border-width 0.12s ease, background-color 0.12s ease, color 0.12s ease; }
}

/* core theme names: capitals, with room between lines when a name wraps */
.theme-name { text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.6; }
h3.theme-name { font-size: 1.05rem; }
a.theme-name, .theme-name a { text-decoration-thickness: 1px; }
.home-themes .theme-name { font-family: var(--font-head); font-size: 0.875rem; }
/* theme tags link to theme pages: same capitals and line spacing */
a.chip[href^="theme-"] { text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.6; font-size: 0.75rem; }

/* light/dark switch in the footer */
.theme-switch { display: inline-flex; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.theme-switch svg { width: 100%; height: 100%; }
.theme-switch .li-disc { fill: var(--stone); transition: fill .15s; }
.theme-switch .li-line { stroke: var(--ink); }
.theme-switch:hover .li-disc, .theme-switch:focus-visible .li-disc { fill: var(--sun); }
.theme-switch:hover .li-line, .theme-switch:focus-visible .li-line { stroke: var(--on-sun); }
.theme-switch .ts-sun { display: none; }
:root[data-scheme="dark"] .theme-switch .ts-sun { display: inline; }
:root[data-scheme="dark"] .theme-switch .ts-moon { display: none; }

.pdf-note { color: var(--muted); margin: 0.75rem 0 0; max-width: 60ch; }

/* venue labels: journal / conference, and CORE rank for top venues */
.vbadge { display: inline-block; font-family: var(--font-head); font-size: 0.6875rem; line-height: 1.5; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid var(--ink); color: var(--ink); padding: 0 0.45em; margin-right: 0.45em; vertical-align: 0.1em; white-space: nowrap; }
.vbadge-rank { background: var(--ink); border-color: var(--ink); color: var(--paper); font-weight: 600; }
.venue .vbadge { font-size: 0.75rem; }

/* questionnaires on paper pages */
.qn-jump { margin-top: 1.5rem; }
.qn { max-width: 48rem; }
.qn > h2 { margin-top: 0.35rem; }
.qn-lede { max-width: var(--measure); font-size: var(--step-1); }
.qn-tools { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.qn-fill { margin-top: 1.5rem; background: var(--wash); border-left: 6px solid var(--sun); padding: 1rem 1.25rem; display: grid; gap: 0.5rem; }
.qn-fill label { font-family: var(--font-head); font-weight: 600; }
.qn-fill-row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.qn-fill input { font: inherit; color: var(--text); background: var(--paper); border: 1px solid var(--ink); padding: 0.45rem 0.6rem; min-width: 14rem; flex: 1 1 14rem; max-width: 24rem; }
.qn-fill input:focus-visible { outline: 3px solid var(--sun); outline-offset: 1px; }
.qn-presets { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.qn-presets .chip { cursor: pointer; background: none; font: inherit; font-family: var(--font-head); font-size: var(--step--1); color: var(--ink); }
.qn-presets .chip:hover { border-bottom-width: 4px; }
.qn-help { margin-top: 0.25rem; max-width: var(--measure); font-size: var(--step--1); color: var(--muted); }
.qn-help summary { cursor: pointer; font-family: var(--font-head); color: var(--ink); width: max-content; }
.qn-help ul { margin: 0.6rem 0 0; padding-left: 1.1rem; display: grid; gap: 0.35rem; }
.qn-body { margin-top: 2.25rem; border-top: 1px solid var(--ink); }
.qn-body h3 { font-family: var(--font-head); font-size: var(--step-1); font-weight: 600; margin: 2rem 0 0.75rem; }
.qn-body h4 { font-family: var(--font-head); font-size: var(--step-0); font-weight: 600; margin: 0 0 0.25rem; }
.qn-list { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.45rem; max-width: var(--measure); }
.qn-instr { margin: 0; padding: 0.9rem 1.2rem; background: var(--wash); border-left: 6px solid var(--ink); max-width: var(--measure); }
.qn-instr p { margin: 0; font-style: italic; }
.qn-scale { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(5.5rem, 1fr)); border: 1px solid var(--ink); }
.qn-scale li { padding: 0.55rem 0.5rem; text-align: center; display: grid; gap: 0.2rem; align-content: start; font-size: var(--step--1); border-right: 1px solid var(--stone); }
.qn-scale li:last-child { border-right: 0; }
.qn-scale .n { font-family: var(--font-head); font-weight: 600; font-size: var(--step-0); color: var(--ink); }
.qn-scale .l { color: var(--muted); line-height: 1.3; }
.qn-sub { margin-top: 1.4rem; }
.qn-count { font-weight: 400; color: var(--muted); font-size: var(--step--1); margin-left: 0.4rem; }
.qn-items { list-style: none; padding: 0; margin: 0.6rem 0 0; border-top: 1px solid var(--stone); }
.qn-items li { display: grid; grid-template-columns: 4.6rem 1fr; gap: 0.75rem; padding: 0.55rem 0; border-bottom: 1px solid var(--stone); align-items: baseline; }
.qn-id { font-family: var(--font-head); font-size: var(--step--1); color: var(--muted); font-variant-numeric: tabular-nums; }
.qn-r { grid-column: 2; justify-self: start; font-family: var(--font-head); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; background: var(--sun); color: var(--on-sun); padding: 0 0.45em; }
@media (max-width: 40rem) { .qn-scale { grid-template-columns: 1fr; } .qn-scale li { border-right: 0; border-bottom: 1px solid var(--stone); grid-template-columns: 2rem 1fr; text-align: left; } .qn-items li { grid-template-columns: 3.6rem 1fr; } }

/* "Print or save as PDF" prints only the questionnaire */
@page { margin: 1.5cm; }
@media print {
  html[data-print="qn"] body * { visibility: hidden; }
  html[data-print="qn"] #questionnaire, html[data-print="qn"] #questionnaire * { visibility: visible; }
  html[data-print="qn"] #questionnaire { position: absolute; left: 0; top: 0; width: 100%; max-width: none; margin: 0; padding: 0 0.5cm; box-sizing: border-box; }
  html[data-print="qn"] .qn-tools, html[data-print="qn"] .qn-help, html[data-print="qn"] .qn-fill, html[data-print="qn"] .copy-status { display: none; }
  html[data-print="qn"] .qn-items li, html[data-print="qn"] .qn-sub h4 { break-inside: avoid; }
}
.qn-cards { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.qn-cards a { display: grid; gap: 0.35rem; height: 100%; box-sizing: border-box; padding: 1.1rem 1.25rem; border: 1px solid var(--ink); border-top: 6px solid var(--sun); text-decoration: none; color: var(--text); }
.qn-cards a:hover { background: var(--wash); }
.qn-abbr { font-family: var(--font-head); font-size: var(--step-2); font-weight: 600; color: var(--ink); line-height: 1.1; }
.qn-name { font-family: var(--font-head); font-weight: 500; }
.qn .copy-status { margin: 0.5rem 0 0; }
.qn .qn-help { margin-top: 0.25rem; }
.press-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.6rem; max-width: var(--measure); }
.press-outlet { display: inline-block; font-family: var(--font-head); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--ink); padding: 0 0.45em; margin-right: 0.5rem; color: var(--ink); }

/* home: CV button and "Where to start" cards */
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-text .intro a { color: var(--text); }
.audience-grid { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.25rem; }
.audience-card { border: 1px solid var(--ink); border-top: 6px solid var(--sun); padding: 1.25rem 1.4rem 1.4rem; display: grid; gap: 0.75rem; align-content: start; }
.audience-card h3 { font-family: var(--font-head); font-size: var(--step-1); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin: 0; }
.audience-card p { margin: 0; line-height: 1.6; }
.bg-grid { margin-top: 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 2rem 2.5rem; }
.bg-group h3 { font-family: var(--font-head); font-size: var(--step-1); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--ink); }
.bg-group .tri-list { font-size: var(--step-0); }

/* career timeline on the home page */
.timeline { list-style: none; margin: 2rem 0 0; padding: 0; max-width: 52rem; }
.timeline li { display: grid; grid-template-columns: 7.5rem 1.5rem 1fr; column-gap: 1rem; position: relative; padding-bottom: 1.6rem; }
.timeline li::before { content: ""; position: absolute; left: calc(7.5rem + 1rem + 0.75rem - 1px); top: 0.55rem; bottom: -0.55rem; width: 2px; background: var(--ink); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::before { display: none; }
.tl-years { font-family: var(--font-head); font-size: var(--step--1); letter-spacing: 0.04em; color: var(--muted); text-align: right; padding-top: 0.2rem; font-variant-numeric: tabular-nums; }
.tl-dot { justify-self: center; width: 0.8rem; height: 0.8rem; margin-top: 0.3rem; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); position: relative; z-index: 1; box-sizing: border-box; }
.timeline li.is-now .tl-dot { background: var(--sun); width: 1rem; height: 1rem; margin-top: 0.2rem; }
.tl-body p { margin: 0; }
.tl-role { font-family: var(--font-head); font-weight: 600; font-size: var(--step-0); }
.tl-place { color: var(--muted); font-size: var(--step--1); margin-top: 0.15rem !important; }
.tl-note { font-size: var(--step--1); margin-top: 0.35rem !important; max-width: 52ch; }
@media (max-width: 40rem) {
  .timeline li { grid-template-columns: 1.5rem 1fr; column-gap: 0.75rem; }
  .timeline li::before { left: calc(0.75rem - 1px); }
  .tl-years { grid-column: 2; grid-row: 1; text-align: left; padding: 0; }
  .tl-dot { grid-column: 1; grid-row: 1 / span 2; }
  .tl-body { grid-column: 2; }
}

/* "In games" examples on paper pages */
.ex-lede { margin-top: 0.5rem; }
.ex-grid { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 1rem; }
.ex-card { border: 1px solid var(--ink); padding: 1rem 1.15rem 1.15rem; display: grid; gap: 0.3rem; align-content: start; background: var(--paper); }
.ex-card p { margin: 0; }
.ex-src { justify-self: start; font-family: var(--font-head); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--ink); padding: 0 0.45em; color: var(--ink); margin-bottom: 0.35rem !important; }
.ex-src.is-paper { background: var(--sun); color: var(--on-sun); border-color: var(--sun); }
.ex-game { font-family: var(--font-head); font-weight: 600; font-size: var(--step-1); line-height: 1.25; }
.ex-meta { font-size: var(--step--1); color: var(--muted); }
.ex-text { font-size: var(--step--1); line-height: 1.55; margin-top: 0.4rem !important; }
.ex-grid--2 { grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
@media (min-width: 60rem) { .ex-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* paper panels: lists, quotes, comparisons, methods */
.pn-lede { margin-top: 0.5rem; max-width: 62ch; }
.pn-h3 { font-family: var(--font-head); font-size: var(--step-1); font-weight: 600; margin: 2rem 0 0.75rem; }
.pn-numbered { margin: 1.25rem 0 0; padding: 0; list-style: none; counter-reset: pn; display: grid; gap: 0.6rem; max-width: 62ch; }
.pn-numbered li { counter-increment: pn; display: grid; grid-template-columns: 2.2rem 1fr; align-items: baseline; }
.pn-numbered li::before { content: counter(pn, decimal-leading-zero); font-family: var(--font-head); font-weight: 600; color: var(--muted); font-size: var(--step--1); }
.pn-quotes { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 1.1rem; max-width: 62ch; }
.pn-quotes blockquote, .pn-col blockquote, .pn-pull { margin: 0; padding-left: 1rem; border-left: 4px solid var(--sun); }
.pn-quotes blockquote p, .pn-col blockquote p, .pn-pull p { margin: 0; }
.pn-quotes blockquote p::before, .pn-col blockquote p::before, .pn-pull p::before { content: "“"; }
.pn-quotes blockquote p::after, .pn-col blockquote p::after, .pn-pull p::after { content: "”"; }
.pn-ref { margin: 0.3rem 0 0 1.25rem; font-size: var(--step--1); color: var(--muted); }
.pn-tag { display: inline-block; font-family: var(--font-head); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--ink); padding: 0 0.45em; color: var(--ink); white-space: nowrap; }
.pn-compare { margin-top: 1.25rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.pn-col { border: 1px solid var(--ink); padding: 1.1rem 1.25rem; display: grid; gap: 0.6rem; align-content: start; }
.pn-col p { margin: 0; }
.pn-col-name { font-family: var(--font-head); font-weight: 600; font-size: var(--step-2); line-height: 1; }
.pn-col-sub { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.06em; font-size: var(--step--1); color: var(--muted); }
.pn-dims { font-size: var(--step--1); }
.pn-dims span { font-weight: 600; margin-right: 0.3rem; }
.pn-samples { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.pn-sample { background: var(--wash); padding: 1rem 1.15rem; }
.pn-sample-dim { margin: 0 0 0.6rem; font-family: var(--font-head); font-weight: 600; }
.pn-sample ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; font-size: var(--step--1); }
.pn-table { width: 100%; border-collapse: collapse; margin-top: 1.25rem; font-size: var(--step--1); }
.pn-table th, .pn-table td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--stone); }
.pn-table thead th { font-family: var(--font-head); font-weight: 600; border-bottom: 2px solid var(--ink); }
.pn-table tbody th { font-weight: 600; }
.pn-pull { margin-top: 1.5rem; max-width: 62ch; font-style: italic; }
.pn-shared { margin-top: 1.25rem; background: var(--wash); border-left: 6px solid var(--sun); padding: 0.9rem 1.2rem; max-width: 62ch; }
.pn-shared p { margin: 0; }
.pn-label, .pn-study-name { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; font-size: var(--step--1); margin-bottom: 0.35rem !important; }
.pn-studies { margin-top: 1.25rem; display: grid; gap: 1.25rem; }
.pn-studies.is-multi { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.pn-study { border-top: 2px solid var(--ink); padding-top: 0.75rem; }
.pn-study p { margin: 0; }
.pn-study dl { margin: 0.5rem 0 0; display: grid; gap: 0; }
.pn-study dl > div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid var(--stone); font-size: var(--step--1); }
.pn-study dt { font-weight: 600; }
.pn-study dd { margin: 0; }
.pn-note { margin-top: 0.75rem; }
@media (max-width: 40rem) { .pn-study dl > div { grid-template-columns: 1fr; gap: 0.15rem; } }

/* agency/autonomy model */
.am { margin-top: 1.5rem; display: grid; gap: 0.6rem; }
.am-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; }
.am-step { border: 1px solid var(--ink); padding: 0.75rem 0.9rem; display: grid; gap: 0.2rem; align-content: start; }
.am-step p, .am-span p { margin: 0; }
.am-pre { border-style: dashed; }
.am-action { background: var(--sun); border-color: var(--sun); align-content: center; text-align: center; }
.am-action .am-term { color: var(--on-sun); }
.am-term { font-family: var(--font-head); font-weight: 600; }
.am-when { font-size: var(--step--1); color: var(--muted); }
.am-span { background: var(--wash); padding: 0.6rem 0.9rem; text-align: center; }
.am-defs { margin: 1.5rem 0 0; display: grid; gap: 0; max-width: 62ch; }
.am-defs > div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--stone); }
.am-defs dt { font-family: var(--font-head); font-weight: 600; }
.am-defs dd { margin: 0; font-size: var(--step--1); line-height: 1.6; }
@media (max-width: 40rem) { .am-track { grid-template-columns: 1fr 1fr; } .am-defs > div { grid-template-columns: 1fr; gap: 0.2rem; } }

/* DDA diagram */
.dda { margin-top: 1.25rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 1.25rem; }
.dda-fig { margin: 0; border: 1px solid var(--ink); padding: 0.9rem 1rem 0.5rem; }
.dda-fig figcaption { font-size: var(--step--1); margin-bottom: 0.5rem; }
.dda-name { font-family: var(--font-head); font-weight: 600; font-size: var(--step-0); margin-right: 0.3rem; }
.dda-fig svg { width: 100%; height: auto; display: block; }
.dda-axis { stroke: var(--ink); stroke-width: 1.5; }
.dda-zone { fill: var(--sun); opacity: 0.35; }
.dda-line { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.dda-hit { fill: var(--ink); }
.dda-ok { fill: var(--sun); stroke: var(--ink); stroke-width: 2; }
.dda-lab { font: 13px var(--font); fill: var(--muted); }
.dda-note { font: 14px var(--font); fill: var(--text); }
.dda-strong { font-weight: 600; }
.dda-table { max-width: 40rem; }
.pn-cards { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 1rem; }
.pn-card { border: 1px solid var(--ink); border-top: 6px solid var(--ink); padding: 0.9rem 1.1rem 1.1rem; display: grid; gap: 0.4rem; align-content: start; }
.pn-card.is-muted { border-style: dashed; border-top-style: solid; border-top-color: var(--stone); }
.pn-card p { margin: 0; }
.pn-card .pn-tag { justify-self: start; white-space: normal; max-width: 100%; }
.pn-card > * { min-width: 0; }
.pn-card-name { font-family: var(--font-head); font-weight: 600; font-size: var(--step-1); }
.pn-card-def { font-size: var(--step--1); line-height: 1.55; }
.pn-twolists { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 0 2.5rem; }
.pn-guides { list-style: none; counter-reset: g; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0; max-width: 62ch; }
.pn-guides li { counter-increment: g; display: grid; grid-template-columns: 3rem 1fr; padding: 0.9rem 0; border-bottom: 1px solid var(--stone); }
.pn-guides li::before { content: counter(g); grid-row: 1 / span 2; font-family: var(--font-head); font-weight: 600; font-size: var(--step-2); line-height: 1; color: var(--ink); }
.pn-guides p { margin: 0; grid-column: 2; }
.pn-guide-name { font-family: var(--font-head); font-weight: 600; }
.pn-guide-text { font-size: var(--step--1); color: var(--muted); margin-top: 0.25rem !important; }
.spotlight { margin-top: 2.5rem; border: 1px solid var(--ink); border-left: 10px solid var(--sun); padding: 1.4rem 1.6rem 1.5rem; display: grid; gap: 0.75rem; max-width: 62ch; }
.spotlight p, .spotlight h2, .spotlight h3 { margin: 0; }
.spot-eyebrow { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.1em; font-size: var(--step--1); color: var(--muted); }
.spotlight h2 { font-size: var(--step-2); }
.spotlight h3 { font-family: var(--font-head); font-size: var(--step-0); font-weight: 600; margin-top: 0.5rem; }
.spotlight .tri-list { font-size: var(--step--1); }
.filter-search input { font: inherit; color: var(--text); background: var(--paper); border: 1px solid var(--ink); padding: 0.45rem 0.7rem; width: min(100%, 26rem); }
.filter-search input:focus-visible { outline: 3px solid var(--sun); outline-offset: 1px; }
.prof { margin-top: 1.25rem; display: grid; grid-template-columns: 1fr; gap: 1rem; max-width: 44rem; }
.prof-game { border: 1px solid var(--ink); padding: 0.9rem 1.1rem 1rem; }
.prof-name { margin: 0 0 0.6rem; font-family: var(--font-head); font-weight: 600; }
.prof-name span { font-weight: 400; font-size: var(--step--1); color: var(--muted); margin-left: 0.3rem; }
.prof dl { margin: 0; display: grid; gap: 0.45rem; }
.prof-row { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.6rem; align-items: center; font-size: var(--step--1); }
.prof-row dd { margin: 0; display: grid; grid-template-columns: 1fr 2.4rem; align-items: center; gap: 0.5rem; }
.prof-track { display: block; }
.prof-bar { display: block; height: 0.7rem; background: var(--stone); }
.prof-bar.is-high { background: var(--sun); outline: 1px solid var(--ink); }
.prof-val { font-variant-numeric: tabular-nums; color: var(--muted); }
.bfl { margin-top: 1.25rem; max-width: 44rem; }
.bfl svg { width: 100%; height: auto; display: block; }
.bfl-box { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.bfl-sun { fill: var(--sun); stroke: var(--sun); }
.bfl-t { font: 600 17px var(--font-head); fill: var(--text); }
.bfl-s { font: 13px var(--font); fill: var(--muted); }
.bfl-line { fill: none; stroke: var(--ink); stroke-width: 2; }
.bfl-head { fill: var(--ink); }
.bfl-table { max-width: 44rem; }
.bfl .bfl-on { fill: var(--on-sun); }
.pn-gallery { margin-top: 1.25rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.pn-gallery.is-single { grid-template-columns: minmax(0, 40rem); }
.pn-gallery.is-wide { grid-template-columns: minmax(0, 1fr); }
.pn-gallery figure { margin: 0; }
.pn-gallery img { width: 100%; height: auto; display: block; border: 1px solid var(--ink); }
.pn-gallery figcaption { font-size: var(--step--1); margin-top: 0.4rem; color: var(--muted); }
.pn-credit { white-space: nowrap; }
.pn-source { margin: 0.4rem 0 0; font-family: var(--font-head); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.theme-pull { margin: 2.5rem 0 0; max-width: 40ch; }
.theme-pull p { margin: 0; font-family: var(--font-head); font-weight: 500; font-size: var(--step-2); line-height: 1.2; }
.theme-pull p::before { content: "“"; } .theme-pull p::after { content: "”"; }
.theme-pull footer { margin-top: 0.6rem; font-size: var(--step--1); color: var(--muted); }
.theme-def { margin-top: 2.25rem; background: var(--wash); padding: 1.3rem 1.5rem; max-width: 62ch; display: grid; gap: 0.6rem; }
.theme-def h2 { margin: 0; font-size: var(--step-1); }
.theme-def p { margin: 0; }
.theme-next { margin-top: 2.25rem; max-width: 62ch; }
.theme-next h2 { font-size: var(--step-1); margin: 0 0 0.75rem; }
.ties { margin-top: 2rem; background: var(--wash); padding: 1.3rem 1.5rem; max-width: 62ch; }
.ties h2 { margin: 0 0 0.5rem; font-size: var(--step-1); }
.ties p { margin: 0 0 0.6rem; }
.gs-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.gs-card { display: flex; flex-direction: column; gap: 0.35rem; text-decoration: none; color: inherit; }
.gs-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; border: 1px solid var(--stone); }
.gs-card .gs-name { font-weight: 700; margin-top: 0.3rem; }
.gs-card:hover .gs-name, .gs-card:focus-visible .gs-name { text-decoration: underline; }
.gs-card .gs-text { font-size: var(--step--1); color: var(--muted); }
