:root {
  --ink: #161a14;
  --ink-soft: #2a3126;
  --moss: #4f6b4a;
  --moss-deep: #3a5238;
  --sage: #a8b89a;
  --stone: #d7d2c6;
  --paper: #f2efe8;
  --mist: #e8e4da;
  --brass: #9a7b4f;
  --white: #faf9f6;
  --shadow: rgba(22, 26, 20, 0.35);

  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Outfit", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(ellipse 120% 80% at 10% -20%, #dfe8d6 0%, transparent 55%),
    radial-gradient(ellipse 90% 60% at 100% 10%, #e6dfd0 0%, transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, var(--mist) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 3px;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  color: var(--white);
  transition: background 0.45s var(--ease), color 0.45s var(--ease), backdrop-filter 0.45s var(--ease);
}

.site-header.is-solid {
  background: rgba(242, 239, 232, 0.88);
  backdrop-filter: blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(22, 26, 20, 0.08);
}

.logo {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.5vw, 1.35rem);
  letter-spacing: 0.01em;
  font-weight: 400;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 1.75rem;
}

.nav a,
.cart-btn {
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  opacity: 0.88;
  transition: opacity 0.25s;
}

.nav a:hover,
.cart-btn:hover {
  opacity: 1;
}

.cart-btn {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: inherit;
}

.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--moss);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 500;
}

.site-header.is-solid .cart-count {
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.06);
  animation: hero-zoom 18s var(--ease) forwards;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(22, 26, 20, 0.35) 0%, rgba(22, 26, 20, 0.15) 35%, rgba(22, 26, 20, 0.72) 100%),
    linear-gradient(90deg, rgba(22, 26, 20, 0.45) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 44rem;
  padding: 0 clamp(1.25rem, 5vw, 4.5rem) clamp(4rem, 10vh, 6.5rem);
  animation: rise 1.1s var(--ease) both;
}

.brand-mark {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 4.4vw, 3.2rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  line-height: 1.2;
  font-style: italic;
  max-width: 12em;
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 38ch;
  font-weight: 300;
  font-size: 1.05rem;
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.7rem 1.4rem;
  border-radius: 2px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--white);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--stone);
}

.btn-ghost {
  border: 1px solid rgba(250, 249, 246, 0.45);
  color: var(--white);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(250, 249, 246, 0.08);
}

.section-intro {
  max-width: 36rem;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}

.section-intro h2,
.ueber-copy h2,
.versand-row h3,
.cart-head h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

.section-intro p,
.ueber-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 300;
}

.kollektion,
.versand {
  padding: clamp(4.5rem, 10vw, 7.5rem) clamp(1.25rem, 5vw, 4.5rem);
}

#kollektion,
#ueber,
#versand {
  scroll-margin-top: 1.25rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.75rem) clamp(1rem, 2.5vw, 2rem);
}

.product {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.product.is-visible {
  opacity: 1;
  transform: none;
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--stone);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

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

.product-body {
  display: grid;
  gap: 0.35rem;
}

.product-cat {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--moss);
  font-weight: 500;
}

.product h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.15;
}

.product-desc {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--ink-soft);
}

.product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.35rem;
}

.product-price {
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.size-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.15rem;
}

.size-btn {
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid rgba(22, 26, 20, 0.25);
  border-radius: 2px;
  font-size: 0.82rem;
}

.size-btn.is-selected {
  background: var(--ink);
  color: var(--white);
}

.add-btn {
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--ink);
  border-radius: 2px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: background 0.25s, color 0.25s;
}

.add-btn:hover {
  background: var(--ink);
  color: var(--white);
}

.ueber {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 70vh;
  background: var(--ink);
  color: var(--paper);
}

.ueber-media {
  min-height: 420px;
  overflow: hidden;
}

.ueber-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}

.ueber-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.1rem;
  padding: clamp(2.5rem, 6vw, 5rem);
}

.ueber-copy h2 {
  color: var(--white);
  max-width: 14ch;
}

.ueber-copy p {
  color: var(--sage);
  max-width: 38ch;
}

.versand {
  background: linear-gradient(180deg, transparent, rgba(79, 107, 74, 0.08));
}

.versand-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}

.versand-row article h3 {
  font-size: 1.65rem;
}

.versand-row article p {
  margin: 0;
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 28ch;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2.5rem clamp(1.25rem, 5vw, 4.5rem) 3rem;
  border-top: 1px solid rgba(22, 26, 20, 0.1);
}

.footer-brand .logo {
  margin: 0 0 0.35rem;
}

.footer-brand p:last-child,
.footer-meta p {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--ink-soft);
}

.footer-meta {
  text-align: right;
  display: grid;
  gap: 0.25rem;
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(22, 26, 20, 0.45);
  opacity: 0;
  transition: opacity 0.35s;
}

.cart-backdrop.is-open {
  opacity: 1;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 70;
  width: min(100%, 26rem);
  height: 100%;
  pointer-events: none;
}

.cart-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  box-shadow: -12px 0 40px var(--shadow);
  transform: translateX(105%);
  transition: transform 0.45s var(--ease);
  pointer-events: auto;
}

.cart-drawer.is-open .cart-panel {
  transform: none;
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 1.35rem 1rem;
  border-bottom: 1px solid rgba(22, 26, 20, 0.1);
}

.cart-head h2 {
  font-size: 1.75rem;
  margin: 0;
}

.cart-close {
  font-size: 1.75rem;
  line-height: 1;
  opacity: 0.7;
}

.cart-items {
  flex: 1;
  overflow: auto;
  padding: 1rem 1.35rem;
  display: grid;
  gap: 1rem;
  align-content: start;
}

.cart-empty {
  margin: 2rem 0;
  color: var(--ink-soft);
  font-weight: 300;
}

.cart-line {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  gap: 0.85rem;
  align-items: start;
}

.cart-line img {
  width: 4.5rem;
  height: 5.5rem;
  object-fit: cover;
  background: var(--stone);
}

.cart-line h4 {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
}

.cart-line p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.qty-row {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.45rem;
}

.qty-row button {
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid rgba(22, 26, 20, 0.25);
  border-radius: 2px;
  font-size: 0.9rem;
  line-height: 1;
}

.remove-line {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--moss-deep);
  margin-top: 0.35rem;
}

.cart-foot {
  padding: 1.15rem 1.35rem 1.5rem;
  border-top: 1px solid rgba(22, 26, 20, 0.1);
  display: grid;
  gap: 0.55rem;
}

.cart-meta,
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.cart-meta {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--ink-soft);
}

.cart-total {
  margin-top: 0.25rem;
  font-size: 1rem;
}

.cart-total strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--ink);
}

.ship-note {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--moss-deep);
}

.cart-checkout {
  width: 100%;
  margin-top: 0.35rem;
  background: var(--ink);
  color: var(--white);
}

.cart-checkout:hover {
  background: var(--ink-soft);
  color: var(--white);
}

.cart-note {
  margin: 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-weight: 300;
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  z-index: 80;
  transform: translate(-50%, 120%);
  padding: 0.75rem 1.2rem;
  background: var(--ink);
  color: var(--white);
  font-size: 0.88rem;
  border-radius: 2px;
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s;
  pointer-events: none;
}

.toast.is-show {
  transform: translate(-50%, 0);
  opacity: 1;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-zoom {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1);
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .logo {
    font-size: 0.92rem;
  }

  .nav {
    display: none;
  }

  .ueber {
    grid-template-columns: 1fr;
  }

  .ueber-media {
    min-height: 280px;
    max-height: 40vh;
  }

  .versand-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding-bottom: 3.5rem;
  }

  .footer-meta {
    text-align: left;
  }
}

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

  .hero-media img,
  .hero-content,
  .product {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
}
