/* Hausärztliche Gemeinschaftspraxis Dormagen – site styles
   Breakpoints (identical to the previous site): 991px, 767px, 479px (max-width) */

@font-face {
  font-family: "Epilogue";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/epilogue-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Design tokens ---------- */
:root {
  color-scheme: light dark;

  --brand: #be1d1d;          /* Logo red */
  --brand-strong: #9e1515;
  --brand-contrast: #ffffff;
  --brand-soft: #fbeeee;
  --ink: #1f1f1f;
  --ink-muted: #555555;
  --ink-logo: #4a4a4a;
  --bg: #ffffff;
  --bg-alt: #f6f5f4;
  --surface: #ffffff;
  --line: #e3e1df;
  --focus: #0a58ca;
  --shadow: 0 1px 2px rgb(0 0 0 / .06), 0 8px 24px rgb(0 0 0 / .06);

  --font: "Epilogue", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 14px;
  --radius-sm: 8px;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 4.5rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #f26b63;
    --brand-strong: #ff8a83;
    --brand-contrast: #1a0505;
    --brand-soft: #2a1716;
    --ink: #ecebea;
    --ink-muted: #b4b1ae;
    --ink-logo: #d4d4d4;
    --bg: #131313;
    --bg-alt: #1b1a1a;
    --surface: #1f1e1e;
    --line: #34312f;
    --focus: #8ab4ff;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px rgb(0 0 0 / .35);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-gutter: stable;
  scroll-padding-top: calc(var(--header-h) + 1rem); /* focus / anchors not obscured by sticky header */
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

main { flex: 1; }

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

h1, h2, h3, h4 {
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.015em;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p, li { text-wrap: pretty; }
p { margin: 0 0 1em; }

a { color: var(--brand); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-strong); text-decoration-thickness: 2px; }

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

::selection { background: var(--brand); color: var(--brand-contrast); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

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

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--brand); color: var(--brand-contrast);
  padding: .75rem 1rem; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--brand-contrast); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}

.brand {
  display: flex; align-items: center; gap: .75rem;
  color: var(--ink); text-decoration: none; min-height: 44px;
}
.brand:hover { color: var(--ink); }
.brand img { width: 42px; height: 42px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1rem; font-weight: 700; }
.brand-text span { font-size: .8rem; color: var(--ink-muted); letter-spacing: .02em; }

.nav-toggle {
  display: none;
  align-items: center; gap: .5rem;
  min-height: 44px; min-width: 44px; padding: .5rem .9rem;
  font: inherit; font-weight: 600; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  anchor-name: --nav-toggle;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* Desktop: the popover nav is shown inline */
.site-nav[popover] {
  display: block; position: static; inset: auto;
  margin: 0; padding: 0; border: 0; background: none; color: inherit; overflow: visible;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: .4rem .85rem;
  color: var(--ink); text-decoration: none; font-weight: 500; border-radius: 999px; white-space: nowrap;
}
.site-nav a:hover { background: var(--bg-alt); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--brand); font-weight: 650; }
.site-nav .nav-cta a {
  background: var(--brand); color: var(--brand-contrast); font-weight: 650; margin-left: .35rem;
}
.site-nav .nav-cta a:hover { background: var(--brand-strong); color: var(--brand-contrast); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.35rem;
  font: inherit; font-weight: 650; line-height: 1.2; text-decoration: none;
  border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-primary { background: var(--brand); color: var(--brand-contrast); }
.btn-primary:hover { background: var(--brand-strong); color: var(--brand-contrast); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem); }
.hero .wrap {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center;
}
.eyebrow {
  display: inline-block; font-size: .85rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 1rem;
}
.hero-lead { font-size: 1.2rem; color: var(--ink-muted); max-width: 34ch; margin-bottom: 1.75rem; }
.hero-media { position: relative; }
.hero-media img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: calc(var(--radius) * 1.5); box-shadow: var(--shadow);
}
.hero-media::before {
  content: ""; position: absolute; width: 28%; aspect-ratio: 1; right: -1rem; top: -1rem; z-index: -1;
  background: var(--brand); border-radius: var(--radius);
}

/* ---------- Quick facts ---------- */
.facts { padding-bottom: clamp(2rem, 5vw, 4rem); }
.facts-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.fact {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
}
.fact h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); margin-bottom: .5rem; }
.fact p { margin: 0; font-size: 1.1rem; font-weight: 550; }
.fact a { color: var(--ink); }
.fact a:hover { color: var(--brand); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--ink-muted); max-width: 52ch; }
.page-head { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.page-head p { font-size: 1.15rem; color: var(--ink-muted); max-width: 60ch; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; margin: 0 0 1.25rem; padding: 0; font-size: .92rem; }
.breadcrumbs li { display: flex; align-items: center; gap: .25rem; color: var(--ink-muted); }
.breadcrumbs li + li::before { content: "/"; color: var(--line); padding-inline: .2rem; }
.breadcrumbs a { color: var(--ink-muted); display: inline-block; padding-block: .25rem; }

/* ---------- Cards (container queries) ---------- */
.cards {
  display: grid; gap: 1rem; list-style: none; margin: 0; padding: 0;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
}
.card {
  container-type: inline-size;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.5rem; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4rem; }
.card p { margin: 0; color: var(--ink-muted); }
.card a.card-link { color: var(--ink); text-decoration: none; }
.card a.card-link:hover { color: var(--brand); text-decoration: underline; }
.card:has(a.card-link:hover) { border-color: var(--brand); }
.card .tag { display: block; width: 2.25rem; height: .35rem; border-radius: 99px; background: var(--brand); margin-bottom: 1rem; }

/* ---------- Service detail ---------- */
.service-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.service-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: .4rem 1rem;
  border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; background: var(--surface);
}
.service-nav a:hover { border-color: var(--brand); color: var(--brand); }

.service {
  display: grid; grid-template-columns: 16rem 1fr; gap: 1rem 3rem;
  padding-block: 2.5rem; border-top: 1px solid var(--line);
}
.service:first-of-type { border-top: 0; }
.service h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); hyphens: auto; overflow-wrap: break-word; }
.service .lead { font-weight: 650; font-size: 1.15rem; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.check-list li { position: relative; padding-left: 1.6rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: .7rem; height: .7rem;
  background: var(--brand); border-radius: 2px;
}

/* ---------- Team ---------- */
.team-grid {
  display: grid; gap: 1.5rem 1.25rem; list-style: none; margin: 0; padding: 0;
  grid-template-columns: repeat(4, 1fr);
}
.team-grid--staff { grid-template-columns: repeat(4, 1fr); }
.person { container-type: inline-size; }
.person picture, .person img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius);
  background: var(--bg-alt);
}
.person-ph {
  aspect-ratio: 3 / 4; display: grid; place-items: center; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand-soft), var(--bg-alt));
}
.person-ph img { width: 64px; height: 64px; aspect-ratio: auto; opacity: .9; background: none; }
.person h3 { font-size: 1.1rem; margin: .85rem 0 .1rem; }
.person .title { display: block; font-size: .85rem; font-weight: 600; color: var(--brand); letter-spacing: .02em; }
.person p { margin: 0; color: var(--ink-muted); font-size: .95rem; }
@container (max-width: 180px) {
  .person h3 { font-size: 1rem; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 3rem; }
.contact-list { display: grid; gap: 1rem; margin: 0; }
.contact-list div { display: grid; grid-template-columns: 7rem 1fr; gap: .5rem; }
.contact-list dt { font-weight: 650; color: var(--ink-muted); }
.contact-list dd { margin: 0; }
.contact-list a { color: var(--ink); font-weight: 550; }
.contact-list a:hover { color: var(--brand); }

.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours caption { text-align: left; font-weight: 700; font-size: 1.25rem; margin-bottom: .6rem; }
.hours th, .hours td { text-align: left; padding: .7rem .25rem; border-bottom: 1px solid var(--line); }
.hours th[scope="row"] { font-weight: 600; width: 50%; }
.hours abbr { text-decoration: none; }
.hours thead th { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); }

.info-blocks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.info-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.info-block h2, .info-block h3 { font-size: 1.25rem; }
.info-block p:last-child { margin-bottom: 0; }
.note { background: var(--brand-soft); border-left: 4px solid var(--brand); padding: 1rem 1.25rem; border-radius: var(--radius-sm); }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.5em; }
.todo {
  background: #fff3cd; color: #4d3800; border: 1px dashed #b38600; padding: .1rem .35rem; border-radius: 4px;
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--brand); color: var(--brand-contrast); border-radius: calc(var(--radius) * 1.5); padding: clamp(1.75rem, 4vw, 3rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-band h2 { margin: 0 0 .25rem; color: inherit; }
.cta-band p { margin: 0; }
.cta-band .btn { background: var(--brand-contrast); color: var(--brand); }
.cta-band .btn:hover { background: color-mix(in srgb, var(--brand-contrast) 88%, var(--brand)); color: var(--brand-strong); }
.cta-band :focus-visible { outline-color: var(--brand-contrast); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding-block: 3rem 2rem; margin-top: clamp(3rem, 6vw, 5rem); font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); margin-bottom: .75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.site-footer a { color: var(--ink); display: inline-block; padding-block: .3rem; }
.site-footer a:hover { color: var(--brand); }
.site-footer address { font-style: normal; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--ink-muted); font-size: .9rem; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }

/* ---------- Error pages ---------- */
.error-page { text-align: center; padding-block: clamp(4rem, 10vw, 8rem); }
.error-page .code { font-size: clamp(4rem, 12vw, 8rem); font-weight: 800; color: var(--brand); line-height: 1; margin-bottom: 1rem; }
.error-page .btn-row { justify-content: center; }

/* =========================================================
   Breakpoints – same as the previous site
   ========================================================= */

/* Tablet landscape */
@media (max-width: 991px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-media { max-width: 44rem; }
  .team-grid, .team-grid--staff { grid-template-columns: repeat(3, 1fr); }
  .team-grid--four { grid-template-columns: repeat(2, 1fr); }
  .service { grid-template-columns: 1fr; gap: .5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .site-nav a { padding-inline: .6rem; }
  .brand-text span { display: none; }
}

/* Tablet portrait / large phones: navigation becomes a popover menu */
@media (max-width: 767px) {
  :root { --header-h: 4rem; }
  .facts-grid { grid-template-columns: 1fr; }
  .contact-grid, .info-blocks { grid-template-columns: 1fr; }
  .team-grid, .team-grid--staff { grid-template-columns: repeat(2, 1fr); }

  @supports selector(:popover-open) {
    .nav-toggle { display: inline-flex; }
    .site-nav[popover]:not(:popover-open) { display: none; }
    .site-nav[popover]:popover-open {
      position: fixed; inset: auto; top: calc(var(--header-h) + .25rem); right: var(--gutter);
      width: min(20rem, calc(100vw - 2 * var(--gutter)));
      padding: .5rem; margin: 0;
      background: var(--surface); color: var(--ink);
      border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
    }
    @supports (anchor-name: --a) {
      .site-nav[popover]:popover-open {
        position-anchor: --nav-toggle;
        top: calc(anchor(bottom) + .5rem); right: anchor(right);
      }
    }
    .site-nav[popover]:popover-open ul { flex-direction: column; align-items: stretch; }
    .site-nav[popover]:popover-open a { display: flex; border-radius: var(--radius-sm); padding: .7rem 1rem; }
    .site-nav[popover]:popover-open .nav-cta a { margin: .35rem 0 0; justify-content: center; }
  }
  /* Without popover support the menu simply wraps below the logo */
  @supports not selector(:popover-open) {
    .site-header .wrap { flex-wrap: wrap; padding-block: .5rem; }
    .site-nav ul { flex-wrap: wrap; }
  }
}

/* Phones */
@media (max-width: 479px) {
  body { font-size: 1rem; }
  .brand-text span { display: none; }
  .brand img { width: 36px; height: 36px; }
  .btn-row .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-list div { grid-template-columns: 1fr; gap: 0; }
  .team-grid--staff { gap: 1.25rem .75rem; }
  .hero-media::before { display: none; }
}

/* ---------- Accessibility preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media (forced-colors: active) {
  .btn, .site-nav a, .nav-toggle, .service-nav a { border: 1px solid ButtonText; }
  .btn-primary, .site-nav .nav-cta a { background: ButtonFace; color: ButtonText; }
  .check-list li::before, .card .tag, .hero-media::before { background: CanvasText; }
  :focus-visible { outline-color: Highlight; }
  .site-header { backdrop-filter: none; }
}

@media print {
  .site-header, .skip-link, .nav-toggle, .cta-band, .site-footer nav { display: none !important; }
  body { color: #000; background: #fff; }
  a { color: #000; }
}

/* ---------- Utilities ---------- */
.more { margin-top: 1.5rem; }
.flush-top { padding-top: 0; }
address { font-style: normal; }
.nowrap { white-space: nowrap; }

/* ---------- Optical centering for pills ----------
   Epilogue's metrics (ascent 1580 / descent 470 per 2000 upm) place glyphs
   ~0.15em above the geometric centre. Shift the content box down by moving
   padding from bottom to top, and pull icons back up so they stay centred.
   (ascent-override is not supported by Safari, so this is done in layout.) */
:root { --optical: .15em; }
.btn, .site-nav a, .service-nav a, .nav-toggle {
  padding-top: calc(var(--pill-py) + var(--optical));
  padding-bottom: calc(var(--pill-py) - var(--optical));
}
.btn { --pill-py: .75rem; }
.site-nav a, .service-nav a { --pill-py: .4rem; }
.nav-toggle { --pill-py: .5rem; }
.btn svg, .nav-toggle svg { margin-top: calc(-2 * var(--optical)); }
@media (max-width: 767px) {
  .site-nav[popover]:popover-open a {
    padding-top: calc(.7rem + var(--optical));
    padding-bottom: calc(.7rem - var(--optical));
  }
}

/* =========================================================
   Aktuelles (blog)
   ========================================================= */
.post-list {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
}
.post-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  container-type: inline-size;
}
.post-card:has(.stretched:hover) { border-color: var(--brand); }
.post-card picture img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.post-card-body { padding: 1.25rem 1.4rem 1.4rem; display: grid; gap: .4rem; }
.post-card time { font-size: .85rem; font-weight: 600; letter-spacing: .02em; color: var(--brand); }
.post-card h2, .post-card h3 { font-size: 1.2rem; margin: 0; }
.post-card p { margin: 0; color: var(--ink-muted); }
.stretched { color: var(--ink); text-decoration: none; }
.stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.stretched:hover { color: var(--brand); text-decoration: underline; }
.stretched:focus-visible { outline: none; }
.post-card:has(.stretched:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
@container (min-width: 34rem) {
  .post-card-body { padding: 1.5rem 1.75rem 1.75rem; }
}
.empty { padding: 2rem; background: var(--bg-alt); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--ink-muted); }
.page-no { color: var(--ink-muted); font-weight: 500; }

.article { max-width: 52rem; padding-top: clamp(2rem, 5vw, 3.5rem); }
.article-head h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
.article-meta { color: var(--ink-muted); font-weight: 500; margin-bottom: 1.75rem; }
.article-hero img { width: 100%; border-radius: calc(var(--radius) * 1.25); box-shadow: var(--shadow); margin-bottom: 2rem; }
.article-body { font-size: 1.1rem; }
.prose img { border-radius: var(--radius); margin-block: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1em; }
.prose li + li { margin-top: .3em; }
.prose blockquote { margin: 1.5rem 0; padding: .75rem 1.25rem; border-left: 4px solid var(--brand); background: var(--brand-soft); border-radius: var(--radius-sm); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-variant-numeric: tabular-nums; }
.prose th, .prose td { padding: .6rem .5rem; border-bottom: 1px solid var(--line); text-align: left; }
.prose code { font-size: .95em; background: var(--bg-alt); padding: .1em .35em; border-radius: 4px; }
.ta-left { text-align: left !important; } .ta-center { text-align: center !important; } .ta-right { text-align: right !important; }

.pagination ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 2.5rem 0 0; padding: 0; }
.pagination a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
  padding: calc(.4rem + var(--optical)) .9rem calc(.4rem - var(--optical));
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none;
}
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: var(--brand-contrast); font-weight: 650; }

@media (forced-colors: active) {
  .pagination a { border: 1px solid ButtonText; }
  .post-card { border: 1px solid CanvasText; }
}
.post-card-ph {
  aspect-ratio: 3 / 2; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-soft), var(--bg-alt));
  border-bottom: 1px solid var(--line);
}
.post-card-ph img { width: 64px; height: 64px; opacity: .9; }
