/* Relievo — shared styles
   Concept: tension → relief. Display type starts condensed (tight, like a sore back)
   and loosens to full width as heat comes on. Ember orange only appears where heat is. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/Archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --concrete: #e4e4e6;      /* matches the product photo backdrop */
  --concrete-deep: #d5d5d9;
  --paper: #f4f4f3;
  --graphite: #1c1c1e;      /* the bag */
  --graphite-2: #2a2a2d;
  --ink-soft: #4b4e55;      /* secondary text on concrete (6:1) */
  --ink-faint: #6b6f77;
  --line: rgba(28, 28, 30, 0.14);
  --signal: #ea7a2b;        /* logo bar */
  --signal-press: #d9691c;
  --ember: #ff4a12;         /* heat only */
  --ember-hot: #ff8a3d;
  --on-dark: #ecebe8;
  --on-dark-soft: #a9abb1;

  --wdth: 100;
  --radius-s: 6px;
  --radius-m: 14px;
  --pad: clamp(1rem, 4vw, 3.5rem);
  --max: 1320px;
  --nav-h: 68px;

  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.88rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.25rem + 1vw, 2.2rem);
  --step-3: clamp(2rem, 1.5rem + 2.4vw, 3.6rem);
  --step-4: clamp(2.6rem, 1.6rem + 5vw, 6rem);
}

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

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

body {
  margin: 0;
  background: var(--concrete);
  color: var(--graphite);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--step-0);
  line-height: 1.55;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--graphite); color: var(--on-dark);
  padding: 0.6rem 1rem; border-radius: var(--radius-s);
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- Display type ---------- */

/* Titles: a bold main line, then an optional quieter line in grey
   (<span class="title-sub">). Normal width, no full stops. */
.display {
  font-size: clamp(2.5rem, 1.25rem + 3.4vw, 4.25rem);
  font-weight: 720;
  line-height: 1.04;
  letter-spacing: -0.032em;
  margin: 0;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(1.9rem, 1.3rem + 1.9vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.028em;
  margin: 0 0 0.7em;
  text-wrap: balance;
}
.title-sub {
  display: block;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--title-sub, #6b6f77);
}
[data-nav="dark"],
.section--dark,
.heat.is-lit,
.street,
.foryou { --title-sub: #9a9ca3; }
.h3 {
  font-size: var(--step-1);
  font-weight: 700;
  font-stretch: 100%;
  line-height: 1.15;
  margin: 0 0 0.4em;
}
.lede {
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 34ch;
  margin: 0;
}
.body-copy { max-width: 60ch; color: var(--ink-soft); }
.body-copy p { margin: 0 0 1em; }

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: var(--graphite);
  --btn-fg: var(--on-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 52px;
  padding: 0.8em 1.5em;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 650;
  font-stretch: 100%;
  font-size: var(--step-0);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn--heat { --btn-bg: var(--signal); --btn-fg: var(--graphite); }
.btn--heat:hover { --btn-bg: var(--signal-press); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  box-shadow: inset 0 0 0 1.5px currentColor;
}
.btn__price {
  font-variant-numeric: tabular-nums;
  padding-left: 0.7em;
  border-left: 1.5px solid currentColor;
  opacity: 0.85;
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  color: var(--graphite);
  transition: transform 0.35s ease, background-color 0.3s ease, color 0.3s ease;
}
.nav::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(228, 228, 230, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity 0.3s ease, background-color 0.3s ease;
}
.nav.is-solid::before { opacity: 1; }
.nav.is-hidden { transform: translateY(-100%); }
.nav.is-dark { color: var(--on-dark); }
.nav.is-dark::before { background: rgba(28, 28, 30, 0.78); border-color: rgba(255, 255, 255, 0.08); }

.nav__inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  margin-right: auto;
}
.brand__mark { height: 30px; width: auto; }
.brand__word { height: 13px; width: auto; }
.brand .on-dark { display: none; }
.nav.is-dark .brand .on-light { display: none; }
.nav.is-dark .brand .on-dark { display: block; }

.nav__links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav__links a {
  display: block;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 560;
  font-stretch: 100%;
}
.nav__links a:hover { background: rgba(127, 127, 135, 0.16); }
.nav__links a[aria-current="page"] { box-shadow: inset 0 0 0 1.5px currentColor; }

.bag-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.45rem 0.95rem 0.45rem 0.8rem;
  border: 0;
  border-radius: 999px;
  background: var(--graphite);
  color: var(--on-dark);
  font-weight: 620;
  cursor: pointer;
}
.nav.is-dark .bag-btn { background: var(--on-dark); color: var(--graphite); }
.bag-btn svg { width: 20px; height: 20px; }
.bag-btn__count {
  min-width: 1.5em;
  height: 1.5em;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--signal);
  color: var(--graphite);
  font-size: 0.8rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.menu-btn {
  display: none;
  min-height: 44px;
  padding: 0 0.9rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px currentColor;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 760px) {
  :root { --nav-h: 60px; }
  .menu-btn { display: inline-flex; align-items: center; }
  .brand__word { display: none !important; }
  .nav__links {
    position: absolute;
    top: calc(100% + 6px);
    right: var(--pad);
    left: var(--pad);
    flex-direction: column;
    gap: 0;
    padding: 0.4rem;
    border-radius: var(--radius-m);
    background: var(--graphite);
    color: var(--on-dark);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }
  .nav.menu-open .nav__links {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav__links a { padding: 0.9rem 1rem; font-size: 1.1rem; }
  .bag-btn__label { display: none; }
}

/* ---------- Footer ---------- */

.footer {
  background: var(--graphite);
  color: var(--on-dark);
  padding: clamp(3rem, 7vw, 5rem) 0 2.5rem;
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer__brand { display: flex; align-items: center; gap: 1rem; }
.footer__brand img:first-child { height: 64px; width: auto; }
.footer__brand img:last-child { height: 20px; width: auto; }
.footer__links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.footer__links a { text-decoration: none; color: var(--on-dark-soft); }
.footer__links a:hover { color: var(--on-dark); }
.footer__note {
  margin: 1.5rem 0 0;
  max-width: 64ch;
  font-size: var(--step--1);
  color: var(--on-dark-soft);
}

/* ---------- Bag drawer ---------- */

.drawer {
  margin: 0 0 0 auto;
  width: min(440px, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--graphite);
  box-shadow: -30px 0 60px rgba(0, 0, 0, 0.22);
}
.drawer::backdrop { background: rgba(20, 20, 22, 0.45); backdrop-filter: blur(3px); }
.drawer[open] { animation: drawer-in 0.38s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes drawer-in { from { transform: translateX(100%); } }
.drawer__inner { display: flex; flex-direction: column; height: 100%; }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
}
.drawer__head h2 { margin: 0; font-size: var(--step-1); font-stretch: 100%; }
.icon-btn {
  width: 44px; height: 44px;
  display: inline-grid; place-items: center;
  border: 0; border-radius: 999px;
  background: transparent;
  cursor: pointer;
}
.icon-btn:hover { background: rgba(0, 0, 0, 0.06); }
.icon-btn svg { width: 22px; height: 22px; }
.drawer__body { flex: 1; overflow: auto; padding: 1.5rem; }
.drawer__empty { text-align: center; padding: 3rem 1rem; color: var(--ink-soft); }
.drawer__empty .btn { margin-top: 1.25rem; }
.line-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 1rem;
  align-items: center;
}
.line-item__img {
  background: var(--concrete);
  border-radius: var(--radius-m);
  padding: 8px;
}
.line-item__name { font-weight: 700; font-stretch: 100%; margin: 0 0 0.15rem; }
.line-item__meta { margin: 0 0 0.6rem; color: var(--ink-soft); font-size: var(--step--1); }
.drawer__foot { padding: 1.25rem 1.5rem 1.5rem; border-top: 1px solid var(--line); }
.total-row { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 0.25rem; font-variant-numeric: tabular-nums; }
.total-note { margin: 0 0 1rem; color: var(--ink-soft); font-size: var(--step--1); }
.drawer__foot .btn { width: 100%; }

/* quantity stepper */
.qty {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.qty button {
  width: 40px; height: 40px;
  border: 0; background: transparent;
  border-radius: 999px;
  font-size: 1.2rem; font-weight: 600;
  cursor: pointer;
}
.qty button:hover { background: rgba(0, 0, 0, 0.06); }
.qty button:disabled { opacity: 0.3; cursor: default; }
.qty output { min-width: 2ch; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.link-btn {
  border: 0; background: none; padding: 0.25rem 0;
  color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer; font-size: var(--step--1);
}

/* toast */
.toast {
  position: fixed;
  left: 50%; bottom: 1.5rem;
  z-index: 120;
  transform: translate(-50%, calc(100% + 2rem));
  visibility: hidden;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  background: var(--graphite);
  color: var(--on-dark);
  font-weight: 600;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0.35s;
}
.toast.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }

/* ---------- Shared section bits ---------- */

.section { padding-block: clamp(4.5rem, 10vw, 9rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--dark { background: var(--graphite); color: var(--on-dark); }
.section--dark .lede,
.section--dark .body-copy { color: var(--on-dark-soft); }

.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--graphite);
  color: var(--on-dark);
}
.cta-band__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2rem;
  min-height: 560px;
  padding-block: 4rem;
}
.cta-band__glow {
  position: absolute;
  right: -10%; top: 50%;
  width: 70vmax; height: 70vmax;
  transform: translateY(-50%);
  background: radial-gradient(closest-side, rgba(255, 74, 18, 0.32), rgba(255, 74, 18, 0.08) 55%, transparent 72%);
  pointer-events: none;
}
.cta-band__img { position: relative; max-height: 520px; width: auto; margin-inline: auto; filter: drop-shadow(0 40px 50px rgba(0, 0, 0, 0.55)); }
.cta-band .lede { color: var(--on-dark-soft); margin-bottom: 2rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
@media (max-width: 820px) {
  .cta-band__inner { grid-template-columns: 1fr; min-height: 0; }
  .cta-band__img { max-height: 340px; order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
