/* Katarina Mose – Autorinnenseite
   Farben aus dem Romancover, Schriften lokal eingebunden (keine Google-Server). */

@font-face {
  font-family: "Literata";
  src: url("../fonts/literata.woff2") format("woff2-variations");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("../fonts/literata-italic.woff2") format("woff2-variations");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --surface: #fbf0ea;
  --ink: #17323a;
  --ink-soft: #4d6268;
  --petrol: #2c5d69;
  --line: #eadfd8;
  --orange: #e2400f;
  --lachs: #f3a07c;
  --stage-bg: #fcece2;
  --stage-dot: #f5c7ae;
  --sachbuch-bg: #e9eff5;
  --sachbuch-ring: #dfe9cf;
  --plum: #86106a;
  --navy: #102657;
  --lime: #c9d300;
  --button-bg: #17323a;
  --button-ink: #ffffff;

  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --measure: 36rem;
  --wide: 72rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --space: clamp(4rem, 9vw, 7.5rem);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #10252a;
    --surface: #173138;
    --ink: #f1ebe6;
    --ink-soft: #b7c2c4;
    --petrol: #96c9d4;
    --line: #29444b;
    --plum: #e48bcb;
    --button-bg: #f1ebe6;
    --button-ink: #10252a;
    --stage-bg: #1c3a41;
    --stage-dot: #2c545d;
    --sachbuch-bg: #1b3046;
    --sachbuch-ring: #213a52;
    color-scheme: dark;
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--petrol); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--orange); }

:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; }

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

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--button-bg); color: var(--button-ink);
  padding: 0.6rem 1rem; font-family: var(--sans);
}
.skip-link:focus { top: 1rem; }

/* Platzhalter: gelb markiert, damit nichts davon versehentlich online bleibt */
.ph { background: #fff1a6; color: #3d3200; padding: 0 0.25em; border-radius: 2px; }

/* ---------- Kopf ---------- */

.site-header {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 0.75rem 2rem;
  max-width: var(--wide); margin: 0 auto;
  padding: 1.5rem var(--gutter);
}
.wordmark {
  font-family: var(--serif); font-weight: 600; font-size: 1.4rem;
  letter-spacing: -0.005em; color: var(--ink); text-decoration: none; margin: 0;
}
.wordmark a { color: inherit; text-decoration: none; }
.site-nav ul {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem;
  list-style: none; margin: 0; padding: 0;
  font-family: var(--sans); font-size: 0.98rem; font-weight: 500;
}
.site-nav a { color: var(--ink); text-decoration: none; padding: 0.25rem 0; }
.site-nav a:hover { color: var(--orange); }
.site-nav a[aria-current="page"] {
  text-decoration: underline; text-decoration-color: var(--orange);
  text-decoration-thickness: 2px; text-underline-offset: 0.45em;
}

/* ---------- Typografie ---------- */

h1, h2, h3 { font-family: var(--serif); color: var(--ink); text-wrap: balance; }
h1 {
  font-size: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  font-weight: 620; line-height: 1.04; letter-spacing: -0.015em;
  margin: 0 0 1.25rem;
}
h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.35rem);
  font-weight: 600; line-height: 1.15; letter-spacing: -0.01em;
  margin: 0 0 1rem;
}
h3 { font-size: 1.2rem; font-weight: 650; line-height: 1.3; margin: 2rem 0 0.5rem; }
p { margin: 0 0 1.1em; }

.meta {
  font-family: var(--sans); font-size: 1rem; line-height: 1.5;
  color: var(--ink-soft); margin-bottom: 1.5rem;
}
.lede { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem); line-height: 1.5; font-style: italic; }

.button {
  display: inline-block;
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
  background: var(--button-bg); color: var(--button-ink);
  padding: 0.85em 1.4em; border-radius: 2px; text-decoration: none;
}
.button:hover { background: var(--orange); color: #fff; }

.textlink { font-family: var(--sans); font-weight: 600; font-size: 1rem; }

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

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--space) 0; }
.section + .section { padding-top: 0; }
.section.band { padding-top: var(--space); }
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 3rem; }
.prose h2:first-child { margin-top: 0; }

/* Buch-Bühne: links das Cover auf Farbfläche, rechts der Text */
.stage {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: min(80vh, 760px);
}
.stage__art {
  display: grid; place-items: center;
  padding: clamp(2.5rem, 7vw, 5.5rem) var(--gutter);
}
.stage__art img {
  width: min(100%, 330px);
  box-shadow: 0 2px 4px rgba(40, 10, 0, 0.18), 0 28px 50px -18px rgba(40, 10, 0, 0.55);
}
.stage__text {
  align-self: center;
  padding: clamp(2.5rem, 6vw, 5rem) var(--gutter);
  max-width: 38rem;
}
.stage__text h1, .stage__text h2.stage-title {
  font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.25rem);
  font-weight: 620; line-height: 1.04; letter-spacing: -0.015em;
}

/* Rasterfläche nach dem Romancover: Punktreihen, diagonal, zur Mitte hin dichter */
.raster { position: relative; isolation: isolate; overflow: hidden; background: var(--stage-bg); }
.raster::before, .raster::after {
  content: ""; position: absolute; inset: -60%; z-index: -1;
  transform: rotate(-32deg);
}
.raster::before {
  background-image: radial-gradient(circle, var(--stage-dot) 1.3px, transparent 1.8px);
  background-size: 6px 11px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 30%, #000 45%, #000 55%, transparent 70%);
  mask-image: linear-gradient(to bottom, transparent 30%, #000 45%, #000 55%, transparent 70%);
}
.raster::after {
  background-image: radial-gradient(circle, var(--stage-dot) 2.7px, transparent 3.2px);
  background-size: 6px 11px;
  -webkit-mask-image: radial-gradient(ellipse 22% 7% at 54% 48%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 22% 7% at 54% 48%, #000 30%, transparent 100%);
}

/* Das Romanbuch ist freigestellt: Schatten folgt der Buchform statt einem Rechteck */
.stage__art img.book3d {
  width: min(100%, 360px);
  box-shadow: none;
  filter: drop-shadow(0 3px 4px rgba(90, 30, 0, 0.18)) drop-shadow(0 26px 30px rgba(90, 30, 0, 0.28));
}

/* Fläche für das Sachbuch, nach dessen Cover */
.panel-navy {
  background:
    radial-gradient(circle at 88% 10%, var(--sachbuch-ring) 0 22%, transparent 22.2%),
    var(--sachbuch-bg);
}
.stage--long .stage__text h1 { font-size: clamp(2rem, 1.3rem + 2.2vw, 3.1rem); line-height: 1.1; }

/* Zweitbuch auf der Startseite */
.book-row {
  display: grid; grid-template-columns: 11rem minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start;
}
.book-row img { box-shadow: 0 18px 36px -16px rgba(10, 20, 40, 0.45); }
.book-row .prose { padding-top: 0.25rem; }

/* Kurzporträt */
.portrait-row {
  display: grid; grid-template-columns: 15rem minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start;
}

.portrait-row--right { grid-template-columns: minmax(0, 1fr) 15rem; }
.portrait-row--right .prose { order: -1; }

.band { background: var(--surface); }

/* Angaben zum Buch */
.facts {
  display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 2rem;
  margin: 0 0 2rem; padding: 1.5rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.facts dt { font-family: var(--sans); font-size: 0.95rem; color: var(--ink-soft); padding-top: 0.15em; }
.facts dd { margin: 0; }

.links { list-style: none; margin: 0 0 2rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; }

/* Über mich */
.about {
  display: grid; grid-template-columns: minmax(0, 1fr) 24rem;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
}
.clipping {
  margin: 0; display: grid; grid-template-columns: 13rem minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start;
}
.clipping__paper {
  background: #efeae0; padding: 0.9rem 0.9rem 0.6rem;
  transform: rotate(-1.2deg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15), 0 14px 28px -14px rgba(0, 0, 0, 0.35);
}
.clipping__paper img { mix-blend-mode: multiply; }
.clipping figcaption, .caption {
  font-family: var(--sans); font-size: 0.92rem; line-height: 1.45; color: var(--ink-soft); margin-top: 0.9rem;
}

/* Kontakt und Presse */
.contact-mail { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem); }
.boxed { background: var(--surface); padding: 1.5rem 1.75rem; margin: 0 0 2rem; }
.downloads { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); }
.downloads img { height: 12rem; width: auto; max-width: 100%; object-fit: contain; object-position: left bottom; margin-bottom: 0.6rem; }
.downloads a { font-family: var(--sans); font-weight: 600; font-size: 0.98rem; }
.downloads li > span { display: block; font-family: var(--sans); font-size: 0.88rem; color: var(--ink-soft); }

/* Rechtstexte */
.legal h2 { font-size: 1.3rem; margin-top: 2.25rem; }
.legal address { font-style: normal; margin-bottom: 1.1em; }

/* ---------- Fuß ---------- */

.site-footer {
  border-top: 1px solid var(--line);
}
.site-footer .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem;
  padding-top: 2rem; padding-bottom: 2.5rem;
  font-family: var(--sans); font-size: 0.92rem; color: var(--ink-soft);
}
.site-footer ul { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }
.site-footer a { color: var(--ink-soft); }


/* ---------- Schmale Bildschirme ---------- */

@media (max-width: 820px) {
  .stage { grid-template-columns: 1fr; min-height: 0; }
  .stage__art img { width: min(58vw, 240px); }
  .stage__art img.book3d { width: min(62vw, 260px); }
  .book-row { grid-template-columns: 7.5rem minmax(0, 1fr); }
  .portrait-row { grid-template-columns: 1fr; }
  .portrait-row img { width: min(60vw, 15rem); }
  .about { grid-template-columns: 1fr; }
  .about > img { order: -1; width: min(60vw, 15rem); }
  .clipping { grid-template-columns: 1fr; }
  .clipping__paper { width: min(62vw, 13rem); }
}
@media (max-width: 520px) {
  .site-header { flex-direction: column; gap: 0.6rem; }
  .site-nav ul { gap: 0.3rem 1.1rem; font-size: 0.95rem; }
  .facts { grid-template-columns: 1fr; gap: 0.1rem; }
  .facts dd { margin-bottom: 0.6rem; }
}

@media print {
  .site-nav, .site-footer, .raster::before, .raster::after { display: none; }
  .raster, .panel-navy { background: none; }
}

/* Textspalte bündig mit dem Kopf, statt mittig */
.wrap.prose { max-width: var(--wide); }
.wrap.prose > * { max-width: var(--measure); }

@media (max-width: 820px) {
  .book-row { grid-template-columns: 1fr; }
  .book-row > a img { width: 8.5rem; }
}
@media (max-width: 520px) {
  body { hyphens: auto; }
  h1, h2 { hyphens: auto; overflow-wrap: break-word; }
}

/* Zeitungsartikel 1983 */
.article { margin: 2.5rem 0 0; }
.article__paper {
  display: block; background: #efeae0; padding: clamp(0.5rem, 1.5vw, 1.1rem);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15), 0 18px 36px -18px rgba(0, 0, 0, 0.4);
  max-width: 66rem;
}
.article__paper img { mix-blend-mode: multiply; width: 100%; }
.article figcaption {
  font-family: var(--sans); font-size: 0.92rem; color: var(--ink-soft); margin-top: 0.9rem;
}

/* Downloads dürfen breiter laufen als die Textspalte */
.wrap.prose > .downloads { max-width: 48rem; }

@media (max-width: 820px) {
  .portrait-row--right { grid-template-columns: 1fr; }
  .portrait-row--right .prose { order: 0; }
  .portrait-row--right img { order: -1; }
}

/* Bilder in der Downloadliste: Hochformat und Querformat gleich hoch */
.downloads img { height: 10rem; }

/* Lange E-Mail-Adressen dürfen umbrechen */
.facts dd { overflow-wrap: anywhere; }
.facts + h3, .prose h3 + .facts { margin-top: 0.75rem; }

/* Kontaktformular */
.contact-form { margin: 0 0 1rem; }
.contact-form p { margin: 0 0 1.1rem; }
.contact-form label {
  display: block; margin-bottom: 0.35rem;
  font-family: var(--sans); font-size: 0.98rem; font-weight: 600; color: var(--ink);
}
.contact-form input, .contact-form textarea {
  width: 100%; padding: 0.7rem 0.8rem;
  font: inherit; font-size: 1rem; line-height: 1.5; color: var(--ink);
  background: var(--paper); border: 1px solid #b9c4c6; border-radius: 2px;
}
.contact-form textarea { resize: vertical; min-height: 9rem; }
.contact-form input:focus-visible, .contact-form textarea:focus-visible { outline: 3px solid var(--plum); outline-offset: 1px; border-color: var(--ink); }
.contact-form .button { border: 0; cursor: pointer; }
.form-note { font-family: var(--sans); font-size: 0.92rem; color: var(--ink-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (prefers-color-scheme: dark) {
  .contact-form input, .contact-form textarea { border-color: var(--line); background: var(--surface); }
}
