:root {
  --ink: #171412;
  --paper: #f3eee6;
  --paper-deep: #e7ded2;
  --copper: #a7603d;
  --copper-dark: #7c4026;
  --cream: #fffaf3;
  --muted: #716962;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --content: min(1160px, calc(100% - 3rem));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  color: var(--cream);
  background: var(--ink);
  transform: translateY(-180%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.2rem;
  padding: 0.8rem max(1.5rem, calc((100vw - 1160px) / 2));
  color: var(--cream);
  border-bottom: 1px solid rgb(255 255 255 / 0.16);
  transition: background 250ms ease, min-height 250ms ease, box-shadow 250ms ease;
}
.site-header.is-scrolled {
  min-height: 4.5rem;
  color: var(--ink);
  background: rgb(243 238 230 / 0.94);
  box-shadow: 0 10px 30px rgb(36 23 16 / 0.08);
  backdrop-filter: blur(14px);
}
.wordmark { display: flex; flex-direction: column; text-decoration: none; line-height: 1.15; }
.wordmark__name { font-family: var(--serif); font-size: 1.15rem; letter-spacing: 0.02em; }
.wordmark__role { margin-top: 0.28rem; font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.72; }
.navigation { display: flex; gap: 2rem; }
.navigation a { font-size: 0.82rem; letter-spacing: 0.08em; text-decoration: none; text-transform: uppercase; }
.navigation a::after { display: block; width: 0; height: 1px; content: ""; background: currentColor; transition: width 180ms ease; }
.navigation a:hover::after, .navigation a:focus-visible::after { width: 100%; }
.menu-button { display: none; color: inherit; background: transparent; border: 0; font: inherit; }

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  color: var(--cream);
  background: #151312;
  isolation: isolate;
}
.hero__image, .hero__shade { position: absolute; inset: 0; }
.hero__image {
  z-index: -2;
  background: url("assets/schreibtisch.jpg") center / cover no-repeat;
  transform: scale(1.02);
  animation: settle 1.6s ease-out both;
}
.hero__shade {
  z-index: -1;
  background: linear-gradient(90deg, rgb(10 9 8 / 0.91) 0%, rgb(10 9 8 / 0.63) 43%, rgb(10 9 8 / 0.12) 78%), linear-gradient(0deg, rgb(8 7 6 / 0.58), transparent 50%);
}
.hero__content {
  align-self: center;
  width: var(--content);
  margin: 6rem auto 4rem;
  padding-right: min(52%, 37rem);
  animation: rise 900ms 150ms ease-out both;
}
.eyebrow { margin: 0 0 1.2rem; color: #d6b296; font-size: 0.75rem; font-weight: 650; letter-spacing: 0.19em; text-transform: uppercase; }
.eyebrow--dark { color: var(--copper-dark); }
h1, h2, blockquote p { font-family: var(--serif); font-weight: 400; line-height: 1.05; letter-spacing: -0.035em; }
h1 { max-width: 12ch; margin: 0; font-size: clamp(3.3rem, 7vw, 6.6rem); }
h2 { margin: 0; font-size: clamp(2.8rem, 5vw, 5rem); }
.hero__intro { max-width: 34rem; margin: 2rem 0; color: rgb(255 250 243 / 0.78); font-family: var(--serif); font-size: clamp(1.05rem, 1.6vw, 1.3rem); }
.hero__credit { position: absolute; right: max(1.5rem, calc((100vw - 1160px) / 2)); bottom: 1.5rem; margin: 0; font-size: 0.7rem; letter-spacing: 0.13em; text-transform: uppercase; opacity: 0.56; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 3.25rem;
  padding: 0.8rem 1.25rem;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  border: 1px solid currentColor;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button--light:hover, .button--light:focus-visible { color: var(--ink); background: var(--cream); }

.section { width: var(--content); margin: 0 auto; padding: clamp(5rem, 10vw, 9rem) 0; }
.section__label { padding-bottom: 1rem; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; border-bottom: 1px solid #cfc4b7; }
.book-layout { display: grid; grid-template-columns: minmax(15rem, 0.8fr) 1.3fr; gap: clamp(3rem, 8vw, 8rem); align-items: center; padding-top: clamp(3rem, 7vw, 6rem); }
.featured-cover {
  display: block;
  width: 100%;
  max-width: 25rem;
  height: auto;
  box-shadow: -16px 22px 42px rgb(37 24 15 / 0.22);
  transform: rotate(-1.5deg);
}
.book-copy h2 { max-width: 9ch; }
.book-copy__lead { max-width: 36rem; margin: 1.8rem 0; font-family: var(--serif); font-size: 1.35rem; line-height: 1.5; }
.book-copy > p:not(.eyebrow):not(.book-copy__lead) { max-width: 40rem; color: #514a45; }
.book-data { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2.2rem 0; padding: 1.2rem 0; border-block: 1px solid #cfc4b7; }
.book-data div { display: flex; flex-direction: column; }
.book-data dt { color: var(--muted); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; }
.book-data dd { margin: 0.2rem 0 0; font-family: var(--serif); }
.text-link { display: inline-flex; gap: 0.75rem; font-weight: 650; text-underline-offset: 0.35rem; }

.works-section { background: #e9e0d5; }
.works-heading { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 2rem 5rem; align-items: end; padding: clamp(3rem, 7vw, 6rem) 0 3.5rem; }
.works-heading .eyebrow { grid-column: 1 / -1; margin: 0; }
.works-heading h2 { max-width: 10ch; }
.works-heading > p:last-child { max-width: 32rem; margin: 0 0 0.5rem; color: #59514b; font-family: var(--serif); font-size: 1.2rem; }
.books-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem) clamp(1rem, 2vw, 2rem); }
.book-card { min-width: 0; }
.book-card a { display: block; text-decoration: none; }
.book-card img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center;
  background: #cfc4b7;
  box-shadow: 0 14px 28px rgb(43 30 21 / 0.14);
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.book-card a:hover img, .book-card a:focus-visible img { transform: translateY(-0.35rem); box-shadow: 0 20px 35px rgb(43 30 21 / 0.22); }
.book-card div { padding-top: 1.1rem; }
.book-card span { color: var(--muted); font-size: 0.68rem; letter-spacing: 0.11em; text-transform: uppercase; }
.book-card h3 { margin: 0.35rem 0 0; font-family: var(--serif); font-size: clamp(1.12rem, 1.8vw, 1.45rem); font-weight: 400; line-height: 1.15; }
.works-note { margin: 3rem 0 0; color: var(--muted); font-size: 0.76rem; }

.quote-section { padding: clamp(5rem, 12vw, 10rem) 1.5rem; color: var(--cream); text-align: center; background: var(--copper-dark); }
.quote-section blockquote { max-width: 56rem; margin: 0 auto; }
.quote-section blockquote p { margin: 0; font-size: clamp(2.4rem, 5vw, 4.8rem); }
.quote-section cite { display: block; margin-top: 2rem; font-size: 0.75rem; font-style: normal; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.72; }

.about-layout { display: grid; grid-template-columns: minmax(15rem, 0.8fr) 1.2fr; gap: clamp(3rem, 8vw, 8rem); align-items: start; padding-top: clamp(3rem, 7vw, 6rem); }
.about-portrait img { display: block; width: 100%; height: auto; filter: grayscale(100%) contrast(1.05); }
.about-portrait span { display: block; margin-top: 0.7rem; color: var(--muted); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; }
.about-copy { padding-top: 1.2rem; color: #49423d; font-family: var(--serif); font-size: 1.2rem; }
.about-copy h2 { max-width: 10ch; margin-bottom: 2rem; }
.about-copy p { margin: 0 0 1.5rem; }

.contact-section { padding: clamp(5rem, 12vw, 10rem) 1.5rem; color: var(--cream); text-align: center; background: #191615; }
.contact-section__inner { max-width: 57rem; margin: 0 auto; }
.contact-section h2 { max-width: 12ch; margin: 0 auto; }
.contact-section p:not(.eyebrow) { max-width: 38rem; margin: 1.8rem auto; color: rgb(255 250 243 / 0.68); font-family: var(--serif); font-size: 1.18rem; }
.contact-details { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.contact-details address { max-width: 34rem; color: rgb(255 250 243 / 0.6); font-size: 0.78rem; font-style: normal; letter-spacing: 0.05em; }
.contact-phone { color: var(--cream); font-family: var(--serif); font-size: 1.2rem; text-underline-offset: 0.3rem; }
.contact-amazon { display: block; width: max-content; margin: 1.4rem auto 0; color: rgb(255 250 243 / 0.66); font-size: 0.78rem; text-underline-offset: 0.3rem; }

.site-footer { display: grid; grid-template-columns: 1fr auto 1fr; gap: 2rem; align-items: end; width: var(--content); min-height: 11rem; margin: 0 auto; padding: 2.5rem 0; }
.site-footer > div:first-child { display: flex; flex-direction: column; }
.site-footer strong { font-family: var(--serif); font-size: 1.05rem; }
.site-footer span, .site-footer small { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.site-footer small { justify-self: end; }
.site-footer__links { display: flex; gap: 1.5rem; font-size: 0.8rem; }
.site-footer__links a { text-underline-offset: 0.25rem; }

.legal-page { min-height: 100vh; padding: 8rem 1.5rem 4rem; }
.legal-page__inner { max-width: 760px; margin: 0 auto; }
.legal-page h1 { max-width: none; font-size: clamp(3rem, 8vw, 5rem); }
.legal-page h2 { margin-top: 3rem; font-size: 1.7rem; letter-spacing: -0.01em; }
.legal-page h3 { margin: 2rem 0 0.5rem; font-family: var(--serif); font-size: 1.25rem; font-weight: 400; }
.legal-page address { font-style: normal; }
.legal-page ul { padding-left: 1.2rem; }
.legal-page li + li { margin-top: 0.45rem; }
.legal-page a { text-underline-offset: 0.25rem; overflow-wrap: anywhere; }
.legal-page__status { margin-top: 3rem; color: var(--muted); font-size: 0.78rem; }
.legal-page .placeholder { padding: 1rem 1.2rem; background: var(--paper-deep); border-left: 3px solid var(--copper); }
.back-link { display: inline-block; margin-bottom: 2rem; font-size: 0.85rem; text-underline-offset: 0.25rem; }

.reveal { opacity: 0; transform: translateY(1.4rem); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes rise { from { opacity: 0; transform: translateY(1.5rem); } }
@keyframes settle { from { opacity: 0; transform: scale(1.07); } }

@media (max-width: 820px) {
  :root { --content: min(100% - 2rem, 42rem); }
  .site-header { padding-inline: 1rem; }
  .menu-button { position: relative; z-index: 2; display: flex; align-items: center; gap: 0.7rem; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }
  .menu-button__lines, .menu-button__lines::before { display: block; width: 1.2rem; height: 1px; content: ""; background: currentColor; transition: transform 180ms ease; }
  .menu-button__lines::before { transform: translateY(-0.35rem); }
  .menu-open .menu-button__lines { transform: rotate(45deg); }
  .menu-open .menu-button__lines::before { transform: rotate(90deg); }
  .navigation { position: fixed; inset: 0; display: grid; place-content: center; gap: 2rem; color: var(--cream); text-align: center; background: rgb(23 20 18 / 0.98); opacity: 0; pointer-events: none; transition: opacity 180ms ease; }
  .navigation a { font-family: var(--serif); font-size: 2.3rem; letter-spacing: -0.02em; text-transform: none; }
  .menu-open .navigation { opacity: 1; pointer-events: auto; }
  .menu-open .site-header { color: var(--cream); }
  .hero__content { padding-right: 12%; }
  .hero__shade { background: linear-gradient(90deg, rgb(10 9 8 / 0.89), rgb(10 9 8 / 0.37)), linear-gradient(0deg, rgb(8 7 6 / 0.65), transparent 60%); }
  .book-layout, .about-layout, .works-heading { grid-template-columns: 1fr; }
  .featured-cover { width: min(78vw, 22rem); margin: 0 auto; }
  .works-heading .eyebrow { grid-column: auto; }
  .books-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about-copy { padding-top: 0; }
  .site-footer { grid-template-columns: 1fr auto; }
  .site-footer small { justify-self: start; }
}

@media (max-width: 560px) {
  h1 { font-size: clamp(2.8rem, 15vw, 4.2rem); }
  h2 { font-size: clamp(2.4rem, 12vw, 3.5rem); }
  .hero { min-height: 46rem; }
  .hero__content { margin-top: 7rem; padding-right: 0; }
  .hero__image { background-position: 63% center; }
  .hero__credit { display: none; }
  .book-data { grid-template-columns: 1fr; }
  .books-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1rem; }
  .site-footer { grid-template-columns: 1fr; align-items: start; }
  .site-footer small { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
