/* „Du hast das Traumleben“ – Richtung „Kein Fahrplan“, Palette „Pelourinho“ */

@font-face {
  font-family: "Big Shoulders Display";
  src: url("/fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/atkinson-hyperlegible-next-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/atkinson-hyperlegible-next-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/atkinson-hyperlegible-next-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --page: #f4f4f0;
  --paper: #ffffff;
  --ink: #1e2b2c;
  --muted: #4a5859;
  --board: #1f7a80;
  --board-ink: #ffffff;
  --ocker: #e0a43a;
  --ocker-hover: #c98f28;
  --ocker-line: #b8801f;
  --link: #17646a;
  --rule: #d9dbd3;
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --text: "Atkinson Hyperlegible Next", system-ui, sans-serif;
  --measure: 36rem;
  --wide: 72rem;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
}

@media (min-width: 48rem) {
  body {
    font-size: 1.125rem;
  }
}

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

a {
  color: var(--link);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.15em;
}

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

.skip {
  position: absolute;
  left: -9999px;
}

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

.wrap {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 48rem) {
  .wrap {
    padding: 0 2rem;
  }
}

.measure {
  max-width: var(--measure);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.02;
}

h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
}

h3 {
  font-size: 1.75rem;
}

p {
  margin: 0 0 1em;
}

.muted {
  color: var(--muted);
}

/* Zielschild */

.hero {
  padding: 1rem 0 3.5rem;
}

@media (min-width: 48rem) {
  .hero {
    padding-top: 2rem;
  }
}

.board {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: 8px;
  background: var(--board);
  color: var(--board-ink);
}

.route-no {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: start;
  margin: 0;
  min-width: 4.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  background: var(--ocker);
  color: var(--ink);
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}

.route-no small {
  margin-top: 0.2rem;
  font-family: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
}

.board h1 {
  padding-top: 0.2rem;
  font-size: clamp(2.6rem, 1.2rem + 6.5vw, 6.75rem);
}

.via {
  margin: 0.4rem 0 0.25rem;
  font-size: 0.95rem;
}

@media (max-width: 30rem) {
  .board {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .route-no {
    flex-direction: row;
    gap: 0.5rem;
    width: max-content;
    min-width: 0;
    font-size: 2rem;
  }

  .route-no small {
    margin: 0;
  }
}

.hero-body {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 48rem) {
  .hero-body {
    grid-template-columns: minmax(13rem, 18rem) 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 2.5rem;
  }
}

/* Platzhalter, bis das echte Cover da ist */
.cover-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: min(100%, 11rem);
  aspect-ratio: 2 / 3;
  padding: 1rem 0.9rem;
  border-left: 8px solid #17646a;
  border-radius: 2px 6px 6px 2px;
  background: var(--board);
  color: var(--board-ink);
}

@media (min-width: 48rem) {
  .cover-placeholder {
    width: 100%;
    padding: 1.25rem 1.1rem;
  }

  .cover-placeholder .cover-title {
    font-size: 2.4rem;
  }
}

.cover-placeholder .cover-title {
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}

.cover-placeholder .cover-sub {
  margin-top: 0.6rem;
  font-size: 0.72rem;
  line-height: 1.35;
}

@media (min-width: 48rem) {
  .cover-placeholder .cover-sub {
    margin-top: 0.75rem;
    font-size: 0.85rem;
  }
}

.cover-placeholder .cover-author {
  font-weight: 700;
}

.cover-placeholder .cover-note {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  background: var(--ocker);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
}

.subtitle {
  max-width: 30em;
  margin-bottom: 0.5rem;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.35;
}

.author {
  margin-bottom: 1.5rem;
  color: var(--muted);
}

.buy-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1.75rem;
}

.price {
  margin: 0;
  font-family: var(--display);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
}

.price-meta {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--text);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--muted);
}

.buy-form {
  margin: 0;
}

.buy {
  min-height: 3.25rem;
  padding: 0.9rem 1.6rem;
  border: 0;
  border-radius: 6px;
  background: var(--ocker);
  color: var(--ink);
  font: 700 1.125rem/1 var(--text);
  cursor: pointer;
}

.buy:hover {
  background: var(--ocker-hover);
}

.buy-note {
  max-width: 34em;
  margin-top: 0.9rem;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Abschnitte */

.section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--rule);
}

@media (min-width: 48rem) {
  .section {
    padding: 5rem 0;
  }
}

.section.paper {
  border-top: 0;
  background: var(--paper);
}

.plain {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.plain li {
  position: relative;
  margin-bottom: 0.9rem;
  padding-left: 1.5rem;
}

.plain li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--ocker-line);
}

.source {
  font-size: 0.9rem;
  color: var(--muted);
}

.quote {
  max-width: 34rem;
  margin: 2.5rem 0 0;
  padding: 0.2rem 0 0.2rem 1.25rem;
  border-left: 4px solid var(--ocker-line);
}

.quote blockquote {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.35;
}

.quote figcaption {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.finds {
  display: grid;
  gap: 2rem 3.5rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 48rem) {
  .finds {
    grid-template-columns: 1fr 1fr;
  }
}

.finds h3 {
  margin-bottom: 0.4rem;
  font-size: 1.65rem;
}

.finds p {
  margin-bottom: 0.35rem;
}

.ref {
  font-size: 0.9rem;
  color: var(--muted);
}

.fit {
  display: grid;
  gap: 1rem 3.5rem;
  margin-top: 3rem;
}

@media (min-width: 48rem) {
  .fit {
    grid-template-columns: 1fr 1fr;
  }
}

.fit h3 {
  margin-bottom: 0.75rem;
  font-size: 1.65rem;
}

/* Inhalt als Linie */

.route {
  display: grid;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.route > li {
  position: relative;
  margin-left: 0.55rem;
  padding: 0 0 2.25rem 2rem;
  border-left: 3px solid var(--ocker-line);
}

.route > li:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.route > li::before {
  content: "";
  position: absolute;
  left: -0.65rem;
  top: 0.2rem;
  width: 1.05rem;
  height: 1.05rem;
  border: 3px solid var(--ocker-line);
  border-radius: 50%;
  background: var(--page);
}

.route h3 {
  margin-bottom: 0.6rem;
  font-size: 1.7rem;
}

.route .part-no {
  display: block;
  margin-bottom: 0.15rem;
  font-family: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
}

.chapters,
.chapters ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.chapters li {
  display: grid;
  grid-template-columns: 2.1rem 1fr;
  padding: 0.15rem 0;
  line-height: 1.4;
}

.chapters .no {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.chapters .note {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
}

.chapters ol {
  grid-column: 2;
  margin: 0.2rem 0 0.3rem;
  font-size: 0.92rem;
}

.chapters ol li {
  grid-template-columns: 2.2rem 1fr;
}

@media (min-width: 64rem) {
  /* Teil 3 hat elf Kapitel: doppelte Breite, Kapitel in zwei Spalten */
  .route {
    grid-template-columns: 1fr 1fr 2fr 1fr 1fr;
  }

  .route > li:nth-child(3) .chapters {
    columns: 2;
    column-gap: 1.5rem;
  }

  .route > li:nth-child(3) .chapters > li {
    break-inside: avoid;
  }

  .route > li {
    margin: 0;
    padding: 1.75rem 1.5rem 0 0;
    border-top: 3px solid var(--ocker-line);
    border-left: 0;
  }

  .route > li:last-child {
    border-top-color: var(--ocker-line);
  }

  .route > li::before {
    left: 0;
    top: -0.65rem;
  }
}

/* Leseprobe */

.reading {
  max-width: var(--measure);
}

.reading p {
  margin-bottom: 1.1em;
}

.reading .place {
  font-style: italic;
  color: var(--muted);
}

.footnotes {
  max-width: var(--measure);
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
  color: var(--muted);
}

.more {
  font-weight: 700;
}

/* FAQ */

.faq {
  max-width: 44rem;
  margin-top: 1.5rem;
}

.faq details {
  border-top: 1px solid var(--rule);
}

.faq details:last-child {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--display);
  font-size: 1.6rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq .answer {
  padding: 0 0 1rem;
}

/* Abschluss */

.closing .quote {
  margin-top: 0;
}

/* Fußzeile */

.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
  color: var(--muted);
}

.site-footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

/* Unterseiten */

.site-header {
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}

.home-link {
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 800;
  text-decoration: none;
}

.page {
  padding: 2.5rem 0 4rem;
}

.page h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.5rem, 1.8rem + 3vw, 4rem);
}

.page h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.9rem;
}

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

.narrow {
  max-width: var(--measure);
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.draft {
  margin-bottom: 2rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--ocker-line);
  border-radius: 6px;
  background: #fbf1dc;
}

.open {
  padding: 0 0.25rem;
  background: #fbf1dc;
  font-weight: 700;
}

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