/* ==========================================================================
   Jonli UG – site stylesheet
   Hand-written port of the design tokens (no build step, no framework).
   ========================================================================== */

/* --- Fonts (self-hosted, latin subset) ----------------------------------- */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin.ad33cbc6d232.woff2") format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.260c81a4759b.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Mono";
  src: url("../fonts/space-mono-400-latin.049dfc5919c2.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Mono";
  src: url("../fonts/space-mono-700-latin.e5e908997a45.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Tokens --------------------------------------------------------------- */

:root {
  --accent: #ff2e93;
  --ink: #110e18;
  --newsprint: #efece6;
  --yellow: #ffe600;
  --primary: #25006d;
  --primary-container: #3b1e8a;
  --secondary: #b40063;
  --white: #ffffff;
  --surface: #efece6;
  --surface-container: #e5e2dc;
  --on-surface-variant: #484552;
  --dark-on-surface-variant: #cac4d4;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-section: 3rem;

  --font-display: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "Cascadia Mono", Menlo, monospace;

  --shadow: 0.375rem 0.375rem 0 var(--ink);
  --shadow-sm: 0.25rem 0.25rem 0 var(--ink);

  --ease: cubic-bezier(0.2, 0, 0, 1);
  --duration: 90ms;

  --container: 80rem;
  --gutter: var(--space-md);

  /* Border colour inside themed surfaces */
  --rule: var(--ink);
}

@media (min-width: 768px) {
  :root { --gutter: var(--space-lg); }
}

/* --- Base ----------------------------------------------------------------- */

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

/* Root size drives every length (all sizes are rem): full size on phones,
   slightly more compact on tablets, 80 % on desktop. Percentages keep the
   visitor's own browser font-size setting intact. */
html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 7rem;
}

@media (min-width: 768px) {
  html { font-size: 90%; }
}

@media (min-width: 1024px) {
  html { font-size: 80%; }
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size-adjust: from-font;
  font-size: 0.9375rem;
  line-height: 1.4667;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote {
  margin: 0;
}

h1, h2, h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

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

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

:focus-visible {
  outline: 0.1875rem solid var(--accent);
  outline-offset: 0.1875rem;
}

.visually-hidden {
  position: absolute;
  width: 0.0625rem;
  height: 0.0625rem;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  fill: currentColor;
}

/* --- Typography ------------------------------------------------------------ */

.t-display-lg,
.t-display-md,
.t-headline-lg,
.t-headline-md,
.t-title-lg {
  font-family: var(--font-display);
  font-size-adjust: from-font;
}

.t-display-lg {
  font-size: 2rem;
  line-height: 2.25rem;
  letter-spacing: -0.0469rem;
  font-weight: 800;
}

.t-display-md {
  font-size: 1.75rem;
  line-height: 2rem;
  letter-spacing: -0.0312rem;
  font-weight: 800;
}

.t-headline-lg {
  font-size: 1.5rem;
  line-height: 1.75rem;
  letter-spacing: -0.0156rem;
  font-weight: 700;
}

.t-headline-md {
  font-size: 1.5rem;
  line-height: 1.75rem;
  letter-spacing: -0.0156rem;
  font-weight: 700;
}

.t-title-lg {
  font-size: 1.25rem;
  line-height: 1.625rem;
  font-weight: 700;
}

@media (min-width: 768px) {
  .t-display-lg { font-size: 4rem; line-height: 4.25rem; letter-spacing: -0.0938rem; }
  .t-display-md { font-size: 2.75rem; line-height: 3rem; letter-spacing: -0.0625rem; }
  .t-headline-lg { font-size: 2.25rem; line-height: 2.5rem; letter-spacing: -0.0312rem; }
}

.t-body-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 500;
}

.t-body-md {
  font-size: 0.9375rem;
  line-height: 1.375rem;
  font-weight: 400;
}

.t-label-sm {
  font-family: var(--font-mono);
  font-size-adjust: from-font;
  font-size: 0.75rem;
  line-height: 1rem;
  letter-spacing: 0.0312rem;
  font-weight: 700;
  text-transform: uppercase;
}

.t-measure { max-width: 65ch; }
.t-wide { max-width: 64rem; }
.t-nums { font-variant-numeric: tabular-nums; }

.c-primary { color: var(--primary); }
.c-secondary { color: var(--secondary); }
.c-muted { color: var(--on-surface-variant); }

/* --- Layout ---------------------------------------------------------------- */

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.texture {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.2;
  mix-blend-mode: multiply;
  background: url("../img/texture.7e191aff00e7.svg") center / 30rem repeat;
}

main {
  position: relative;
  z-index: 10;
  flex: 1;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  border-bottom: 0.25rem solid var(--ink);
}

.section > .container {
  padding-block: var(--space-section);
}

.section--intro > .container {
  padding-block: var(--space-xl);
}

@media (min-width: 768px) {
  .section--intro > .container { padding-block: var(--space-section); }
}

.bg-white { background: var(--white); }
.bg-surface { background: var(--surface); }
.bg-accent { background: var(--accent); color: var(--ink); }
.bg-primary { background: var(--primary-container); color: var(--white); --rule: var(--white); }

.halftone {
  background-color: var(--surface);
  background-image: radial-gradient(var(--ink) 0.0781rem, transparent 0.0781rem);
  background-size: 1rem 1rem;
}

.stack { display: flex; flex-direction: column; }
.stack-xs { gap: var(--space-xs); }
.stack-sm { gap: var(--space-sm); }
.stack-md { gap: var(--space-md); }
.stack-lg { gap: var(--space-lg); }
.stack-xl { gap: var(--space-xl); }

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
}

.cluster-md { gap: var(--space-md); }

.spread {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-md);
}

.spread-center { align-items: center; }

.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

/* 12-column grids. `.grid-lg` switches at 64rem, `.grid-md` at 48rem. */
.grid-lg,
.grid-md {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.items-center { align-items: center; }

@media (min-width: 768px) {
  .grid-md { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .md-span-2 { grid-column: span 2; }
  .md-span-3 { grid-column: span 3; }
  .md-span-4 { grid-column: span 4; }
  .md-span-6 { grid-column: span 6; }
  .md-span-7 { grid-column: span 7; }
  .md-span-8 { grid-column: span 8; }
}

@media (min-width: 1024px) {
  .grid-lg { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg-span-4 { grid-column: span 4; }
  .lg-span-5 { grid-column: span 5; }
  .lg-span-6 { grid-column: span 6; }
  .lg-span-7 { grid-column: span 7; }
  .lg-span-8 { grid-column: span 8; }
}

.cols-2,
.cols-3 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-lg);
  align-items: stretch;
}

@media (min-width: 768px) {
  .cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* --- Themes for cards ------------------------------------------------------ */

.theme-white { background: var(--white); color: var(--ink); --rule: var(--ink); }
.theme-primary { background: var(--primary-container); color: var(--white); --rule: var(--white); }
.theme-yellow { background: var(--yellow); color: var(--ink); --rule: var(--ink); }

/* --- Header ---------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--surface);
  border-bottom: 0.25rem solid var(--ink);
}

.site-header > .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-block: var(--space-md);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--primary-container);
  color: var(--white);
  border: 0.125rem solid var(--ink);
  box-shadow: var(--shadow-sm);
}

/* Phones/tablets: brand, round mail button and a "Menü" button that opens the
   navigation as a native popover. From 1024px the same list sits inline. */
.brand { margin-right: auto; }

.site-header > .container { flex-wrap: nowrap; }

.site-header .header-mail {
  order: 1;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
}

.header-mail__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.nav { order: 2; }

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

.site-header .menu-button {
  anchor-name: --menu-button;
  cursor: pointer;
}

.menu-button .icon--close { display: none; }
.nav:has(.nav__list:popover-open) .icon--menu { display: none; }
.nav:has(.nav__list:popover-open) .icon--close { display: block; }

.nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding: 0;
  margin: 0;
  list-style: none;
}

@supports selector(:popover-open) {
  .nav__list[popover] {
    position: fixed;
    inset: auto;
    /* Fallback for browsers without anchor positioning: below the header. */
    top: 5.5rem;
    top: anchor(--menu-button bottom);
    right: var(--gutter);
    margin-top: var(--space-md);
    width: min(20rem, calc(100dvw - 2 * var(--gutter)));
    flex-direction: column;
    flex-wrap: nowrap;
    padding: var(--space-md);
    border: 0.25rem solid var(--ink);
    background: var(--white);
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .nav__list[popover]:not(:popover-open) { display: none; }

  .nav__list[popover] .pill {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    font-size: 0.875rem;
    line-height: 1.5rem;
  }
}

@supports not selector(:popover-open) {
  .site-header .menu-button { display: none; }
}

@media (min-width: 1024px) {
  .brand { margin-right: 0; }

  .site-header > .container {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .nav,
  .site-header .header-mail { order: 0; }

  .site-header .header-mail {
    width: auto;
    height: auto;
    padding: var(--space-sm) var(--space-lg);
  }

  .header-mail__label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
  }

  .site-header .menu-button { display: none; }

  /* Same list, inline: undo the popover presentation. */
  .nav__list,
  .nav__list[popover],
  .nav__list[popover]:not(:popover-open) {
    position: static;
    display: flex;
    flex-direction: row;
    width: auto;
    margin: 0;
    padding: 0;
    gap: var(--space-md);
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .nav__list[popover] .pill {
    width: auto;
    padding: var(--space-xs) var(--space-md);
    font-size: 0.75rem;
    line-height: 1rem;
  }
}

/* --- Pills (nav links + filter buttons) and badges ------------------------ */

.pill,
.badge {
  display: inline-flex;
  align-items: center;
  border: 0.125rem solid var(--ink);
  border-radius: 624.9375rem;
  padding: var(--space-xs) var(--space-md);
}

.pill {
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease);
}

.pill { gap: var(--space-xs); }
.pill .icon { width: 1rem; height: 1rem; }

.pill:hover {
  background: var(--yellow);
  color: var(--ink);
}

.pill[aria-current],
.pill[aria-pressed="true"] {
  background: var(--ink);
  color: var(--newsprint);
}

.badge { align-self: flex-start; }
.badge--accent { background: var(--accent); color: var(--ink); }
.badge--yellow { background: var(--yellow); color: var(--ink); }
.badge--ink { background: var(--ink); color: var(--newsprint); }
.badge--primary { background: var(--primary-container); color: var(--white); }
.badge--deep { background: var(--primary); color: var(--white); }
.badge--white { background: var(--white); color: var(--ink); }

/* --- Buttons --------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  border: 0.25rem solid var(--ink);
  border-radius: 624.9375rem;
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.25rem;
  letter-spacing: 0.0156rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.btn:hover {
  transform: translate(0.125rem, 0.125rem);
  box-shadow: 0.125rem 0.125rem 0 var(--ink);
}

.btn:active {
  transform: translate(0.25rem, 0.25rem);
  box-shadow: 0 0 0 var(--ink);
}

.btn--small {
  border-width: 0.125rem;
  padding: var(--space-xs) var(--space-md);
  gap: var(--space-xs);
}

.btn--accent { background: var(--accent); color: var(--ink); }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--primary { background: var(--primary-container); color: var(--white); }

.link {
  text-decoration: underline;
  text-underline-offset: 0.1875rem;
}

.link:hover { color: var(--primary); }
.theme-primary .link:hover { color: var(--yellow); }

/* --- Boxes, cards, media --------------------------------------------------- */

.box {
  border: 0.25rem solid var(--ink);
  padding: var(--space-lg);
  box-shadow: var(--shadow);
}

.card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-md);
  border: 0.25rem solid var(--ink);
  padding: var(--space-lg);
  box-shadow: var(--shadow);
}

.card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: 0.125rem solid var(--rule);
}

.media {
  position: relative;
  min-height: 16rem;
  overflow: hidden;
  background: var(--ink);
}

.media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Media that shows the whole image: the box takes the image's aspect ratio
   (from its width/height attributes) and only crops if the row is taller. */
.media--fit {
  min-height: 0;
}

.media--fit img {
  position: static;
  height: 100%;
  aspect-ratio: auto;
}

/* Media that shows the whole image, scaled down if needed (featured project).
   static/js/media.js replaces the background with the image's own edge colour. */
.media--contain {
  background: var(--surface);
}

.media--contain img {
  object-fit: contain;
}

/* Poster: bordered 2-column split (hero, featured project/article) */
.poster {
  border: 0.25rem solid var(--ink);
}

.poster--shadow { box-shadow: var(--shadow); }

.poster__pane {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-lg);
}

.poster > :first-child {
  border-bottom: 0.25rem solid var(--ink);
}

@media (min-width: 768px) {
  .poster__pane { padding: var(--space-xl); }
}

@media (min-width: 1024px) {
  .poster > :first-child {
    border-bottom: 0;
    border-right: 0.25rem solid var(--ink);
  }
}

.divider-top {
  padding-top: var(--space-md);
  border-top: 0.125rem solid var(--rule);
}

/* Tile: card with image head and footer row (projects, blog) */
.tile {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 0.25rem solid var(--ink);
  box-shadow: var(--shadow);
}

.tile__media {
  position: relative;
  height: 14rem;
  overflow: hidden;
  background: var(--ink);
  border-bottom: 0.25rem solid var(--ink);
}

.tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-lg);
}

.tile__body.stack-sm { gap: var(--space-sm); }

.tile__foot a { white-space: nowrap; }

.tile__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-top: 0.125rem solid var(--rule);
}

/* Metrics row in featured project */
/* Stacked on phones, three columns once there is room for the values. */
.metrics {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border: 0.125rem solid var(--ink);
  background: var(--surface);
}

.metrics > div {
  padding: var(--space-md);
}

.metrics > div + div {
  border-top: 0.125rem solid var(--ink);
}

@media (min-width: 576px) {
  .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .metrics > div + div {
    border-top: 0;
    border-left: 0.125rem solid var(--ink);
  }
}

.metrics dd { margin: 0; }

/* --- Exposed grid table (values, archives) --------------------------------- */

.rows {
  border: 0.25rem solid var(--ink);
  background: var(--surface);
}

.rows > * + * {
  border-top: 0.25rem solid var(--ink);
}

.rows__head,
.rows__cell,
.rows__tail {
  padding: var(--space-lg);
  display: flex;
  align-items: center;
}

.rows__head {
  gap: var(--space-sm);
  background: var(--surface-container);
  border-bottom: 0.125rem solid var(--ink);
}

.rows__head.stack,
.rows__cell.stack {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: var(--space-xs);
}

.rows__tail {
  border-top: 0.125rem solid var(--ink);
}

.rows__head .icon { color: var(--primary); }

@media (min-width: 768px) {
  .rows__head {
    border-bottom: 0;
    border-right: 0.25rem solid var(--ink);
  }

  .rows__tail {
    border-top: 0;
    border-left: 0.25rem solid var(--ink);
  }
}

/* --- Contact band ---------------------------------------------------------- */

.contact-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  background: var(--white);
  color: var(--ink);
}

.contact-card__entry {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding-bottom: var(--space-md);
  border-bottom: 0.125rem solid var(--ink);
}

.contact-card__entry a:hover { text-decoration: underline; }

/* --- Footer ---------------------------------------------------------------- */

.site-footer {
  position: relative;
  z-index: 10;
  background: var(--ink);
  color: var(--newsprint);
}

.site-footer > .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-block: var(--space-lg);
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-lg);
  padding: 0;
  list-style: none;
}

.site-footer a {
  transition: color var(--duration) var(--ease);
}

.site-footer a:hover { color: var(--accent); }

.site-footer .c-muted { color: var(--dark-on-surface-variant); }

/* --- Team ----------------------------------------------------------------- */

.portrait {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink);
  border-bottom: 0.25rem solid var(--ink);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .portrait { aspect-ratio: 3 / 4; }
}

/* --- Article (blog detail) ------------------------------------------------ */

.article-figure {
  aspect-ratio: 21 / 9;
  min-height: 14rem;
  border: 0.25rem solid var(--ink);
  box-shadow: var(--shadow);
}

.aside-sticky {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  align-self: start;
}

@media (min-width: 1024px) {
  .aside-sticky {
    position: sticky;
    top: 7rem;
  }
}

.facts {
  display: grid;
  gap: var(--space-md);
  margin: 0;
}

.facts div {
  padding-bottom: var(--space-md);
  border-bottom: 0.125rem solid var(--rule);
}

.facts dd {
  margin: var(--space-xs) 0 0;
}

.prose {
  font-size: 1.0625rem;
  line-height: 1.75rem;
}

@media (min-width: 768px) {
  .prose.box { padding: var(--space-xl); }
}

.prose > * + * { margin-top: 1.25rem; }

.prose h2 {
  margin-top: 2.5rem;
  font-family: var(--font-display);
  font-size-adjust: from-font;
  font-size: 1.5rem;
  line-height: 1.75rem;
  letter-spacing: -0.0156rem;
  font-weight: 700;
}

.prose h3 {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-size-adjust: from-font;
  font-size: 1.25rem;
  line-height: 1.625rem;
  font-weight: 700;
}

.prose > :first-child { margin-top: 0; }

.prose ul,
.prose ol { padding-left: 1.5rem; }

.prose li + li { margin-top: var(--space-sm); }

.prose li::marker {
  color: var(--secondary);
  font-weight: 700;
}

.prose a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 0.125rem;
  text-underline-offset: 0.1875rem;
}

.prose a:hover { background: var(--yellow); }

.prose strong { font-weight: 700; }

.prose blockquote {
  padding: var(--space-md) var(--space-lg);
  border-left: 0.5rem solid var(--accent);
  background: var(--surface);
  font-family: var(--font-display);
  font-size-adjust: from-font;
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 700;
}

.prose code {
  font-family: var(--font-mono);
  font-size-adjust: from-font;
  font-size: 0.875em;
  padding: 0.1em 0.35em;
  background: var(--surface-container);
}

.prose pre {
  overflow-x: auto;
  padding: var(--space-md) var(--space-lg);
  background: var(--ink);
  color: var(--newsprint);
  border: 0.25rem solid var(--ink);
  box-shadow: var(--shadow-sm);
  font-size: 0.875rem;
  line-height: 1.375rem;
}

.prose pre code {
  padding: 0;
  background: none;
  font-size: inherit;
}

/* --- Filter (progressive enhancement) ------------------------------------- */

[hidden] { display: none !important; }

/* --- Motion --------------------------------------------------------------- */

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

  .btn:hover,
  .btn:active {
    transform: none;
  }
}
