:root {
  --cool-ivory: #F8F9F7;
  --powder-blue: #DCEAF4;
  --soft-sky-blue: #BFD5E7;
  --dusty-blue: #789BBB;
  --slate-blue: #526F8D;
  --deep-navy: #172D44;
  --soft-gray: #E7EBEE;
  --line: rgba(23, 45, 68, 0.34);
  --card-line: rgba(82, 111, 141, 0.52);
  --image-filter: none;
  --hover-surface: rgba(220, 234, 244, 0.48);
  --container: min(100% - 92px, 1280px);
  --radius-button: 8px;
  --radius-card: 16px;
  --font-logo: "Trebuchet MS", "Avenir Next", Arial, sans-serif;
  --font-body: "Inter", "Avenir Next", "Segoe UI", Arial, sans-serif;
  --font-editorial: Georgia, "Times New Roman", serif;
}

html[data-theme="rose"] {
  --cool-ivory: #FBF8F6;
  --powder-blue: #F4E2E5;
  --soft-sky-blue: #E8BBC4;
  --dusty-blue: #B77B8A;
  --slate-blue: #7C5662;
  --deep-navy: #3A2330;
  --soft-gray: #EEE8E8;
  --line: rgba(58, 35, 48, 0.32);
  --card-line: rgba(124, 86, 98, 0.48);
  --image-filter: none;
  --hover-surface: rgba(244, 226, 229, 0.58);
}

html[data-theme="sage"] {
  --cool-ivory: #F8FAF5;
  --powder-blue: #E1ECE1;
  --soft-sky-blue: #BDD4C4;
  --dusty-blue: #7F9D88;
  --slate-blue: #587462;
  --deep-navy: #183328;
  --soft-gray: #E8EDE8;
  --line: rgba(24, 51, 40, 0.32);
  --card-line: rgba(88, 116, 98, 0.48);
  --image-filter: none;
  --hover-surface: rgba(225, 236, 225, 0.62);
}

html[data-theme="lavender"] {
  --cool-ivory: #FAF8FE;
  --powder-blue: #E8E3F6;
  --soft-sky-blue: #CDC3EA;
  --dusty-blue: #8C7EBC;
  --slate-blue: #625A91;
  --deep-navy: #252348;
  --soft-gray: #ECEAF2;
  --line: rgba(37, 35, 72, 0.32);
  --card-line: rgba(98, 90, 145, 0.48);
  --image-filter: none;
  --hover-surface: rgba(232, 227, 246, 0.62);
}

html[data-theme="butter"] {
  --cool-ivory: #FFFDF4;
  --powder-blue: #F5EDC9;
  --soft-sky-blue: #E9D891;
  --dusty-blue: #B99B4F;
  --slate-blue: #7B693A;
  --deep-navy: #342B19;
  --soft-gray: #EEE9DA;
  --line: rgba(52, 43, 25, 0.32);
  --card-line: rgba(123, 105, 58, 0.48);
  --image-filter: none;
  --hover-surface: rgba(245, 237, 201, 0.62);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--soft-gray);
  color: var(--deep-navy);
  font-family: var(--font-body);
  letter-spacing: 0;
}

body,
button,
input {
  font: 500 15px/1.55 var(--font-body);
}

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

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

button,
input {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 18px;
  top: 18px;
  z-index: 20;
  transform: translateY(-140%);
  background: var(--deep-navy);
  color: var(--cool-ivory);
  padding: 10px 14px;
  border-radius: var(--radius-button);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.browser-shell {
  width: min(1400px, calc(100vw - 44px));
  margin: 26px auto;
  background: var(--cool-ivory);
  border: 2px solid var(--deep-navy);
  border-radius: 14px;
  overflow: hidden;
}

.browser-bar {
  height: 34px;
  border-bottom: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 15px;
}

.dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid rgba(23, 45, 68, 0.18);
}

.red { background: #EF6A55; }
.amber { background: #F3A83D; }
.green { background: #70A75D; }

.site-header {
  min-height: 76px;
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  gap: 28px;
}

.theme-rail {
  width: var(--container);
  margin: -4px auto 18px;
  padding: 12px 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1.5px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}

.theme-rail::-webkit-scrollbar {
  display: none;
}

.theme-rail > span {
  flex: 0 0 auto;
  margin-right: 4px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-blue);
}

.theme-button {
  flex: 0 0 auto;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1.5px solid var(--card-line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.28);
  color: var(--deep-navy);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.theme-button:hover,
.theme-button:focus-visible,
.theme-button[aria-pressed="true"] {
  transform: translateY(-1px);
  border-color: var(--deep-navy);
  background: var(--powder-blue);
  outline: none;
}

.theme-swatch {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--deep-navy);
  border-radius: 50%;
  background: var(--swatch);
}

.theme-swatch.blue { --swatch: #BFD5E7; }
.theme-swatch.rose { --swatch: #E8BBC4; }
.theme-swatch.sage { --swatch: #BDD4C4; }
.theme-swatch.lavender { --swatch: #CDC3EA; }
.theme-swatch.butter { --swatch: #E9D891; }

.brand {
  font-family: var(--font-logo);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.48em;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(28px, 4vw, 58px);
}

.site-nav a,
.mobile-nav a {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a {
  padding: 12px 0;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: var(--deep-navy);
  outline: none;
}

.header-actions {
  display: flex;
  gap: 18px;
  align-items: center;
}

.header-actions button,
.nav-toggle {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.header-actions button > span:first-child {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--deep-navy);
  font-size: 24px;
  line-height: 1;
}

.bag-icon {
  transform: rotate(180deg);
}

.cart-button {
  position: relative;
}

.cart-button span {
  position: absolute;
  right: -9px;
  top: -9px;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--dusty-blue);
  color: var(--cool-ivory);
  font-size: 10px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--deep-navy);
  border-radius: var(--radius-button);
  place-items: center;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  background: var(--deep-navy);
}

.mobile-nav {
  display: none;
  width: var(--container);
  margin: 0 auto 20px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-card);
  padding: 14px;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.mobile-nav.open {
  display: grid;
}

.hero {
  position: relative;
  min-height: 620px;
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(420px, 0.92fr) minmax(520px, 1.08fr);
  align-items: center;
  gap: clamp(56px, 6vw, 96px);
  border-top: 1px solid transparent;
  border-bottom: 1.5px solid var(--line);
}

.hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 80px 0 88px;
}

.kicker {
  margin: 0 0 14px;
  color: var(--dusty-blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-logo);
  font-size: clamp(80px, 8.6vw, 140px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
}

.tagline {
  margin: 12px 0 22px;
  font: italic 31px/1.2 var(--font-editorial);
}

.hero-sub {
  max-width: 360px;
  margin: 0 auto 28px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  min-width: 150px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-button);
  border: 1.5px solid var(--dusty-blue);
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 180ms ease, background-color 180ms ease;
}

.btn.primary {
  background: var(--dusty-blue);
  color: var(--cool-ivory);
}

.btn.secondary {
  background: transparent;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-3px);
  outline: none;
}

.hero-visual {
  position: relative;
  min-height: 550px;
  display: grid;
  place-items: end center;
}

.hero-illustration {
  width: 100%;
  max-width: 690px;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  filter: var(--image-filter);
  animation: characterIn 850ms ease both;
}

.collection,
.story,
.lookbook,
.values,
.site-footer {
  border-bottom: 1.5px solid var(--line);
}

.collection {
  width: var(--container);
  margin: 0 auto;
  padding: 120px 0 130px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 36px;
  align-items: stretch;
}

.section-intro.compact {
  padding-top: 28px;
}

.small-heart {
  display: block;
  color: var(--dusty-blue);
  font-size: 28px;
  margin-bottom: 12px;
}

.section-intro h2,
.story h2,
.lookbook h2 {
  margin: 0;
  font-family: var(--font-editorial);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  font-weight: 500;
}

.product-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}

.product-card {
  position: relative;
  min-height: 250px;
  border: 1.5px solid var(--card-line);
  border-radius: var(--radius-card);
  padding: 18px;
  background: rgba(255, 255, 255, 0.34);
  overflow: hidden;
  transition: transform 180ms ease, background-color 180ms ease;
}

.product-card:hover,
.product-card:focus-within {
  transform: translateY(-3px);
  background: var(--hover-surface);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1.12;
  object-fit: contain;
  border-radius: 12px;
  filter: var(--image-filter);
  scale: 1.08;
  transform-origin: center;
}

.product-card h3 {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-card p {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 900;
}

.wish {
  position: absolute;
  right: 14px;
  bottom: 14px;
  border: 0;
  background: transparent;
  color: var(--dusty-blue);
  font-size: 28px;
  cursor: pointer;
}

.story {
  width: var(--container);
  margin: 0 auto;
  padding: 120px 0;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 250px;
  gap: clamp(42px, 5vw, 72px);
  align-items: center;
}

.story-props {
  position: relative;
  min-height: 220px;
}

.story-props img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  border-radius: var(--radius-card);
  filter: var(--image-filter);
}

.story-copy p:not(.kicker) {
  max-width: 620px;
  margin: 14px 0 18px;
  font-size: 15px;
}

.text-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.text-link span {
  transition: transform 180ms ease;
}

.text-link:hover span,
.text-link:focus-visible span {
  transform: translateX(4px);
}

.story-note {
  transform: rotate(-3deg);
  border: 1.5px solid var(--card-line);
  border-radius: 8px;
  min-height: 170px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  font: italic 23px/1.25 var(--font-editorial);
  color: var(--slate-blue);
}

.lookbook {
  width: var(--container);
  margin: 0 auto;
  padding: 120px 0;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 34px;
}

.lookbook-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 20px;
}

.lookbook-strip article {
  border: 1.5px solid var(--card-line);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--powder-blue);
  animation: cardIn 500ms ease both;
}

.lookbook-strip article:nth-child(2) { animation-delay: 70ms; }
.lookbook-strip article:nth-child(3) { animation-delay: 140ms; }
.lookbook-strip article:nth-child(4) { animation-delay: 210ms; }
.lookbook-strip article:nth-child(5) { animation-delay: 280ms; }

.lookbook-strip img {
  width: 100%;
  aspect-ratio: 1.44;
  object-fit: cover;
  filter: var(--image-filter);
}

.values {
  width: var(--container);
  margin: 0 auto;
  padding: 64px 0;
  display: grid;
  grid-template-columns: 190px repeat(4, 1fr);
  gap: 0;
}

.value-icons-art {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 18px;
  align-self: start;
  border: 1.5px solid var(--card-line);
  filter: var(--image-filter);
}

.values article {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 0 30px;
  border-left: 1.5px solid var(--line);
}

.values article:first-child {
  border-left: 0;
}

.values h3 {
  margin: 0 0 4px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.values p {
  margin: 0;
  font-size: 13px;
  max-width: 190px;
}

.site-footer {
  width: var(--container);
  margin: 0 auto;
  padding: 60px 0 0;
  display: grid;
  grid-template-columns: 260px 1fr 360px;
  gap: 44px;
}

.footer-logo {
  margin: 0;
  font-size: 31px;
}

.footer-tag {
  margin: 8px 0 22px;
  font: italic 16px/1.2 var(--font-editorial);
}

.socials {
  display: flex;
  gap: 14px;
}

.socials a {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.footer-links h3,
.newsletter h3 {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.footer-links a {
  display: block;
  margin: 4px 0;
  font-size: 13px;
}

.newsletter p {
  margin: 0 0 16px;
  font-size: 13px;
}

.newsletter label {
  display: grid;
  grid-template-columns: 1fr 54px;
  border: 1.5px solid var(--card-line);
  border-radius: var(--radius-button);
  overflow: hidden;
  background: var(--cool-ivory);
}

.newsletter input {
  border: 0;
  background: transparent;
  padding: 0 14px;
  min-height: 42px;
  outline: none;
}

.newsletter button {
  border: 0;
  background: var(--dusty-blue);
  color: var(--cool-ivory);
  font-size: 24px;
}

.footer-bottom {
  grid-column: 1 / -1;
  margin-top: 34px;
  padding: 14px 0;
  border-top: 1.5px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 12px;
}

.footer-bottom p {
  margin: 0;
}

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

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

@keyframes tinyRotate {
  from { transform: rotate(-1deg); }
  to { transform: rotate(2deg); }
}

@keyframes sway {
  from { transform: rotate(-1deg); }
  to { transform: rotate(1.5deg); }
}

.sway {
  transform-origin: bottom center;
  animation: sway 4.8s ease-in-out infinite alternate;
}

@media (max-width: 1180px) {
  :root {
    --container: min(100% - 56px, 980px);
  }

  .site-header {
    grid-template-columns: 160px 1fr auto;
  }

  .site-nav {
    gap: 22px;
  }

  .hero {
    grid-template-columns: 0.86fr 1.14fr;
    min-height: 560px;
  }

  .hero h1 {
    font-size: clamp(64px, 8vw, 96px);
  }

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

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

  .story {
    grid-template-columns: 190px 1fr;
  }

  .story-note {
    display: none;
  }

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

  .values {
    grid-template-columns: repeat(2, 1fr);
    gap: 34px 0;
  }

  .values article:nth-child(odd) {
    border-left: 0;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .newsletter {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  :root {
    --container: calc(100% - 34px);
  }

  .browser-shell {
    width: min(100vw - 18px, 520px);
    margin: 9px auto;
    border-width: 1.5px;
  }

  .site-header {
    min-height: 66px;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
  }

  .brand {
    font-size: 22px;
    letter-spacing: 0.34em;
  }

  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: block;
    order: 3;
  }

  .header-actions {
    gap: 10px;
  }

  .header-actions button:nth-child(2) {
    display: none;
  }

  .theme-rail {
    margin-bottom: 8px;
    padding-bottom: 14px;
  }

  .theme-rail > span {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 4px;
    min-height: 0;
  }

  .hero-copy {
    padding: 74px 0 28px;
  }

  .hero h1 {
    font-size: clamp(54px, 18vw, 76px);
    letter-spacing: 0.22em;
    text-indent: 0.22em;
  }

  .tagline {
    font-size: 25px;
  }

  .hero-sub {
    font-size: 12px;
  }

  .hero-visual {
    min-height: 520px;
  }

  .hero-illustration {
    max-width: 100%;
    aspect-ratio: 4 / 5;
  }

  .collection,
  .story,
  .lookbook {
    padding: 92px 0;
  }

  .product-row {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
  }

  .product-card {
    flex: 0 0 72%;
    scroll-snap-align: start;
  }

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

  .story-props {
    min-height: 145px;
    order: 2;
  }

  .lookbook-strip {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
  }

  .lookbook-strip article {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }

  .values {
    grid-template-columns: 1fr;
    padding: 54px 0;
  }

  .value-icons-art {
    width: 100%;
    height: 110px;
    object-fit: cover;
    margin-bottom: 20px;
  }

  .values article {
    border-left: 0;
    padding: 20px 0;
    border-top: 1.5px solid var(--line);
  }

  .values p {
    max-width: 240px;
  }

  .values article:first-child {
    border-top: 0;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

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