:root {
  --ink: #161817;
  --paper: #f7f2ea;
  --mist: #e4e9e1;
  --forest: #17483d;
  --checkout-green: #2f8f4e;
  --checkout-green-dark: #257741;
  --clay: #b66245;
  --brass: #b9964f;
  --line: rgba(22, 24, 23, 0.16);
  --shadow: 0 18px 48px rgba(16, 24, 21, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

.split-header {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: clamp(230px, 38vw, 420px);
  background: var(--ink);
}

.split-header-panel {
  position: relative;
  display: flex;
  align-items: end;
  min-height: inherit;
  overflow: hidden;
  isolation: isolate;
}

.split-header-panel img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.split-header-panel:hover img {
  transform: scale(1.045);
}

.split-header-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8, 10, 9, 0.08), rgba(8, 10, 9, 0.82));
}

.split-header-copy {
  display: grid;
  gap: 10px;
  width: min(100%, 720px);
  padding: clamp(24px, 5vw, 56px);
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.58);
}

.split-header-copy span {
  width: fit-content;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: none;
}

.split-header-copy strong {
  max-width: 18ch;
  font-size: clamp(30px, 4.7vw, 58px);
  line-height: 1;
}

.split-header-copy em {
  width: fit-content;
  max-width: 100%;
  padding: 10px 14px;
  overflow-wrap: anywhere;
  background: rgba(22, 24, 23, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.42);
  font-size: clamp(16px, 2vw, 24px);
  font-style: normal;
  font-weight: 800;
  line-height: 1.15;
  text-shadow: none;
}

.shop-panel {
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.icon-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: clamp(560px, 82vh, 760px);
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  background: #1b1c1a;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(10, 14, 12, 0.78), rgba(10, 14, 12, 0.26) 48%, rgba(10, 14, 12, 0.08));
}

.hero img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  width: min(760px, calc(100% - 36px));
  padding: 0 0 clamp(70px, 12vh, 118px) clamp(18px, 7vw, 88px);
  color: white;
}

.hero-copy p {
  width: min(520px, 100%);
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 2vw, 22px);
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(64px, 10vw, 138px);
  font-weight: 500;
  line-height: 0.9;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 500;
  line-height: 1;
}

h3 {
  margin: 0;
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button,
.checkout,
.complete-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 850;
}

.primary,
.checkout,
.complete-button {
  background: var(--checkout-green);
  color: white;
}

.checkout:hover,
.complete-button:hover {
  background: var(--checkout-green-dark);
}

.secondary {
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
}

.shop-shell,
.editions,
footer {
  padding: clamp(48px, 8vw, 90px) clamp(18px, 5vw, 72px);
}

.shop-live {
  background: linear-gradient(180deg, #fffaf1 0%, var(--paper) 100%);
  border-top: 1px solid var(--line);
}

.shop-live .section-head {
  padding-block: clamp(10px, 2vw, 24px);
}

.shop-live h2 {
  max-width: 980px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.98;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 30px;
}

.shop-intro {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgba(22, 24, 23, 0.7);
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.45;
}

.kicker {
  margin: 0 0 10px;
  color: var(--clay);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.filter {
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  font-size: 17px;
  font-weight: 800;
}

.filter.active {
  background: var(--forest);
  border-color: var(--forest);
  color: white;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  min-width: 0;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid var(--line);
}

.product-image {
  width: 100%;
  border: 0;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #ece5da;
  cursor: zoom-in;
  padding: 0;
}

.product-image span {
  display: grid;
  place-items: center;
  width: calc(100% - 34px);
  height: calc(100% - 34px);
  padding: 18px;
  border: 1px solid rgba(22, 24, 23, 0.16);
  color: rgba(22, 24, 23, 0.76);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.05;
  text-align: center;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.product-card:hover .product-image img {
  transform: scale(1.04);
}

.product-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.product-meta {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.product-meta p {
  margin: 6px 0 0;
  color: rgba(22, 24, 23, 0.68);
  font-size: 14px;
  line-height: 1.45;
}

.price {
  color: var(--forest);
  font-weight: 850;
}

.product-controls {
  display: flex;
  align-items: end;
  gap: 10px;
  justify-content: flex-end;
}

.variant-label {
  display: grid;
  flex: 1 1 auto;
  gap: 6px;
  color: rgba(22, 24, 23, 0.7);
  font-size: 12px;
  font-weight: 750;
}

.variant-label select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  padding: 0 10px;
}

.add-button {
  min-height: 42px;
  border: 1px solid var(--line);
  background: white;
}

.add-button {
  display: grid;
  place-items: center;
  width: 46px;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.editions {
  background: var(--mist);
}

.editions h2 {
  max-width: 920px;
}

.edition-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.edition-row article {
  padding: 24px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(23, 72, 61, 0.18);
}

.edition-row span {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--brass);
  font-weight: 900;
}

.edition-row p {
  margin: 12px 0 0;
  color: rgba(22, 24, 23, 0.7);
  line-height: 1.6;
}

.cart-panel {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(22, 24, 23, 0);
  pointer-events: none;
  transition: background 180ms ease;
}

.motif-viewer {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 56px);
  background: rgba(10, 12, 11, 0);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, background 180ms ease;
}

.motif-viewer.open {
  background: rgba(10, 12, 11, 0.78);
  opacity: 1;
  pointer-events: auto;
}

.motif-viewer-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: clamp(20px, 3vw, 36px);
  width: min(1180px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: clamp(16px, 2.5vw, 28px);
  background: #fffaf1;
  box-shadow: var(--shadow);
  transform: scale(0.98);
  transition: transform 180ms ease;
}

.motif-viewer.open .motif-viewer-card {
  transform: scale(1);
}

.motif-gallery {
  display: grid;
  place-items: center;
  min-height: min(720px, calc(100vh - 92px));
  background: #ece5da;
  border: 1px solid var(--line);
}

.motif-gallery img {
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 110px);
  object-fit: contain;
}

.motif-details {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 8px 4px 8px 0;
}

.motif-store,
.motif-subline {
  margin: 0;
  color: rgba(22, 24, 23, 0.66);
  font-size: 14px;
  font-weight: 750;
}

.motif-description {
  margin: -6px 0 0;
  color: rgba(22, 24, 23, 0.72);
  font-size: 16px;
  line-height: 1.55;
}

.motif-details h2 {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 850;
  line-height: 1.08;
}

.motif-price {
  color: var(--ink);
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1;
}

.motif-option {
  display: grid;
  gap: 8px;
  color: rgba(22, 24, 23, 0.72);
  font-size: 14px;
  font-weight: 800;
}

.motif-option select {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
}

.motif-actions {
  display: grid;
  gap: 12px;
}

.motif-checkout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 28px;
  border: 1px solid var(--checkout-green);
  border-radius: 6px;
  background: #e8f5ec;
  color: var(--checkout-green-dark);
  cursor: pointer;
  font-size: 18px;
  font-weight: 850;
}

.motif-checkout:hover {
  background: #d8eddc;
}

.motif-actions .complete-button {
  background: #ffffff;
  border-color: var(--checkout-green);
  color: var(--checkout-green-dark);
}

.motif-actions .complete-button:hover {
  background: #edf8f0;
}

.motif-info {
  display: grid;
  gap: 0;
  margin-top: 8px;
  border-top: 1px solid var(--line);
}

.motif-info p {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.45;
}

.motif-info strong {
  font-size: 14px;
}

.motif-info span {
  color: rgba(22, 24, 23, 0.68);
  font-size: 14px;
}

.motif-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(22, 24, 23, 0.22);
  background: rgba(247, 242, 234, 0.9);
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}

.cart-panel.open {
  background: rgba(22, 24, 23, 0.28);
  pointer-events: auto;
}

.cart-card {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 100vw;
  padding: 24px;
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: translateX(100%);
  transition: transform 220ms ease;
  display: grid;
  grid-template-rows: auto minmax(80px, 1fr) auto auto;
  gap: 18px;
}

.cart-panel.open .cart-card {
  transform: translateX(0);
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-head h2 {
  font-size: 34px;
}

.icon-button {
  width: 40px;
  height: 40px;
  font-size: 28px;
  cursor: pointer;
}

.cart-items {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: auto;
}

.cart-line {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
}

.cart-thumb {
  width: 56px;
  aspect-ratio: 1;
  object-fit: cover;
  background: #ece5da;
}

.cart-line p {
  margin: 3px 0 0;
  color: rgba(22, 24, 23, 0.68);
  font-size: 13px;
}

.remove-button {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--clay);
  font-weight: 800;
}

.cart-empty {
  align-self: start;
  color: rgba(22, 24, 23, 0.64);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 19px;
}

.checkout-note,
.complete-note {
  color: rgba(22, 24, 23, 0.66);
  line-height: 1.35;
}

.checkout:disabled,
.complete-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.checkout-note,
.complete-note {
  margin: -6px 0 0;
  font-size: 13px;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background: var(--ink);
  color: var(--paper);
}

footer div {
  display: grid;
  gap: 6px;
}

footer span {
  color: rgba(247, 242, 234, 0.72);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 12px;
  min-width: min(100%, 520px);
}

.legal-top a,
.legal-download {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(247, 242, 234, 0.36);
  color: var(--paper);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}

.footer-links a:hover {
  background: rgba(247, 242, 234, 0.12);
}

.privacy-link {
  justify-self: start;
}

.imprint-link {
  justify-self: center;
}

.terms-link {
  justify-self: end;
}

.gallery-link {
  grid-column: 1 / -1;
  justify-self: end;
  min-height: 44px;
  opacity: 0.78;
}

.legal-body {
  background: #fffaf1;
}

.legal-page {
  padding: clamp(28px, 5vw, 64px) clamp(18px, 5vw, 72px);
}

.legal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 980px;
  margin: 0 auto clamp(34px, 5vw, 60px);
  font-weight: 800;
}

.legal-top span {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
  font-weight: 700;
}

.legal-document {
  max-width: 980px;
  margin: 0 auto;
  line-height: 1.72;
}

.legal-document h1 {
  margin: 0 0 28px;
  font-size: clamp(40px, 6vw, 74px);
  line-height: 1;
}

.legal-document h2 {
  margin: 34px 0 12px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
}

.legal-document p {
  margin: 0 0 16px;
  max-width: 76ch;
}

.legal-download {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  font-weight: 800;
}

.legal-pdf {
  width: 100%;
  min-height: 72vh;
  margin-top: 22px;
  border: 1px solid var(--line);
  background: #fff;
}

@media (max-width: 960px) {
  .split-header {
    min-height: 520px;
  }

  .split-header-copy strong {
    font-size: clamp(28px, 6vw, 46px);
  }

  .product-grid,
  .edition-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .motif-viewer-card {
    grid-template-columns: 1fr;
  }

  .motif-gallery {
    min-height: auto;
    aspect-ratio: 4 / 5;
  }

  .motif-gallery img {
    max-height: none;
  }
}

@media (max-width: 620px) {
  .split-header {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .split-header-panel {
    min-height: 280px;
  }

  .shop-panel {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }

  .hero {
    min-height: 660px;
  }

  .hero-copy {
    padding: 0 18px 58px;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(10, 14, 12, 0.12), rgba(10, 14, 12, 0.78));
  }

  .product-grid,
  .edition-row {
    grid-template-columns: 1fr;
  }

  .filters {
    width: 100%;
  }

  .filter {
    flex: 1 1 44%;
  }

  .motif-viewer {
    padding: 10px;
  }

  .motif-viewer-card {
    max-height: calc(100vh - 20px);
    padding: 12px;
  }

  .motif-details {
    padding: 0;
  }

  .motif-info p {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  footer {
    align-items: start;
    flex-direction: column;
  }

  .footer-links,
  .legal-top,
  .legal-top span {
    justify-content: flex-start;
  }

  .footer-links {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .privacy-link,
  .imprint-link,
  .terms-link,
  .gallery-link {
    justify-self: stretch;
  }

  .legal-top {
    align-items: flex-start;
    flex-direction: column;
  }
}
