:root {
  --cream: #f6efe6;
  --cream-deep: #ede3d6;
  --paper: #fffaf4;
  --espresso: #2f211b;
  --mocha: #6b4f40;
  --latte: #b89a7f;
  --sage: #7d8c6a;
  --sage-soft: #dfe5d4;
  --cherry: #7c1f2c;
  --cherry-dark: #5f1520;
  --lavender: #d9cdee;
  --line: #e2d5c6;
  --text-soft: #5e4c42;
  --radius: 18px;
  --display: "Fredoka", system-ui, sans-serif;
  --sans: "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--espresso);
  background: var(--cream);
  line-height: 1.6;
}

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

a { color: var(--cherry); }
a:hover { color: var(--cherry-dark); }

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

.eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mocha);
}

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.wordmark {
  font-family: var(--display);
  font-weight: 600;
  font-size: 30px;
  line-height: 1;
  color: var(--espresso);
}

.brand-small .wordmark { font-size: 24px; }

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.nav a:not(.btn) {
  padding: 12px 14px;
  font-weight: 700;
  text-decoration: none;
  color: var(--espresso);
}

.nav a:not(.btn):hover { color: var(--cherry); }

.nav a[aria-current="page"]:not(.btn) {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-small { min-height: 44px; padding: 10px 20px; font-size: 15px; }

.btn-primary { background: var(--espresso); color: var(--paper); }
.btn-primary:hover { background: var(--cherry); color: var(--paper); }

.btn-outline { background: transparent; color: var(--espresso); border-color: var(--espresso); }
.btn-outline:hover { background: var(--espresso); color: var(--paper); }

.btn-light { background: var(--paper); color: var(--espresso); }
.btn-light:hover { background: var(--cream-deep); color: var(--espresso); }

.btn-ghost-light { background: transparent; color: var(--paper); border-color: rgba(255, 250, 244, 0.6); }
.btn-ghost-light:hover { background: var(--paper); color: var(--espresso); }

.btn svg { flex-shrink: 0; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Hero */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
  padding-top: 32px;
  padding-bottom: 96px;
}

.hero-text {
  flex: 1 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero h1 {
  font-size: clamp(48px, 6.4vw, 84px);
}

.hero h1 em {
  font-style: normal;
  color: var(--cherry);
}

.lead {
  margin: 0;
  font-size: 20px;
  max-width: 500px;
  color: var(--text-soft);
}

.hero-photos {
  flex: 1 1 420px;
  min-width: 0;
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.hero-main {
  width: 82%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 240px 240px var(--radius) var(--radius);
}

.hero-detail {
  position: absolute;
  left: 0;
  bottom: -32px;
  width: 40%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 8px solid var(--cream);
}

.hero-stamp {
  position: absolute;
  top: 24px;
  left: 6%;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: var(--lavender);
  color: var(--espresso);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.15;
  padding: 12px;
  transform: rotate(-10deg);
}

/* Promise strip */
.promise {
  background: var(--espresso);
  color: var(--paper);
}

.promise-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 32px;
  padding-top: 26px;
  padding-bottom: 26px;
}

.promise-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 18px;
}

.promise-item svg { color: var(--latte); flex-shrink: 0; }

/* Sections */
.section { padding-top: 104px; padding-bottom: 104px; }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head h2,
.split-text h2 {
  font-size: clamp(36px, 4.4vw, 56px);
}

.section-head h2 em,
.split-text h2 em { font-style: normal; color: var(--cherry); }

.section-head p,
.split-text p {
  margin: 0;
  font-size: 18px;
  color: var(--text-soft);
}

.section-cta { margin-top: 40px; }

/* Cards */
.cards {
  display: grid;
  gap: 28px;
}

.product-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
}

.card-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--cream-deep);
}

.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-placeholder span {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--paper);
  font-size: 14px;
  font-weight: 700;
}

.card-body {
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-body h3 { font-size: 28px; }

.price {
  margin: 0;
  font-weight: 700;
  font-size: 18px;
  color: var(--mocha);
}

.badge {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--sage-soft);
  color: #3f4a33;
}

.badge-out { background: #f1dcdc; color: var(--cherry-dark); }

.featured-card {
  text-decoration: none;
  color: var(--espresso);
}

.featured-card:hover { color: var(--espresso); }

.featured-card .card-img { transition: transform 0.4s ease; }

.featured-card:hover .card-img { transform: scale(1.03); }

.featured-card .card-body { flex-direction: row; justify-content: space-between; align-items: baseline; flex-wrap: wrap; }

.featured-card .card-body h3 { font-size: 26px; }

/* Custom section */
.custom {
  background: var(--sage-soft);
}

.split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
}

.split-photo {
  flex: 1 1 380px;
  min-width: 0;
}

.split-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 240px var(--radius);
}

.split-text {
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.steps {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  counter-reset: step;
}

.steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--espresso);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
}

.steps strong {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
  color: var(--espresso);
}

.steps span { color: var(--text-soft); }

/* Story */
.story .split-photo img { border-radius: 240px 240px var(--radius) var(--radius); }

.quote {
  margin: 8px 0 0;
  padding-left: 20px;
  border-left: 3px solid var(--cherry);
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  color: var(--espresso);
}

/* Order band */
.order-band {
  background: var(--cherry);
  color: var(--paper);
  border-radius: 28px;
  padding: clamp(40px, 6vw, 72px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.order-band h2 { font-size: clamp(34px, 4.4vw, 52px); }

.order-band p {
  margin: 10px 0 0;
  font-size: 18px;
  color: #f3dfe0;
}

.order-text { flex: 1 1 420px; min-width: 0; }

.order-wrap { padding-bottom: 104px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.footer-links a {
  color: var(--espresso);
  font-weight: 700;
  text-decoration: none;
  padding: 10px 0;
}

.footer-links a:hover { color: var(--cherry); }

.footer-note { font-size: 15px; color: var(--text-soft); }

/* Collection page */
.page { padding-top: 24px; padding-bottom: 104px; }

.page-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  max-width: 680px;
}

.page-head h1 { font-size: clamp(44px, 5.6vw, 72px); }
.page-head h1 em { font-style: normal; color: var(--cherry); }

.page-head p {
  margin: 0;
  font-size: 18px;
  color: var(--text-soft);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.filters[hidden] { display: none; }

.filter {
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--espresso);
  background: transparent;
  color: var(--espresso);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.filter:hover { background: var(--cream-deep); }

.filter.is-active {
  background: var(--espresso);
  color: var(--paper);
}

.card-gallery { display: flex; flex-direction: column; }

.gallery-thumbs { display: flex; gap: 8px; }

.card-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 10px 12px 0;
}

.thumb {
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: none;
  cursor: pointer;
  opacity: 0.75;
}

.thumb:hover,
.thumb:focus-visible { opacity: 1; }

.thumb.is-active { border-color: var(--espresso); opacity: 1; }

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

.details {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 15px;
  color: var(--text-soft);
}

.sizes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.sizes-label { font-weight: 700; font-size: 15px; }

.size-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.size {
  padding: 3px 12px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.order-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 6px;
}

.btn-order { width: 100%; }

.custom-note {
  margin: 4px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--sage-soft);
  font-size: 15px;
  color: #3f4a33;
}

.custom-note a { color: #2f3a25; font-weight: 700; }

/* Small screens */
@media (max-width: 600px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .hero { padding-bottom: 72px; gap: 40px; }
  .hero-stamp { width: 92px; height: 92px; font-size: 14px; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .order-wrap { padding-bottom: 72px; }
  .wordmark { font-size: 26px; }
  .nav a:not(.btn) { padding: 12px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .featured-card .card-img { transition: none; }
  .featured-card:hover .card-img { transform: none; }
}
