/* michaelsicher.at */

@font-face {
  font-family: "EB Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ebgaramond-italic-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "EB Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ebgaramond-italic-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "EB Garamond";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/ebgaramond-italic-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "EB Garamond";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/ebgaramond-italic-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ebgaramond-normal-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ebgaramond-normal-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/ebgaramond-normal-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/ebgaramond-normal-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Grundlagen --- */

:root {
  --grund: #F6F4EF;
  --leinen: #EAE8E1;
  --schrift: #15375F;
  --blau: #2C62B0;
  --gedaempft: #6C7583;
  --spalte: 33rem;
  --sans: ui-sans-serif, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

body {
  margin: 0;
  padding: 0 24px;
  background: var(--grund);
  color: var(--schrift);
  font-family: "EB Garamond", Garamond, "Times New Roman", serif;
  font-size: clamp(1.16rem, 1rem + 0.7vw, 1.32rem);
  line-height: 1.72;
  text-wrap: pretty;
}

main, .hero, .mockup, .prose { max-width: var(--spalte); margin-inline: auto; }

a { color: var(--blau); text-decoration-color: rgba(44, 98, 176, 0.4); text-underline-offset: 0.2em; }
a:hover { color: var(--schrift); text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid var(--blau); outline-offset: 4px; }

/* --- Klappentext --- */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 0 40px;
}

.eyebrow {
  margin: 0 0 clamp(40px, 8vh, 88px);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gedaempft);
}

.blurb {
  margin: 0 0 8vh;
  font-size: clamp(1.18rem, 3.1vw, 1.42rem);
  line-height: 1.5;
}

.blurb span { display: block; }
.blurb .q { font-style: italic; font-weight: 600; }
.blurb .q:first-child { font-size: 1.42em; line-height: 1.24; margin-bottom: 0.5em; }
.blurb .last { font-size: 1.18em; line-height: 1.3; margin-top: 0.7em; }

/* --- Buchmockup --- */

.mockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 0 0 24px;
}

.mockup figcaption {
  margin-top: 34px;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gedaempft);
}

.scene { perspective: 1700px; }

.book {
  --w: clamp(220px, 52vw, 344px);
  --t: calc(var(--w) * 0.117); /* 14,6 mm bei 125 mm Buchbreite */
  position: relative;
  width: var(--w);
  height: calc(var(--w) * 1.52);
  font-size: calc(var(--w) * 0.042);
  transform-style: preserve-3d;
  transform: rotateY(26deg) rotateX(1.5deg);
}

.back, .front { position: absolute; inset: 0; }

.back { background: #E1DED6; transform: translateZ(calc(var(--t) / -2)); }

.spine {
  position: absolute;
  inset-block: 0;
  left: 0;
  width: var(--t);
  padding: 7% 0 5%;
  transform-origin: 0 50%;
  transform: rotateY(-90deg) translateX(calc(var(--t) / -2));
  background: linear-gradient(to right, #D9D6CE, #E9E7E0 46%, var(--leinen) 72%, #DEDBD3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12%;
  overflow: hidden;
}

.spine-title,
.spine-author {
  writing-mode: vertical-rl;
  white-space: nowrap;
}

.spine-author {
  font-family: var(--sans);
  font-size: 0.7em;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.spine-title { font-size: 1.02em; font-weight: 600; }

.mark {
  margin-top: auto;
  width: calc(var(--t) * 0.44);
  height: auto;
  mix-blend-mode: multiply;
}

.front {
  padding: 9% 9.5% 8%;
  transform: translateZ(calc(var(--t) / 2));
  background:
    repeating-linear-gradient(0deg, rgba(21, 55, 95, 0.05) 0 1px, rgba(255, 255, 255, 0.05) 1px 2px),
    repeating-linear-gradient(90deg, rgba(21, 55, 95, 0.055) 0 1px, rgba(255, 255, 255, 0.05) 1px 2px),
    linear-gradient(102deg, #E3E0D8, #EEECE6 38%, var(--leinen));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Lichtkante an der Falz */
.front::before {
  content: "";
  position: absolute;
  inset-block: 0;
  left: 0;
  width: 14%;
  background: linear-gradient(to right, rgba(21, 55, 95, 0.16) 0, rgba(255, 255, 255, 0.5) 2.5px, rgba(255, 255, 255, 0.14) 40%, transparent);
}

.cover-author {
  font-family: var(--sans);
  font-size: 0.78em;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.cover-art {
  width: 62%;
  height: auto;
  flex: none;
  align-self: center;
  margin: 6% 0 8%;
  mix-blend-mode: multiply;
}

.cover-title {
  display: block;
  font-size: 1.44em;
  font-weight: 600;
  line-height: 1.16;
}

.cover-subtitle {
  display: block;
  font-family: var(--sans);
  font-size: 0.66em;
  line-height: 1.5;
  letter-spacing: 0.055em;
  color: var(--gedaempft);
  margin-top: 0.9em;
}

/* --- Text --- */

.prose { padding-top: 80px; padding-bottom: 96px; }

.prose h2 {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gedaempft);
  margin: 0 0 1.6em;
}

.prose p { margin: 0 0 1.5em; }
.prose p:last-of-type { margin-bottom: 0; }
.prose em { font-style: italic; }

/* Szenentrenner wie im Buch: gefülltes Quadrat */
.rule {
  border: 0;
  width: 5px;
  height: 5px;
  margin: 62px auto 56px;
  background: var(--schrift);
}

/* Leseprobe */
.probe { margin-top: 1.6em; }

.probe a {
  text-decoration: none;
  border-bottom: 1px solid rgba(44, 98, 176, 0.4);
  padding-bottom: 0.08em;
}

.probe a:hover { border-bottom-color: currentColor; }

.arrow {
  display: inline-block;
  margin-right: 0.45em;
  transition: transform 0.25s ease;
}

.probe a:hover .arrow { transform: translateX(0.18em); }

.status { margin-top: 1.4em; color: var(--gedaempft); }

footer {
  margin-top: 92px;
  font-family: var(--sans);
  font-size: 0.7rem;
  line-height: 2;
  letter-spacing: 0.08em;
  color: var(--gedaempft);
}

/* --- Einblenden --- */

@keyframes softIn { from { opacity: 0; } to { opacity: 1; } }

body { animation: softIn 1.2s ease-out both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}
