/* Klein typography, logos and sea-glass actions over neutral surfaces. */
@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

.klein-logo { display: none; }
.product-preview { display: none; }

[data-style="klein"] {
  --blue: #315d58;
  --blue-hover: #254a46;
  --product-surface: #eef0ee;
  --motion-ease: cubic-bezier(.22, 1, .36, 1);
}
[data-style="klein"] .current-wordmark { display: none; }
[data-style="klein"] .wordmark { display: inline-flex; flex-shrink: 0; align-items: center; }
[data-style="klein"] .klein-logo { display: block; width: 150px; height: auto; }
[data-style="klein"] .footer-main .klein-logo { width: 320px; }
[data-style="klein"] .klein-logo img { width: 100%; }
[data-style="klein"] .site-header .klein-logo { width: 120px; }
[data-style="klein"] .nav-inner { height: 64px; }
[data-style="klein"] .hero { height: calc(100svh - 122px); }

/* Keep functional copy in the existing sans; let Fraunces carry the editorial voice. */
[data-style="klein"] h1,
[data-style="klein"] h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-variation-settings: "opsz" 72, "SOFT" 65, "WONK" 1;
  letter-spacing: -.035em;
  line-height: 1.06;
}
[data-style="klein"] .hero h1 {
  font-size: clamp(80px, 8.4vw, 120px);
  color: var(--ink);
  line-height: 1;
}
[data-style="klein"] .eyebrow { font-weight: 500; letter-spacing: -.015em; }
[data-style="klein"] .button { border-radius: 12px; font-weight: 550; }
[data-style="klein"] .text-link {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
[data-style="klein"] .text-link:hover { color: var(--blue-hover); text-decoration-thickness: 2px; }
[data-style="klein"] .text-link > span[aria-hidden="true"] { display: none; }
[data-style="klein"] .product-price { font-variant-numeric: tabular-nums; }

/* A quiet showroom surface gives white product photography a clear boundary. */
[data-style="klein"] .collection { background: var(--white); }
[data-style="klein"] .product-photo {
  position: relative;
  aspect-ratio: 1;
  border-radius: 20px;
  border: 1px solid #e8ebe8;
  background: var(--product-surface);
  isolation: isolate;
  margin-bottom: 28px;
}
[data-style="klein"] .product-photo img {
  object-fit: cover;
}
[data-style="klein"] .product-photo .product-preview {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
[data-style="klein"] .product:has(.product-action:focus-visible) .product-preview { opacity: 1; }
[data-style="klein"] .product-description { margin-top: 16px; }
[data-style="klein"] .product-detail { margin-top: 28px; padding-top: 24px; }
[data-style="klein"] .flagship { gap: clamp(28px, 4vw, 64px); }
[data-style="klein"] .product-stage {
  position: relative;
  width: min(100%, 520px);
  justify-self: center;
  padding-bottom: 48px;
}
[data-style="klein"] .product-viewport {
  width: min(100%, max(160px, calc(100svh - 240px)));
  margin-inline: auto;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid #e8ebe8;
  background: var(--product-surface);
  isolation: isolate;
}
[data-style="klein"] .view-controls {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: min(100%, 340px);
  margin-top: 20px;
  border-radius: 14px;
  background: var(--product-surface);
}
[data-style="klein"] .view-controls::before {
  content: "";
  position: absolute;
  inset: 5px auto 5px 5px;
  width: calc((100% - 10px) / 3);
  border-radius: 10px;
  background: var(--blue);
  transform: translateX(calc(var(--view-index, 0) * 100%));
  transition: transform 240ms var(--motion-ease);
}
[data-style="klein"] .view-controls button {
  position: relative;
  border-radius: 10px;
  padding-inline: 8px;
  color: #505b57;
  transition: color 160ms ease;
}
[data-style="klein"] .view-controls button[aria-pressed="true"] { color: white; background: transparent; }
[data-style="klein"] .view-controls button[data-pending] { text-decoration: underline; text-underline-offset: 4px; cursor: progress; }
[data-style="klein"] #view-status:is(.is-loading, .is-error) {
  position: absolute;
  inset: auto 0 0;
  width: 100%;
  height: auto;
  margin: 0;
  clip-path: none;
  white-space: normal;
  overflow: visible;
  text-align: center;
  font-size: 14px;
  color: var(--ink);
}
[data-style="klein"] .warmth-image,
[data-style="klein"] .control-image { border-radius: 24px; }
[data-style="klein"] .button { transition: background 180ms ease, transform 180ms var(--motion-ease); }
[data-style="klein"] .product-photo:hover img { transform: none; }
[data-style="klein"] .text-link { transition: color 180ms ease, text-underline-offset 180ms ease; }
[data-style="klein"] .text-link:hover { text-underline-offset: 7px; }
[data-style="klein"] ::selection { background: #dce8e2; color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  [data-style="klein"] .button:hover { transform: translateY(-2px); }
  [data-style="klein"] .button:active { transform: translateY(0) scale(.98); }
  [data-style="klein"] .product-photo:has(> img:hover) .product-preview { opacity: 1; }
}
[data-style="klein"] .product:focus-within .product-photo { outline: 2px solid var(--blue); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  [data-style="klein"] .button:hover,
  [data-style="klein"] .button:active { transform: none; }
}

@media (max-width: 1100px) {
  [data-style="klein"] .hero { height: auto; }
  [data-style="klein"] .hero h1 { font-size: clamp(44px, 9.5vw, 88px); }
}
@media (max-width: 767px) {
  [data-style="klein"] .product-viewport > img { width: 100%; }
  [data-style="klein"] .product-viewport,
  [data-style="klein"] .warmth-image,
  [data-style="klein"] .control-image { border-radius: 20px; }
  [data-style="klein"] .nav-inner { height: 60px; }
  [data-style="klein"] .footer-main .klein-logo { width: 150px; }
  [data-style="klein"] .hero h1 { font-size: clamp(39px, 10.6vw, 76px); }
  [data-style="klein"] h2 { font-size: clamp(39px, 7.5vw, 58px); }
  [data-style="klein"] .final-cta h2 { font-size: clamp(43px, 9vw, 64px); }
}
@media (max-width: 374px) {
  [data-style="klein"] .hero h1 { font-size: 37px; }
}
