/* Lip Shapes: a lip shape read like a shade range at a makeup counter.
   One stylesheet for the whole site. Tokens first, then layout, components
   and pages. No framework, no icon font. */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* The rose field carries the header and the hero. */
  --rose: #b8285a;
  --rose-deep: #8e1c45;
  --on-rose: #ffffff;
  --on-rose-soft: #ffe3ec;

  /* Reading ground and ink, tinted from the same hue. */
  --ground: #fbf4f6;
  --paper: #ffffff;
  --blush: #f6e6eb;
  --ink: #2a1219;
  --ink-soft: #66434f;
  --line: #ead6dd;
  --line-strong: #d7b8c3;

  --berry: #7a1a3e;
  --focus: #1f5fd1;
  --warn-bg: #fff3e6;
  --warn-ink: #7a3b06;

  /* The shade range, nude to deep. Strips and chips read from this. */
  --s1: #e9c2b4;
  --s2: #d9998a;
  --s3: #d6607f;
  --s4: #cc3f66;
  --s5: #b8262c;
  --s6: #9c2752;
  --s7: #6c2a52;

  --font: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
  --radius-sm: 8px;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --shadow: 0 1px 2px rgba(42, 18, 25, .06), 0 12px 32px -12px rgba(42, 18, 25, .28);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}

main { flex: 1 0 auto; }

::selection { background: var(--s3); color: #fff; }

img, svg { max-width: 100%; height: auto; }

a {
  color: var(--berry);
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}
@media (hover: hover) and (pointer: fine) {
  a:hover { color: var(--rose); }
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
  font-weight: 800;
}
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-sm);
}
.skip:focus { top: 8px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------ header */

.bar {
  background: var(--rose);
  color: var(--on-rose);
}
.bar__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--on-rose);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}
.brand svg { width: 34px; height: 34px; fill: currentColor; flex: none; }
@media (hover: hover) and (pointer: fine) {
  .brand:hover { color: var(--on-rose); }
}

.nav { position: relative; }
.nav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--on-rose);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
}
.nav a:active { background: rgba(255, 255, 255, .22); }
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { background: rgba(255, 255, 255, .14); color: var(--on-rose); }
}
.nav summary { display: none; }

@media (max-width: 760px) {
  .nav summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    list-style: none;
    touch-action: manipulation;
  }
  .nav summary::-webkit-details-marker { display: none; }
  .nav summary svg { width: 16px; height: 16px; }
  .nav:not([open]) ul { display: none; }
  .nav ul {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 20;
    flex-direction: column;
    min-width: 210px;
    padding: 8px;
    background: var(--paper);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  .nav a { color: var(--ink); padding: 12px 14px; border-radius: var(--radius-sm); }
  .nav a:active { background: var(--blush); }
}

/* ------------------------------------------------------------ hero + tool */

.hero {
  background: var(--rose);
  color: var(--on-rose);
  padding: 20px 0 40px;
}
.hero__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2rem, 1.4rem + 3vw, 3.6rem);
  letter-spacing: -0.035em;
  line-height: 1.04;
  max-width: 14ch;
}
.hero__lede {
  margin: 12px 0 0;
  line-height: 1.5;
  max-width: 46ch;
  color: var(--on-rose-soft);
  font-size: 1.05rem;
}
.chart { display: none; }

@media (min-width: 900px) {
  .hero { padding: 48px 0 64px; }
  .hero__in { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; }
  .chart { display: block; margin: 32px 0 0; }
}

.tray {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 2px 4px rgba(60, 8, 30, .18), 0 24px 48px -20px rgba(60, 8, 30, .5);
}
@media (min-width: 600px) { .tray { padding: 26px; } }

.tray__label {
  margin: 0 0 12px;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  font-size: .9rem;
  color: var(--ink-soft);
}
.chips li { display: inline-flex; align-items: center; gap: 6px; }
.chips svg { width: 14px; height: 14px; color: var(--rose); flex: none; }

.drop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--ground);
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color .15s ease, background-color .15s ease;
}
.drop:active { background: var(--blush); }
@media (hover: hover) and (pointer: fine) {
  .drop:hover { border-color: var(--rose); }
}
.drop.is-over { border-color: var(--rose); background: var(--blush); }
.drop input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 16px;
}
.drop:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.drop__icon {
  flex: none;
  width: 48px;
  height: 48px;
  padding: 11px;
  border-radius: 50%;
  background: var(--rose);
  color: #fff;
}
.drop__title { display: block; font-weight: 800; font-size: 1.05rem; }
.drop__hint { display: block; font-size: .9rem; color: var(--ink-soft); line-height: 1.4; }

.picked {
  display: none;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--ground);
}
.picked img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex: none;
}
.picked__name { margin: 0; font-weight: 600; }
.picked__swap {
  padding: 0;
  border: 0;
  background: none;
  color: var(--berry);
  font: inherit;
  font-size: .92rem;
  text-decoration: underline;
  text-underline-offset: .18em;
  cursor: pointer;
}
.has-photo .picked { display: flex; }
.has-photo .drop { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--berry);
  color: #fff;
  font: inherit;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color .15s ease, transform .1s ease;
}
.btn:active { transform: scale(.98); background: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--rose-deep); color: #fff; }
}
.btn[disabled], .btn[aria-disabled="true"] {
  background: var(--line-strong);
  color: var(--ink-soft);
  cursor: not-allowed;
  transform: none;
}
.btn--wide { width: 100%; margin-top: 14px; }
.btn--light { background: var(--paper); color: var(--berry); }
@media (hover: hover) and (pointer: fine) {
  .btn--light:hover { background: var(--blush); color: var(--berry); }
}
.btn--ghost {
  background: transparent;
  color: var(--berry);
  box-shadow: inset 0 0 0 2px var(--line-strong);
}
.btn--ghost:active { background: var(--blush); }
@media (hover: hover) and (pointer: fine) {
  .btn--ghost:hover { background: var(--blush); color: var(--berry); }
}

.spin {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.spin[hidden] { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.tray__fine {
  margin: 12px 0 0;
  font-size: .88rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.notice {
  display: flex;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--warn-bg);
  color: var(--warn-ink);
  font-size: .95rem;
  line-height: 1.45;
}
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }

/* The lip chart in the hero: a drawn lip with the five measurements marked. */
.chart svg { display: block; width: 100%; max-width: 480px; overflow: visible; }
.chart figcaption { margin-top: 8px; font-size: .88rem; color: var(--on-rose-soft); }

/* ------------------------------------------------------------ ads */

.slot { min-height: 280px; padding-top: 16px; padding-bottom: 16px; }
.slot:empty, .slot > div:empty { min-height: 0; }

/* ------------------------------------------------------------ sections */

.band { padding: clamp(48px, 7vw, 88px) 0; }
.band--blush { background: var(--blush); }
.band--paper { background: var(--paper); }

.head { max-width: 68ch; margin-bottom: 32px; }
.head p { margin: 12px 0 0; color: var(--ink-soft); }

/* How it works: a three step sequence, numbers mean order here. */
.steps {
  display: grid;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--rose);
  color: #fff;
  font-weight: 800;
}
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; color: var(--ink-soft); }

/* The shade range: every shape on one rail, each with its shade and drawing. */
.range {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.range li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.range img { width: 168px; height: auto; margin-bottom: 4px; }
.range h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.range p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
@media (min-width: 760px) {
  .range li {
    grid-template-columns: 170px minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 4px 32px;
    align-items: center;
  }
  .range img { width: 170px; margin: 0; }
}
.swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--c, var(--rose));
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
  flex: none;
}
.measures {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.tip strong { color: var(--ink); font-weight: 600; }

/* Shade strip: a scale drawn as lipstick swatches with a reading marked. */
.strips { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .strips--two { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; } }
.strip__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.strip__name { font-weight: 800; }
.strip__value { font-weight: 600; color: var(--berry); }
.strip__bar {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 3px;
  height: 18px;
}
.strip__bar span:nth-child(1) { background: var(--s1); border-radius: 9px 0 0 9px; }
.strip__bar span:nth-child(2) { background: var(--s2); }
.strip__bar span:nth-child(3) { background: var(--s3); }
.strip__bar span:nth-child(4) { background: var(--s4); }
.strip__bar span:nth-child(5) { background: var(--s5); }
.strip__bar span:nth-child(6) { background: var(--s6); }
.strip__bar span:nth-child(7) { background: var(--s7); border-radius: 0 9px 9px 0; }
.strip__mark {
  position: absolute;
  top: -5px;
  left: var(--at, 50%);
  width: 6px;
  height: 28px;
  margin-left: -3px;
  border-radius: 3px;
  background: var(--ink);
  box-shadow: 0 0 0 2px var(--paper);
}
.strip__zones {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: .82rem;
  color: var(--ink-soft);
}
.strip__help { margin: 4px 0 0; font-size: .88rem; color: var(--ink-soft); }

.example {
  display: inline-block;
  margin-bottom: 18px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--blush);
  color: var(--ink-soft);
  font-size: .82rem;
  font-weight: 600;
}

.split { display: grid; gap: 32px; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; } }

.prose { max-width: 70ch; }
.prose h2 { margin: 1.6em 0 .5em; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem); }
.prose h3 { margin: 1.4em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: .95rem; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; vertical-align: top; }

/* FAQ */
.faq { max-width: 820px; }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  touch-action: manipulation;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--rose);
  border-bottom: 2px solid var(--rose);
  transform: translateY(-3px) rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(3px) rotate(225deg); }
.faq details p { margin: 0 0 18px; color: var(--ink-soft); max-width: 70ch; }

/* Closing call to action on the rose field. */
.close {
  background: var(--rose);
  color: var(--on-rose);
  padding: clamp(40px, 6vw, 72px) 0;
}
.close__in { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.close h2 { max-width: 20ch; }
.close p { margin: 8px 0 0; color: var(--on-rose-soft); max-width: 50ch; }

/* Related links and other tools */
.links {
  display: grid;
  gap: 0 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
@media (min-width: 760px) { .links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.links a span { display: block; font-size: .92rem; color: var(--ink-soft); }
.links strong { font-weight: 600; }
.links svg { width: 18px; height: 18px; flex: none; color: var(--rose); }
@media (hover: hover) and (pointer: fine) {
  .links a:hover strong { color: var(--rose); }
}

/* ------------------------------------------------------------ result */

.verdict {
  background: var(--rose);
  color: var(--on-rose);
  padding: 24px 0 36px;
}
.verdict__in { display: grid; gap: 20px; align-items: center; }
@media (min-width: 760px) { .verdict__in { grid-template-columns: auto minmax(0, 1fr); gap: 36px; } }
.verdict__photo {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 3px solid rgba(255, 255, 255, .85);
}
@media (min-width: 760px) { .verdict__photo { width: 160px; height: 160px; } }
.verdict__kicker { margin: 0 0 4px; color: var(--on-rose-soft); font-weight: 600; }
.verdict h1 { font-size: clamp(2.1rem, 1.5rem + 3vw, 3.4rem); letter-spacing: -0.035em; }
.verdict__summary { margin: 10px 0 0; color: var(--on-rose-soft); max-width: 48ch; }
.verdict__drawing {
  flex: 1 1 0;
  min-width: 0;
  max-width: 240px;
  align-self: stretch;
  object-fit: contain;
  padding: 12px 16px;
  background: var(--paper);
  border-radius: var(--radius);
}
.verdict__top { display: flex; gap: 16px; align-items: center; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 28px);
}
.card h2 { font-size: 1.35rem; margin-bottom: 18px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.actions .btn { flex: 1 1 220px; }

.promo {
  position: sticky;
  bottom: 0;
  z-index: 30;
  background: var(--ink);
  color: #fff;
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
}
.promo__in { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.promo p { margin: 0; font-weight: 600; flex: 1 1 240px; }
.promo .btn { min-height: 44px; flex: 0 0 auto; }
@media (max-width: 520px) { .promo .btn { width: 100%; } }

/* ------------------------------------------------------------ gate */

.gate { padding: clamp(40px, 8vw, 96px) 0; text-align: center; }
.gate h1 { font-size: clamp(1.8rem, 1.3rem + 2.4vw, 2.8rem); }
.gate p { color: var(--ink-soft); margin: 12px auto 24px; max-width: 46ch; }
.gate .btn { min-width: min(100%, 320px); }
.gate__wait { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; }
.gate__wait .spin { border-color: var(--line); border-top-color: var(--rose); }
.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(42, 18, 25, .82);
  color: #fff;
  font-weight: 600;
}
.overlay > div { display: grid; gap: 12px; justify-items: center; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------ article */

.article-head { background: var(--rose); color: var(--on-rose); padding: 32px 0 40px; }
.article-head h1 { font-size: clamp(1.9rem, 1.4rem + 2.4vw, 3rem); letter-spacing: -0.03em; max-width: 22ch; }
.article-head p { margin: 12px 0 0; color: var(--on-rose-soft); max-width: 60ch; }
.crumbs { margin: 0 0 14px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: .9rem; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--on-rose-soft); }
.crumbs a { color: var(--on-rose); }
.crumbs [aria-current] { color: var(--on-rose-soft); }

.figure-lip { display: block; width: 200px; margin: 0 0 8px; }

/* ------------------------------------------------------------ footer */

.foot {
  background: var(--ink);
  color: #f3dfe6;
  padding: 36px 0 calc(28px + env(safe-area-inset-bottom));
  font-size: .95rem;
}
.foot__in { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; }
.foot .brand { color: #fff; }
.foot .brand svg { fill: #f0849f; }
.foot ul { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; list-style: none; }
.foot a { color: #f3dfe6; }
@media (hover: hover) and (pointer: fine) {
  .foot a:hover { color: #fff; }
}
.foot__note { width: 100%; margin: 0; color: #c9a9b5; font-size: .88rem; }

.steps--plain { counter-reset: none; }
.steps--plain li::before { content: none; }
.prose > h2:first-child { margin-top: 0; }
