/* ==========================================================
   Little Tasni — luxury kidswear concept brand
   ========================================================== */

:root {
  --ivory: #F7F1E8;
  --linen: #FFFDF9;
  --blush: #D9A5A0;
  --blush-soft: #EFD9D4;
  --sand: #C8A97E;
  --cocoa: #4A3B33;
  --cocoa-muted: #76665C;
  --hairline: #E4D8C8;

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --radius: 16px;
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(72px, 11vw, 144px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--cocoa);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
ul[role="list"] { list-style: none; margin: 0; padding: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.005em;
  margin: 0;
  color: var(--cocoa);
}
h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h3 { font-size: 1.6rem; }
p { margin: 0; }

a { color: inherit; }

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

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

.label,
.card-meta {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cocoa-muted);
}

.rule {
  border: 0;
  height: 1px;
  width: 56px;
  background: var(--sand);
  margin: 28px 0;
}

.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: 16px; top: -60px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--linen);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 0.85rem;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ---------- Button ---------- */
.button {
  display: inline-block;
  padding: 16px 34px;
  border-radius: 999px;
  background: var(--blush);
  color: var(--cocoa);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--blush);
  transition: background-color .25s ease, border-color .25s ease;
}
.button:hover { background: var(--blush-soft); border-color: var(--blush); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ivory);
  border-bottom: 1px solid var(--hairline);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  flex-wrap: wrap;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.75rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--cocoa);
}
.site-nav ul {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.site-nav a:hover { border-bottom-color: var(--sand); }

.nav-toggle { display: none; }

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 4px;
    background: none;
    border: 0;
    color: var(--cocoa);
    font: 600 0.72rem/1 var(--font-body);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .nav-toggle-icon,
  .nav-toggle-icon::before {
    display: block;
    width: 20px;
    height: 1px;
    background: var(--cocoa);
    position: relative;
    transition: transform .25s ease;
  }
  .nav-toggle-icon::before {
    content: "";
    position: absolute;
    top: 6px;
  }
  .nav-toggle-icon { transform: translateY(-3px); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon { transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { transform: translateY(-6px) rotate(-90deg); }

  .site-nav { flex-basis: 100%; }
  /* Hidden only once JS confirms it can toggle it */
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 0 20px;
    border-top: 1px solid var(--hairline);
  }
  .site-nav a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--hairline);
  }
  .site-nav li:last-child a { border-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 88px) var(--section); }
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.hero-copy h1 { margin: 24px 0 40px; max-width: 12ch; }
.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ---------- Story ---------- */
.story {
  background: var(--blush-soft);
  padding-block: var(--section);
}
.story-inner {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: clamp(40px, 7vw, 112px);
  align-items: center;
}
.story-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}
.story-copy h2 { margin-top: 20px; max-width: 16ch; }
.story-copy p:not(.label) {
  max-width: 46ch;
  font-size: 1.05rem;
  color: var(--cocoa);
}

/* ---------- Collection ---------- */
.collection { padding-block: var(--section); }
.section-head {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section-head h2 { margin-top: 16px; }
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.card {
  background: var(--linen);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.card-body {
  padding: 24px 24px 28px;
  border-top: 1px solid var(--hairline);
}
.card h3 { margin: 10px 0 10px; font-size: 1.5rem; }
.card-body p:not(.card-meta) {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--cocoa-muted);
}

/* ---------- Lifestyle banner ---------- */
.banner { position: relative; }
.banner img {
  width: 100%;
  height: clamp(420px, 78vh, 820px);
  object-fit: cover;
  object-position: 50% 55%;
}
.banner-panel-wrap {
  position: absolute;
  left: 0; right: 0; bottom: clamp(32px, 6vw, 72px);
  margin-inline: auto;
  display: flex;
  justify-content: flex-start;
}
.banner-panel {
  background: var(--ivory);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px) clamp(32px, 5vw, 64px);
  max-width: 520px;
}
.banner-line {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.15;
}

/* ---------- Palette ---------- */
.palette {
  padding-block: var(--section);
  border-top: 1px solid var(--hairline);
}
.swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.swatch {
  display: flex;
  flex-direction: column;
  background: var(--linen);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 12px 12px 24px;
}
.swatch-chip {
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  border: 1px solid var(--hairline);
  margin-bottom: 20px;
}
.swatch-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.2;
  padding-inline: 8px;
}
.swatch-hex {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--cocoa-muted);
  padding-inline: 8px;
  margin-top: 4px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blush-soft);
  padding-block: clamp(64px, 8vw, 104px);
  text-align: center;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; }
.wordmark--footer { font-size: 2.2rem; }
.tagline {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  margin-top: 4px;
}
.site-footer .rule { margin: 32px auto; }
.site-footer p:not(.wordmark):not(.tagline) {
  font-size: 0.875rem;
  color: var(--cocoa-muted);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 32px;
  margin-top: 28px !important;
}
.footer-links a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid var(--cocoa-muted);
}
.footer-links a:hover { border-bottom-color: var(--cocoa); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards,
  .swatches { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .hero-inner,
  .story-inner { grid-template-columns: 1fr; }
  .hero-copy { order: 2; }
  .hero-media { order: 1; }
  .hero-copy h1 { margin: 16px 0 32px; }

  .banner img { height: 70vh; min-height: 420px; }
  .banner-panel-wrap {
    position: relative;
    bottom: auto;
    margin-top: -64px;
  }
  .banner-panel { max-width: none; width: 100%; }
}

@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr; }
  .swatches { gap: 16px; }
  .swatch-name { font-size: 1.3rem; }
  .swatch-hex { letter-spacing: 0.1em; }
}

/* On blush-soft, cocoa-muted falls under 4.5:1 — use full cocoa there */
.story .label,
.site-footer p:not(.wordmark):not(.tagline),
.site-footer .footer-links a { color: var(--cocoa); }
.site-footer .footer-links a { border-bottom-color: var(--cocoa); }
