/* The Modern Basic Co. — shared component styles */
/* ============================================================
   Shared styles — The Modern Basic Co. Landing Page Variations
   ============================================================ */

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--warm-white);
  color: var(--matte-black);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---------- Wordmark — used in header ---------- */
.wm-lock {
  display: inline-flex;
  align-items: baseline;
  gap: clamp(8px, 1.4vw, 14px);
  font-family: var(--font-serif);
  color: var(--matte-black);
  white-space: nowrap;
}
.wm-lock .wm-mid {
  font-size: clamp(15px, 2.3vw, 21px);
  letter-spacing: 0.32em;
  font-weight: 700;
}
.wm-lock .wm-side {
  font-size: clamp(9px, 1.3vw, 12px);
  letter-spacing: 0.32em;
  font-weight: 700;
}
.wm-lock--light { color: var(--warm-white); }

/* ---------- Eyebrow / label ---------- */
.eyebrow-mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-500);
  font-weight: 400;
}
.eyebrow-sans {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-600);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  padding: 18px 32px;
  border: 1px solid transparent;
  background: var(--matte-black);
  color: var(--warm-white);
  border-radius: 2px;
  transition: background var(--dur-base) var(--ease-standard);
}
.btn:hover { background: var(--olive); }
.btn--olive { background: var(--olive); }
.btn--olive:hover { background: var(--matte-black); }
.btn--ghost {
  background: transparent;
  color: var(--matte-black);
  border-color: var(--matte-black);
}
.btn--ghost:hover { background: var(--matte-black); color: var(--warm-white); }
.btn--light {
  background: var(--warm-white);
  color: var(--matte-black);
}
.btn--light:hover { background: var(--sand); }

.btn--arrow::after {
  content: "→";
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 0;
  font-size: 14px;
}

.editorial-link {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--matte-black);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--matte-black);
  transition: color var(--dur-base) var(--ease-standard),
              border-color var(--dur-base) var(--ease-standard);
}
.editorial-link:hover { color: var(--olive); border-color: var(--olive); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--warm-white);
  border-bottom: 1px solid var(--line);
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(24px, 4vw, 64px);
  transition: background var(--dur-base) var(--ease-standard);
}
.site-header__nav {
  display: flex;
  gap: 32px;
}
.site-header__nav--right {
  justify-content: flex-end;
  align-items: center;
}
.site-header__link {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--matte-black);
  transition: color var(--dur-base) var(--ease-standard);
  cursor: pointer;
}
.site-header__link:hover,
.site-header__link.is-active { color: var(--olive); }
.site-header__icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--matte-black);
  background: transparent;
  border: 0;
  transition: color var(--dur-base) var(--ease-standard);
}
.site-header__icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.site-header__icon:hover { color: var(--olive); }
.site-header__bag-count {
  position: absolute;
  margin: -16px 0 0 14px;
  background: var(--olive);
  color: var(--warm-white);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  display: grid;
  place-items: center;
}

/* dark / inverse header variant for full-bleed olive heroes */
.site-header--inverse {
  background: transparent;
  border-bottom-color: rgba(242, 237, 227, 0.18);
  color: var(--warm-white);
}
.site-header--inverse .site-header__link,
.site-header--inverse .site-header__icon { color: var(--warm-white); }
.site-header--inverse .site-header__link:hover,
.site-header--inverse .site-header__icon:hover { color: var(--sand); }
.site-header--inverse .wm-lock { color: var(--warm-white); }

/* ---------- Image placeholder ---------- */
.ph {
  position: relative;
  background: var(--paper-200);
  color: var(--paper-500);
  overflow: hidden;
}
.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.42), rgba(255,255,255,0) 45%),
    linear-gradient(180deg, rgba(20,20,20,0) 60%, rgba(20,20,20,0.04));
  pointer-events: none;
}
.ph__label {
  position: absolute;
  bottom: 16px;
  left: 20px;
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-500);
  font-weight: 500;
  max-width: 70%;
}
.ph__mono {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(20, 20, 20, 0.06);
  font-family: var(--font-serif);
  font-size: clamp(80px, 18vw, 220px);
  letter-spacing: 0.18em;
  font-weight: 400;
  user-select: none;
}
.ph__caption {
  position: absolute;
  top: 18px;
  right: 20px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: rgba(20, 20, 20, 0.35);
  letter-spacing: 0.02em;
}
.ph--sand { background: var(--sand); color: var(--paper-600); }
.ph--sand .ph__mono { color: rgba(20, 20, 20, 0.07); }
.ph--beige { background: var(--beige); color: var(--paper-700); }
.ph--beige .ph__mono { color: rgba(20, 20, 20, 0.08); }
.ph--mustard { background: #C79A3A; color: rgba(20, 20, 20, 0.6); }
.ph--mustard .ph__mono { color: rgba(20, 20, 20, 0.1); }
.ph--olive { background: var(--olive); color: rgba(242, 237, 227, 0.6); }
.ph--olive .ph__mono { color: rgba(242, 237, 227, 0.07); }
.ph--olive .ph__label, .ph--olive .ph__caption { color: rgba(242, 237, 227, 0.55); }
.ph--navy { background: var(--deep-navy); color: rgba(242, 237, 227, 0.6); }
.ph--navy .ph__mono { color: rgba(242, 237, 227, 0.07); }
.ph--navy .ph__label, .ph--navy .ph__caption { color: rgba(242, 237, 227, 0.55); }
.ph--black { background: var(--matte-black); color: rgba(242, 237, 227, 0.55); }
.ph--black .ph__mono { color: rgba(242, 237, 227, 0.05); }
.ph--black .ph__label, .ph--black .ph__caption { color: rgba(242, 237, 227, 0.55); }
.ph--paper { background: var(--paper-50); }
.ph--paper .ph__mono { color: rgba(20, 20, 20, 0.05); }

/* ---------- Swatch picker (featured product) ---------- */
.swatch-block { display: flex; flex-direction: column; gap: 16px; }
.swatch-block__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.swatch-block__label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-600);
}
.swatch-block__name {
  font-family: var(--font-serif);
  font-size: 16px;
  font-style: italic;
  color: var(--matte-black);
}
.swatch-row { display: flex; gap: 18px; flex-wrap: wrap; }
.swatch {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--line);
  cursor: pointer;
  padding: 0;
  background: var(--paper-200);
  transition: transform var(--dur-base) var(--ease-standard);
}
.swatch::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: border-color var(--dur-base) var(--ease-standard);
}
.swatch:hover { transform: scale(1.05); }
.swatch.is-selected::after { border-color: var(--matte-black); }
.swatch[data-color="carbon-black"] { background: #1A1A1A; }
.swatch[data-color="deep-atlantic-blue"] { background: #1B3147; }
.swatch[data-color="chestnut-brown"] { background: #6B3A24; }
.swatch[data-color="saddle-tan"] { background: #A06B3F; }
.swatch[data-color="blush-nude"] { background: #D9B8A6; }

/* dark variant of swatches */
.swatch-block--dark .swatch-block__label,
.swatch-block--dark .swatch-block__name { color: var(--warm-white); }
.swatch-block--dark .swatch-block__name { color: var(--sand); }
.swatch-block--dark .swatch { border-color: rgba(242, 237, 227, 0.25); }
.swatch-block--dark .swatch.is-selected::after { border-color: var(--warm-white); }

/* ---------- Product card ---------- */
.pcard {
  display: flex;
  flex-direction: column;
  gap: 18px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.pcard__photo {
  aspect-ratio: 1 / 1;
  background: var(--paper-200);
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-slow) var(--ease-emphasis);
}
.pcard:hover .pcard__photo { transform: translateY(-4px); }
.pcard__photo .ph { position: absolute; inset: 0; }
.pcard__photo .pcard__quick {
  position: absolute;
  inset: auto 16px 16px 16px;
  background: var(--warm-white);
  color: var(--matte-black);
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur-base) var(--ease-standard),
              transform var(--dur-base) var(--ease-standard);
  border-radius: 2px;
}
.pcard:hover .pcard__quick {
  opacity: 1;
  transform: translateY(0);
}
.pcard__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 4px;
}
.pcard__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--paper-500);
  text-transform: uppercase;
}
.pcard__name {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin: 0;
  color: var(--matte-black);
}
.pcard__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 4px;
}
.pcard__price {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--matte-black);
  font-weight: 500;
}
.pcard__colors {
  display: flex;
  gap: 6px;
}
.pcard__colors i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: block;
  border: 1px solid rgba(20, 20, 20, 0.12);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--matte-black);
  color: var(--warm-white);
  padding: 80px clamp(24px, 4vw, 64px) 32px;
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 1.1fr;
  gap: 64px;
  max-width: var(--max-w);
  margin: 0 auto 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line-inverse);
}
.site-footer__brand { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.site-footer__brand .wm-lock { color: var(--warm-white); }
.site-footer__brand .wm-mid { font-size: 22px; }
.site-footer__brand .wm-side { font-size: 12px; }
.site-footer__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  line-height: 1.55;
  color: var(--paper-300);
  margin: 0;
  max-width: 280px;
}
.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.site-footer__col { display: flex; flex-direction: column; gap: 12px; }
.site-footer__col-head {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-400);
  margin-bottom: 6px;
}
.site-footer__col a {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--paper-200);
  transition: color var(--dur-base) var(--ease-standard);
}
.site-footer__col a:hover { color: var(--warm-white); }

.site-footer__nl { display: flex; flex-direction: column; gap: 14px; }
.site-footer__nl-text {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--paper-300);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}
.nlform {
  display: flex;
  border-bottom: 1px solid var(--paper-400);
  padding-bottom: 6px;
  gap: 12px;
}
.nlform input {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--warm-white);
  font-family: var(--font-sans);
  font-size: 13px;
  outline: none;
  padding: 8px 0;
}
.nlform input::placeholder { color: var(--paper-400); }
.nlform button {
  background: transparent;
  border: 0;
  color: var(--warm-white);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  cursor: pointer;
}
.nlform button:hover { color: var(--sand); }

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-400);
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer__bottom .seal {
  width: 56px;
  height: 56px;
  color: var(--paper-400);
}
.site-footer__bottom a { color: var(--paper-400); }
.site-footer__bottom a:hover { color: var(--warm-white); }

/* ---------- Animated entrance ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 900ms var(--ease-soft) forwards;
}
.fade-up.d1 { animation-delay: 80ms; }
.fade-up.d2 { animation-delay: 220ms; }
.fade-up.d3 { animation-delay: 360ms; }
.fade-up.d4 { animation-delay: 500ms; }
.fade-up.d5 { animation-delay: 640ms; }
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 1.2s var(--ease-soft) forwards;
}
.fade-in.d1 { animation-delay: 120ms; }
.fade-in.d2 { animation-delay: 320ms; }
.fade-in.d3 { animation-delay: 520ms; }
@keyframes fadeIn { to { opacity: 1; } }

/* horizontal rule for editorial breaks */
.rule {
  width: 56px;
  height: 1px;
  background: var(--matte-black);
  border: 0;
  margin: 0;
}
.rule--center { margin: 0 auto; }
.rule--light { background: rgba(242, 237, 227, 0.4); }

/* ---------- Common section utilities ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 64px);
}
.section { padding: clamp(64px, 8vw, 128px) 0; }
.section--paper { background: var(--paper-50); }
.section--sand { background: var(--sand); }
.section--olive { background: var(--olive); color: var(--warm-white); }
.section--navy { background: var(--deep-navy); color: var(--warm-white); }
.section--black { background: var(--matte-black); color: var(--warm-white); }

.section__head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section__head--center {
  align-items: center;
  text-align: center;
}
.section__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
  max-width: 720px;
}
.section__sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.5;
  color: var(--paper-700);
  margin: 0;
  max-width: 540px;
}
.section--olive .section__sub,
.section--navy .section__sub,
.section--black .section__sub { color: var(--paper-200); }

/* ---------- Materials & craftsmanship 3-up ---------- */
.craft-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.craft-card { display: flex; flex-direction: column; gap: 18px; }
.craft-card__photo {
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
}
.craft-card__photo .ph { position: absolute; inset: 0; }
.craft-card__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-500);
}
.craft-card__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.15;
  margin: 0;
}
.craft-card__body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--paper-700);
  margin: 0;
}

/* ---------- Reviews ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}
.reviews-summary {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-right: 32px;
  border-right: 1px solid var(--line);
  position: sticky;
  top: 88px;
  align-self: start;
}
.reviews-score {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 96px;
  line-height: 0.9;
  letter-spacing: -0.01em;
}
.reviews-score em { font-style: normal; font-size: 28px; color: var(--paper-500); }
.reviews-stars { display: flex; gap: 4px; color: var(--olive); }
.reviews-stars svg { width: 18px; height: 18px; fill: currentColor; }
.reviews-count {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--paper-600);
}
.reviews-bars { display: grid; gap: 8px; margin-top: 12px; max-width: 280px; }
.reviews-bars__row {
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--paper-700);
}
.reviews-bars__bar {
  height: 4px;
  background: var(--paper-200);
  position: relative;
}
.reviews-bars__bar i {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--olive);
}
.reviews-list { display: flex; flex-direction: column; gap: 28px; }
.review {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.review:last-child { border-bottom: 0; }
.review__stars { display: flex; gap: 4px; color: var(--olive); }
.review__stars svg { width: 14px; height: 14px; fill: currentColor; }
.review__title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  margin: 0;
  letter-spacing: -0.005em;
}
.review__body {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.55;
  color: var(--paper-700);
  margin: 0;
  max-width: 640px;
}
.review__who {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--paper-500);
}
.review__who b { color: var(--matte-black); font-weight: 600; }

/* ---------- Catalog ---------- */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.catalog-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .site-header { grid-template-columns: auto 1fr auto; padding: 0 20px; height: 64px; }
  .site-header__nav--left { display: none; }
  .site-header__nav--right { gap: 12px; }
  .site-header__link { display: none; }
  .craft-grid { grid-template-columns: 1fr; gap: 40px; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .catalog-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; gap: 40px; }
  .reviews-summary { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; padding-bottom: 32px; position: static; }
  .site-footer__top { grid-template-columns: 1fr; gap: 40px; }
  .site-footer__cols { grid-template-columns: repeat(2, 1fr); }
  .pcard__name { font-size: 18px; }
}
