/* Skyfood Verlag — Website Daniel Ambühl
   Design: geerdet in der Ägäis. Pergament, Olive, tiefes Seeblau, Alt-Gold.
   Fraunces (Display) + Karla (Text). Wellenlinie als durchgehendes Signaturmotiv. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;1,9..144,500&family=Karla:ital,wght@0,400;0,500;0,700;1,400&display=swap');

:root {
  --paper: #EFE6D2;
  --paper-deep: #E4D8BC;
  --ink: #2A2A22;
  --olive: #4B5D33;
  --olive-deep: #37451F;
  --sea: #2B5A63;
  --ochre: #B4842A;
  --rule: #CBB98D;
  --max-w: 780px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Karla', system-ui, sans-serif;
  font-size: 1.08rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--sea); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ochre); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  color: var(--olive-deep);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); font-weight: 500; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); margin-top: 2.2em; }
h3 { font-size: 1.25rem; font-style: italic; font-weight: 500; color: var(--sea); }
h4 { font-size: 1.02rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ochre); font-style: normal; }

p { margin: 0 0 1.1em; }
em { color: var(--olive-deep); }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.wrap-wide { max-width: 1040px; margin: 0 auto; padding: 0 1.5rem; }

/* Header / nav */
header.site {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: relative;
}
.nav-row {
  max-width: 1040px;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
}
.brand {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--olive-deep);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.brand:hover { color: var(--ochre); }
nav.links { display: flex; gap: 1.3rem; flex-wrap: wrap; font-size: 0.92rem; }
nav.links a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
nav.links a:hover, nav.links a.active { color: var(--olive-deep); border-bottom-color: var(--ochre); }

/* Wave divider — the signature element */
.wave { display: block; width: 100%; height: 22px; margin: 0 0; }
.wave path { fill: none; stroke: var(--rule); stroke-width: 1.5; }
.wave.tight { height: 14px; margin: 0.4em 0 1.6em; }

/* Hero */
.hero {
  padding: 3.4rem 0 2.6rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 2.6rem;
  align-items: center;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (max-width: 720px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero-photo {
  width: 100%;
  border-radius: 2px;
  border: 1px solid var(--rule);
  box-shadow: 6px 6px 0 var(--paper-deep);
}
.eyebrow {
  font-family: 'Karla', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ochre);
  font-weight: 700;
  margin-bottom: 0.6em;
}
.epigraph {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--sea);
  border-left: 3px solid var(--rule);
  padding-left: 1rem;
  margin: 1.4em 0;
}
.epigraph cite { display: block; font-family: 'Karla', sans-serif; font-style: normal; font-size: 0.82rem; color: var(--ink); opacity: 0.7; margin-top: 0.4em; }

/* Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
  margin: 1.8rem 0 2.4rem;
}
.card {
  background: #F7F1E2;
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 1.4rem 1.5rem;
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 4px 4px 0 var(--paper-deep); }
.card .num {
  font-family: 'Fraunces', serif;
  font-size: 0.85rem;
  color: var(--ochre);
  letter-spacing: 0.08em;
}
.card h3 { margin: 0.3em 0 0.4em; color: var(--olive-deep); font-style: normal; }
.card p { margin: 0; font-size: 0.94rem; color: var(--ink); opacity: 0.85; }
.card.pending { opacity: 0.6; border-style: dashed; }
.card.pending:hover { transform: none; box-shadow: none; }

/* Section blocks */
section.block { padding: 2.2rem 0; }
section.block.tinted { background: var(--paper-deep); }
.tag {
  display: inline-block;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--olive);
  color: var(--paper);
  padding: 0.2em 0.65em;
  border-radius: 2px;
  margin-bottom: 0.8em;
}
.tag.ochre { background: var(--ochre); }
.tag.sea { background: var(--sea); }

/* Book part styling */
.part {
  margin: 2.4rem 0;
  padding-top: 1.6rem;
  border-top: 1px dashed var(--rule);
}
.part:first-of-type { border-top: none; padding-top: 0; }

/* Bibliography list */
ul.biblio { list-style: none; padding: 0; margin: 1.2em 0; }
ul.biblio li {
  padding: 0.55em 0;
  border-bottom: 1px solid var(--rule);
}
ul.biblio li:last-child { border-bottom: none; }
ul.biblio .t { font-style: italic; color: var(--olive-deep); }

/* Details / ausführliche Fassung toggle */
details.long {
  margin-top: 2rem;
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
}
details.long summary {
  cursor: pointer;
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  color: var(--sea);
  font-weight: 600;
  padding: 0.4em 0;
}
details.long summary:hover { color: var(--ochre); }

/* Footer */
footer.site {
  border-top: 1px solid var(--rule);
  margin-top: 3rem;
  padding: 2.2rem 0 3rem;
  font-size: 0.9rem;
  color: var(--ink);
  opacity: 0.85;
}
footer.site .wrap-wide { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.6rem; }
footer.site a { color: var(--olive-deep); }
footer.site address { font-style: normal; line-height: 1.5; }

.note {
  font-size: 0.9rem;
  border-left: 3px solid var(--ochre);
  padding: 0.7em 1rem;
  background: var(--paper-deep);
  margin: 1.6em 0;
}

/* Download button */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  background: var(--olive);
  color: var(--paper);
  text-decoration: none;
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.65em 1.3em;
  border-radius: 2px;
  margin: 0.6em 0.6em 0.6em 0;
  transition: background 0.15s ease;
}
.btn-download:hover { background: var(--ochre); color: var(--ink); }
.btn-download svg { width: 1.1em; height: 1.1em; flex-shrink: 0; }
.btn-download .pdf-size { opacity: 0.85; font-weight: 400; font-size: 0.88em; }
.btn-order { background: transparent; color: var(--olive-deep); border: 1px solid var(--olive); }
.btn-order:hover { background: var(--olive); color: var(--paper); }
.download-row { margin: 1.4em 0 1.8em; }

.meta-line { font-size: 0.92rem; color: var(--sea); font-style: italic; margin-bottom: 1.6em; }
