:root {
  color-scheme: light;
  --ink: #252820;
  --green: #344734;
  --muted: #595e52;
  --ivory: #faf9f6;
  --sand: #d7c8b2;
  --sage: #e8ebe2;
  --line: #d8dbd1;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Golos Text', Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 88px);
  --section: clamp(64px, 8vw, 128px);
  font: 100%/1.45 var(--sans);
  color: var(--ink);
  background: var(--ivory);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
body:has(dialog[open]) { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid #566d4e; outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
section, footer { scroll-margin-top: 24px; }
.wrap { width: min(100% - var(--gutter) * 2, 1552px); margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: absolute; z-index: 10; left: 12px; top: 12px; padding: 12px; background: var(--ivory); }

.masthead { z-index: 2; position: absolute; inset: 0 0 auto; color: #25241d; }
.header-inner { margin-inline: var(--gutter); min-height: 84px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 20px; border-bottom: 1px solid #332b2236; }
.header-nav, .header-actions { display: flex; align-items: center; gap: clamp(16px, 2.3vw, 34px); }
.header-actions { justify-content: flex-end; gap: clamp(10px, 1.4vw, 24px); }
.mobile-nav { display: none; }
.header-nav a, .header-contacts { font-size: .875rem; text-decoration: none; white-space: nowrap; }
.header-nav a:hover, .header-contacts:hover { text-decoration: underline; text-underline-offset: 5px; }
.wordmark { display: inline-flex; gap: .33em; align-items: center; font: 600 2.5rem/.9 var(--serif); color: inherit; text-decoration: none; white-space: nowrap; }
.clover { position: relative; flex: 0 0 auto; width: .56em; height: .6em; color: var(--green); }
.clover i { position: absolute; width: 50%; height: 47%; background: currentColor; border-radius: 66% 57% 22% 58%; }
.clover i:nth-child(1) { left: 0; top: 0; }
.clover i:nth-child(2) { right: 0; top: 0; rotate: 90deg; }
.clover i:nth-child(3) { right: 0; top: 45%; rotate: 180deg; }
.clover i:nth-child(4) { left: 0; top: 45%; rotate: 270deg; }
.clover::after { content: ''; position: absolute; height: 42%; width: 24%; border-right: .055em solid currentColor; border-radius: 0 0 80% 0; left: 34%; bottom: -22%; }

.icon-button { padding: 0; width: 44px; height: 44px; display: inline-grid; place-items: center; border: 0; background: transparent; border-radius: 50%; flex: 0 0 auto; }
.icon-button:hover { background: #34473412; }
.icon { position: relative; display: inline-block; flex: 0 0 auto; width: 20px; height: 20px; }
.icon-search::before { content: ''; position: absolute; width: 14px; height: 14px; top: 1px; left: 1px; border: 1.5px solid currentColor; border-radius: 50%; }
.icon-search::after { content: ''; position: absolute; width: 8px; height: 1.5px; top: 13px; left: 13px; background: currentColor; transform: rotate(46deg); transform-origin: left; }
.icon-bag::before { content: ''; position: absolute; width: 17px; height: 14px; left: 2px; top: 6px; border: 1.5px solid currentColor; border-radius: 2px; }
.icon-bag::after { content: ''; position: absolute; width: 8px; height: 8px; top: 1px; left: 6.5px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 8px 8px 0 0; }
.icon-close::before, .icon-close::after { content: ''; position: absolute; width: 19px; height: 1.5px; left: 1px; top: 9px; background: currentColor; transform: rotate(45deg); }
.icon-close::after { transform: rotate(-45deg); }
.icon-menu::before { content: ''; position: absolute; inset: 5px 1px; border-block: 1.5px solid currentColor; }
.cart-trigger { position: relative; }
.cart-count { position: absolute; top: 0; right: -1px; padding: 0 4px; min-width: 17px; height: 17px; border-radius: 20px; background: var(--green); color: #fff; font: 500 .65rem/17px var(--sans); }

.hero { position: relative; isolation: isolate; min-height: clamp(570px, 50vw, 880px); overflow: hidden; background: var(--sand); color: #29281e; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-image { height: 100%; width: 100%; object-fit: cover; object-position: center; }
.hero::after { content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: linear-gradient(#e9ddcb4d, transparent 40%); }
.hero-content { position: absolute; inset: clamp(101px, 7.4vw, 132px) var(--gutter) 29px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero h1 { font: 500 clamp(4.3rem, 7.5vw, 8.6rem)/.88 var(--serif); letter-spacing: -.05em; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 12px 23px; background: var(--green); color: #fff; border: 1px solid var(--green); min-height: 48px; font-size: .875rem; font-weight: 500; text-align: center; text-decoration: none; }
.button:hover { background: #243625; border-color: #243625; }
.hero-button { margin: auto auto 0 0; color: var(--ink); background: #faf9f0; border-color: #faf9f0; }
.hero-button:hover { color: #fff; }
.outline { background: transparent; color: var(--green); border-color: #7b8776; }
.outline:hover { background: var(--sage); border-color: var(--green); }
.button:disabled { opacity: .55; cursor: default; }

.section { padding-block: var(--section); }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: clamp(23px, 3vw, 46px); }
.section-heading h2, .atelier h2 { font: 500 clamp(3.2rem, 6.2vw, 7.25rem)/.88 var(--serif); letter-spacing: -.045em; }
.section-heading p { margin-top: 16px; color: var(--muted); }
.text-link { cursor: pointer; border: 0; padding: 0; background: transparent; text-align: left; text-decoration: underline; text-underline-offset: 5px; font-size: .875rem; font-weight: 500; }
.text-link:hover { color: #42683e; }
.looks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.5vw, 24px); }
.look { display: grid; gap: 12px; text-decoration: none; align-content: start; }
.look img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; background: #dfd5c7; }
.look span { font-size: clamp(.875rem, 1.1vw, 1rem); }
.look:hover span { text-decoration: underline; text-underline-offset: 4px; }

.atelier { display: grid; grid-template-columns: 1.05fr 1fr; background: var(--sage); min-height: clamp(440px, 46vw, 670px); }
.atelier-photo { position: relative; display: block; min-height: 100%; background: #b5b6b1; }
.atelier-photo img { position: absolute; height: 100%; width: 100%; object-fit: cover; object-position: center 57%; }
.atelier-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 6vw, 100px); align-items: start; }
.atelier-copy p { max-width: 40ch; margin-top: 16px; }
.atelier-copy h2 { margin-bottom: 12px; color: var(--green); }
.atelier-copy a { margin-top: 26px; }

.catalog .section-heading { margin-bottom: 24px; }
.catalog-controls { display: flex; flex-direction: column; }
.filters { display: flex; align-items: start; flex-wrap: wrap; gap: 8px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.filters button { min-height: 40px; padding: 8px 14px; border: 1px solid var(--line); background: none; border-radius: 24px; font-size: .875rem; }
.filters button:hover { border-color: #687963; }
.filters button[aria-pressed='true'] { background: var(--green); color: #fff; border-color: var(--green); }
.catalog-tools { display: flex; justify-content: space-between; gap: 12px; padding-top: 16px; }
.search-box, .sort-box { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); min-height: 44px; padding-inline: 12px; }
.search-box { width: min(360px, 100%); }
.search-box input { width: 100%; min-width: 0; border: 0; background: transparent; }
.search-box input::placeholder { color: var(--muted); opacity: 1; }
.sort-box { position: relative; padding: 0; }
.sort-box select { cursor: pointer; border: 0; appearance: none; padding: 10px 35px 10px 12px; width: 100%; background: none; font-size: .875rem; }
.chevron { position: absolute; right: 16px; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); pointer-events: none; }
.result-count { color: var(--muted); font-size: .875rem; min-height: 20px; margin-block: 12px 20px; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(30px, 4vw, 51px) clamp(12px, 1.5vw, 24px); }
.product { display: flex; flex-direction: column; min-width: 0; }
.product-link { color: inherit; text-decoration: none; }
.product-image { display: grid; place-items: center; aspect-ratio: 4/4.65; background: #e8e5df; overflow: hidden; }
.product-image img { height: 100%; width: 100%; object-fit: cover; transition: transform .3s ease; }
.product-link:hover img { transform: scale(1.025); }
.missing-image { color: var(--muted); text-align: center; font-size: .875rem; padding: 12px; }
.product-meta { display: flex; gap: 8px; justify-content: space-between; align-items: end; padding-top: 12px; }
.product h3 { font: 500 1rem/1.25 var(--sans); overflow-wrap: anywhere; }
.product h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.product-price { margin-top: 5px; font-size: .9rem; color: var(--muted); }
.quick-add { height: 36px; width: 36px; border: 1px solid #b2bcac; color: var(--green); background: transparent; font-size: 1.35rem; line-height: 1; }
.quick-add:hover { background: var(--sage); }
.more-products { display: flex; margin: 36px auto 0; }
.empty-state { padding-block: 26px; color: var(--muted); }
.empty-state button { margin-top: 14px; }

.palette { background: var(--sage); padding-block: clamp(46px, 6vw, 94px); }
.swatches { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 16px; }
.swatch { display: grid; align-content: start; gap: 8px; font-size: .875rem; text-decoration: none; }
.swatch img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #d8ddd0; }
.swatch:hover span { text-decoration: underline; text-underline-offset: 3px; }
.palette .button { margin-top: 24px; }
.footer { padding-block: clamp(44px, 6vw, 90px); color: #f4f2e9; background: #2f3f31; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
.footer .clover { color: #cedbc8; }
.footer h2 { font-size: 1rem; font-weight: 500; margin-bottom: 12px; }
.footer p, .footer a:not(.wordmark) { font-size: .9rem; }
.footer .wordmark + p { margin-top: 12px; }
.footer a:not(.wordmark) { display: block; margin-top: 6px; text-underline-offset: 4px; }
.footer p { max-width: 40ch; }

dialog { padding: 0; color: var(--ink); background: var(--ivory); border: 1px solid var(--line); }
dialog::backdrop { background: #20251ec2; }
.product-dialog { width: min(900px, 100% - 32px); max-height: calc(100dvh - 30px); overflow: auto; }
.dialog-close { position: absolute; right: 10px; z-index: 1; top: 10px; background: var(--ivory); }
.dialog-close:hover { background: var(--sage); }
.details-inner { display: grid; grid-template-columns: 1fr 1fr; min-height: 460px; }
.details-photo { background: #e9e6df; width: 100%; height: 100%; min-height: 320px; max-height: 65vh; object-fit: contain; }
.details-copy { padding: clamp(24px, 4vw, 50px); padding-top: max(58px, 5vw); align-self: center; display: grid; gap: 14px; }
.product-dialog h2, .cart-header h2 { font: 600 clamp(2.3rem, 4vw, 3.8rem)/.92 var(--serif); letter-spacing: -.025em; }
.details-section { color: var(--muted); font-size: .875rem; }
.details-description { white-space: pre-line; }
.details-price { font-size: 1.2rem; font-weight: 500; }
.details-copy .button { margin-top: 6px; }
.cart-dialog { width: min(460px, 100%); max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; border-width: 0 0 0 1px; }
.cart-dialog[open] { display: flex; flex-direction: column; }
.cart-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.cart-body { padding: 0 24px; flex: 1; overflow-y: auto; }
.empty-cart { padding-block: 24px; }
.empty-cart .button { margin-top: 16px; }
.cart-line { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 12px; padding-block: 15px; border-bottom: 1px solid var(--line); }
.cart-line img, .line-placeholder { width: 68px; height: 78px; object-fit: cover; background: #e9e6df; }
.cart-line-title { font-weight: 500; overflow-wrap: anywhere; }
.cart-line small { display: block; font-size: .875rem; color: var(--muted); }
.line-actions { margin-top: 8px; display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.quantity-button { min-width: 36px; height: 36px; padding: 0; background: transparent; border: 1px solid var(--line); }
.quantity-button:hover { background: var(--sage); }
.quantity-button:disabled { cursor: default; opacity: .5; }
.line-actions .text-link { margin-left: 8px; }
.cart-summary { display: grid; gap: 9px; padding: 16px 24px 20px; border-top: 1px solid var(--line); }
.cart-summary p { color: var(--muted); font-size: .875rem; }
.cart-total { display: flex; justify-content: space-between; font-size: 1.13rem; }
.copy-order { justify-self: center; }
.copy-feedback:empty { display: none; }
.order-text { display: block; width: 100%; min-height: 100px; padding: 6px; margin-top: 8px; }
.toast { position: fixed; z-index: 4; inset: auto 20px 20px auto; max-width: min(380px, 100% - 40px); pointer-events: none; color: #fff; background: var(--green); padding: 12px 16px; font-size: .875rem; }
.toast:empty { display: none; }

@media (max-width: 960px) {
  .header-contacts { display: none; }
  .header-nav { gap: 16px; }
  .header-inner { column-gap: 12px; }
  .hero h1 { font-size: clamp(3.7rem, 9vw, 6rem); }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .swatches { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 660px) {
  .header-inner { display: flex; min-height: 65px; justify-content: space-between; }
  .header-nav { display: none; }
  .wordmark { font-size: 2.05rem; }
  .header-actions { gap: 2px; }
  .mobile-nav { display: block; }
  .mobile-nav summary { cursor: pointer; list-style: none; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav nav { z-index: 2; position: absolute; top: calc(100% - 1px); right: var(--gutter); display: grid; min-width: 180px; background: var(--ivory); border: 1px solid var(--line); }
  .mobile-nav nav a { text-decoration: none; padding: 12px 16px; }
  .mobile-nav nav a:hover { background: var(--sage); }
  .hero { min-height: 650px; min-height: clamp(590px, 92svh, 740px); }
  .hero-image { object-position: center 58%; }
  .hero::after { background: linear-gradient(#e8dcca80, transparent 46%); }
  .hero-content { inset: 90px var(--gutter) 22px; }
  .hero h1 { max-width: 12ch; font-size: clamp(3rem, 11.5vw, 4.6rem); letter-spacing: -.04em; }
  .hero-button { margin-inline: auto; }
  .section-heading { align-items: end; gap: 12px; }
  .section-heading h2, .atelier h2 { font-size: clamp(2.9rem, 11vw, 4rem); }
  .section-heading .text-link { padding-bottom: 4px; white-space: nowrap; }
  .looks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .look { gap: 9px; }
  .atelier { grid-template-columns: 1fr; }
  .atelier-photo { height: min(90vw, 460px); }
  .atelier-copy { padding: 34px var(--gutter) 44px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-meta { align-items: start; }
  .product h3 { font-size: .9rem; }
  .quick-add { width: 32px; height: 34px; }
  .catalog-tools { gap: 8px; }
  .search-box { width: auto; flex: 1; min-width: 0; }
  .search-box input { font-size: 1rem; }
  .sort-box select { padding-left: 9px; padding-right: 25px; font-size: .8125rem; }
  .chevron { right: 10px; }
  .swatches { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 10px; }
  .swatch { overflow-wrap: anywhere; }
  .footer-inner { grid-template-columns: 1fr; }
  .details-inner { grid-template-columns: 1fr; }
  .details-photo { min-height: 0; max-height: 44vh; height: auto; }
  .details-copy { padding: 22px; }
}

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