:root {
  color-scheme: light;
  --paper: #faf7f1;
  --cream: #f7efe6;
  --white: #fffcf8;
  --pink: #f2dfdd;
  --green: #e5eadc;
  --ink: #2d2426;
  --quiet: #5d5252;
  --wine: #683549;
  --line: #dfd2c9;
  --type: Arial, sans-serif;
  --serif: var(--type);
  --sans: var(--type);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--sans); }
img { display: block; max-width: 100%; }
a { color: var(--wine); text-underline-offset: .22em; }
a:hover { color: #432030; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #864764; outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.15; }
h1, h2, .feature-content h3 { font-family: var(--serif); font-weight: 500; }
h1 { letter-spacing: -.058em; }
h2 { letter-spacing: -.04em; }
h1 em { color: var(--wine); font-weight: 500; }
.wrap { width: min(100% - 112px, 1280px); margin-inline: auto; }
.eyebrow { color: var(--wine); font-size: .775rem; line-height: 1.35; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.symbol { display: inline-block; font-family: Georgia, serif; color: var(--wine); line-height: 1; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: 12px; left: 12px; z-index: 5; padding: 8px 16px; background: var(--white); }

.site-header { border-bottom: 1px solid #e9dcd3; }
.header-row { display: grid; grid-template-columns: 1fr auto 1fr; min-height: 82px; align-items: center; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); justify-self: start; white-space: nowrap; }
.brand strong, .brand small { display: block; }
.brand strong { font: 600 1.26rem/1.12 var(--serif); letter-spacing: -.036em; }
.brand small { margin-top: 4px; font-weight: 700; font-size: .65rem; line-height: 1; letter-spacing: .23em; color: var(--wine); }
nav { display: flex; gap: clamp(16px, 3vw, 42px); align-items: center; justify-content: center; }
nav a { font-size: .9rem; line-height: 1.2; font-weight: 600; text-decoration: none; color: var(--quiet); white-space: nowrap; padding-block: 6px; border-bottom: 1px solid transparent; }
nav a:hover, nav a[aria-current] { color: var(--wine); border-color: var(--wine); }
.button { display: inline-flex; align-items: center; justify-content: center; width: fit-content; min-height: 45px; padding: 9px 19px; border: 1px solid #a76f84; border-radius: 5px; background: transparent; color: var(--wine); font-size: .91rem; line-height: 1.3; font-weight: 700; text-align: center; text-decoration: none; }
.button:hover { background: #f2e1e5; }
.button-dark { background: var(--wine); border-color: var(--wine); color: #fffaf9; }
.button-dark:hover { background: #50243a; border-color: #50243a; color: #fffaf9; }
.instagram-button { justify-self: end; gap: 9px; min-height: 39px; padding-inline: 13px; }
.insta-icon { display: inline-block; width: 15px; height: 15px; border: 1.5px solid currentColor; border-radius: 4px; position: relative; }
.insta-icon::before { content: ''; position: absolute; inset: 3px; border: 1.4px solid currentColor; border-radius: 50%; }
.insta-icon::after { content: ''; position: absolute; width: 2px; height: 2px; right: 1.5px; top: 1.5px; border-radius: 50%; background: currentColor; }

.hero { display: grid; grid-template-columns: 1fr 1fr; margin-inline: auto; min-height: min(550px, 50vw); background: var(--cream); }
.hero-copy { display: grid; align-items: center; }
.hero-inner { max-width: 730px; width: 100%; justify-self: end; padding: 51px clamp(26px, 4vw, 76px) 54px max(56px, calc((100vw - 1280px) / 2)); }
.hero-eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.hero-eyebrow .symbol { font-size: 1rem; }
.hero h1 { font-size: clamp(3.4rem, 5.6vw, 6rem); line-height: 1.05; }
.hero-description { color: var(--quiet); max-width: 420px; margin: 24px 0 29px; font-size: 1.035rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-visual { position: relative; background: #e7c2ba; min-height: 100%; overflow: hidden; }
.hero-visual img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; }

.featured { margin-top: 56px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px 28px; margin-bottom: 24px; }
.section-heading h2, .author h2 { font-size: clamp(2rem, 4vw, 3.3rem); margin-top: 7px; }
.text-link { color: var(--wine); font-weight: 700; font-size: .92rem; text-decoration: underline; text-underline-offset: .28em; }
.section-heading > .text-link { margin-bottom: 4px; white-space: nowrap; }
#collaboration-feedback { scroll-margin-top: 16px; }
.feature-grid, .ingredients-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-review, .full-review { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--white); }
.feature-link { display: block; height: 100%; color: var(--ink); text-decoration: none; }
.feature-link:hover { color: var(--ink); }
.feature-link:hover .text-link { color: #422031; text-decoration-thickness: 2px; }
.feature-link:focus-visible { outline-offset: -4px; }
.texture { background-size: cover; background-position: center; aspect-ratio: 2.06; }
.texture-cream { background-color: #ead0bf; background-image: url('texture-cream.webp'); }
.texture-cleanser { background-color: #d8dfcc; background-image: url('texture-cleanser.webp'); }
.texture-balm { background-color: #e6bfc8; background-image: url('texture-balm.webp'); }
.feature-content { padding: 17px 20px 20px; }
.feature-content h3 { margin-top: 6px; font-size: clamp(1.25rem, 2vw, 1.68rem); letter-spacing: -.025em; }
.feature-content p:not(.eyebrow) { margin-top: 8px; color: var(--quiet); font-size: .95rem; }
.feature-content .text-link { display: inline-block; margin-top: 12px; }

.explore { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 52px; }
.explore-card { padding: clamp(22px, 4vw, 48px); border-radius: 8px; display: flex; align-items: start; flex-direction: column; }
.explore-card.green { background: var(--green); }
.explore-card.pink { background: var(--pink); }
.explore-card .symbol { font-size: 1.7rem; margin-bottom: 14px; }
.explore-card h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); }
.explore-card p { margin: 11px 0 20px; max-width: 450px; color: var(--quiet); }
.explore-card .button { margin-top: auto; }
.author { display: grid; grid-template-columns: 100px minmax(0, 590px); gap: 27px; align-items: center; justify-content: center; margin-block: 68px 78px; }
.author-icon { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; position: relative; background: var(--pink); color: var(--wine); font: italic 3rem/1 var(--serif); }
.author-icon span { position: absolute; top: 20%; right: 17%; font: 1rem/1 Georgia, serif; }
.author p { margin-block: 11px 12px; color: var(--quiet); }

.beauty-profile-section { margin-block: clamp(38px, 6vw, 70px); }
.beauty-profile {
  --profile-inset: clamp(16px, 4vw, 34px);
  --profile-label-width: clamp(9.75rem, 20vw, 12rem);
  --profile-gap: clamp(10px, 2vw, 20px);
  max-width: 740px;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}
.beauty-profile-header {
  display: grid;
  gap: 9px;
  padding: clamp(18px, 4vw, 34px);
  border-radius: 11px 11px 0 0;
  background: linear-gradient(135deg, var(--pink), var(--cream));
}
.beauty-profile-header > p:last-child { color: var(--quiet); }
.profile-detail { border-top: 1px solid var(--line); }
.profile-detail > summary {
  display: grid;
  grid-template-columns: var(--profile-label-width) minmax(0, 1fr) 10px;
  grid-template-areas: "topic tags chevron";
  align-items: start;
  gap: 8px var(--profile-gap);
  padding: 14px var(--profile-inset);
  cursor: pointer;
  list-style: none;
}
.profile-detail > summary::-webkit-details-marker { display: none; }
.profile-detail > summary:hover, .profile-detail[open] { background: var(--cream); }
.profile-detail > summary:focus-visible { outline-offset: -3px; }
.profile-detail:last-child, .profile-detail:last-child > summary { border-radius: 0 0 11px 11px; }
.profile-detail > summary::after {
  content: "";
  grid-area: chevron;
  justify-self: center;
  width: 8px;
  height: 8px;
  margin-top: 10px;
  border: solid var(--wine);
  border-width: 0 2px 2px 0;
  transform: translateY(-2px) rotate(45deg);
}
.profile-detail[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.profile-topic { grid-area: topic; padding-block: 4px; line-height: 1.35; }
.profile-tags { grid-area: tags; display: flex; flex-wrap: wrap; gap: 6px; }
.profile-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: #efe4d8;
  color: var(--wine);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.35;
}
.profile-detail-body {
  display: grid;
  gap: 8px;
  padding: 0 var(--profile-inset) 16px;
  padding-inline-start: calc(var(--profile-inset) + var(--profile-label-width) + var(--profile-gap));
  color: var(--quiet);
  font-size: 1rem;
}
.profile-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
@media (max-width: 540px) {
  .profile-detail > summary {
    grid-template-columns: minmax(0, 1fr) 10px;
    grid-template-areas: "topic chevron" "tags tags";
  }
  .profile-detail-body { padding-inline-start: var(--profile-inset); }
}

.site-footer { border-top: 1px solid var(--line); background: var(--cream); padding-block: 25px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer-link { font-weight: 700; }

.page-intro { padding-block: 62px 35px; }
.page-intro h1 { font-size: clamp(3.4rem, 7vw, 6.45rem); line-height: 1.04; margin-block: 10px 17px; }
.page-intro > p:not(.eyebrow) { max-width: 610px; color: var(--quiet); font-size: 1.08rem; }
.review-section { padding-bottom: 64px; }
.review-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 13px; border-block: 1px solid var(--line); padding: 14px 0; }
.filter-group { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.filter { border: 1px solid #c8aaa8; padding: 6px 13px; color: var(--wine); border-radius: 100px; background: var(--white); font-weight: 600; font-size: .875rem; }
.filter[aria-pressed="true"] { background: var(--wine); color: var(--white); border-color: var(--wine); }
.filter[aria-pressed="false"]:hover { background: var(--pink); }
.search input, select { width: 100%; background-color: var(--white); border: 1px solid #aa918b; color: var(--ink); border-radius: 5px; padding: 10px 12px; }
.search { width: min(100%, 315px); }
.result-count { min-height: 2.4rem; padding-block: 9px; font-size: .875rem; color: var(--quiet); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
:is(.feature-grid, .reviews-grid):has(> article:only-child) { grid-template-columns: minmax(0, 29rem); }
.full-review { scroll-margin: 22px; }
.full-review:target { border-color: var(--wine); box-shadow: 0 0 0 2px var(--wine); }
.full-review-body { padding: 22px; }
.full-review h2 { font-size: clamp(1.35rem, 2.3vw, 1.92rem); margin-block: 6px 12px; }
.full-review-body > p:not(.eyebrow) { color: var(--quiet); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 15px 0 0; list-style: none; }
.tags li { background: #f2e9e2; padding: 3px 8px; border-radius: 4px; font-size: .8125rem; color: #66434e; }
.ingredient-note { border-top: 1px solid var(--line); padding-top: 13px; margin-top: 15px; font-size: .9rem; }
.ingredient-note strong { display: block; color: var(--ink); }
#no-reviews { margin-block: 13px 20px; }

.wrap.ingredient-intro, .wrap.match-layout { width: min(calc(100% - 72px), 920px); }
.wrap.match-layout { display: grid; gap: 18px; }
.match-form, .match-result { padding: clamp(20px, 4vw, 38px); border: 1px solid var(--line); border-radius: 8px; }
.match-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; gap: 12px 18px; align-items: end; padding: clamp(18px, 3vw, 26px); background: var(--white); }
.match-form h2, .match-result h2 { font-size: clamp(1.7rem, 3.2vw, 2.75rem); }
.match-form h2, .match-form noscript { grid-column: 1 / -1; }
.match-form label { display: block; margin-bottom: 4px; font-weight: 700; font-size: .9rem; }
select { appearance: none; padding-right: 38px; background-image: linear-gradient(45deg, transparent 50%, var(--wine) 50%), linear-gradient(135deg, var(--wine) 50%, transparent 50%); background-position: calc(100% - 18px) 53%, calc(100% - 13px) 53%; background-size: 5px 5px; background-repeat: no-repeat; }
.match-form .button { min-height: 44px; }
.match-result { background: #f5e6e8; border-color: #e4cdd2; }
.match-result[data-tone="together"] { background: var(--green); border-color: #ccd4bc; }
.match-result[data-tone="separate"] { background: var(--pink); border-color: #e0c5cb; }
.match-result h2 { margin-block: 6px 9px; }
.match-result .pair-status { display: inline-block; margin: 0 0 8px; padding: 6px 12px; border-radius: 5px; background: var(--white); color: var(--wine); font-size: clamp(1.15rem, 2.1vw, 1.5rem); }
.pair-names { font-weight: 700; text-wrap: pretty; }
.pair-guidance { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 12px 20px; margin: 15px 0 0; padding-top: 13px; border-top: 1px solid var(--line); }
.pair-guidance dt { font-weight: 700; }
.pair-timing-icons { white-space: nowrap; }
.pair-guidance dd { margin: 3px 0 0; }
.pair-product-example { grid-column: 1 / -1; }
.pair-skin-note { grid-column: 1 / -1; }
.pair-products:empty { display: none; }
.pair-products { margin-top: 19px; }
.pair-products h3 { font-size: .96rem; margin-bottom: 7px; }
.product-links { padding: 0; margin: 0; list-style: none; }
.product-links li { margin-bottom: 7px; }
.product-links a { font-weight: 600; }
.product-links small { display: block; color: var(--quiet); }
.pair-sources { margin-top: 16px; font-size: .875rem; }
.pair-sources summary { width: fit-content; cursor: pointer; font-weight: 600; }
.pair-sources ul { padding-left: 22px; margin: 6px 0 0; }
.pair-source-note { color: var(--quiet); margin-block: 3px 7px; }
.ingredient-directory { margin-top: 54px; }
.ingredient-directory .section-heading { margin-bottom: 7px; }
.directory-note { color: var(--quiet); margin-bottom: 19px; }
.ingredient-card { padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 7px; }
.ingredient-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 82px; margin-bottom: 10px; }
.ingredient-card h3 { font: 500 1.48rem/1.15 var(--serif); margin-block: 7px 8px; }
.ingredient-qualifier { display: block; margin-top: .2em; color: var(--quiet); font-size: .8em; font-weight: 600; }
.ingredient-timing { margin-bottom: 8px; color: var(--wine); font-size: .875rem; font-weight: 600; }
.ingredient-sticker { flex: 0 0 clamp(64px, 7vw, 88px); aspect-ratio: 1; border-radius: 12px; background: url("ingredient-stickers.webp") var(--sticker-x) var(--sticker-y) / 400% 400% no-repeat; }
.ingredient-purpose { margin-bottom: 8px; }
.ingredient-purpose strong { display: block; color: var(--wine); font-size: .88rem; }
.ingredient-card .product-links { margin-top: 13px; font-size: .94rem; }
.ingredient-sources { margin-top: 13px; font-size: .84rem; }
@media (541px <= width <= 600px) {
  .ingredient-card { padding: 16px; }
  .ingredient-card-heading { gap: 8px; }
  .ingredient-sticker { flex-basis: 48px; }
}
.support-note { background: var(--cream); border: 1px solid var(--line); border-radius: 8px; padding: 24px; margin-block: 35px 58px; }
.support-note h2 { font-size: 1.6rem; margin-bottom: 6px; }
.support-note p + p, .support-note .button { margin-top: 11px; }

.routines-page > .wrap { width: min(calc(100% - 36px), 820px); }
.routines-page .page-intro { padding-block: clamp(24px, 5vw, 46px) 22px; }
.routines-page .page-intro h1 { margin-block: 7px 12px; color: var(--wine); letter-spacing: -.04em; }
.routines-page .page-intro > p:last-child { max-width: 64ch; }
.routine-list { display: grid; gap: 16px; }
.routine-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}
.routine-tabs a {
  display: grid;
  min-height: 44px;
  place-items: center;
  padding: 7px 4px;
  margin-bottom: -1px;
  border-bottom: 3px solid transparent;
  color: var(--quiet);
  font-size: clamp(.875rem, 2vw, 1.05rem);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.routine-tabs a:hover, .routine-tabs [aria-selected="true"] { color: var(--wine); }
.routine-tabs [aria-selected="true"] { border-bottom-color: var(--wine); }
.routine-tabs a:focus-visible { outline-offset: -4px; }
.routine {
  --routine-tint: #ead6bd;
  scroll-margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 5px 14px rgb(58 37 29 / .08);
}
.routine.evening { --routine-tint: var(--pink); }
.routine.simple { --routine-tint: var(--green); }
.routine-intro {
  padding: clamp(14px, 3vw, 25px) clamp(14px, 4vw, 28px);
  border-radius: 11px 11px 0 0;
  background: var(--routine-tint);
}
.routines-page .routine-intro h2 { margin: 0 0 5px; color: var(--wine); font-size: clamp(1.25rem, 3vw, 1.9rem); }
.routine-intro .symbol { margin-inline-end: .28em; font-size: 1em; }
.routine-intro p, .steps p { color: var(--quiet); line-height: 1.5; }
.steps { padding: 0; margin: 0; list-style: none; counter-reset: routine; }
.steps li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: clamp(12px, 2.5vw, 20px) clamp(14px, 4vw, 28px);
  counter-increment: routine;
}
.steps li + li { border-top: 1px solid var(--line); }
.steps .step-number {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--routine-tint);
  color: var(--wine);
  font-size: .9375rem;
  font-weight: 700;
}
.steps .step-number::before { content: counter(routine); }
.steps h3 { margin: 1px 0 3px; font-size: clamp(1.0625rem, 2vw, 1.2rem); }
.routines-page .support-note { margin-block: clamp(22px, 4vw, 35px) clamp(36px, 6vw, 58px); }

@media (min-width: 1480px) {
  .hero { max-width: 1560px; }
  .hero-inner { padding-left: max(56px, calc((min(100vw, 1560px) - 1180px) / 2)); }
}
@media (max-width: 980px) {
  .wrap { width: calc(100% - 64px); }
  .hero { min-height: 430px; }
  .hero-inner { padding-inline: 32px 20px; }
  .hero h1 { font-size: clamp(2.6rem, 6vw, 4.3rem); }
  .hero-break { display: none; }
  .reviews-grid, .ingredients-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .header-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; min-height: auto; padding-top: 13px; }
  .header-row nav { grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; justify-content: space-between; padding-bottom: 4px; gap: 0 8px; }
  .header-row nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .83rem; }
}
@media (max-width: 735px) {
  .wrap.ingredient-intro, .wrap.match-layout { width: calc(100% - 36px); }
  .match-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wrap { width: calc(100% - 36px); }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-inner { justify-self: start; padding: 33px 18px; }
  .hero h1 { font-size: clamp(3.22rem, 10.4vw, 4.5rem); }
  .hero-description { margin-block: 15px 20px; }
  .hero-eyebrow { margin-bottom: 11px; }
  .hero-visual { aspect-ratio: 1.72; }
  .feature-grid { gap: 12px; }
  .feature-content { padding: 12px; }
  .feature-content .eyebrow { letter-spacing: .08em; }
  .featured, .explore { margin-top: 37px; }
  .explore, .match-layout { gap: 13px; }
  .author { margin-block: 42px; }
  .footer-inner { flex-wrap: wrap; }
  .page-intro { padding-block: 38px 26px; }
  .match-layout { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .match-form, .pair-guidance { grid-template-columns: minmax(0, 1fr); }
  .feature-grid, .reviews-grid, .ingredients-grid, .explore { grid-template-columns: 1fr; }
  .texture { aspect-ratio: 2.4; }
  .feature-content { padding: 15px; }
  .section-heading { flex-wrap: wrap; gap: 8px 20px; margin-bottom: 16px; }
  .author { grid-template-columns: 1fr; gap: 10px; }
  .author-icon { width: 58px; font-size: 2rem; }
  .author-icon span { font-size: .7rem; }
}
@media (max-width: 370px) {
  .header-row .brand { white-space: normal; }
  .header-row .instagram-button { padding-inline: 9px; }
  .header-row .insta-icon { display: none; }
}

.header-contacts { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 12px; justify-self: end; min-width: 0; }
.header-email, .contact-email { color: var(--wine); font-size: .92rem; font-weight: 700; overflow-wrap: anywhere; }
.header-row:has(.header-contacts) { grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px 20px; }
.header-row:has(.header-contacts) nav { gap: 0 clamp(12px, 1.8vw, 24px); }
@media (max-width: 1080px) {
  .header-row:has(.header-contacts) { grid-template-columns: minmax(0, 1fr) auto; padding-top: 12px; }
  .header-row:has(.header-contacts) nav { grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; padding-bottom: 6px; }
}
@media (max-width: 600px) {
  .header-row:has(.header-contacts) { grid-template-columns: minmax(0, 1fr); padding-bottom: 8px; }
  .header-contacts { justify-self: stretch; justify-content: flex-start; }
}
