:root {
  --ink: #0a0a0a;
  --paper: #f4f1eb;
  --ivory: #fbf9f4;
  --emerald: #0f4b3b;
  --gold: #c9a66b;
  --line: rgba(10, 10, 10, 0.18);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--ivory); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
body.locked { overflow: hidden; }
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }

.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 100; padding: .75rem 1rem; background: white; }
.skip-link:focus { top: 1rem; }
.announcement { height: 32px; display: grid; place-items: center; background: var(--ink); color: white; font-size: .72rem; letter-spacing: .11em; text-transform: uppercase; }
.site-header { position: absolute; top: 32px; left: 0; right: 0; z-index: 20; height: 88px; padding: 0 3.2vw; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; color: white; border-bottom: 1px solid rgba(255,255,255,.35); transition: background .25s, color .25s; }
.site-header.scrolled { position: fixed; top: 0; color: var(--ink); background: rgba(251,249,244,.94); border-color: var(--line); backdrop-filter: blur(14px); }
.desktop-nav, .header-actions { display: flex; align-items: center; gap: 1.55rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.header-actions { justify-content: flex-end; }
.wordmark { font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2.3rem); letter-spacing: .2em; line-height: 1; }
.text-button, .icon-button { border: 0; background: none; padding: 0; cursor: pointer; }
.menu-button { display: none; width: 24px; height: 20px; }
.menu-button span { display: block; height: 1px; margin: 6px 0; background: currentColor; }

.hero { position: relative; min-height: 100svh; overflow: hidden; color: white; background: #14231e; }
.hero > img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: center 28%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.18) 56%, rgba(0,0,0,.08)), linear-gradient(0deg, rgba(0,0,0,.35), transparent 45%); }
.hero-copy { position: relative; z-index: 2; width: min(700px, 86vw); padding: 31vh 0 9vh 6vw; }
.eyebrow { margin: 0 0 1.25rem; font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.hero h1, .intro h2, .section-heading h2, .editorial h2 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: .98; }
.hero h1 { font-size: clamp(3.5rem, 7.7vw, 8rem); letter-spacing: -.04em; }
.hero-text { max-width: 500px; margin: 1.75rem 0 2.2rem; font-size: 1rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .9rem 1.5rem; border: 1px solid; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; transition: .2s ease; cursor: pointer; }
.button-light { border-color: white; background: white; color: var(--ink); }
.button-light:hover { background: transparent; color: white; }
.button-dark { border-color: var(--ink); background: var(--ink); color: white; }
.button-dark:hover { background: transparent; color: var(--ink); }
.hero-index { position: absolute; z-index: 2; right: 4vw; bottom: 3vw; font-size: .72rem; letter-spacing: .14em; }

.intro { padding: clamp(5rem, 11vw, 10rem) 6vw; text-align: center; background: var(--paper); }
.intro h2 { font-size: clamp(2.7rem, 5.7vw, 6rem); letter-spacing: -.04em; }
.collection-grid { padding: 7rem 3.2vw; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5rem 1.5rem; background: var(--ivory); }
.section-heading { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; border-bottom: 1px solid var(--line); padding-bottom: 1.5rem; }
.section-heading .eyebrow { margin: 0; }
.section-heading h2 { font-size: clamp(2.6rem, 4.6vw, 5rem); }
.section-heading > a, .view-all { justify-self: end; padding: 0; border: 0; border-bottom: 1px solid; background: none; font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; cursor: pointer; }
.collection-filters { grid-column: 1 / -1; display: flex; justify-content: center; gap: .6rem; margin-top: -2.5rem; }
.filter-button { min-width: 105px; padding: .7rem 1.1rem; border: 1px solid var(--line); background: transparent; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.filter-button.active, .filter-button:hover { background: var(--ink); color: white; }
.collection-card-large { grid-row: span 2; }
.image-wrap { position: relative; overflow: hidden; background: #ddd; }
.collection-card-large .image-wrap { aspect-ratio: 4 / 5; }
.collection-card:not(.collection-card-large) .image-wrap { aspect-ratio: 5 / 4; }
.image-wrap img { height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.2,.7,.2,1); }
.collection-card:hover .image-wrap img { transform: scale(1.025); }
.product-actions { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; display: grid; grid-template-columns: 1fr 1fr; background: rgba(251,249,244,.96); transform: translateY(75px); transition: transform .3s; }
.product-actions button { height: 48px; border: 0; background: transparent; text-transform: uppercase; letter-spacing: .1em; font-size: .68rem; font-weight: 600; cursor: pointer; }
.product-actions button + button { border-left: 1px solid var(--line); background: var(--ink); color: white; }
.collection-card:hover .product-actions, .product-actions:focus-within { transform: translateY(0); }
.wishlist-toggle { position: absolute; top: 1rem; right: 1rem; z-index: 2; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(251,249,244,.92); font-family: Arial, sans-serif; font-size: 1.35rem; cursor: pointer; }
.wishlist-toggle.saved { color: var(--emerald); }
.product-meta { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem .1rem 0; }
.product-meta h3, .product-meta p { margin: 0; font-size: .9rem; font-weight: 500; }
.product-meta div p { margin-top: .25rem; color: #666; font-size: .78rem; font-weight: 400; }

.editorial { min-height: 760px; display: grid; grid-template-columns: 1.15fr .85fr; background: var(--emerald); color: white; }
.editorial-image { min-height: 760px; overflow: hidden; }
.editorial-image img { height: 100%; object-fit: cover; object-position: center top; }
.editorial-copy { display: flex; flex-direction: column; justify-content: center; padding: 7vw; }
.editorial h2 { font-size: clamp(3rem, 6vw, 6.4rem); }
.editorial h2 em { color: var(--gold); font-weight: 500; }
.editorial-copy > p:not(.eyebrow) { max-width: 520px; margin: 2rem 0; color: rgba(255,255,255,.82); }
.editorial .button-dark { align-self: flex-start; border-color: white; background: white; color: var(--ink); }
.editorial .button-dark:hover { background: transparent; color: white; }

.service-strip { display: grid; grid-template-columns: repeat(3, 1fr); padding: 6rem 3.2vw; background: var(--paper); }
.service-strip > div { padding: 0 3vw; border-right: 1px solid var(--line); }
.service-strip > div:first-child { padding-left: 0; }
.service-strip > div:last-child { border: 0; }
.service-strip span { font-size: .72rem; color: #686868; }
.service-strip h3 { margin: 1.2rem 0 .6rem; font-family: var(--serif); font-size: 1.75rem; font-weight: 500; }
.service-strip p { margin: 0; color: #5e5e5e; }

.newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; padding: clamp(5rem, 9vw, 9rem) 6vw; background: var(--ivory); border-top: 1px solid var(--line); }
.newsletter h2 { margin: 0; font-family: var(--serif); font-size: clamp(2.8rem, 5vw, 5.4rem); font-weight: 500; line-height: 1; }
.newsletter form { align-self: end; }
.newsletter label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.newsletter form > div { display: flex; margin-top: 1rem; border-bottom: 1px solid var(--ink); }
.newsletter input { flex: 1; min-width: 0; padding: 1rem 0; border: 0; outline: 0; background: transparent; }
.newsletter button { border: 0; background: none; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.newsletter form > p { color: #777; font-size: .72rem; }

.site-footer { padding: 6rem 3.2vw 3rem; background: var(--ink); color: white; }
.footer-wordmark { padding-bottom: 4rem; font-family: var(--serif); font-size: clamp(3rem, 11vw, 11rem); letter-spacing: .1em; line-height: .8; text-align: center; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; padding-top: 3rem; border-top: 1px solid rgba(255,255,255,.22); }
.footer-grid > div { display: flex; flex-direction: column; gap: .7rem; }
.footer-grid p { margin: 0 0 .55rem; color: #9d9d9d; font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; }
.footer-grid a, .footer-grid span { font-size: .82rem; color: rgba(255,255,255,.85); }

.bag-drawer, .wishlist-drawer { position: fixed; z-index: 60; top: 0; right: 0; width: min(500px, 100%); height: 100%; background: var(--ivory); transform: translateX(101%); transition: transform .35s; display: flex; flex-direction: column; }
.bag-drawer.open, .wishlist-drawer.open { transform: translateX(0); }
.bag-header { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem; border-bottom: 1px solid var(--line); }
.bag-header h2 { margin: 0; font-family: var(--serif); font-weight: 500; }
.bag-header .icon-button, .search-close { font-size: 2rem; }
.bag-items { flex: 1; overflow: auto; padding: 1.5rem; }
.empty-bag { color: #777; }
.bag-line, .saved-line { display: grid; grid-template-columns: 85px 1fr auto; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.bag-line > img, .saved-line > img { width: 85px; height: 110px; object-fit: cover; }
.bag-line-copy strong, .saved-line strong { font-size: .84rem; }
.bag-line p { margin: .25rem 0 0; color: #666; font-size: .78rem; }
.remove-item { align-self: start; border: 0; background: none; text-decoration: underline; cursor: pointer; font-size: .68rem; }
.quantity-control { display: inline-flex; align-items: center; margin-top: .8rem; border: 1px solid var(--line); }
.quantity-control button { width: 30px; height: 28px; border: 0; background: none; cursor: pointer; }
.quantity-control span { min-width: 28px; text-align: center; font-size: .72rem; }
.saved-line p { margin: .25rem 0 .6rem; color: #666; font-size: .78rem; }
.saved-line div > button, .empty-state button { padding: 0; border: 0; border-bottom: 1px solid; background: none; font-size: .7rem; text-transform: uppercase; cursor: pointer; }
.empty-state { display: grid; place-items: center; min-height: 45vh; text-align: center; color: #777; }
.bag-footer { padding: 1.5rem; border-top: 1px solid var(--line); }
.bag-summary-line { display: flex; justify-content: space-between; margin-bottom: 1.25rem; }
.bag-footer .button { width: 100%; }
.bag-footer p { margin: .75rem 0 0; color: #777; font-size: .7rem; text-align: center; }
.shipping-progress { margin-bottom: 1.2rem; color: #666; font-size: .68rem; }
.shipping-progress > div { height: 3px; margin-top: .55rem; background: #ddd; }
.shipping-progress i { display: block; width: 100%; height: 100%; background: var(--emerald); }
.overlay { position: fixed; z-index: 50; inset: 0; background: rgba(0,0,0,.5); }
.search-panel { position: fixed; z-index: 70; inset: 0; padding: 15vh 8vw; background: var(--ivory); }
.search-close { position: absolute; top: 2rem; right: 3vw; }
.search-panel label { display: block; font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 5rem); }
.search-field { max-width: 900px; display: flex; margin-top: 3rem; border-bottom: 1px solid var(--ink); }
.search-field input { flex: 1; min-width: 0; padding: 1rem 0; border: 0; outline: 0; background: transparent; font-size: 1.15rem; }
.search-field button { border: 0; background: none; text-transform: uppercase; font-size: .75rem; letter-spacing: .12em; cursor: pointer; }
.search-panel > p { color: #777; font-size: .8rem; }
.search-results { max-width: 900px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.search-results > button { display: flex; gap: .8rem; padding: .6rem; border: 1px solid var(--line); background: white; text-align: left; cursor: pointer; }
.search-results img { width: 64px; height: 76px; object-fit: cover; }
.search-results span { display: flex; flex-direction: column; justify-content: center; }
.search-results strong { font-size: .75rem; }
.search-results small { margin-top: .25rem; color: #777; font-size: .65rem; }
.toast { position: fixed; z-index: 80; left: 50%; bottom: 2rem; transform: translate(-50%, 150%); padding: .85rem 1.25rem; background: var(--ink); color: white; font-size: .78rem; transition: transform .3s; }
.toast.show { transform: translate(-50%, 0); }
.mobile-menu { position: fixed; z-index: 19; inset: 0; padding: 8rem 1.5rem 2rem; background: var(--ivory); color: var(--ink); }
.mobile-menu a { display: block; padding: .8rem 0; font-family: var(--serif); font-size: 2.2rem; border-bottom: 1px solid var(--line); }

.modal { position: fixed; z-index: 70; inset: 4vh 4vw; max-width: 1180px; max-height: 92vh; margin: auto; overflow: auto; background: var(--ivory); box-shadow: 0 30px 90px rgba(0,0,0,.28); }
.modal-close { position: absolute; z-index: 3; top: 1.2rem; right: 1.4rem; font-size: 2rem; }
.product-modal { display: grid; grid-template-columns: 1.05fr .95fr; }
.product-modal-image { min-height: 670px; }
.product-modal-image img { height: 100%; object-fit: cover; }
.product-modal-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(3rem, 6vw, 6rem); }
.product-modal-copy h2, .checkout-copy h2, .confirmation-modal h2 { margin: 0 0 1rem; font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 4.8rem); font-weight: 500; line-height: 1; }
.modal-price { margin: .4rem 0 1.5rem; font-weight: 600; }
.product-modal-copy > label { margin: 1rem 0 .4rem; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.product-modal-copy select, .checkout-form input, .checkout-form select { width: 100%; padding: .85rem; border: 1px solid var(--line); border-radius: 0; background: white; }
.product-modal-copy .button { margin-top: 1.5rem; }
.save-modal-button { margin-top: .7rem; padding: .8rem; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.product-note { color: #777; font-size: .7rem; }
.checkout-modal { display: grid; grid-template-columns: .8fr 1.2fr; padding: clamp(3rem, 6vw, 6rem); gap: 6vw; }
.checkout-copy > p:not(.eyebrow) { color: #666; }
#checkout-summary { margin-top: 3rem; border-top: 1px solid var(--line); }
#checkout-summary > div { display: flex; justify-content: space-between; padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: .8rem; }
#checkout-summary .checkout-total { padding-top: 1.2rem; font-size: 1rem; }
.checkout-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-content: start; padding-top: 1rem; }
.checkout-form .field { display: flex; flex-direction: column; gap: .35rem; }
.checkout-form .full { grid-column: 1 / -1; }
.checkout-form label { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.confirmation-modal { width: min(620px, 92vw); height: fit-content; padding: 5rem; text-align: center; }
.confirmation-mark { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 2rem; border: 1px solid var(--emerald); border-radius: 50%; color: var(--emerald); font-size: 1.7rem; }
.confirmation-modal .button { margin-top: 1.5rem; }
.auth-modal { display: grid; grid-template-columns: .9fr 1.1fr; min-height: 680px; }
.auth-brand { display: flex; flex-direction: column; justify-content: center; padding: clamp(3rem, 6vw, 6rem); background: var(--emerald); color: white; }
.auth-brand h2 { margin: 0; font-family: var(--serif); font-size: clamp(2.8rem, 4.8vw, 5.6rem); font-weight: 500; line-height: 1; }
.auth-brand em { color: var(--gold); font-weight: 500; }
.auth-brand > p:last-child { max-width: 420px; margin-top: 2rem; color: rgba(255,255,255,.75); }
.auth-content { display: flex; flex-direction: column; justify-content: center; padding: clamp(3rem, 7vw, 7rem); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 2rem; border-bottom: 1px solid var(--line); }
.auth-tabs button { padding: 1rem 0; border: 0; border-bottom: 2px solid transparent; background: none; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.auth-tabs button.active { border-color: var(--ink); }
.auth-form { display: flex; flex-direction: column; }
.auth-form label { margin: 1rem 0 .35rem; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.auth-form input { padding: .85rem; border: 1px solid var(--line); background: white; }
.auth-form small { margin-top: .35rem; color: #777; font-size: .65rem; }
.auth-form .button { margin-top: 1.5rem; }
.auth-form button:disabled { cursor: wait; opacity: .6; }
.form-status { min-height: 1.5rem; color: #9b2c2c; font-size: .75rem; }
.form-status.success { color: var(--emerald); }
.account-view h3 { margin: 0; font-family: var(--serif); font-size: 3rem; font-weight: 500; }
.account-view > p:not(.eyebrow) { color: #666; }
.account-view .button { margin-top: 2rem; }
.signout-button { display: block; margin-top: 1.5rem; padding: 0; border: 0; border-bottom: 1px solid; background: none; font-size: .72rem; text-transform: uppercase; cursor: pointer; }

@media (max-width: 900px) {
  .site-header { height: 70px; padding: 0 1.2rem; }
  .desktop-nav { display: none; }
  .menu-button { display: block; }
  .header-actions .search-trigger { display: none; }
  .hero-copy { padding: 34vh 1.5rem 6rem; }
  .hero > img { object-position: 58% center; }
  .collection-grid { padding: 5rem 1.2rem; grid-template-columns: 1fr; gap: 3.5rem; }
  .section-heading { grid-template-columns: 1fr auto; }
  .section-heading .eyebrow { grid-column: 1 / -1; margin-bottom: 1rem; }
  .collection-card-large { grid-row: auto; }
  .collection-card:not(.collection-card-large) .image-wrap { aspect-ratio: 4 / 5; }
  .product-actions { transform: translateY(0); }
  .editorial { grid-template-columns: 1fr; }
  .editorial-image { min-height: 560px; }
  .editorial-copy { padding: 5rem 1.5rem; }
  .service-strip { grid-template-columns: 1fr; padding: 4rem 1.5rem; }
  .service-strip > div, .service-strip > div:first-child { padding: 2rem 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .service-strip > div:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .newsletter { grid-template-columns: 1fr; }
  .search-results { grid-template-columns: 1fr; }
  .product-modal, .checkout-modal, .auth-modal { grid-template-columns: 1fr; }
  .product-modal-image { min-height: 440px; max-height: 52vh; }
  .product-modal-copy { padding: 3rem 1.5rem; }
  .checkout-modal { padding: 4.5rem 1.5rem 2rem; }
  .auth-brand { min-height: 360px; }
  .auth-content { padding: 3rem 1.5rem; }
}

@media (max-width: 560px) {
  .announcement { font-size: .62rem; letter-spacing: .05em; }
  .site-header { top: 32px; }
  .site-header.scrolled { top: 0; }
  .wordmark { font-size: 1.25rem; }
  .header-actions { font-size: .7rem; }
  .hero h1 { font-size: clamp(3.2rem, 16vw, 5rem); }
  .hero-text { max-width: 310px; }
  .intro { padding-left: 1.2rem; padding-right: 1.2rem; }
  .section-heading h2 { font-size: 2.25rem; }
  .section-heading > a, .view-all { font-size: .65rem; }
  .collection-filters { justify-content: flex-start; overflow-x: auto; }
  .filter-button { min-width: 88px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-wordmark { padding-bottom: 2.5rem; font-size: 14vw; }
  .search-panel { padding: 18vh 1.5rem; }
  .header-actions { gap: .65rem; }
  #wishlist-button { display: none; }
  .modal { inset: 0; max-height: 100%; }
  .checkout-form { grid-template-columns: 1fr; }
  .checkout-form .field, .checkout-form .full { grid-column: 1; }
  .bag-line, .saved-line { grid-template-columns: 68px 1fr auto; gap: .7rem; }
  .bag-line > img, .saved-line > img { width: 68px; height: 90px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
