/* NUDA-inspired theme — brand tokens from nuda.com */
:root {
  --color-bg: #fbfbf8;
  --color-bg-accent: #ebe3d7;
  --color-bg-accent-dark: #e3d7c6;
  --color-text: #4e3629;
  --color-text-light: #827167;
  --color-text-dark: #1e130d;
  --color-accent: #4e3629;
  --color-accent-light: #c5754b;
  --color-border: #4e3629;
  --color-border-hairline: #e8e2d8;
  --color-white: #ffffff;
  --font-display: "Epilogue", "urw-din-condensed", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Maison Neue", system-ui, sans-serif;
  --header-h: 72px;
  --announcement-h: 36px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1400px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
  color: inherit;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Announcement */
.announcement {
  background: var(--color-text);
  color: var(--color-bg);
  height: var(--announcement-h);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  overflow: hidden;
}

.announcement__track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 251, 248, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--color-border-hairline);
}

.header-inner {
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-text);
  margin: 5px auto;
  transition: 0.25s var(--ease);
}

.logo img {
  width: 110px;
  height: auto;
}

.primary-nav {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
}

.primary-nav a {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
}

.icon-btn {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  position: relative;
}

.cart-count {
  font-size: 11px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--color-text);
  color: var(--color-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h) - var(--announcement-h));
  min-height: 85svh;
  display: grid;
  place-items: end start;
  color: var(--color-bg);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 18s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(30, 19, 13, 0.15) 0%,
    rgba(30, 19, 13, 0.55) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: clamp(2rem, 6vw, 5rem);
  max-width: 640px;
  animation: fadeUp 0.9s var(--ease) both;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero__tag {
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0.95;
}

.hero__copy {
  font-size: 1.05rem;
  max-width: 38ch;
  margin: 0 0 1.75rem;
  color: rgba(251, 251, 248, 0.9);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.25s var(--ease), color 0.25s, border-color 0.25s,
    transform 0.25s var(--ease);
}

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

.btn--primary {
  background: var(--color-text);
  color: var(--color-bg);
}

.btn--primary:hover {
  background: var(--color-text-dark);
}

.btn--ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn--light {
  background: var(--color-bg);
  color: var(--color-text);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Trust ticker */
.trust-bar {
  background: var(--color-bg-accent);
  border-block: 1px solid var(--color-border-hairline);
  padding: 1.1rem 0;
  overflow: hidden;
}

.trust-bar__track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trust-item img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section--accent {
  background: var(--color-bg-accent);
}

.section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section__eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 0.6rem;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  text-transform: uppercase;
}

.section__link {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  flex-shrink: 0;
}

.section__sub {
  max-width: 48ch;
  color: var(--color-text-light);
  margin: 0.75rem 0 0;
}

/* Product cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.product-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.product-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 280px);
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.product-rail > * {
  scroll-snap-align: start;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.product-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--color-bg-accent);
  overflow: hidden;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.25rem;
  transition: transform 0.5s var(--ease);
}

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

.product-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--color-text);
  color: var(--color-bg);
  padding: 0.35rem 0.55rem;
}

.product-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.product-card__meta {
  font-size: 13px;
  color: var(--color-text-light);
  margin: 0.15rem 0 0.35rem;
}

.product-card__price {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  font-size: 14px;
}

.price--compare {
  color: var(--color-text-light);
  text-decoration: line-through;
}

.product-card__actions {
  margin-top: auto;
}

.product-card .btn {
  width: 100%;
  min-height: 42px;
}

/* Collections */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.collection-tile {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  color: var(--color-bg);
  display: flex;
  align-items: end;
}

.collection-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.collection-tile:hover img {
  transform: scale(1.05);
}

.collection-tile__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(30, 19, 13, 0.7));
}

.collection-tile__label {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Feature split */
.feature-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  min-height: 560px;
}

.feature-split__media {
  position: relative;
  overflow: hidden;
  background: var(--color-bg-accent);
}

.feature-split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
}

.feature-split__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4.5rem);
  background: var(--color-text);
  color: var(--color-bg);
}

.feature-split__content .section__eyebrow {
  color: rgba(251, 251, 248, 0.65);
}

.feature-split__content p {
  color: rgba(251, 251, 248, 0.85);
  max-width: 40ch;
  margin: 1rem 0 1.75rem;
}

/* Promise */
.promise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.promise-item {
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}

.promise-item h3 {
  font-size: 1.15rem;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.promise-item p {
  margin: 0;
  color: var(--color-text-light);
  font-size: 14px;
}

/* Story */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.story__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--color-bg-accent);
}

.story__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Newsletter / shade finder */
.cta-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--color-border-hairline);
}

.cta-panel {
  background: var(--color-bg);
  padding: clamp(2.5rem, 5vw, 4rem);
}

.cta-panel--dark {
  background: var(--color-bg-accent);
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
  max-width: 420px;
}

.newsletter-form input {
  flex: 1;
  border: 1px solid var(--color-border);
  background: transparent;
  padding: 0.85rem 1rem;
  outline: none;
}

.newsletter-form input:focus {
  border-color: var(--color-accent-light);
}

.form-note {
  font-size: 12px;
  color: var(--color-text-light);
  margin-top: 0.75rem;
}

.form-success {
  display: none;
  margin-top: 0.75rem;
  color: var(--color-accent-light);
  font-size: 14px;
}

.form-success.is-visible {
  display: block;
}

/* Press */
.press {
  padding: 2.5rem 0;
  border-block: 1px solid var(--color-border-hairline);
}

.press__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  opacity: 0.7;
}

.press__row img {
  height: 28px;
  width: auto;
  filter: grayscale(1);
}

.press-quote {
  text-align: center;
  max-width: 52ch;
  margin: 1.5rem auto 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-text-light);
}

/* Footer */
.site-footer {
  background: var(--color-text);
  color: var(--color-bg);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand img {
  width: 120px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  color: rgba(251, 251, 248, 0.7);
  max-width: 28ch;
  font-size: 14px;
}

.footer-col h4 {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(251, 251, 248, 0.75);
  margin-bottom: 0.55rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--color-bg);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(251, 251, 248, 0.15);
  font-size: 12px;
  color: rgba(251, 251, 248, 0.55);
}

/* Cart drawer */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}

.cart-drawer.is-open {
  pointer-events: auto;
}

.cart-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 19, 13, 0.45);
  opacity: 0;
  transition: opacity 0.3s;
}

.cart-drawer.is-open .cart-drawer__backdrop {
  opacity: 1;
}

.cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 400px);
  height: 100%;
  background: var(--color-bg);
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
}

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

.cart-drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border-hairline);
}

.cart-items {
  flex: 1;
  overflow: auto;
}

.cart-empty {
  color: var(--color-text-light);
  text-align: center;
  padding: 3rem 1rem;
}

.cart-line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--color-border-hairline);
}

.cart-line img {
  width: 72px;
  height: 90px;
  object-fit: contain;
  background: var(--color-bg-accent);
}

.cart-line__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  text-transform: uppercase;
}

.cart-line__qty {
  font-size: 13px;
  color: var(--color-text-light);
  margin-top: 0.25rem;
}

.cart-drawer__foot {
  border-top: 1px solid var(--color-border-hairline);
  padding-top: 1rem;
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  text-transform: uppercase;
}

/* Page hero (inner) */
.page-hero {
  padding: 4rem 0 2rem;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-transform: uppercase;
}

.page-hero p {
  max-width: 48ch;
  margin: 0.85rem auto 0;
  color: var(--color-text-light);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Mobile menu */
.mobile-nav {
  display: none;
  position: fixed;
  inset: calc(var(--announcement-h) + var(--header-h)) 0 0;
  background: var(--color-bg);
  z-index: 90;
  padding: 1.5rem;
  transform: translateX(-100%);
  transition: transform 0.35s var(--ease);
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav a {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-transform: uppercase;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border-hairline);
}

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

  .promise-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-split,
  .story,
  .cta-band,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .primary-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .logo {
    justify-self: center;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .section__head {
    flex-direction: column;
    align-items: start;
  }
}
