@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/cormorant-garamond-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/cormorant-garamond-cyrillic-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/cormorant-garamond-cyrillic-wght-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("assets/source-sans-3-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("assets/source-sans-3-cyrillic-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  color-scheme: light;
  --ivory: #f8f4ed;
  --espresso: #30221b;
  --muted: #64534a;
  --brass: #795b34;
  --wine: #712b42;
  --wine-dark: #572034;
  --light-brass: #dbc29d;
  --line: #ded1c0;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Source Sans 3", system-ui, sans-serif;
  font: 17px/1.5 var(--sans);
  color: var(--espresso);
  background: var(--ivory);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p, figure, dl, dd { margin: 0; }
a { color: inherit; text-underline-offset: .25em; }
img { display: block; max-width: 100%; }
button, select { font: inherit; }
button, select, .choices label { cursor: pointer; }
button, a, select { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #966d37; outline-offset: 4px; }
section[id], #main { scroll-margin-top: 26px; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 4; top: 12px; left: 12px; padding: 10px; background: var(--ivory); }
.shell { width: min(100% - clamp(32px, 8vw, 128px), 1330px); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; min-height: 82px; }
.wordmark { display: inline-flex; width: fit-content; align-items: center; gap: 10px; text-decoration: none; }
.wordmark img { width: 46px; height: 46px; border-radius: 50%; }
.wordmark-type { display: grid; text-align: center; font: 650 27px/.88 var(--serif); letter-spacing: .07em; }
.wordmark-type small { font: 650 8px/1 var(--sans); letter-spacing: .25em; margin-top: 5px; }
nav { display: flex; gap: clamp(14px, 2vw, 28px); }
nav a, .instagram { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-decoration: none; }
nav a:hover, .text-link:hover, figcaption a:hover { color: var(--brass); text-decoration: underline; }
.instagram { justify-self: end; border: 1px solid var(--line); padding: 6px 14px; }
.instagram:hover { background: #ede2d1; border-color: #b19877; }

.hero { display: grid; grid-template-columns: minmax(0, .76fr) minmax(0, 1.24fr); align-items: stretch; gap: clamp(26px, 5vw, 72px); padding-block: clamp(28px, 4vw, 62px); }
.hero-copy { align-self: center; padding-block: 22px; }
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: .76rem; font-weight: 670; letter-spacing: .13em; text-transform: uppercase; color: var(--brass); }
.rule { display: inline-block; width: 25px; height: 1px; flex: 0 0 25px; background: currentColor; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; }
h1 { font-size: clamp(3.5rem, 6.15vw, 6.3rem); line-height: .91; letter-spacing: -.045em; text-wrap: balance; }
h1 em { display: block; margin-top: .08em; }
h1 em, h2 em { color: var(--brass); font-weight: 500; }
h2 { font-size: clamp(2.65rem, 5vw, 4.6rem); line-height: .98; letter-spacing: -.038em; text-wrap: balance; }
.intro { max-width: 34ch; margin-top: 24px; font-size: clamp(1.04rem, 1.45vw, 1.22rem); color: var(--muted); }
.hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 27px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 15px; padding: 10px 20px; min-height: 49px; color: var(--ivory); background: var(--espresso); border: 1px solid var(--espresso); font-weight: 650; text-decoration: none; }
.button:hover { background: #523a2d; border-color: #523a2d; }
.hero-actions .button { background: var(--wine); border-color: var(--wine); min-height: 53px; }
.hero-actions .button:hover { background: var(--wine-dark); border-color: var(--wine-dark); }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 650; text-decoration: none; }
.hero-photo { align-self: center; min-width: 0; }
.hero-photo a { display: block; background: #e3d3ba; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 1.25; object-fit: cover; object-position: center 74%; }
.hero-photo figcaption { margin-top: 8px; }
figcaption { font-size: .82rem; color: var(--muted); margin-top: 10px; }

.collection { border-top: 1px solid var(--line); padding-block: clamp(40px, 5.7vw, 86px) clamp(58px, 7vw, 104px); }
.section-heading { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 10px 24px; }
.section-heading p { color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0; }
.filters button { min-height: 44px; padding: 6px 17px; border: 1px solid var(--line); color: var(--espresso); background: transparent; font-weight: 600; }
.filters button:hover { border-color: var(--brass); }
.filters [aria-pressed="true"] { color: var(--ivory); background: var(--espresso); border-color: var(--espresso); }
.product-grid, .result-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px); }
.product-card { min-width: 0; }
.product-card a { display: block; text-decoration: none; }
.card-image { aspect-ratio: 4 / 3; overflow: hidden; background: #e5d8c4; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.product-card a:hover img { transform: scale(1.025); }
.card-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 11px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.card-heading h3 { text-wrap: pretty; font-size: clamp(1.65rem, 2.5vw, 2.15rem); line-height: 1.03; }
.card-heading span { color: var(--brass); }
.product-card a:hover h3 { text-decoration: underline; }
.product-card p { margin-top: 7px; color: var(--muted); }

.finder { color: var(--ivory); background: var(--espresso); }
.finder-inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(25px, 7vw, 105px); padding-block: clamp(48px, 6vw, 90px); }
.finder-intro h2 { max-width: 14ch; }
.finder-intro p { margin-top: 17px; max-width: 35ch; color: #eaded1; }
#finder-form { align-self: start; display: grid; gap: 20px; }
fieldset { min-width: 0; padding: 0 0 18px; margin: 0; border: 0; border-bottom: 1px solid #695245; }
legend, .budget > label { padding: 0; font-size: 1.12rem; font-weight: 650; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.choices label { position: relative; }
.choices input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choices span { display: flex; align-items: center; min-height: 44px; border: 1px solid #a28b78; padding: 6px 12px; }
.choices label:hover span, .choices input:focus-visible + span { border-color: var(--light-brass); }
.choices input:focus-visible + span, .finder :focus-visible { outline: 2px solid var(--light-brass); outline-offset: 3px; }
.choices input:checked + span { background: var(--light-brass); border-color: var(--light-brass); color: var(--espresso); }
.budget { display: grid; gap: 7px; }
select { min-height: 44px; width: min(100%, 340px); border: 1px solid #a28b78; border-radius: 0; background: #48352a; color: var(--ivory); padding-inline: 10px; }
.hint { color: #dfd0c0; font-size: .88rem; }
.form-error { color: #ffbdac; margin-top: 8px; }
.button-light { justify-self: start; background: var(--light-brass); border-color: var(--light-brass); color: var(--espresso); }
.button-light:hover { background: #f0d8b5; border-color: #f0d8b5; }
.finder-results { grid-column: 1 / -1; }
.finder-results > h3 { font-size: 2.6rem; line-height: 1.1; }
.finder-results > p { color: #eaded1; margin: 8px 0 20px; }
.finder-results .product-card p, .finder-results .card-heading span { color: var(--light-brass); }
.finder-results .card-heading { border-color: #695245; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 115px; }
.footer-inner p { color: var(--muted); }
.product-page { padding-block: 24px clamp(55px, 7vw, 105px); }
.back-link { margin-bottom: 20px; }
.detail-grid { display: grid; grid-template-columns: 1.07fr .93fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.detail-photo img { width: 100%; height: auto; background: #e5d8c4; }
.detail-media { min-width: 0; }
.detail-frame { aspect-ratio: 1; overflow: hidden; background: #eee2d3; }
.detail-frame img { width: 100%; height: 100%; object-fit: contain; }
.detail-frame[data-crop="closed"] img { transform: scale(1.85); transform-origin: 34% 23%; }
.detail-frame[data-crop="lining"] img { transform: scale(1.65); transform-origin: 81% 81%; }
#detail-view-caption { margin-bottom: 4px; }
.detail-views { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.detail-views button { min-height: 44px; padding: 6px 10px; border: 1px solid var(--line); background: transparent; color: var(--espresso); font-weight: 600; }
.detail-views button:hover { border-color: var(--wine); }
.detail-views [aria-pressed="true"] { background: var(--wine); border-color: var(--wine); color: var(--ivory); }
.detail-copy { padding-block: 15px; }
.detail-copy h1 { font-size: clamp(3rem, 5.1vw, 5.3rem); }
.detail-copy dl { margin-block: 27px; }
.detail-copy dl div { border-top: 1px solid var(--line); padding-block: 12px; }
.detail-copy dt { font-weight: 700; }
.detail-copy dd { color: var(--muted); margin-top: 4px; }

@media (max-width: 950px) {
  .hero { grid-template-columns: 1fr 1.03fr; gap: 24px; }
  .hero h1 { font-size: clamp(2.8rem, 7vw, 4.4rem); }
  .header-inner { gap: 14px; }
  .header-inner nav { gap: 17px; }
}
@media (max-width: 710px) {
  .header-inner { grid-template-columns: 1fr auto; min-height: 0; padding-top: 12px; gap: 5px 12px; }
  .header-inner nav { grid-column: 1 / -1; grid-row: 2; gap: 23px; }
  .header-contact { grid-row: 1; grid-column: 2; font-size: .87rem; }
  .hero { grid-template-columns: 1fr; gap: 20px; padding-top: 16px; }
  .hero-copy { padding-block: 15px 0; }
  .hero h1 { font-size: clamp(2.75rem, 9vw, 4.5rem); }
  .hero .intro { margin-top: 16px; }
  .hero-actions { margin-top: 17px; gap: 2px; }
  .hero-photo img { aspect-ratio: 1.23; }
  .product-grid, .result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finder-inner, .detail-grid { grid-template-columns: 1fr; }
  .finder-intro h2 { max-width: none; }
  .finder-intro em { display: inline; }
  .footer-inner { grid-template-columns: 1fr auto; gap: 8px; padding-block: 14px; }
  .footer-inner p { grid-row: 2; grid-column: 1 / -1; }
  .detail-copy { padding-block: 0; }
}
@media (max-width: 425px) {
  .product-grid, .result-grid { grid-template-columns: 1fr; }
  .wordmark img { width: 37px; height: 37px; }
  .wordmark-type { font-size: 22px; }
  .wordmark-type small { font-size: 7px; }
  .instagram { padding-inline: 9px; font-size: .85rem; }
  .filters button { padding-inline: 10px; font-size: .91rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.guide-text { display: grid; gap: 8px; margin-top: 24px; }
.guide-text label { font-size: 1.12rem; font-weight: 650; }
.finder-intro .guide-text p { margin: 0; }
.guide-text textarea { resize: vertical; width: 100%; min-height: 85px; border: 1px solid #a28b78; background: #48352a; color: var(--ivory); font: inherit; padding: 10px; }
.guide-text button { margin-top: 4px; }
@media (max-width: 710px) {
  .header-inner nav { gap: 5px 16px; flex-wrap: wrap; }
  .header-inner nav a { font-size: .88rem; }

}

.postcard-section { border-top: 1px solid var(--line); padding-block: clamp(30px, 4.5vw, 64px); }
.postcard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  max-width: 1000px;
  margin-inline: auto;
  background: #fffaf0;
  border: 1px solid var(--line);
}
.postcard-photo { width: 100%; height: 100%; min-height: 300px; aspect-ratio: 1.3; object-fit: cover; }
.postcard-copy {
  padding: clamp(20px, 3.5vw, 48px);
  background: #fffaf0;
  border-right: 1px solid var(--line);
}
.postcard-copy h2 { font-size: clamp(2.5rem, 4.5vw, 4.2rem); }
.postcard-copy .text-link { color: var(--brass); text-decoration: underline; }
@media (max-width: 710px) {
  .postcard { grid-template-columns: 1fr; }
  .postcard-photo { min-height: 0; height: auto; aspect-ratio: 1.5; }
  .postcard-copy { border-right: 0; border-bottom: 1px solid var(--line); }
}

.gallery { padding-block: clamp(45px, 7vw, 95px); }
.gallery .section-heading { margin-bottom: 26px; }
.gallery-layout { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(16px, 3vw, 38px); }
.gallery-shop > a { position: relative; display: block; height: 100%; min-height: 340px; background: #e5d8c4; }
.gallery-shop img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.gallery-shop a > span { position: absolute; inset: auto 12px 12px; padding: 10px 14px; background: var(--ivory); font-weight: 650; }
.gallery-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.gallery-item { min-width: 0; }
.gallery-image { display: block; aspect-ratio: 1.4; background: #e5d8c4; }
.gallery-image img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 8px; margin-top: 4px; }
.gallery-item figcaption a { display: inline-flex; align-items: center; min-height: 44px; }
.gallery-item figcaption a:first-child { font-weight: 650; color: var(--espresso); }
.related { border-top: 1px solid var(--line); margin-top: clamp(40px, 6vw, 80px); padding-top: 30px; }
.related h2 { font-size: clamp(2.25rem, 4vw, 3.5rem); margin-bottom: 24px; }

@media (max-width: 950px) {
  .header-inner nav { gap: 0 16px; flex-wrap: wrap; }
}
@media (max-width: 710px) {
  .gallery-layout { grid-template-columns: 1fr; }
  .gallery-shop > a { min-height: 0; aspect-ratio: 1.3; }
}

.at-home { border-top: 1px solid var(--line); padding-block: clamp(40px, 6vw, 82px); }
.at-home h2 { max-width: 15ch; }
.home-scenes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 36px); margin-top: 28px; }
.home-scene { display: block; text-decoration: none; }
.home-scene img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #e3d3ba; }
.home-scene > div { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 5px 10px; border-bottom: 1px solid var(--line); padding: 12px 0 16px; }
.home-scene h3 { font-size: clamp(1.55rem, 2.5vw, 2.25rem); line-height: 1.05; }
.home-scene p { grid-column: 1 / -1; color: var(--muted); }
.home-scene span { color: var(--brass); }
.home-scene:hover h3 { text-decoration: underline; }
.postcard-preview { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-width: 0; background: #f6ecdc; }
.postcard-preview .postcard-photo { display: block; min-height: 0; object-fit: cover; aspect-ratio: 1.18; }
.gift-note { padding: 16px 20px; border-top: 1px solid var(--line); }
#gift-preview { font: italic 550 clamp(1.45rem, 2.4vw, 2.05rem)/1.13 var(--serif); margin-top: 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.gift-controls { display: grid; gap: 6px; margin-top: 20px; }
.gift-controls label { font-weight: 650; }
.gift-controls select, .gift-controls textarea { width: 100%; color: var(--espresso); background: var(--ivory); border: 1px solid #a99174; font: inherit; padding: 9px 11px; }
.gift-controls textarea { resize: vertical; }
.gift-controls label:not(:first-child) { margin-top: 7px; }
.gift-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 15px; margin-top: 7px; }
.gift-actions button:disabled { opacity: .65; cursor: default; }
#gift-status { min-height: 1.5em; font-size: .87rem; color: var(--muted); }
@media (max-width: 710px) {
  .home-scenes { grid-template-columns: 1fr; gap: 24px; }
  .home-scene img { aspect-ratio: 1.55; }
  .postcard-preview .postcard-photo { aspect-ratio: 1.45; }
}

.gift-message-label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 7px; }
#gift-count { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
#gift-status:not(:empty) { color: var(--wine); }

@media (prefers-reduced-motion: no-preference) {
  .filters button, .choices span, .button { transition: background-color .18s ease, color .18s ease, border-color .18s ease; }
  #gift-status:not(:empty) { animation: feedback-in .2s ease-out; }
  @keyframes feedback-in {
    from { opacity: 0; transform: translateY(3px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
