:root {
  --ink: #111111;
  --paper: #ede8dd;
  --cream: #f2eadc;
  --muted: #504d47;
  --olive: #6b7344;
  --rust: #c0392b;
  --orange: #e2571f;
  --gold: #b08442;
  --white: #ffffff;
  --max: 1200px;
  --font-display: "Anton", Impact, sans-serif;
  --font-body: "Archivo", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

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

.skip-link:focus {
  z-index: 9999;
  width: auto;
  height: auto;
  clip: auto;
  margin: 12px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--cream);
}

/* Countdown bar */
.countdown-bar {
  position: sticky;
  top: 0;
  z-index: 500;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  min-height: 52px;
  padding: 8px 20px;
  background: var(--ink);
  color: var(--cream);
  border-bottom: 1px solid rgba(242, 234, 220, 0.24);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.countdown-label {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.countdown-timer {
  display: flex;
  align-items: center;
  gap: 9px;
}

.countdown-unit {
  display: grid;
  min-width: 44px;
  justify-items: center;
  line-height: 1;
}

.countdown-num {
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: 0.05em;
}

.countdown-tag {
  margin-top: 3px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.countdown-sep {
  transform: translateY(-5px);
  font-family: var(--font-display);
  font-size: 18px;
  opacity: 0.75;
}

/* Navigation */
.navigation {
  position: relative;
  z-index: 100;
  display: flex;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 48px;
  align-items: center;
  justify-content: space-between;
}

.logo {
  position: relative;
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: -0.03em;
  line-height: 1;
}

.logo span {
  color: var(--rust);
}

.logo small {
  position: absolute;
  top: -7px;
  right: -30px;
  transform: rotate(10deg);
  display: inline-block;
  padding: 2px 6px;
  background: var(--olive);
  border: 1px solid var(--ink);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 40px;
  font-size: 16px;
  font-weight: 800;
}

.nav-links a {
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--rust);
  text-decoration: underline 3px;
  text-underline-offset: 4px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--ink);
}

/* Hero */
.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 1fr);
  gap: 60px;
  align-items: center;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 20px 64px;
}

.hero-content {
  position: relative;
  z-index: 10;
}

.season-badge {
  display: inline-block;
  margin-bottom: 24px;
  padding: 8px 16px;
  background: var(--gold);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero-headline {
  margin-bottom: 30px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 8vw, 5.5rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.hero-headline span {
  color: var(--white);
  text-shadow: 2px 2px 0 var(--ink), -2px -2px 0 var(--ink), 2px -2px 0 var(--ink), -2px 2px 0 var(--ink), 2px 2px 0 var(--ink);
}

.hero-subtext {
  max-width: 500px;
  margin-bottom: 34px;
  color: #44413c;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
}

/* Email collection block based on the uploaded visual reference */
.early-access-card {
  width: min(100%, 455px);
  padding: 16px 18px 14px;
  background: var(--ink);
  border: 1px solid rgba(242, 234, 220, 0.8);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55), 8px 8px 0 rgba(0, 0, 0, 0.14);
}

.early-access-title,
.early-access-subtitle {
  color: var(--cream);
  line-height: 1;
  text-transform: uppercase;
}

.early-access-title {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.32em;
}

.early-access-subtitle {
  margin-bottom: 13px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.24em;
}

.email-form {
  display: flex;
  width: 100%;
  height: 44px;
}

.email-form input {
  min-width: 0;
  flex: 1;
  height: 100%;
  padding: 0 16px;
  background: var(--cream);
  border: 2px solid var(--cream);
  border-right: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.email-form .email-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.email-form input::placeholder {
  color: rgba(17, 17, 17, 0.72);
}

.email-form input:focus {
  outline: 2px solid var(--gold);
  outline-offset: -4px;
}

.email-form button {
  display: grid;
  place-items: center;
  width: 58px;
  height: 100%;
  background: transparent;
  border: 2px solid var(--cream);
  color: var(--cream);
  transition: background 160ms ease, color 160ms ease;
}

.email-form button:hover,
.email-form button:focus-visible {
  background: var(--cream);
  color: var(--ink);
}

.form-message {
  min-height: 18px;
  margin-top: 9px;
  color: var(--cream);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-message.error {
  color: #f0b429;
}

.social-proof {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 44px;
}

.avatar-stack {
  display: flex;
}

.avatar-stack img {
  width: 40px;
  height: 40px;
  margin-left: -12px;
  border: 2px solid var(--white);
  border-radius: 999px;
  object-fit: cover;
}

.avatar-stack img:first-child {
  margin-left: 0;
}

.social-proof-title {
  font-size: 14px;
  font-weight: 800;
  text-transform: capitalize;
}

.social-proof-subtitle {
  color: #66615a;
  font-size: 12px;
}

/* Hero image collage */
.hero-visuals {
  position: relative;
  display: flex;
  height: 650px;
  align-items: center;
  justify-content: center;
}

.abstract-shape {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: min(600px, 115%);
  height: auto;
  opacity: 0.8;
  transform: translate(-50%, -50%);
}

.main-image-container {
  position: relative;
  z-index: 2;
  width: 420px;
  height: 550px;
  background: var(--white);
  border: 3px solid var(--ink);
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.1);
  transform: rotate(-3deg);
}

.main-image-container img,
.secondary-image img,
.sticker-graphic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.price-tag {
  position: absolute;
  bottom: 30px;
  left: -20px;
  padding: 10px 15px;
  background: var(--olive);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 20px;
  transform: rotate(5deg);
}

.secondary-image {
  position: absolute;
  top: 60px;
  right: -20px;
  z-index: 3;
  width: 200px;
  height: 200px;
  overflow: hidden;
  background: var(--white);
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--gold);
  transform: rotate(6deg);
}

.sticker-graphic {
  position: absolute;
  right: 20px;
  bottom: 50px;
  z-index: 4;
  width: 140px;
  height: 140px;
}

.sticker-graphic img {
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--ink);
}

.sticker-graphic figcaption {
  position: absolute;
  top: -10px;
  right: -10px;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  background: var(--gold);
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--white);
  font-weight: 800;
  transform: rotate(15deg);
}

.decorative-star {
  position: absolute;
  top: 20px;
  left: 10px;
  z-index: 0;
  transform: rotate(-15deg);
}

/* Product strip */
.trending-section {
  padding: 42px 0;
  background: var(--white);
  border-top: 2px solid var(--ink);
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.trending-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.trending-header h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  text-transform: uppercase;
}

.trending-header a {
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  display: block;
  padding: 10px;
  border: 2px solid #eeeeee;
  background: var(--white);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.product-card:hover {
  transform: translate(-4px, -4px);
  border-color: var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
}

.product-image {
  position: relative;
  height: 250px;
  margin-bottom: 12px;
  overflow: hidden;
  background: #f0f0f0;
}

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

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 8px;
  background: var(--ink);
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
}

.product-badge-sale {
  background: var(--gold);
}

.product-card h3 {
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 800;
}

.product-card p {
  color: #66615a;
  font-size: 14px;
}

.price-old {
  margin-right: 5px;
  color: #999999;
  text-decoration: line-through;
}

/* Footer */
.footer {
  padding: 40px 20px;
  background: var(--ink);
  color: var(--white);
}

.footer-content {
  display: flex;
  max-width: var(--max);
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 24px;
}

.footer p {
  color: #9a9a9a;
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--cream);
  text-decoration: underline;
}

/* Search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
  background: rgba(0, 0, 0, 0.8);
}

.search-overlay[hidden] {
  display: none;
}

.search-container {
  position: relative;
  width: min(90vw, 600px);
}

.search-input {
  width: 100%;
  padding: 20px 60px 20px 20px;
  background: var(--white);
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--olive);
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}

.search-input:focus {
  outline: none;
  box-shadow: 8px 8px 0 var(--rust);
}

.search-close {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  padding: 5px 10px;
  background: none;
  border: 0;
  color: var(--ink);
  font-size: 24px;
  font-weight: 800;
}

@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

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

@media (max-width: 968px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 38px;
    padding-top: 22px;
  }

  .hero-visuals {
    height: 500px;
    order: -1;
  }

  .main-image-container {
    width: 300px;
    height: 400px;
  }

  .secondary-image {
    top: 40px;
    right: calc(50% - 240px);
    width: 150px;
    height: 150px;
  }

  .sticker-graphic {
    right: calc(50% - 205px);
  }
}

@media (max-width: 768px) {
  .countdown-bar {
    flex-direction: column;
    gap: 6px;
    min-height: 72px;
    padding: 8px 12px;
  }

  .countdown-label {
    font-size: 12px;
    letter-spacing: 0.18em;
  }

  .countdown-unit {
    min-width: 38px;
  }

  .countdown-num {
    font-size: 18px;
  }

  .navigation {
    padding: 18px 20px;
  }

  .logo {
    font-size: 26px;
  }

  .hero-subtext {
    margin-bottom: 28px;
    font-size: 16px;
  }

  .early-access-card {
    padding: 14px;
  }

  .early-access-title {
    font-size: 11px;
    letter-spacing: 0.22em;
  }

  .early-access-subtitle {
    font-size: 10px;
    letter-spacing: 0.16em;
  }

  .email-form {
    height: 42px;
  }

  .email-form input {
    padding: 0 12px;
    font-size: 11px;
    letter-spacing: 0.14em;
  }

  .email-form button {
    width: 52px;
  }

  .social-proof {
    margin-top: 36px;
  }

  .hero-visuals {
    height: 410px;
  }

  .abstract-shape {
    width: 400px;
  }

  .main-image-container {
    width: 250px;
    height: 330px;
  }

  .secondary-image {
    top: 18px;
    right: calc(50% - 178px);
    width: 116px;
    height: 116px;
  }

  .sticker-graphic {
    right: calc(50% - 150px);
    bottom: 30px;
    width: 96px;
    height: 96px;
  }

  .sticker-graphic figcaption {
    width: 42px;
    height: 42px;
    font-size: 12px;
  }

  .decorative-star {
    width: 52px;
    height: 52px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .product-image {
    height: 210px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .countdown-timer {
    gap: 5px;
  }

  .countdown-unit {
    min-width: 34px;
  }

  .countdown-num {
    font-size: 16px;
  }

  .countdown-tag {
    font-size: 7px;
  }

  .hero-section {
    padding-inline: 16px;
  }

  .hero-headline {
    font-size: 3rem;
  }

  .early-access-title,
  .early-access-subtitle {
    line-height: 1.25;
  }

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

  .product-image {
    height: 260px;
  }
}

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