:root {
  --pine: #163f34;
  --pine-soft: #315d50;
  --sage: #dbe4d5;
  --sage-pale: #edf0e8;
  --cream: #fbf7ef;
  --paper: #fffdf8;
  --warm: #e49a6e;
  --gold: #d8ad69;
  --brown: #84694e;
  --ink: #26372f;
  --line: rgba(22, 63, 52, .24);
}

html, body { overflow-x: clip; }

.custom-product { background: var(--cream); padding: 36px 0 76px; }
.custom-product-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr); gap: clamp(48px, 6vw, 94px); align-items: start; }
.custom-gallery { position: sticky; top: 112px; }
.custom-primary { position: relative; min-height: 580px; display: grid; place-items: center; background: var(--sage-pale); border: 1px solid rgba(22, 63, 52, .09); overflow: hidden; }
.custom-primary img { width: 100%; height: 100%; max-height: 680px; aspect-ratio: 1 / 1; object-fit: contain; display: block; }
.custom-primary > span { position: absolute; left: 18px; bottom: 18px; padding: 9px 12px; background: rgba(255, 253, 248, .94); color: var(--pine); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.custom-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.custom-thumbs button { border: 1px solid transparent; background: #fff; padding: 5px; cursor: pointer; }
.custom-thumbs button.selected { border-color: var(--pine); }
.custom-thumbs img { width: 100%; height: 104px; object-fit: cover; display: block; }
.photo-caption { color: #68766e; font-size: 12px; line-height: 1.5; }

.custom-panel { min-width: 0; }
.custom-heading h1 { margin: 8px 0 10px; color: var(--ink); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(42px, 4vw, 58px); font-weight: 400; line-height: .97; letter-spacing: -.045em; }
.custom-heading > p { max-width: 620px; color: #4c5e55; font-size: 16px; line-height: 1.5; }
.custom-rating { color: var(--brown); font-size: 13px; }
.custom-rating span, .review-stars { color: #b97746; letter-spacing: .12em; }
.custom-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; list-style: none; padding: 0; margin: 22px 0 28px; border-top: 1px solid var(--line); }
.custom-progress li { position: relative; padding: 13px 0 0; color: #8a938e; font-size: 12px; font-weight: 800; }
.custom-progress li::before { content: ''; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: #b7bdb8; }
.custom-progress li.current { color: var(--pine); }
.custom-progress li.current::before { background: var(--warm); box-shadow: 0 0 0 4px var(--cream); }
.custom-progress li span { display: block; margin-top: 2px; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.custom-step h2 { margin: 5px 0 17px; color: var(--ink); font: 400 clamp(29px, 3vw, 42px)/1.08 Georgia, 'Times New Roman', serif; letter-spacing: -.03em; }
.step-kicker { color: var(--brown); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.choice-grid label, .format-choices label { cursor: pointer; }
.choice-grid input, .format-choices input, .swatch-grid input { position: absolute; opacity: 0; pointer-events: none; }
.choice-grid label > span, .format-choices label > span { display: block; height: 100%; padding: 14px 16px; border: 1px solid var(--line); background: rgba(255,255,255,.44); transition: border-color .2s, background .2s, box-shadow .2s; }
.choice-grid label:hover > span, .format-choices label:hover > span { border-color: var(--pine-soft); }
.choice-grid input:checked + span, .format-choices input:checked + span { border-color: var(--pine); background: var(--paper); box-shadow: inset 0 0 0 1px var(--pine); }
.choice-grid b, .format-choices b { display: block; margin-bottom: 5px; color: var(--pine); font: 400 20px/1.15 Georgia, 'Times New Roman', serif; }
.choice-grid small, .format-choices small { display: block; color: #65746c; font-size: 12px; line-height: 1.45; }
.custom-field { display: block; margin-top: 18px; }
.custom-field > span, .custom-field legend { display: block; margin-bottom: 9px; color: var(--pine); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.custom-field small { font-weight: 400; text-transform: none; letter-spacing: 0; }
.custom-field select, .custom-field textarea { width: 100%; border: 1px solid var(--line); border-radius: 0; background: var(--paper); color: var(--ink); font: inherit; }
.custom-field select { height: 50px; padding: 0 14px; }
.custom-field textarea { min-height: 128px; padding: 14px; resize: vertical; line-height: 1.55; }
.custom-field:focus-within select, .custom-field:focus-within textarea { outline: 2px solid rgba(228,154,110,.65); outline-offset: 2px; }
.count-control { display: grid; grid-template-columns: 52px 74px 52px; width: max-content; border: 1px solid var(--line); background: var(--paper); }
.count-control button, .count-control input { height: 50px; border: 0; background: transparent; color: var(--pine); text-align: center; font: 600 19px/1 Arial, sans-serif; }
.count-control button { cursor: pointer; font-size: 24px; }
.count-control input { width: 74px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); appearance: textfield; }
.count-control input::-webkit-inner-spin-button { appearance: none; }
fieldset.custom-field { border: 0; padding: 0; }
.swatch-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.swatch-grid label { border: 1px solid var(--line); background: var(--paper); padding: 7px; cursor: pointer; }
.swatch-grid label:has(input:checked) { border-color: var(--pine); box-shadow: inset 0 0 0 1px var(--pine); }
.swatch { display: block; height: 58px; margin-bottom: 8px; border: 1px solid rgba(22,63,52,.1); }
.swatch.botanical { background: #d9e6cf; }
.swatch.paper { background: #f3ead9; }
.swatch.place { background: #dce8e5; }
.swatch.simple { background: #e8d9cf; }
.swatch-grid b { display: block; color: var(--pine); font-size: 11px; line-height: 1.25; text-align: center; }
.format-choices { display: grid; gap: 9px; }
.format-choices label > span { padding: 14px 16px; }
.format-choices b { font-size: 18px; }
.custom-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.custom-actions #custom-next { margin-left: auto; }
.custom-actions .button { min-width: 142px; }
.custom-summary { border-top: 1px solid var(--line); }
.custom-summary > div { display: grid; grid-template-columns: 130px 1fr; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.custom-summary dt { color: #738078; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.custom-summary dd { margin: 0; color: var(--ink); line-height: 1.45; }
.checkout-note { margin: 22px 0; padding: 17px 18px; background: var(--sage-pale); border-left: 3px solid var(--warm); }
.checkout-note b { color: var(--pine); }
.checkout-note p { margin: 6px 0 0; color: #526158; line-height: 1.55; }
.custom-checkout { width: 100%; text-align: center; }
.custom-checkout:disabled { cursor: not-allowed; opacity: .58; }
.custom-assurances { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); color: #607067; font-size: 11px; line-height: 1.4; }
.custom-assurances span::before { content: '✓'; display: block; margin-bottom: 5px; color: var(--warm); font-weight: 900; }
.custom-detail { background: var(--sage-pale); }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.detail-box { background: var(--paper); padding: 28px; }
.detail-box h3 { margin: 0 0 9px; color: var(--pine); font: 400 24px/1.2 Georgia, 'Times New Roman', serif; }
.detail-box p { margin: 0; color: #5b6b62; line-height: 1.6; }
.review-section { background: #f4eadf; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review-grid article { min-height: 220px; padding: 28px; background: var(--paper); border-top: 3px solid var(--warm); }
.review-grid blockquote { margin: 18px 0 25px; color: var(--ink); font: 400 22px/1.4 Georgia, 'Times New Roman', serif; }
.review-grid p { color: #6e786f; font-size: 12px; }

.stories-hero { padding: 72px 0; background: var(--sage); }
.stories-hero-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: clamp(50px, 7vw, 110px); align-items: center; }
.stories-hero h1 { margin: 13px 0 24px; color: var(--ink); font: 400 clamp(48px, 6vw, 86px)/.98 Georgia, 'Times New Roman', serif; letter-spacing: -.05em; }
.stories-hero h1 em { color: var(--brown); font-weight: 400; }
.stories-hero p { max-width: 580px; color: #41564b; font-size: 18px; line-height: 1.7; }
.stories-hero figure { margin: 0; transform: rotate(1deg); }
.stories-hero figure img { width: 100%; max-height: 660px; object-fit: contain; background: var(--cream); box-shadow: 24px 24px 0 rgba(132,105,78,.24); }
.stories-hero figcaption { margin-top: 14px; color: #53665c; font: italic 16px Georgia, serif; }
.story-list { background: var(--cream); }
.story-entry { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(45px, 7vw, 105px); align-items: center; padding: 72px 0; border-bottom: 1px solid var(--line); }
.story-entry:nth-child(even) figure { order: 2; }
.story-entry figure { margin: 0; }
.story-entry img { width: 100%; aspect-ratio: 1.12 / 1; object-fit: contain; background: var(--sage-pale); }
.story-entry h2 { margin: 9px 0 18px; color: var(--ink); font: 400 clamp(38px, 4.6vw, 67px)/1 Georgia, 'Times New Roman', serif; letter-spacing: -.045em; }
.story-entry p { color: #506158; font-size: 17px; line-height: 1.72; }
.story-entry .story-note { color: var(--brown); font: italic 18px/1.5 Georgia, serif; }

.home-story-teaser { background: var(--pine); color: #fff; padding: 84px 0; }
.home-story-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.home-story-copy h2 { margin: 10px 0 20px; color: #fff; font: 400 clamp(42px, 5vw, 70px)/1.02 Georgia, 'Times New Roman', serif; letter-spacing: -.045em; }
.home-story-copy p { color: rgba(255,255,255,.82); font-size: 18px; line-height: 1.65; }
.home-story-copy .eyebrow { color: #f2ba7d; }
.home-story-copy .button { background: var(--cream); color: var(--pine); }
.home-story-images { display: grid; grid-template-columns: 1.08fr .92fr; gap: 14px; align-items: end; }
.home-story-images img { width: 100%; object-fit: cover; background: var(--cream); }
.home-story-images img:first-child { aspect-ratio: .88; }
.home-story-images img:last-child { aspect-ratio: .8; transform: translateY(28px); }

@media (max-width: 980px) {
  .custom-product-grid, .stories-hero-grid, .home-story-grid { grid-template-columns: 1fr; }
  .custom-gallery { position: static; }
  .custom-primary { min-height: 0; }
  .custom-primary img { max-height: 620px; }
  .story-entry { grid-template-columns: 1fr; gap: 28px; }
  .story-entry:nth-child(even) figure { order: 0; }
}

@media (max-width: 680px) {
  .custom-product { padding: 22px 0 50px; }
  .custom-product-grid { gap: 34px; }
  .custom-primary img { aspect-ratio: 1 / 1.05; }
  .custom-primary > span { left: 10px; bottom: 10px; font-size: 9px; }
  .custom-thumbs { overflow-x: auto; grid-template-columns: repeat(4, 86px); }
  .custom-thumbs img { height: 76px; }
  .custom-heading h1 { font-size: 43px; }
  .custom-progress { margin-bottom: 30px; }
  .choice-grid, .review-grid, .detail-grid, .custom-assurances { grid-template-columns: 1fr; }
  .swatch-grid { grid-template-columns: 1fr 1fr; }
  .custom-summary > div { grid-template-columns: 100px 1fr; }
  .stories-hero { padding: 48px 0; }
  .stories-hero h1 { font-size: 51px; }
  .stories-hero figure { transform: none; }
  .story-entry { padding: 48px 0; }
  .home-story-teaser { padding: 60px 0 76px; }
  .home-story-images { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
