/* ============================================================
   LIFETIME PEACE — main stylesheet
   ============================================================ */

/* ---------- fonts ---------- */
@font-face {
  font-family: "Futura LP";
  src: url("../assets/fonts/futura-light.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Futura LP";
  src: url("../assets/fonts/futura-medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Futura LP";
  src: url("../assets/fonts/futura-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Futura LP";
  src: url("../assets/fonts/futura-heavy.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
/* Futura Book — the product name + material line. Its own family (not a weight
   of Futura LP) so it never collides with the Light used everywhere else. */
@font-face {
  font-family: "Futura Book LP";
  src: url("../assets/fonts/futura-book.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
/* Futura Round is a separate typeface (rounded terminals). Kept available. */
@font-face {
  font-family: "Futura Round LP";
  src: url("../assets/fonts/futura-round.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

/* ---------- tokens / reset ---------- */
:root {
  --ink: #111;
  --bg: #fff;
  --tile-bg: #f4f4f3;
  --hairline: 1px solid var(--ink);
  --hairline-soft: 1px solid #e5e5e3;
  --pad: 20px;
  --header-h: 96px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Futura LP", "Century Gothic", "Helvetica Neue", sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.45;
  /* Tracking pass 2026-07-15 (Leila, via #tune tool): all Futura Light/Bold
     text shifted -0.037em from the original values, all Futura Book -0.022em.
     This body value is the Light delta applied to previously-untracked text. */
  letter-spacing: -0.037em;
}

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

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

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

/* ---------- header ---------- */
.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--header-h);
  padding: 0 var(--pad);
  background: var(--bg);
}

.site-header .wordmark img {
  width: 148px;
  height: auto;
}

.cart-toggle {
  position: absolute;
  right: var(--pad);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
}

.cart-toggle img {
  width: 26px;
  height: auto;
}

.cart-count {
  font-weight: 300;
  font-size: 12px;
  min-width: 14px;
  text-align: center;
}

.cart-count:empty {
  display: none;
}

/* ---------- home grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
  list-style: none;
  background: var(--bg);
}

.tile {
  position: relative;
  display: block;
  background: var(--tile-bg);
}

.tile-media {
  display: block;
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--tile-bg);
}

.tile-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile-media img.alt {
  opacity: 0;
  transition: opacity 0.25s ease;
}

.tile:hover .tile-media img.alt {
  opacity: 1;
}

.tile .flag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.003em;
  z-index: 1;
}

/* Home-grid tile line is product name + price — both exceptions, so Futura Book. */
.tile-info {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: var(--bg);
  font-family: "Futura Book LP", "Futura LP", sans-serif;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.018em;
  text-transform: uppercase;
}

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

/* ---------- product page ---------- */
.product-layout {
  display: grid;
  grid-template-columns: 140px minmax(0, 480px) minmax(320px, 620px);
  justify-content: center;
  gap: 48px;
  padding: 24px var(--pad) 96px;
}

.monogram {
  align-self: center;
  padding-left: 40px;
}

.monogram img {
  width: 50px;
  height: auto;
  animation: monogram-pulse 4s ease-in-out infinite;
}

@keyframes monogram-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.016); }
}

@media (prefers-reduced-motion: reduce) {
  .monogram img { animation: none; }
}

.carousel {
  position: relative;
}

.carousel-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--tile-bg);
}

.carousel-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.carousel-frame img.active {
  opacity: 1;
}

.carousel-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.carousel-nav button {
  font-family: "Futura LP", sans-serif;
  font-weight: 300;
  font-size: 28px;
  line-height: 1;
  padding: 4px 10px;
}

.product-details {
  align-self: center;
  font-weight: 300; /* Futura Light — everything on the page except name, material + price */
  letter-spacing: 0.023em;
  max-width: 560px;
}

.product-title-row {
  margin-bottom: 4px;
  font-family: "Futura Book LP", "Futura LP", sans-serif;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.058em;
  text-transform: uppercase;
}

.product-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 32px;
  font-size: 15px;
}

/* Material / colorway line and the price share the Futura Book of the
   product name — the three exceptions to the site-wide Futura Light. */
.product-color-fabric {
  font-family: "Futura Book LP", "Futura LP", sans-serif;
  font-weight: 400;
  /* Book delta on the 0.06em it used to inherit from .product-details. */
  letter-spacing: 0.038em;
}

.product-price {
  font-family: "Futura Book LP", "Futura LP", sans-serif;
  font-weight: 400;
  letter-spacing: 0.058em;
}

.buy-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.picker-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.color-picker,
.size-picker {
  display: flex;
  gap: 10px;
}

.color-picker:empty {
  display: none;
}

.color-box {
  padding: 0 16px;
}

.color-swatch {
  width: 46px;
  height: 46px;
  padding: 0;
  border: var(--hairline);
  background: var(--swatch);
  cursor: pointer;
  transition: box-shadow 0.12s ease;
}

.color-swatch.selected {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--ink);
}

.size-box:disabled {
  cursor: default;
}

.size-box {
  min-width: 46px;
  height: 46px;
  padding: 0 8px;
  border: var(--hairline);
  font-weight: 300; /* Futura Light */
  font-size: 15px;
  letter-spacing: 0.003em;
  transition: background 0.12s ease, color 0.12s ease;
}

.size-box.selected {
  background: var(--ink);
  color: var(--bg);
}

.add-btn {
  border: var(--hairline);
  height: 46px;
  min-width: 190px;
  font-weight: 300; /* Futura Light */
  font-size: 15px;
  letter-spacing: 0.163em;
  transition: background 0.12s ease, color 0.12s ease;
}

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

.add-btn.added {
  background: var(--ink);
  color: var(--bg);
}

.product-copy p {
  font-weight: 300; /* Futura Light — running prose sits lighter than the labels */
  font-size: 15px;
}

.product-copy .model-note {
  margin-top: 1.2em;
}

@media (max-width: 1080px) {
  .product-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 8px;
  }

  .monogram {
    display: none;
  }

  .product-details {
    align-self: start;
  }

  .buy-row {
    flex-direction: column;
    align-items: stretch;
  }

  .size-picker {
    justify-content: space-between;
  }

  .size-box {
    flex: 1;
  }
}

/* ---------- info page ---------- */
.info-layout {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px var(--pad) 120px;
  min-height: 56vh;
}

.info-layout .monogram {
  position: absolute;
  left: var(--pad);
  top: 46%;
  padding-bottom: 0;
}

.info-body {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  font-weight: 300;
}

.info-lead {
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: -0.027em;
}

.info-lead + .info-lead {
  margin-top: 1.6em;
}

.info-dispatch {
  margin-top: 6em;
}

.info-dispatch h2 {
  font-size: 15px;
  font-weight: 300; /* Futura Light — same weight as the prose, just larger */
  letter-spacing: -0.017em;
  margin-bottom: 1.4em;
}

.info-dispatch p {
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 1080px) {
  .info-layout {
    padding-top: 40px;
  }
  .info-lead {
    font-size: 20px;
  }
}

/* ---------- cart drawer ---------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 40;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 440px;
  max-width: 100vw;
  height: 100dvh;
  background: var(--bg);
  z-index: 50;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  border-left: var(--hairline-soft);
}

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

.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.003em;
  text-transform: uppercase;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 0 24px;
}

.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
}

.cart-item-thumb {
  width: 96px;
  flex-shrink: 0;
  background: var(--tile-bg);
}

.cart-item-thumb img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.cart-item-body {
  flex: 1;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.003em;
  text-transform: uppercase;
}

/* Cart line's name + price row — exceptions, so Futura Book. */
.cart-item-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  font-family: "Futura Book LP", "Futura LP", sans-serif;
  font-weight: 400;
  /* Book delta on the 0.04em it used to inherit from .cart-item-body. */
  letter-spacing: 0.018em;
}

.cart-item-body .attr {
  font-weight: 300;
  margin-bottom: 2px;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 14px;
}

.qty-stepper {
  display: flex;
  align-items: center;
  border: var(--hairline);
}

.qty-stepper button {
  width: 34px;
  height: 34px;
  font-size: 15px;
}

.qty-stepper .qty {
  min-width: 34px;
  text-align: center;
  font-weight: 300;
}

.remove-btn {
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.003em;
}

.cart-empty {
  padding: 32px 0;
  font-weight: 300;
  letter-spacing: 0.023em;
}

.cart-foot {
  padding: 20px 24px 24px;
  border-top: var(--hairline-soft);
}

.cart-totals {
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.003em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.cart-totals .row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}

.checkout-btn {
  width: 100%;
  height: 52px;
  border: var(--hairline);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.023em;
  text-transform: uppercase;
  transition: background 0.12s ease, color 0.12s ease;
}

.checkout-btn:hover {
  background: var(--ink);
  color: var(--bg);
}

/* ---------- footer ---------- */
/* contact · logo · info — equal side columns keep the wordmark centered on the
   page regardless of the side labels' widths; the labels sit tucked in beside
   it rather than pinned to the footer's outer edges. */
.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 44px;
  padding: 64px var(--pad) 48px;
}

.footer-contact {
  justify-self: end;
}
.footer-wordmark {
  justify-self: center;
}
.footer-info {
  justify-self: start;
}

/* info page: only the contact button, centered */
.site-footer--info {
  grid-template-columns: 1fr;
}
.site-footer--info .footer-contact {
  justify-self: center;
}

.footer-wordmark img {
  height: 15px;
  width: auto;
  opacity: 0.9;
}

.footer-info,
.footer-contact {
  font-weight: 300; /* Futura Light */
  font-size: 15px;
  letter-spacing: 0.023em;
}

.footer-info:hover,
.footer-contact:hover {
  opacity: 0.6;
}

/* narrow phones: tighten the gap so all three stay on one line at 320px */
@media (max-width: 480px) {
  .site-footer {
    gap: 24px;
  }
}

/* ---------- 404 ---------- */
.notfound {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  letter-spacing: 0.043em;
  font-weight: 300;
}

.notfound a {
  border-bottom: var(--hairline);
}
