/* Buchbund — Werkstatt-Großbuch. Kastanie, Creme, rote Heftfaser. */
:root {
  --kastanie: #5c2e1f;
  --creme: #f4ead8;
  --faser: #a31f20;
  --blatt: #fffdf7;
  --tinte: #2a1812;
  --linie: rgba(92, 46, 31, 0.16);
  --grau: #8a7366;
  --bad: #b42318;
  --gut: #2f6b3a;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--tinte);
  background-color: var(--creme);
  background-image:
    repeating-linear-gradient(
      transparent 0 31px,
      var(--linie) 31px 32px
    ),
    linear-gradient(90deg, var(--faser) 0 3px, transparent 3px);
  background-position: 0 0, 3.4rem 0;
  background-attachment: fixed;
  font-family: "Source Sans 3", "Source Sans Pro", sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  min-height: 100vh;
}

body.nav-lock {
  overflow: hidden;
}

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

a {
  color: var(--faser);
}

:focus {
  outline: none;
}

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

.skip {
  position: absolute;
  left: 0.8rem;
  top: -3rem;
  background: var(--kastanie);
  color: var(--creme);
  padding: 0.4rem 0.7rem;
  z-index: 80;
}

.skip:focus {
  top: 0.8rem;
}

.ledger-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 4.6rem 0.7rem 4.2rem;
  background: rgba(244, 234, 216, 0.94);
  border-bottom: 1px solid var(--kastanie);
  backdrop-filter: blur(8px);
}

.mark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--kastanie);
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.mark svg {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.burger {
  display: none;
  width: 2.6rem;
  height: 2.2rem;
  padding: 0;
  border: 1px solid var(--kastanie);
  background: var(--blatt);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.burger span {
  display: block;
  height: 2px;
  margin: 0 0.45rem;
  background: var(--kastanie);
}

.folio-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.folio-nav a {
  color: var(--kastanie);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.folio-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--faser);
}

.folio-nav .tel {
  font-variant-numeric: tabular-nums;
  color: var(--faser);
}

.sheet {
  width: min(1080px, calc(100% - 5.6rem));
  margin: 0 auto;
}

.folio-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.4rem;
  padding: 3.4rem 0 2.2rem;
  align-items: end;
}

.signum {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faser);
  margin: 0 0 0.8rem;
}

.folio-hero h1,
.page-head h1,
.inner-col h1 {
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: 0.95;
  color: var(--kastanie);
  margin: 0 0 1rem;
}

.lede {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-style: italic;
  max-width: 36rem;
  margin: 0 0 1.4rem;
}

.stamp,
.ledger-bar .tel {
  font-family: "Source Sans 3", sans-serif;
}

.stamp {
  display: inline-block;
  padding: 0.65rem 1.1rem 0.55rem;
  background: var(--faser);
  color: var(--creme);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  border: 0;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--kastanie);
}

.stamp.ghost {
  background: transparent;
  color: var(--kastanie);
  box-shadow: inset 0 0 0 1px var(--kastanie);
  margin-left: 0.8rem;
}

.plate {
  position: relative;
}

.plate img,
.tipped img,
.pair img {
  width: 100%;
  object-fit: cover;
  background: #d8c7ad;
  filter: contrast(1.04) saturate(0.92);
}

.plate img {
  aspect-ratio: 16 / 10;
  clip-path: polygon(1.2% 2%, 98.4% 0.6%, 99.2% 97.6%, 0.8% 99%);
  box-shadow: 0 14px 0 -8px var(--faser);
}

.plate figcaption,
.tipped figcaption {
  font-size: 0.82rem;
  color: var(--grau);
  margin-top: 0.45rem;
}

.catalog {
  padding: 0.4rem 0 2.6rem;
}

.catalog h2,
.werk h2,
.stimmen h2,
.inner-col h2 {
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--kastanie);
  font-weight: 600;
  margin: 0 0 0.8rem;
}

.roll {
  width: 100%;
  border-collapse: collapse;
  background: var(--blatt);
  box-shadow: 0 0 0 1px var(--kastanie);
}

.roll th,
.roll td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--linie);
  vertical-align: top;
}

.roll th {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faser);
  background: #efe3cd;
}

.roll td:first-child,
.roll th:first-child {
  font-variant-numeric: tabular-nums;
  width: 4.6rem;
}

.roll td:last-child {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.werk {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 1rem 0 3rem;
  align-items: center;
}

.tipped img {
  aspect-ratio: 4 / 3;
  clip-path: polygon(0.6% 1.4%, 99% 0, 100% 98.5%, 0 100%);
}

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding-bottom: 3rem;
}

.pair img {
  aspect-ratio: 4 / 3;
}

.stimmen {
  padding-bottom: 3.2rem;
}

.stimmen ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: folio;
}

.stimmen li {
  counter-increment: folio;
  padding: 1rem 0 1rem 3.2rem;
  border-top: 1px solid var(--kastanie);
  position: relative;
}

.stimmen li::before {
  content: counter(folio, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1rem;
  font-family: "EB Garamond", serif;
  color: var(--faser);
}

.stimmen cite {
  display: block;
  margin-top: 0.35rem;
  font-style: normal;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grau);
}

.colophon {
  background: var(--kastanie);
  color: var(--creme);
  padding: 2.4rem 0 1.6rem;
  margin-top: 1rem;
}

.colophon a {
  color: #f3c9c4;
}

.colo-grid {
  width: min(1080px, calc(100% - 5.6rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.6rem;
}

.colo-grid nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.tiny {
  width: min(1080px, calc(100% - 5.6rem));
  margin: 1.4rem auto 0;
  font-size: 0.82rem;
  opacity: 0.8;
}

.page-head {
  padding: 2.8rem 0 1.2rem;
}

.inner-col {
  padding-bottom: 3rem;
}

.inner-col p,
.legal-prose p,
.legal-prose li {
  max-width: 40rem;
}

.hours {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 0.2rem 1rem;
  max-width: 26rem;
  font-variant-numeric: tabular-nums;
}

.desk {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  padding-bottom: 3rem;
  align-items: start;
}

form[data-form] {
  display: grid;
  gap: 0.75rem;
  background: var(--blatt);
  padding: 1.2rem;
  box-shadow: 0 0 0 1px var(--kastanie);
}

form[data-form][hidden],
[hidden] {
  display: none !important;
}

.field {
  display: grid;
  gap: 0.3rem;
}

.field span,
.agree span {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input[type="text"],
input[type="tel"],
input[type="email"],
textarea {
  width: 100%;
  font: inherit;
  color: var(--tinte);
  background: #ffffff;
  border: 1px solid #c9bba8;
  border-radius: 0;
  padding: 0.7rem 0.75rem;
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

input.is-bad,
textarea.is-bad {
  border-color: var(--bad);
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--bad);
}

.agree {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.95rem;
}

.agree.is-bad {
  color: var(--bad);
}

.agree input {
  margin-top: 0.25rem;
  accent-color: var(--faser);
}

.ok {
  background: #e7f3ea;
  color: var(--gut);
  padding: 1rem 1.1rem;
  border: 1px solid var(--gut);
}

.cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  background: var(--kastanie);
  color: var(--creme);
  padding: 1rem 1.2rem;
}

.cookie-inner {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cookie a {
  color: #f3c9c4;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
}

.cookie button {
  font: inherit;
  cursor: pointer;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--creme);
}

.cookie [data-cookie-accept] {
  background: var(--faser);
  color: var(--creme);
  border-color: var(--faser);
}

.cookie [data-cookie-reject] {
  background: transparent;
  color: var(--creme);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.legal-prose h2 {
  font-family: "EB Garamond", serif;
  color: var(--kastanie);
  margin: 2rem 0 0.6rem;
}

.legal-prose ul {
  padding-left: 1.1rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 900px) {
  body {
    background-position: 0 0, 1.1rem 0;
  }

  .ledger-bar,
  .sheet,
  .colo-grid,
  .tiny {
    padding-left: 2rem;
    padding-right: 1.2rem;
    width: auto;
  }

  .sheet {
    width: min(1080px, calc(100% - 3.2rem));
    margin-left: 2rem;
  }

  .folio-hero,
  .werk,
  .pair,
  .desk,
  .colo-grid {
    grid-template-columns: 1fr;
  }

  .burger {
    display: flex;
  }

  .folio-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 2rem 1.4rem;
    background: var(--creme);
    border-bottom: 1px solid var(--kastanie);
  }

  .folio-nav.is-open {
    display: flex;
  }

  .stamp.ghost {
    margin-left: 0;
    margin-top: 0.7rem;
    display: inline-block;
  }
}
