:root {
  color-scheme: light;
  --ink: #292034;
  --muted: #5e536b;
  --plum: #4e3269;
  --paper: #fffdfa;
  --lilac: #eee6f8;
  --green: #e5f0e6;
  --blue: #e6f0f9;
  --line: #e8dfea;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Trebuchet MS', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--sans); }
img { width: 100%; display: block; }
button, select, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #76569f; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.07; }
h2 { font-size: clamp(2rem, 4vw, 3.05rem); letter-spacing: -.042em; }
h3 { font-size: 1.25rem; }
p { color: var(--muted); }
section[id] { scroll-margin-top: 1.5rem; }
.wrap { width: min(100% - 5rem, 73rem); margin-inline: auto; }
.skip { position: fixed; top: 1rem; left: 1rem; z-index: 3; padding: .7rem 1rem; background: white; transform: translateY(-200%); }
.skip:focus { transform: translateY(0); }
.header { border-bottom: 1px solid var(--line); }
.header-in { min-height: 4.8rem; display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; }
.brand { display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; text-decoration: none; font-family: var(--serif); font-size: 1.32rem; }
.brand i { font-size: .88em; }
.brand-mark { color: var(--plum); font-size: 1.45rem; }
nav, .header-actions { display: flex; align-items: center; gap: clamp(.8rem, 2vw, 1.7rem); }
nav a, .talk, .footer > a:last-child { text-decoration: none; font-weight: 700; font-size: .9rem; white-space: nowrap; }
nav a:hover, .talk:hover, .footer a:hover { color: #76569f; text-decoration: underline; text-underline-offset: .3em; }
.request-button, .product-body button, .filters button, .request-close {
  border: 1px solid #c7b7d5; background: transparent; border-radius: 99rem; padding: .49rem .8rem; font-weight: 700;
}
.request-button { white-space: nowrap; }
#request-count { display: inline-grid; min-width: 1.4rem; min-height: 1.4rem; place-items: center; background: var(--lilac); border-radius: 50%; margin-left: .2rem; font-size: .875rem; }
.hero { display: grid; grid-template-columns: 1fr 1.06fr; align-items: center; gap: clamp(2rem, 5.5vw, 5.2rem); padding-block: clamp(2.6rem, 5.2vw, 4.5rem); }
.hero-copy h1 { font-size: clamp(3.75rem, 7.1vw, 6.6rem); letter-spacing: -.075em; line-height: .92; margin: .9rem 0 1.25rem; }
.hero-copy h1 em { font-weight: 400; color: var(--plum); }
.eyebrow { color: var(--plum); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; }
.hero-copy > p:last-of-type { max-width: 26rem; font-size: clamp(1.05rem, 1.7vw, 1.22rem); }
.hero-art { position: relative; }
.hero-art img { aspect-ratio: 1.27; object-fit: cover; border-radius: 44% 44% 1rem 1rem / 32% 32% 1rem 1rem; }
.star { position: absolute; color: var(--plum); line-height: 1; text-shadow: 0 0 .35rem var(--paper); }
.star-top { top: 8%; right: 8%; font-size: clamp(2rem, 6vw, 3.9rem); }
.star-bottom { bottom: 3%; left: -1rem; font-size: 2.7rem; }
.button-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.65rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.85rem; padding: .62rem 1rem; border-radius: 99rem; border: 1px solid var(--plum); text-decoration: none; font-weight: 700; font-size: .95rem; text-align: center; }
.primary { background: var(--plum); color: white; }
.primary:hover { background: #38234b; }
.outline { color: var(--plum); background: var(--paper); }
.outline:hover, .product-body button:hover, .request-button:hover, .request-close:hover { background: var(--lilac); }
.collection { padding-block: .6rem clamp(3rem, 7vw, 5rem); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: .9rem; margin-bottom: 1.35rem; }
.filters { display: flex; gap: .4rem; }
.filters button { padding-inline: .85rem; }
.filters button[aria-pressed="true"] { background: var(--lilac); border-color: #9f8aaf; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.product { border: 1px solid var(--line); border-radius: 1rem; overflow: hidden; }
.product img { aspect-ratio: 1.42; object-fit: cover; }
.product img.boxed-soap-photo { object-position: center top; }
.product-body { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: 1rem; }
.product-body h3 { font-size: clamp(1rem, 1.8vw, 1.4rem); }
.product-body p { margin-top: .35rem; }
.product-body button { flex: none; font-size: .875rem; }
.custom { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 6vw, 5rem); align-items: center; background: var(--green); border-radius: 1.45rem; padding: clamp(1.4rem, 4.5vw, 3.2rem); }
.custom p, .story p, .calendar p, .newsletter p { margin-top: .65rem; }
label { display: block; font-size: .875rem; font-weight: 700; }
select, input, textarea { width: 100%; padding: .7rem .8rem; border: 1px solid #ad9fba; border-radius: .45rem; background: var(--paper); min-width: 0; }
select, .stack-form input, textarea { display: block; margin-top: .28rem; }
textarea { resize: vertical; }
.stack-form { display: grid; gap: .8rem; }
.stack-form .button { justify-self: start; }
.stack-form p { margin-top: 0; }
.optional { font-weight: 400; color: var(--muted); }
#soap-colors { min-width: 0; margin: 0; padding: 0; border: 0; }
#soap-colors legend { margin-bottom: .45rem; font-size: .875rem; font-weight: 700; }
.color-palette { display: grid; grid-template-columns: repeat(auto-fit, minmax(6rem, 1fr)); gap: .45rem; }
.color-choice {
  display: flex;
  align-items: center;
  gap: .4rem;
  min-height: 2.65rem;
  border: 1px solid #ad9fba;
  border-radius: .55rem;
  padding: .45rem;
  background: var(--paper);
  cursor: pointer;
}
.color-choice:has(input:checked) { border-color: var(--plum); background: var(--lilac); }
.color-choice:has(input:disabled) { opacity: .55; cursor: default; }
.color-choice input[type="checkbox"] {
  accent-color: var(--plum);
  margin: 0;
  padding: 0;
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}
.color-swatch { width: .82rem; height: .82rem; border-radius: 50%; border: 1px solid #67586f; flex: 0 0 auto; }
.color-swatch[data-color="Red"] { background: #e65d65; }
.color-swatch[data-color="Orange"] { background: #f29852; }
.color-swatch[data-color="Yellow"] { background: #f5d35f; }
.color-swatch[data-color="Green"] { background: #62b477; }
.color-swatch[data-color="Blue"] { background: #69a1db; }
.color-swatch[data-color="Purple"] { background: #aa83d3; }
.color-swatch[data-color="White"] { background: #fff; }
#soap-color-hint { margin-top: .45rem; }
.contact { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(1.2rem, 6vw, 5rem); padding-block: 0 clamp(2.5rem, 6vw, 4.5rem); }
.contact > div p { margin-top: .65rem; }
.form-note { font-size: .875rem; }
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 6vw, 5rem); align-items: center; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.giving { display: flex; gap: .9rem; align-items: center; padding: 1.35rem; background: var(--lilac); border-radius: 1rem; }
.heart { color: var(--plum); font-size: 3rem; line-height: 1; }
.calendar { border-top: 1px solid var(--line); padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.calendar > div { background: var(--blue); border-radius: 1rem; padding: clamp(1.25rem, 4vw, 2.5rem); }
.calendar p { color: var(--plum); font-weight: 700; }
#no-products { margin-top: 1rem; }
.newsletter-result { color: var(--plum); font-weight: 700; }
.newsletter-result:empty { display: none; }
button:disabled { cursor: wait; opacity: .75; }
.newsletter { background: var(--lilac); padding-block: 2.5rem; }
.newsletter-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: center; }
.signup-row { display: flex; gap: .5rem; margin-top: .3rem; }
.signup-row .button { flex: none; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding-block: 1.5rem; }
dialog { width: min(calc(100% - 1.6rem), 31rem); max-height: calc(100% - 2rem); border: 1px solid #c7b7d5; border-radius: 1rem; background: var(--paper); color: var(--ink); padding: clamp(1rem, 4vw, 1.8rem); box-shadow: 0 1rem 3rem #29203433; }
dialog::backdrop { background: #24183167; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
#request-items { list-style: none; padding: 0; margin: 1rem 0; }
#request-items li { display: flex; justify-content: space-between; align-items: center; gap: .7rem; border-bottom: 1px solid var(--line); padding-block: .62rem; }
#request-items button { border: 1px solid #c7b7d5; border-radius: 99rem; background: var(--lilac); padding: .3rem .65rem; }
.request-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .7rem; }
.request-actions[hidden], .request-actions [hidden] { display: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 920px) {
  .wrap { width: min(100% - 3rem, 73rem); }
  .header-in { flex-wrap: wrap; padding-top: .75rem; gap: .5rem 1rem; }
  .header nav { order: 3; flex-basis: 100%; justify-content: space-between; overflow-x: auto; padding: .3rem .12rem .72rem; }
  .product-body { flex-wrap: wrap; }
}
@media (max-width: 660px) {
  .wrap { width: min(100% - 1.7rem, 73rem); }
  .header-in { min-height: auto; }
  .header-actions { gap: .45rem; }
  .header-actions .talk, nav a { font-size: .8rem; }
  .header-in .brand { font-size: 1.05rem; }
  .header-in .brand-mark { font-size: 1.1rem; }
  .header nav { gap: .75rem; }
  .request-button { padding-inline: .55rem; font-size: .8rem; }
  .hero, .custom, .story, .contact, .newsletter-inner { grid-template-columns: 1fr; }
  .hero { gap: 1.5rem; padding-block: 2rem; }
  .star-bottom { left: -.45rem; }
  .section-head { align-items: start; flex-direction: column; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .product-body { padding: .7rem; }
  .story { gap: 1.05rem; }
}
@media (max-width: 350px) {
  .hero-copy h1 { font-size: 3.1rem; }
  .signup-row { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.inbox { max-width: 48rem; padding-block: 2rem; }
.inbox h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); margin-block: 1rem; }
.inbox h2 { font-size: 1.45rem; }
.inbox article { padding: 1.2rem 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.inbox article p { margin-top: .4rem; }
.inbox-message { white-space: pre-wrap; }
