/* marx.monster
   Layout: a reading edition. A narrow margin column (date, topic, reading time, notes) beside one
   reading column. Fraktur appears only in the wordmark, the first initial of a post and the error
   pages; the one colour accent (oxblood) marks topic names. Everything else is paper, ink and space. */

:root {
  --paper: #e9e9e6;
  --paper-sunk: #dedddb;
  --ink: #1a181b;
  --ink-soft: #4c4850;
  --rule: #c9c5bf;
  --blut: #6f1d2b;
  --scheme: light;
  --bild: 1;
  --ghost-accent-color: var(--blut);

  --fraktur: "Marx Monster Fraktur", "Old English Text MT", Georgia, serif;
  /* Subsets of UnifrakturMaguntia and UnifrakturCook, renamed as the OFL requires for modified versions (Reserved Font Name).
     The Maguntia subset draws plain lining figures; the Cook subset has broken blackletter figures for the error numbers. */
  --fraktur-ziffern: "Marx Monster Fraktur Ziffern", "Marx Monster Fraktur", Georgia, serif;
  --titel: var(--gh-font-heading, "Grenze", "Literata", Georgia, serif);
  --text: var(--gh-font-body, "Literata", Georgia, "Times New Roman", serif);

  --s-1: 0.9375rem;
  --s0: 1.125rem;
  --s1: 1.3125rem;
  --s2: 1.75rem;
  --s3: 2.5rem;
  --s4: clamp(2.2rem, 1.6rem + 2.6vw, 3.4rem);

  --rand: 10.5rem;
  --spalt: 2.75rem;
  --zeile: 34rem;
}

@media (prefers-color-scheme: dark) {
  html:not(.schema-hell) {
    --paper: #141215;
    --paper-sunk: #1d1a1e;
    --ink: #e6e0d9;
    --ink-soft: #aaa2a7;
    --rule: #3b353c;
    --blut: #d66a75;
    --scheme: dark;
    --bild: 0.85;
    color-scheme: dark;
  }
}
html.schema-dunkel {
  --paper: #141215;
  --paper-sunk: #1d1a1e;
  --ink: #e6e0d9;
  --ink-soft: #aaa2a7;
  --rule: #3b353c;
  --blut: #d66a75;
  --scheme: dark;
  --bild: 0.85;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: clip; }
/* The footer sits at the bottom of the window on short pages and after the content on long ones. */
body:not(.error-template) { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
body:not(.error-template) > main { flex: 1 0 auto; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--s0);
  line-height: 1.6;
  font-optical-sizing: auto;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
::selection { background: var(--blut); color: var(--paper); }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--blut); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--blut); outline-offset: 3px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--paper); padding: 0.5rem 1rem; z-index: 10; }

.wrap {
  max-width: 66rem;
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

/* head and foot */
.kopf .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.75rem 1.5rem;
}
.kopf .marke { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.6rem); }
.marke {
  font-family: var(--fraktur);
  font-size: var(--s2);
  line-height: 1;
  text-decoration: none;
}
.marke:hover { color: var(--blut); }
.menue { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 1.5rem; }
.menue ul, .fuss ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.menue a, .suche, .fuss nav a {
  display: inline-block;
  padding-block: 0.7rem;
  font: inherit;
  font-size: var(--s-1);
  color: var(--ink-soft);
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
}
.menue a:hover, .menue a[aria-current], .suche:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--blut); }
.suche:active { transform: translateY(1px); }
.sprachwechsel[hidden] { display: none; }

.fuss { border-top: 1px solid var(--rule); margin-top: 4rem; font-size: var(--s-1); color: var(--ink-soft); }
.fuss .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 2rem; padding-block: 1.5rem 2.5rem; }
.fuss .marke { font-size: var(--s1); color: var(--ink); }
.fuss p { margin: 0; flex: 1 1 16rem; }

/* plates: the feature image of a post or page */
.tafel { margin: 0; }
.plattenrand { position: relative; }
.tafel figcaption { margin-top: 0.7rem; font-size: var(--s-1); font-style: italic; line-height: 1.45; color: var(--ink-soft); }
.stich { display: block; width: 100%; filter: grayscale(1) contrast(1.05); }
.stich.is-drawn { visibility: hidden; }
.stich-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; color: var(--ink); }

/* home page: the picture as frontispiece beside the newest posts; below them on narrow screens */
.mit-tafel { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: 0 3.5rem; align-items: start; }
.frontispiz { margin: 0; }
/* Frame from the printing of Gothic novels, for pictures of any size: the thick-and-thin rule of a
   Minerva Press title page (1803) on four sides and the swelled rules of the Frankenstein title page
   (1818) above and below. The pieces are alpha masks cut from the scans (assets/img/rahmen/, built by
   rahmen/druckrahmen/rahmen_druck.py), laid out as mask layers and inked in the text colour, so the
   frame follows the colour scheme. Rule thickness stays fixed, as in print. */
.rahmen {
  --r: 0.4rem;
  --luft: 0.35rem;
  --sw-w: 3.2rem;
  --sw-h: 0.42rem;
  --oben: calc(var(--sw-h) + var(--luft));
  position: relative;
  padding: calc(var(--oben) + var(--r) + var(--luft)) calc(var(--r) + var(--luft));
}
.rahmen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  pointer-events: none;
  -webkit-mask-image: url("../img/rahmen/regel-oben.png"), url("../img/rahmen/regel-unten.png"), url("../img/rahmen/regel-links.png"), url("../img/rahmen/regel-rechts.png"), url("../img/rahmen/schwell-oben.png"), url("../img/rahmen/schwell-unten.png");
  -webkit-mask-position: 0 var(--oben), 0 calc(100% - var(--oben)), 0 var(--oben), 100% var(--oben), 50% 0, 50% 100%;
  -webkit-mask-size: 100% var(--r), 100% var(--r), var(--r) calc(100% - 2 * var(--oben)), var(--r) calc(100% - 2 * var(--oben)), var(--sw-w) var(--sw-h), var(--sw-w) var(--sw-h);
  -webkit-mask-repeat: no-repeat;
  mask-image: url("../img/rahmen/regel-oben.png"), url("../img/rahmen/regel-unten.png"), url("../img/rahmen/regel-links.png"), url("../img/rahmen/regel-rechts.png"), url("../img/rahmen/schwell-oben.png"), url("../img/rahmen/schwell-unten.png");
  mask-position: 0 var(--oben), 0 calc(100% - var(--oben)), 0 var(--oben), 100% var(--oben), 50% 0, 50% 100%;
  mask-size: 100% var(--r), 100% var(--r), var(--r) calc(100% - 2 * var(--oben)), var(--r) calc(100% - 2 * var(--oben)), var(--sw-w) var(--sw-h), var(--sw-w) var(--sw-h);
  mask-repeat: no-repeat;
}
.frontispiz img { display: block; width: 100%; height: auto; }
.frontispiz picture, .plattenrand picture, .schluss picture { display: block; }
.frontispiz img, .schluss img, .stich-canvas, .gh-content img { filter: brightness(var(--bild)); }
.tafel .stich { filter: grayscale(1) contrast(1.05) brightness(var(--bild)); }

/* closing vignette above the footer: the picture fades into the paper */
.schluss { max-width: 30rem; margin: 5rem auto 0; padding-inline: 24px; }
.schluss img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: radial-gradient(ellipse farthest-corner at 50% 50%, #000 45%, transparent 72%);
  mask-image: radial-gradient(ellipse farthest-corner at 50% 50%, #000 45%, transparent 72%);
}
.schluss + .fuss { margin-top: 1.5rem; }

/* lists of posts */
.liste .wrap { padding-block: 0 2rem; }
.liste h2, .register h2 {
  margin: 0 0 2rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--ink);
  font-family: var(--text);
  font-size: var(--s-1);
  font-weight: 400;
  color: var(--ink-soft);
}
.eintraege { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.75rem; }
.eintrag { display: grid; grid-template-columns: var(--rand) minmax(0, 30rem); gap: 0.4rem var(--spalt); }
.rand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding-top: 0.35rem;
  font-size: var(--s-1);
  line-height: 1.45;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.thema { color: var(--blut); font-style: italic; text-decoration: none; }
.rand a.thema { display: inline-block; padding-block: 0.25rem; }
a.thema:hover { text-decoration: underline; }
.eintrag h3 {
  margin: 0 0 0.45rem;
  font-family: var(--titel);
  font-weight: 400;
  font-size: var(--s2);
  line-height: 1.12;
  text-wrap: balance;
}
.eintrag h3 a { text-decoration: none; }
.eintrag h3 a:hover { text-decoration: underline; text-decoration-color: var(--blut); }
.eintrag p { margin: 0; max-width: 62ch; text-wrap: pretty; }
.eintrag .lesezeit { margin-top: 0.35rem; font-size: var(--s-1); color: var(--ink-soft); }

.blaettern { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; font-size: var(--s-1); color: var(--ink-soft); }
.blaettern a { color: var(--ink); padding-block: 0.6rem; }

/* topic list on the home page */
.register .wrap { padding-block: 2rem 0; }
.register ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; }
.register li span { font-size: var(--s-1); color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* page heads: tag, author, archive, topics */
.seitenkopf .wrap { padding-block: 3rem 3rem; }
.seitenkopf h1 {
  margin: 0 0 1rem;
  font-family: var(--titel);
  font-weight: 400;
  font-size: var(--s4);
  line-height: 1.05;
}
.thema-titel { color: var(--blut); }
.vorspann { margin: 0; max-width: 36rem; font-size: var(--s1); line-height: 1.45; color: var(--ink-soft); text-wrap: pretty; }
.zurueck { margin: 0 0 1.25rem; font-size: var(--s-1); }
.zurueck a { color: var(--ink-soft); }

.archiv-liste { list-style: none; margin: 0; padding: 0; max-width: 46rem; }
.archiv-liste li {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr) auto;
  gap: 0 1.5rem;
  align-items: baseline;
  padding-block: 0.6rem;
  border-bottom: 1px solid var(--rule);
}
.archiv-liste time { font-size: var(--s-1); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.archiv-liste a { text-decoration: none; }
.archiv-liste a:hover { text-decoration: underline; text-decoration-color: var(--blut); }
.archiv-liste .thema { font-size: var(--s-1); }

.lexikon dl { margin: 0; display: grid; gap: 2.25rem; max-width: 42rem; }
.lemma dt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1rem; }
.lemma dt a { font-family: var(--titel); font-size: var(--s2); line-height: 1.1; color: var(--blut); text-decoration: none; }
.lemma dt a:hover { text-decoration: underline; }
.lemma dt span { font-size: var(--s-1); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.lemma dd { margin: 0.4rem 0 0; max-width: 62ch; }

/* single post */
article > .wrap { padding-block: 2.5rem 2rem; }
.beitrag-kopf { display: grid; grid-template-columns: var(--rand) minmax(0, 44rem); gap: 0.4rem var(--spalt); margin-bottom: 2.75rem; }
.beitrag-kopf h1 {
  margin: 0 0 0.9rem;
  font-family: var(--titel);
  font-weight: 400;
  font-size: var(--s4);
  line-height: 1.04;
  text-wrap: balance;
}
.beitrag-bild { margin: 0 0 2.75rem calc(var(--rand) + var(--spalt)); max-width: var(--zeile); }
@media (min-width: 1081px) {
  /* Desktop: a wider reading column (about 69 characters of Literata at 18px instead of 60); the frame grows with it so
     the margin notes and the image column beside posts keep their width. */
  :root { --zeile: 39rem; }
  .wrap { max-width: 72rem; }
  .mit-bild { display: grid; grid-template-columns: minmax(0, 1fr) 13.25rem; column-gap: 2.5rem; align-items: start; }
  .mit-bild > .beitrag-kopf, .mit-bild > .gh-content { grid-column: 1; }
  .mit-bild > .beitrag-bild { grid-column: 2; grid-row: 1 / span 2; margin: 0; max-width: none; }
}

.gh-content {
  display: grid;
  grid-template-columns: var(--rand) minmax(0, var(--zeile)) minmax(0, 1fr);
  column-gap: var(--spalt);
}
.gh-content > * { grid-column: 2; min-width: 0; }
.gh-content > p, .gh-content > ul, .gh-content > ol { margin: 0 0 1.25rem; hyphens: auto; text-wrap: pretty; }
.gh-content li + li { margin-top: 0.35rem; }
.gh-content > p:first-child::first-letter {
  float: left;
  padding: 0.3rem 0.55rem 0 0;
  font-family: var(--fraktur);
  font-size: 4.3rem;
  line-height: 0.82;
}
.gh-content h2, .gh-content h3 { margin: 2.25rem 0 0.7rem; font-family: var(--titel); font-weight: 400; line-height: 1.15; text-wrap: balance; }
.gh-content h2 { font-size: var(--s2); }
.gh-content h3 { font-size: var(--s1); }
.gh-content blockquote { margin: 0.75rem 0 1.75rem; padding: 0 0 0 1.5rem; font-size: var(--s0); font-style: italic; line-height: 1.55; }
.gh-content blockquote p { margin: 0 0 0.5rem; }
.gh-content blockquote cite { display: block; margin-top: 0.6rem; font-size: var(--s-1); font-style: normal; color: var(--ink-soft); }
.gh-content blockquote.kg-blockquote-alt { padding-left: 0; font-size: var(--s1); text-align: left; }
.gh-content hr { border: 0; margin: 2.5rem 0; height: auto; text-align: center; }
.gh-content hr::after { content: "\2042"; color: var(--ink-soft); }
.gh-content figure { margin: 1.5rem 0 2.25rem; }
.gh-content figcaption { margin-top: 0.7rem; font-size: var(--s-1); font-style: italic; line-height: 1.45; color: var(--ink-soft); }
.gh-content pre { overflow-x: auto; padding: 1rem; background: var(--paper-sunk); font-size: var(--s-1); }
.gh-content code { font-family: ui-monospace, monospace, monospace; }
.gh-content table { display: block; overflow-x: auto; border-collapse: collapse; font-size: var(--s-1); font-variant-numeric: tabular-nums; }
.gh-content th, .gh-content td { padding: 0.4rem 1rem 0.4rem 0; border-bottom: 1px solid var(--rule); text-align: left; }

/* Koenig cards, flattened to paper and ink */
.gh-content > .kg-width-wide { grid-column: 1 / -1; }
.gh-content > .kg-width-full { grid-column: 1 / -1; width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.kg-width-full img { width: 100%; }
.kg-image { display: block; margin: 0 auto; }
.gh-content .kg-callout-card { padding: 1rem 1.25rem; border-radius: 0; background: var(--paper-sunk); }
.gh-content .kg-callout-card-grey, .gh-content .kg-callout-card-white, .gh-content .kg-callout-card-accent { background: var(--paper-sunk); color: var(--ink); }
.gh-content .kg-callout-emoji { display: none; }
.gh-content .kg-toggle-card { border-radius: 0; box-shadow: none; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: none; padding: 0.75rem 0; }
.gh-content .kg-toggle-heading-text { font-family: var(--titel); font-size: var(--s1); font-weight: 400; }
.gh-content .kg-bookmark-card a.kg-bookmark-container { border-radius: 0; box-shadow: none; border: 1px solid var(--rule); color: var(--ink); background: var(--paper); }
.gh-content .kg-bookmark-title { font-family: var(--titel); font-weight: 400; font-size: var(--s1); }
.gh-content .kg-bookmark-description, .gh-content .kg-bookmark-metadata { color: var(--ink-soft); font-size: var(--s-1); }
.gh-content .kg-bookmark-thumbnail img { border-radius: 0; filter: grayscale(1); }
.gh-content .kg-btn, .gh-content .kg-button-card a.kg-btn { border-radius: 0; background: var(--ink); color: var(--paper); font-family: var(--text); font-weight: 400; }
.gh-content .kg-btn:hover { background: var(--blut); }
.gh-content .kg-gallery-image img, .gh-content .kg-image-card img { border-radius: 0; }

/* footnotes: in the margin on wide screens, at the end on narrow ones */
.gh-content .footnotes { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: var(--s-1); color: var(--ink-soft); }
.gh-content .footnotes ol { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.35rem; }
.gh-content .footnotes-sep { display: none; }
.gh-content .footnote-ref a { color: var(--blut); text-decoration: none; font-size: var(--s-1); padding-inline: 0.1em; }
.sidenote {
  float: left;
  clear: left;
  width: var(--rand);
  margin: 0.3rem 0 0 calc(-1 * (var(--rand) + var(--spalt)));
  font-size: var(--s-1);
  line-height: 1.45;
  color: var(--ink-soft);
}
.sidenote b { margin-right: 0.3em; font-weight: 400; color: var(--blut); }
.has-sidenotes .footnotes { display: none; }


/* comments (Ghost comments-ui in its own frame), in the reading column */
.kommentare .wrap { padding-block: 1rem 0; }
.kommentare-spalte { max-width: var(--zeile); margin-left: calc(var(--rand) + var(--spalt)); }
.kommentare h2 { margin: 0 0 1rem; padding-top: 0.75rem; border-top: 1px solid var(--ink); font-family: var(--text); font-size: var(--s-1); font-weight: 400; color: var(--ink-soft); }
.kommentar-hinweis { margin: 0 0 1.25rem; font-size: var(--s-1); line-height: 1.5; color: var(--ink-soft); }

/* Isso: its own stylesheet stays, its colour variables follow the theme (and dark mode); no rounded boxes or shadows. */
#isso-thread {
  --isso-primary-text-color: var(--ink);
  --isso-secondary-text-color: var(--ink-soft);
  --isso-border: 1px solid var(--rule);
  --isso-box-shadow-color: transparent;
  --isso-hover-color: var(--ink);
  --isso-link-hover-color: var(--ink);
  --isso-link-text-shadow-color: transparent;
  --isso-input-background-color: var(--paper);
  --isso-input-outline-color: var(--blut);
  --isso-button-background-color: var(--ink);
  --isso-button-border: 0;
  --isso-button-hover-background-color: var(--blut);
  --isso-button-active-background-color: var(--blut);
  --isso-preview-border-color: var(--rule);
  --isso-pre-color: var(--ink);
  --isso-pre-background-color: var(--paper-sunk);
  --isso-pre-border-color: var(--rule);
  --isso-comment-divider-color: var(--rule);
  --isso-page-author-suffix-color: var(--ink-soft);
  --isso-target-fade-background-color: var(--paper-sunk);
  font-family: var(--text);
  color: var(--ink);
}
#isso-thread *, #isso-thread *::before { border-radius: 0 !important; box-shadow: none !important; }
#isso-thread input, #isso-thread textarea { font: inherit; color: var(--ink); min-height: 44px; }
#isso-thread input[type="submit"], #isso-thread .isso-preview-mode input { color: var(--paper); min-height: 44px; padding-inline: 1.1rem; cursor: pointer; }
#isso-thread .isso-text a { color: var(--ink); text-decoration-color: var(--blut); }
/* Only text and an optional name: the email and website fields are hidden (the server drops them anyway). */
#isso-thread .isso-input-wrapper:has(#isso-postbox-email), #isso-thread .isso-input-wrapper:has(#isso-postbox-website), #isso-thread .isso-notification-section { display: none; }
.kommentare-laden { font: inherit; padding: 0.55rem 1.1rem; min-height: 44px; border: 0; background: var(--ink); color: var(--paper); cursor: pointer; }
.kommentare-laden:hover { background: var(--blut); }
#isso-thread .isso-thread-heading { display: none; } /* the section heading above already says "Kommentare" */

/* language switch for posts written in two languages (theme.js builds it from markers in the post) */
.sprachhinweis { margin: 0 0 1.5rem; font-size: var(--s-1); font-style: italic; color: var(--ink-soft); }
.gh-content > [hidden] { display: none !important; }
.gh-content .sprachmarke { display: none; }

.nachbarn { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: var(--zeile); margin-left: calc(var(--rand) + var(--spalt)); padding-block: 2rem 0; border-top: 1px solid var(--rule); }
.nachbarn a { font-family: var(--titel); font-size: var(--s1); line-height: 1.2; text-decoration: none; }
.nachbarn a:hover { text-decoration: underline; text-decoration-color: var(--blut); }
.nachbarn span[data-en] { display: block; margin-bottom: 0.2rem; font-family: var(--text); font-size: var(--s-1); color: var(--ink-soft); }
.nachbarn .spaeter { grid-column: 2; text-align: right; }

/* 404: only the number and the quote, both in Fraktur, set by the old rules:
   long s inside syllables, emphasis by letter-spacing (Sperrsatz) with widened word spaces,
   no hyphenation, balanced lines, and the group a little above the geometric centre. */
.leere {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 2rem;
  padding-block: 3rem 6rem;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
  text-align: center;
}
.leere h1 { margin: 0; font-family: var(--fraktur-ziffern); font-weight: 700; font-size: clamp(7rem, 4rem + 14vw, 14rem); line-height: 0.85; }
.leere h1 a { text-decoration: none; }
.leere h1 a:hover { color: var(--blut); }
.leere blockquote { margin: 0; max-width: 30rem; }
.leere blockquote p {
  margin: 0;
  font-family: var(--fraktur);
  font-size: var(--s2);
  line-height: 1.4;
  font-feature-settings: "liga" 1, "rlig" 1, "hlig" 1;
  hyphens: none;
  text-wrap: balance;
}
.leere blockquote em { font-style: normal; letter-spacing: 0.15em; padding-left: 0.15em; }

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

/* other errors: a mourning card with the black edge of a printed death notice */
.fehler .wrap { max-width: 40rem; padding-block: 1.75rem 5rem; }
.trauerkarte {
  margin: 3rem 0 2.5rem;
  padding: clamp(1.75rem, 1rem + 3vw, 3rem);
  border: 7px solid var(--ink);
  outline: 1px solid var(--ink);
  outline-offset: 5px;
  text-align: center;
}
.trauerkarte .code { margin: 0 0 0.75rem; font-family: var(--fraktur-ziffern); font-weight: 700; font-size: clamp(4.5rem, 3.5rem + 5vw, 7rem); line-height: 1; }
.trauerkarte h1 { margin: 0 0 1.25rem; font-family: var(--titel); font-weight: 400; font-size: var(--s3); line-height: 1.1; text-wrap: balance; }
.trauerkarte p { margin: 0 0 1rem; }
.trauerkarte blockquote { margin: 2rem auto; max-width: 26rem; font-style: italic; }
.trauerkarte blockquote p { margin: 0 0 0.5rem; }
.trauerkarte cite { font-size: var(--s-1); font-style: normal; color: var(--ink-soft); }
.erben { margin-bottom: 0; }


@media (max-width: 1080px) {
  .mit-tafel { grid-template-columns: minmax(0, 1fr); }
  .frontispiz { max-width: 24rem; margin-top: 3.5rem; }
}

@media (max-width: 820px) {
  :root { --s0: 1.0625rem; }
  .eintrag, .beitrag-kopf { grid-template-columns: minmax(0, 1fr); }
  .rand { flex-direction: row; flex-wrap: wrap; gap: 0 0.9rem; padding-top: 0; }
  .gh-content { grid-template-columns: minmax(0, 1fr); }
  .gh-content > *, .gh-content > .kg-width-wide { grid-column: 1; }
  .beitrag-bild { margin-left: 0; }
  .sidenote { display: none; }
  .has-sidenotes .footnotes { display: block; }
  .archiv-liste li { grid-template-columns: minmax(0, 1fr); }
  .nachbarn { grid-template-columns: minmax(0, 1fr); margin-left: 0; }
  .kommentare-spalte { margin-left: 0; }
  .nachbarn .spaeter { grid-column: 1; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}


/* embedded players: a quiet notice with one button until the reader loads the player */
.gh-content .einbettung { margin: 1.5rem 0 2.25rem; padding: 1.25rem 1.5rem; background: var(--paper-sunk); }
.einbettung-hinweis { margin: 0 0 0.9rem; font-size: var(--s-1); line-height: 1.5; color: var(--ink-soft); }
.einbettung button {
  font: inherit;
  padding: 0.55rem 1.1rem;
  min-height: 44px;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
}
.einbettung button:hover { background: var(--blut); }
.einbettung button:active { transform: translateY(1px); }
.einbettung button[hidden] { display: none; }
.einbettung:focus-visible, .einbettung:focus { outline: 2px solid var(--blut); outline-offset: 3px; }

