:root {
  --type: Arial, sans-serif;
  --display-size: clamp(2.2rem, 3.6vw, 3.35rem);
  --section-size: clamp(1.55rem, 2.3vw, 2.15rem);
  --card-size: clamp(1.15rem, 1.65vw, 1.4rem);
  --wrap-width: 1180px;
}

body { font: 1.0625rem/1.6 var(--type); }
.wrap { width: min(calc(100% - 72px), var(--wrap-width)); }
h1, h2, h3, .feature-content h3, .ingredient-card h3 {
  font: 700 var(--card-size)/1.23 var(--type);
  letter-spacing: -.025em;
}
h1, .hero h1, .page-intro h1 { font-size: var(--display-size); line-height: 1.1; }
h1 em { color: var(--wine); font-style: normal; font-weight: inherit; }
h2, .section-heading h2, .author h2, .explore-card h2, .match-form h2,
.match-result h2, .routine-intro h2, .support-note h2 { font-size: var(--section-size); }
.full-review h2, .feature-content h3, .ingredient-card h3 { font-size: var(--card-size); }
.feature-content p:not(.eyebrow), .page-intro > p:not(.eyebrow) { font-size: inherit; }
.eyebrow, .brand small { font-size: .8125rem; letter-spacing: .11em; }
.brand strong { font: 700 1.16rem/1.18 var(--type); letter-spacing: -.025em; }
.brand-avatar { width: 43px; height: 43px; flex: none; object-fit: cover; border-radius: 50%; }
.header-row { min-height: 76px; }

.hero { display: block; min-height: 0; max-width: none; border-bottom: 1px solid var(--line); background: transparent; }
.welcome { --welcome-gap: clamp(18px, 3vw, 40px); position: relative; display: grid; grid-template-columns: minmax(0, 170px) minmax(0, 650px); gap: var(--welcome-gap); align-items: center; justify-content: center; padding-block: clamp(20px, 2.7vw, 34px); }
.welcome.without-portrait { grid-template-columns: minmax(0, 700px); justify-content: start; }
.welcome-photo { margin: 0; padding: 4px; background: var(--white); box-shadow: 0 0 0 1px #e4d7cd, 0 3px 6px rgb(58 37 29 / .14), 0 10px 20px rgb(58 37 29 / .17); }
.welcome-portrait { width: 100%; height: auto; }
.welcome-copy h1 { margin-bottom: 11px; }
.hero .welcome-copy h1 { font-size: clamp(1.55rem, 2.6vw, 2.25rem); }
.welcome-copy p { max-width: 66ch; color: var(--quiet); line-height: 1.5; text-wrap: pretty; }
.welcome-copy p + p { margin-top: .55em; }
.welcome-copy .actions { margin-top: 12px; align-items: flex-start; justify-content: space-between; }
.page-intro { padding-block: 48px 28px; }
.ingredient-intro h1 { font-size: clamp(1.875rem, 3vw, 2.375rem); }
.botanical-background { position: relative; isolation: isolate; }
.botanical-background::before,
.botanical-background::after {
  content: '';
  position: absolute;
  inset-block: 0;
  width: clamp(138px, 23vw, 340px);
  z-index: -1;
  pointer-events: none;
  background: url('welcome-vine.webp') center top / 100% auto repeat-y;
  opacity: .13;
}
.botanical-background::before { right: 0; }
.botanical-background::after { left: 0; transform: scaleX(-1); }
.reviews-intro-copy { text-wrap: pretty; }

.product-media { margin: 0; background: var(--cream); }
.product-media-row { display: grid; grid-template-columns: 1fr; min-width: 0; aspect-ratio: 1.85; border-bottom: 1px solid var(--line); }
.product-media-row.has-texture { grid-template-columns: 1fr .72fr; }
.product-photo, .product-texture { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.product-photo { padding: 8px; background: var(--white); }
.product-texture { object-fit: cover; border-left: 1px solid var(--line); }
.product-media figcaption { padding: 9px 15px; color: var(--quiet); font-size: .85rem; line-height: 1.4; }
.feature-link:hover .product-media figcaption { color: var(--ink); }
.review-controls { min-height: 69px; }
.result-count { min-height: 2.6rem; }
.review-origin { font-size: .875rem; }
.review-experience { margin-block: 18px 6px; font-size: 1rem; }
.review-ingredients h3 { margin-bottom: 6px; font-size: .9rem; }
.review-ingredients ul { margin: 0; padding-inline-start: 1.1em; color: var(--quiet); }
.review-ingredients li + li { margin-top: 5px; }
.review-post { display: inline-block; margin-top: 15px; }
.review-compact { display: flex; flex-direction: column; min-width: 0; }
.reviews-grid .product-media-row { aspect-ratio: 6 / 5; }
.review-compact .full-review-body { display: flex; flex: 1; flex-direction: column; padding: 15px; line-height: 1.5; }
.review-compact .tags { margin-top: 10px; }
.review-compact .review-experience { margin-top: 12px; }
.review-compact .ingredient-note { margin-top: 10px; padding-top: 9px; }
.review-compact .review-post { align-self: flex-start; margin-top: auto; padding-top: 10px; }
.review-products summary { width: fit-content; color: var(--wine); font-weight: 700; cursor: pointer; }
.review-product-table { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: .875rem; line-height: 1.35; }
.review-product-table :is(th, td) { padding: 4px 8px 4px 0; vertical-align: top; text-align: start; }
.review-product-table th { color: var(--wine); }
.review-product-table tr > :last-child { padding-inline-end: 0; text-align: end; white-space: nowrap; }
.review-product-table tbody { border-top: 1px solid var(--line); }

.review-note-meta { display: grid; gap: 2px; margin: 0 0 8px; font-size: .875rem; line-height: 1.35; }
.review-note-meta > span:first-child { color: var(--wine); font-weight: 700; }
.review-compact .review-title { margin-block: 0 8px; font-size: var(--card-size); text-wrap: pretty; }

.reviews-page .reviews-heading {
  color: var(--wine);
  font: 700 clamp(1.9rem, 4vw, 2.75rem)/1.12 Georgia, serif;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.empties-section { padding-block: clamp(24px, 4vw, 43px) clamp(24px, 4vw, 40px); }
.empties-section .reviews-heading { margin-block: 6px 8px; }
.empties-intro { color: var(--quiet); }
.empties-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 148px;
  gap: 10px;
  margin: 8px -4px 0;
  padding: 4px 4px 10px;
  overflow-x: auto;
  scroll-padding-inline: 4px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.empties-card {
  scroll-snap-align: start;
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 3px 10px rgb(58 37 29 / .1);
}
.empties-photo {
  position: relative;
  padding: 28px 7px 5px;
  border-radius: 11px 11px 0 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.product-cutout-defs { position: absolute; }
.product-cutout { display: block; }
.empties-photo :is(img, .product-cutout) { width: min(100%, 104px); height: 58px; margin-inline: auto; object-fit: contain; }
.empties-badge {
  position: absolute;
  inset: 6px auto auto 7px;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--wine);
  color: #fff;
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1.35;
}
.empties-card-copy { padding: 8px 9px 10px; }
.empties-card-copy h2 { margin-bottom: 4px; font-size: .9375rem; }
.empties-card-copy p { color: var(--quiet); font-size: .875rem; line-height: 1.35; }
.empties-link { color: var(--ink); text-decoration: none; }
.empties-link:hover { text-decoration: underline; }
.empties-link::after { position: absolute; inset: 0; content: ""; }
.empties-card:focus-within { outline: 2px solid var(--wine); outline-offset: 3px; }

.reviews-page .review-controls { min-height: 0; border: 0; padding-block: 14px 6px; }
.reviews-page .filter-group { gap: 6px 8px; }
.reviews-page .filter { min-height: 40px; font-size: .9375rem; }
@media (max-width: 540px) {
  .reviews-page .filter-group { gap: 6px; }
  .reviews-page .filter { min-height: 38px; padding-inline: 10px; font-size: .875rem; }
}
.reviews-page .result-count { min-height: 0; padding-block: 5px 10px; }
.reviews-page #no-reviews { margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.review-previews {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2.5vw, 29px);
  max-width: 1020px;
  padding: clamp(17px, 3vw, 36px);
  border: 1px solid #d9c8b7;
  border-radius: 12px;
  background: radial-gradient(rgb(104 53 73 / .15) .65px, transparent 1px) 0 0 / 8px 8px, #eee1d2;
  box-shadow: inset 0 1px 5px rgb(58 37 29 / .1);
}
.review-previews:not(:has(> article:not([hidden]))) { display: none; }
.review-previews > .full-review {
  position: relative;
  padding: 23px 13px 13px;
  border: 1px solid #e8ccd3;
  border-radius: 4px;
  background: #f9e7e9;
  box-shadow: 0 4px 9px rgb(58 37 29 / .17);
  transform: rotate(-.7deg);
}
.review-previews > .full-review:nth-child(3n + 2) { background: #fff7df; border-color: #e7d8b7; transform: rotate(.7deg); }
.review-previews > .full-review:nth-child(3n) { background: #e9eee3; border-color: #ced8c7; transform: rotate(-.4deg); }
.review-previews > .full-review::before {
  position: absolute;
  inset-block-start: 6px;
  inset-inline-start: calc(50% - 6px);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #f8c0d5 0, #ba6685 30%, #903d60 58%, #642e46 85%);
  box-shadow: 1px 2px 3px rgb(58 37 29 / .42);
  pointer-events: none;
  content: '';
}
.review-previews .product-media { border: 1px solid rgb(112 72 75 / .18); border-radius: 3px; overflow: hidden; }
.review-previews .product-media-row { height: clamp(115px, 13vw, 158px); aspect-ratio: auto; border: 0; }
.review-previews .full-review-body { padding: 11px 2px 0; }
.review-previews .review-title { margin: 0 0 7px; font-size: clamp(1rem, 1.55vw, 1.25rem); line-height: 1.21; text-wrap: pretty; }
.review-previews .full-review-body > :not(.review-title, .review-note-meta, .review-read-more) { display: none; }
.review-read-more { align-self: flex-start; margin-top: auto; padding-top: 4px; }
.review-read-more::after { position: absolute; inset: 0; content: ''; }
.review-previews > .full-review:hover, .review-previews > .full-review:focus-within { border-color: var(--wine); }
.review-previews > .full-review:focus-within { outline: 2px solid var(--wine); outline-offset: 3px; }

@media (min-width: 1100px) {
  .review-previews {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: none;
  }
}

@media (max-width: 850px) {
  .review-previews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 540px) {
  .review-previews { grid-template-columns: minmax(0, 1fr); padding: 12px; gap: 12px; }
  .review-previews > .full-review {
    display: grid;
    grid-template-columns: minmax(66px, 29%) minmax(0, 1fr);
    align-items: start;
    gap: 11px;
    padding: 23px 10px 10px;
    transform: none;
  }
  .review-previews > .full-review:nth-child(n) { transform: none; }
  .review-previews .product-media-row { height: clamp(76px, 23vw, 110px); }
  .review-previews .product-photo { padding: 4px; }
  .review-previews .full-review-body { padding: 0; }
  .review-previews .review-read-more { font-size: .875rem; }
}

@media (min-width: 1000px) {
  .welcome { grid-template-columns: 176px minmax(0, 650px); }
  .welcome-copy .actions { margin-top: 16px; }
}

@media (max-width: 735px) {
  .wrap { width: calc(100% - 36px); }
  .header-row { min-height: 0; }
  .welcome { grid-template-columns: minmax(110px, 25%) minmax(0, 1fr); }
  .page-intro { padding-block: 34px 24px; }
}

@media (max-width: 540px) {
  .botanical-background::before, .botanical-background::after { opacity: .10; }
  .welcome, .welcome.without-portrait { grid-template-columns: 1fr; }
  .welcome { --welcome-gap: 14px; }
  .welcome-photo { width: clamp(112px, 32vw, 132px); margin-inline: auto; }
  .brand strong { font-size: 1.05rem; }
  .brand-avatar { width: 36px; height: 36px; }
}

.feedback-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 3vw, 24px);
  width: min(100%, 550px);
  padding: clamp(15px, 3vw, 27px);
  border: 1px solid #d9c8b7;
  border-radius: 8px;
  background: radial-gradient(rgb(104 53 73 / .14) .6px, transparent .85px) 0 0 / 7px 7px, #eee1d2;
  box-shadow: inset 0 1px 4px rgb(58 37 29 / .09);
}
.feedback-note {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 25px clamp(10px, 2vw, 17px) 13px;
  color: var(--ink);
  background: #fff7df;
  border: 1px solid #e7d8b7;
  box-shadow: 0 3px 7px rgb(58 37 29 / .16);
  text-decoration: none;
  transform: rotate(-1.4deg);
}
.feedback-note:nth-child(2) { background: #f9e7e9; border-color: #e8ccd3; transform: rotate(1.4deg); }
.feedback-note::before {
  position: absolute;
  top: 7px;
  left: calc(50% - 5px);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #f3afd2, #a54566 52%, #642e46);
  box-shadow: 1px 2px 3px rgb(58 37 29 / .34);
  content: '';
}
.feedback-note:hover { color: var(--ink); transform: translateY(-2px); }
.feedback-note:hover .text-link { text-decoration-thickness: 2px; }
.feedback-note-name { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; line-height: 1.15; }
.feedback-note-logo { flex: none; width: 28px; height: 28px; border-radius: 50%; }
.feedback-note q { margin: 3px 0 9px; color: var(--quiet); font-size: .95rem; line-height: 1.3; }
.feedback-note-footer { display: flex; align-items: center; justify-content: space-between; gap: 7px; width: 100%; margin-top: auto; }
.feedback-note .text-link { font-size: .825rem; line-height: 1.2; }
.feedback-note-preview { flex: none; width: clamp(28px, calc(20vw - 30px), 52px); height: auto; border: 1px solid var(--line); border-radius: 3px; box-shadow: 0 1px 3px rgb(58 37 29 / .14); }

.feedback-dialog {
  width: min(760px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--white);
  overflow: hidden;
}
.feedback-dialog[open] { display: flex; flex-direction: column; }
.feedback-dialog::backdrop { background: rgb(45 36 38 / .65); }
.feedback-dialog-header, .feedback-dialog-actions { display: flex; align-items: center; gap: 8px; }
.feedback-dialog-header {
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}
.feedback-dialog-button {
  min-height: 44px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--wine);
  background: var(--white);
  font-size: .875rem;
  font-weight: 700;
}
.feedback-dialog-button:hover { background: var(--cream); }
.feedback-view { min-height: 0; overflow: auto; overscroll-behavior: contain; background: var(--cream); }
.feedback-view:focus-visible { outline-offset: -3px; }
.feedback-view img { width: 100%; height: auto; }
.feedback-view.is-zoomed img { width: 200%; max-width: none; }

:where(.reviews-page) .site-dialog {
  width: min(760px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--white);
  overflow: hidden;
}
:where(.reviews-page) .site-dialog[open] { display: flex; flex-direction: column; }
:where(.reviews-page) .site-dialog::backdrop { background: rgb(45 36 38 / .65); }
:where(.reviews-page) .site-dialog-header { display: flex; align-items: center; gap: 8px; }
:where(.reviews-page) .site-dialog-header {
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}
:where(.reviews-page) .site-dialog-button {
  min-height: 44px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--wine);
  background: var(--white);
  font-size: .875rem;
  font-weight: 700;
}
:where(.reviews-page) .site-dialog-button:hover { background: var(--cream); }
:where(.reviews-page) .site-dialog-content { min-height: 0; overflow: auto; overscroll-behavior: contain; }
:where(.reviews-page) .site-dialog-content:focus-visible { outline-offset: -3px; }
.review-dialog {
  container-type: inline-size;
  width: min(528px, calc(100% - 40px));
  max-height: min(79.2vh, 45.6rem);
  max-height: min(79.2dvh, 45.6rem);
}
.review-dialog .site-dialog-header { flex-wrap: nowrap; }
.review-dialog h2 { font-size: clamp(1.05rem, 3vw, 1.45rem); }
.review-dialog .product-media-row { aspect-ratio: auto; }
.review-dialog .product-photo {
  justify-self: center;
  max-width: 438px;
  /* Keep the former 440px dialog photo area, minus the dialog borders. */
  max-width: calc(100% - max(0px, 100cqi - 438px));
  height: auto;
  max-height: min(35.65vh, 17.825rem);
  max-height: min(35.65dvh, 17.825rem);
}

.work-with-me { padding-block: clamp(30px, 5vw, 56px) 22px; }
.work-with-me > p:last-child { max-width: 53ch; }
.collab-inquiries {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(20px, 4vw, 42px);
  margin-bottom: clamp(32px, 6vw, 60px);
}
.collab-inquiries h2, .past-collabs-title {
  margin-bottom: 12px;
  color: var(--wine);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}
.collab-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.collab-options article, .collab-brief-panel {
  min-width: 0;
  padding: clamp(13px, 2.7vw, 22px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}
.collab-options article { border-top: 3px solid #b98c9d; }
.collab-options h3 { margin-bottom: 5px; font-size: 1.05rem; }
.collab-options p, .brief-help { color: var(--quiet); font-size: .9375rem; line-height: 1.5; }
.collab-brief-panel { background: var(--cream); }
.collab-brief { display: grid; gap: 7px; }
.collab-brief label { font-size: .9375rem; font-weight: 700; }
.collab-brief :is(input, select, textarea) {
  width: 100%;
  min-height: 44px;
  margin: 0 0 7px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background-color: var(--white);
  font: inherit;
}
.collab-brief select { padding-right: 31px; }
.collab-brief textarea { resize: vertical; }
.collab-brief button { justify-self: stretch; }
.brief-status { color: var(--wine); font-size: .9375rem; }
.brief-status:empty { display: none; }
.brief-manual textarea { margin-block: 5px 0; }
.welcome-copy .actions.about-contact { justify-content: flex-start; align-items: center; }
@media (max-width: 780px) {
  .collab-inquiries { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 460px) {
  .collab-options { grid-template-columns: minmax(0, 1fr); }
}

.contact-email { overflow-wrap: anywhere; }

.contact-intro { flex: 0 0 100%; margin: 0; }
.collab-contact .contact-intro { text-align: center; }
