/* ullherr.net – colours and type follow the cover of "Niemand hat alles gelesen" */
:root {
  --paper: #F9F1E5;
  --surface: #F2E8D8;
  --ink: #231F20;
  --muted: #5F5955;
  --line: #DDD0BC;
  --teal: #00867F;
  --teal-text: #006B65;
  --orange: #E07A1F;
  --orange-text: #A54E00;
  --grey: #727070;
  --ring-dark: #231F20;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #181615;
    --surface: #23201E;
    --ink: #F3ECE2;
    --muted: #B5ACA2;
    --line: #3A3531;
    --teal: #2FB3A9;
    --teal-text: #4CC7BD;
    --orange: #EE8A33;
    --orange-text: #F2A05A;
    --grey: #8F8B88;
    --ring-dark: #F3ECE2;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
a { color: var(--teal-text); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 42rem; }

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

/* Header */
.top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem; padding-top: 1.75rem; padding-bottom: 1.75rem; }
.wordmark { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.top nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.top nav a { font-size: 0.9375rem; color: var(--ink); text-decoration: none; padding: 0.25rem 0; }
.top nav a:hover, .top nav a[aria-current] { color: var(--teal-text); text-decoration: underline; }

/* Small orange label, as on the cover */
.label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--orange-text); margin: 0 0 1.25rem; }
.bar { width: 4.5rem; height: 4px; background: var(--orange); border: 0; margin: 0 0 1.75rem; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3rem; padding-top: 4rem; padding-bottom: 5rem; }
.hero h1 { font-size: clamp(2.75rem, 8vw, 5.5rem); font-weight: 800; letter-spacing: -0.035em; text-transform: uppercase; }
.hero h1 span { display: block; }
.hero h1 .t { color: var(--teal); }
.hero .lead { font-size: clamp(1.125rem, 2.2vw, 1.375rem); line-height: 1.5; max-width: 34rem; margin: 1.75rem 0 0; }
.ring { width: clamp(9rem, 24vw, 17rem); }
.ring .r-teal { stroke: var(--teal); }
.ring .r-grey { stroke: var(--grey); }
.ring .r-dark, .ring .r-line { stroke: var(--ring-dark); }

/* Sections */
section { padding: 4.5rem 0; }
section + section { border-top: 1px solid var(--line); }
.hero + section { border-top: 0; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 1.5rem; }

/* Book feature */
.book { background: var(--surface); }
.book .wrap { display: grid; grid-template-columns: minmax(12rem, 20rem) 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.cover { box-shadow: 0 1px 2px rgba(35,31,32,.2), 0 18px 40px -12px rgba(35,31,32,.45); border-radius: 2px; }
.cover-link { display: block; transition: transform .25s ease; }
.cover-link:hover { transform: translateY(-4px); }
@media (prefers-reduced-motion: reduce) { .cover-link { transition: none; } .cover-link:hover { transform: none; } }
.book h2 { text-transform: uppercase; font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -0.03em; }
.book h2 .t { color: var(--teal); display: block; }
.tagline { font-size: 1.1875rem; line-height: 1.45; max-width: 30rem; }
.quote { font-size: clamp(1.25rem, 2.6vw, 1.625rem); font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; margin: 0 0 1.5rem; max-width: 30rem; text-wrap: balance; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.btn { display: inline-block; padding: 0.8rem 1.4rem; font-weight: 600; font-size: 0.9375rem; text-decoration: none; border: 2px solid var(--ink); color: var(--ink); border-radius: 999px; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.primary { background: var(--teal-text); border-color: var(--teal-text); color: #fff; }
.btn.primary:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
@media (prefers-color-scheme: dark) { .btn.primary { color: #10201F; } }

/* Projects */
.projects { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.projects li { border-bottom: 1px solid var(--line); }
.projects a { display: grid; grid-template-columns: minmax(10rem, 17rem) 1fr auto; gap: 0.25rem 2rem; align-items: baseline; padding: 1.4rem 0; color: var(--ink); text-decoration: none; }
.projects h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }
.projects p { margin: 0; color: var(--muted); }
.projects .dom { font-size: 0.875rem; color: var(--teal-text); white-space: nowrap; }
.projects a:hover h3 { color: var(--teal-text); }
.projects a:hover .dom { text-decoration: underline; }

/* About and contact */
.two { display: grid; grid-template-columns: minmax(10rem, 17rem) 1fr; gap: 1rem 2rem; }
.two h2 { margin: 0; }
.two .body { max-width: 38rem; }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contact-list li { padding: 0.35rem 0; }

/* Book page */
.book-head { display: grid; grid-template-columns: minmax(12rem, 22rem) 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; padding-top: 3rem; padding-bottom: 4.5rem; }
.book-head h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); font-weight: 800; text-transform: uppercase; letter-spacing: -0.035em; margin-bottom: 1.5rem; }
.book-head h1 .t { color: var(--teal); display: block; }
.book-head .blurb { max-width: 34rem; }
.book-head .blurb strong { font-weight: 600; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1.5rem; margin: 2rem 0 0; font-size: 0.9375rem; max-width: 34rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

.note { font-family: var(--serif); font-size: clamp(1.25rem, 2.8vw, 1.625rem); line-height: 1.4; font-style: italic; text-align: center; max-width: 30rem; margin: 0 auto; text-wrap: balance; }

.excerpt { font-family: var(--serif); font-size: 1.1875rem; line-height: 1.65; hyphens: auto; }
.excerpt p { margin: 0; text-indent: 1.5em; }
.excerpt p:first-of-type, .excerpt p.flush { text-indent: 0; }
.excerpt h3 { font-family: var(--sans); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.5rem; }
.excerpt-end { font-family: var(--sans); font-size: 0.9375rem; color: var(--muted); margin-top: 2.5rem; }

/* Plain text pages */
.text { padding-top: 3rem; padding-bottom: 4rem; }
.text h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; margin-bottom: 1.5rem; }
.text h2 { font-size: 1.25rem; margin: 2.25rem 0 0.75rem; letter-spacing: -0.01em; }

/* Footer */
.foot { border-top: 2px solid var(--ink); margin-top: 0; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding-top: 1.5rem; padding-bottom: 2.5rem; font-size: 0.875rem; color: var(--muted); }
.foot a { color: var(--muted); }
.foot nav { display: flex; gap: 1.5rem; }

@media (max-width: 44rem) {
  .hero { grid-template-columns: 1fr; padding-top: 2rem; padding-bottom: 3.5rem; }
  .ring { order: -1; width: 7.5rem; }
  section { padding: 3.25rem 0; }
  .book .wrap, .book-head, .two { grid-template-columns: 1fr; }
  .book .cover-link, .book-head .cover { max-width: 16rem; }
  .projects a { grid-template-columns: 1fr; }
}
