/* Mareel: the first screen is composed for a 1440 x 852 viewport (the coverflow
   preview); the rest of the page and the phone layout follow it. */

:root {
  --sand: #efe9df;
  --sand-deep: #e6dfd2;
  --stone: #d8cfc1;
  --rule: rgba(38, 36, 30, 0.14);
  --ink: #26241e;
  --ink-soft: #5f594e;
  --muted: #8a8276;
  --amber: #9c5b26;
  --olive: #3b3f2e;
  --olive-ink: #ece6d9;

  --serif: "Newsreader", "Times New Roman", serif;
  --sans: "Inter", system-ui, sans-serif;

  --gutter: 40px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
[id] { scroll-margin-top: 24px; }

/* Announcement */
.announce {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--olive);
  color: var(--olive-ink);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}
.announce a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(236, 230, 217, 0.45); }
.announce-sep { width: 1px; height: 11px; background: rgba(236, 230, 217, 0.35); }

/* Header */
.header {
  position: relative;
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.nav { display: flex; gap: 28px; font-size: 13px; letter-spacing: 0.01em; }
.nav a { color: var(--ink); }
.nav-primary a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.nav-utility { justify-content: flex-end; align-items: center; }
.logo {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.bag { display: inline-flex; align-items: center; gap: 7px; }
.bag-count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--sand);
  font-size: 10.5px;
  font-weight: 500;
}
.bag-count.is-bump { animation: bump 0.45s cubic-bezier(0.2, 0.7, 0.1, 1); }
@keyframes bump { 40% { transform: scale(1.35); background: var(--amber); } }

.menu-toggle { display: none; }

/* First screen: what the announcement and header leave of the viewport */
.fold {
  display: grid;
  grid-template-rows: minmax(0, 1fr) 100px;
  height: clamp(600px, calc(100svh - var(--studio-bar-h, 0px) - 34px - 72px), 980px);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 58.333% 1fr;
  min-height: 0;
}
.hero-media {
  position: relative;
  overflow: hidden;
  min-height: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 38% 60%;
}
.hero-caption {
  position: absolute;
  left: var(--gutter);
  bottom: 28px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 9px 14px 9px 14px;
  background: rgba(239, 233, 223, 0.92);
  font-size: 12px;
}
.hero-caption-label {
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-caption a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.hero-pager {
  position: absolute;
  right: 32px;
  bottom: 38px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-pager span { width: 28px; height: 1px; background: rgba(38, 36, 30, 0.35); }
.hero-pager span.is-active { background: var(--ink); height: 2px; }
.hero-pager em {
  margin-left: 10px;
  color: var(--ink);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 60px 64px 28px 72px;
  border-left: 1px solid var(--rule);
}
.eyebrow {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero h1 {
  margin-top: 22px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 62px;
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.hero h1 em { font-style: italic; color: var(--amber); }
.lede {
  max-width: 400px;
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}
.actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 30px;
}
.btn {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 28px;
  background: var(--olive);
  color: var(--olive-ink);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.link {
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

/* Featured product */
.feature {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  align-items: end;
  gap: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}
.feature img {
  width: 84px;
  height: 105px;
  object-fit: cover;
}
.tag {
  display: inline-block;
  color: var(--amber);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.feature h2 {
  margin-top: 6px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.15;
}
.feature-desc {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}
.feature-meta {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  font-size: 12.5px;
}
.feature-meta span:first-child { color: var(--muted); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}

/* Daily four */
.steps {
  display: grid;
  grid-template-columns: 16.667% 1fr;
  border-top: 1px solid var(--rule);
  background: var(--sand-deep);
}
.steps-head {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0 var(--gutter);
}
.steps-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 23px;
  line-height: 1.05;
}
.steps-head .link { align-self: flex-start; font-size: 12px; }
.steps-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.steps-list li { border-left: 1px solid var(--rule); }
.steps-list a {
  display: grid;
  height: 100%;
  align-content: center;
  gap: 4px;
  padding: 0 28px;
}
.step-label {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.step-label i {
  margin-right: 6px;
  color: var(--amber);
  font-style: normal;
}
.step-name {
  font-family: var(--serif);
  font-size: 18.5px;
  line-height: 1.2;
}
.step-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12.5px;
}
.step-meta b { color: var(--ink); font-weight: 500; }

/* Below the first screen */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.section-head > p { max-width: 420px; color: var(--ink-soft); font-size: 15px; line-height: 1.65; }
.section-head h2,
.routine h2,
.refill h2 {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: 50px;
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.section-head h2 em,
.routine h2 em,
.refill h2 em { font-style: italic; color: var(--amber); }

/* Ingredients */
.ingredients { padding: 112px var(--gutter) 120px; border-top: 1px solid var(--rule); }
.ingredient-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 64px;
}
.ingredient-list li { padding-top: 24px; border-top: 1px solid rgba(38, 36, 30, 0.24); }
.ingredient-list i { color: var(--amber); font-family: var(--serif); font-size: 15px; }
.ingredient-list h3 {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.ingredient-latin { margin-top: 4px; color: var(--muted); font-family: var(--serif); font-size: 15px; font-style: italic; }
.ingredient-list p:not([class]) { max-width: 300px; margin-top: 16px; color: var(--ink-soft); font-size: 14px; line-height: 1.65; }
.ingredient-in {
  margin-top: 18px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Find your routine */
.routine {
  display: grid;
  grid-template-columns: 41.667% 1fr;
  background: var(--sand-deep);
  border-top: 1px solid var(--rule);
}
.routine-media { min-height: 720px; overflow: hidden; }
.routine-media img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.routine-body { align-self: center; max-width: 640px; padding: 96px var(--gutter) 96px 88px; }

.routine-picker { margin: 40px 0 0; padding: 0; border: 0; min-width: 0; }
.routine-picker legend { padding: 0; color: var(--ink-soft); font-size: 13px; }
.routine-picker input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.routine-picker label {
  display: inline-flex;
  align-items: center;
  height: 40px;
  margin: 14px 6px 0 0;
  padding: 0 18px;
  border: 1px solid rgba(38, 36, 30, 0.28);
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.routine-picker label:hover { border-color: var(--ink); }
.routine-picker input:checked + label { background: var(--olive); border-color: var(--olive); color: var(--olive-ink); }
.routine-picker input:focus-visible + label { outline: 2px solid var(--amber); outline-offset: 3px; }

.routine-panel { display: none; margin-top: 28px; }
#skin-oily:checked ~ .routine-panel--oily,
#skin-combo:checked ~ .routine-panel--combo,
#skin-dry:checked ~ .routine-panel--dry { display: block; animation: rise 0.4s cubic-bezier(0.2, 0.7, 0.1, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

.routine-steps { counter-reset: step; border-top: 1px solid var(--rule); }
.routine-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  grid-template-areas: "n when price" "n name price";
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
.routine-steps li::before { content: "0" counter(step); grid-area: n; color: var(--amber); font-family: var(--serif); font-size: 15px; }
.routine-steps span {
  grid-area: when;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.routine-steps b { grid-area: name; margin-top: 4px; font-family: var(--serif); font-size: 21px; font-weight: 400; }
.routine-steps em { grid-area: price; font-style: normal; font-size: 13.5px; }
.routine-total { display: flex; align-items: baseline; gap: 12px; margin-top: 18px; font-size: 13.5px; }
.routine-total span { margin-right: auto; color: var(--ink-soft); }
.routine-total s { color: var(--muted); }
.routine-total b { font-size: 16px; font-weight: 600; }
.routine-body > .btn { margin-top: 32px; }

/* Refills */
.refill {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 72px;
  padding: 112px var(--gutter);
}
.refill-copy { max-width: 480px; }
.refill-copy h2 + p { margin-top: 24px; color: var(--ink-soft); font-size: 15px; line-height: 1.65; }
.refill-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 36px 0;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.refill-facts dt { font-family: var(--serif); font-size: 32px; line-height: 1; letter-spacing: -0.02em; }
.refill-facts dd { margin-top: 8px; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.refill-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); }
.refill-media img { width: 100%; height: 100%; object-fit: cover; }

/* Footer */
.footer { padding: 72px var(--gutter) 40px; background: var(--olive); color: var(--olive-ink); }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(236, 230, 217, 0.16);
}
.footer .logo { font-size: 40px; }
.footer-brand p { max-width: 340px; margin-top: 16px; color: rgba(236, 230, 217, 0.7); font-size: 14px; line-height: 1.6; }
.footer-links { display: grid; gap: 12px; align-content: start; font-size: 14px; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 5px; }
.footer-visit h2 {
  color: rgba(236, 230, 217, 0.6);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer-visit p { margin-top: 12px; font-size: 14px; line-height: 1.6; }
.footer-fine { margin-top: 28px; color: rgba(236, 230, 217, 0.55); font-size: 12.5px; }

/* Narrower windows */
@media (max-width: 1180px) {
  :root { --gutter: 28px; }
  .nav { gap: 20px; }
  .nav-utility a:not(.bag):not(:first-child) { display: none; }
  .hero-panel { padding: 48px 40px 24px 44px; }
  .hero h1 { font-size: 52px; }
  .steps { grid-template-columns: 1fr; grid-template-rows: auto; }
  .steps-head { display: none; }
  .ingredient-list { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .routine-body { padding-left: 48px; }
}

/* Tablet and phone: one column, everything reflows */
@media (max-width: 860px) {
  :root { --gutter: 20px; }

  .announce { height: auto; flex-wrap: wrap; gap: 4px 12px; padding: 9px var(--gutter); text-align: center; }
  .announce-sep { display: none; }

  .header { height: 64px; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 10px; justify-self: start; font-size: 13.5px; }
  .menu-toggle__bars { display: grid; gap: 5px; width: 18px; }
  .menu-toggle__bars i { display: block; height: 1.5px; background: currentColor; transition: transform 0.3s; }
  .is-open .menu-toggle__bars i:first-child { transform: translateY(3.25px) rotate(45deg); }
  .is-open .menu-toggle__bars i:last-child { transform: translateY(-3.25px) rotate(-45deg); }
  .nav-primary {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--sand);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 24px 40px -28px rgba(38, 36, 30, 0.4);
    font-size: 17px;
  }
  .is-open .nav-primary { display: flex; }
  .nav-primary a { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .nav-primary a[aria-current="page"] { text-decoration: none; }
  .nav-utility a:not(.bag) { display: none; }
  .logo { font-size: 28px; }

  .fold { height: auto; display: block; }
  .hero { grid-template-columns: 1fr; }
  .hero-media { aspect-ratio: 4 / 3; }
  .hero-caption { left: 14px; bottom: 14px; }
  .hero-pager { display: none; }
  .hero-panel { padding: 36px var(--gutter) 32px; gap: 40px; border-left: 0; }
  .hero h1 { font-size: 44px; }
  .lede { font-size: 15px; }
  .actions { flex-wrap: wrap; gap: 18px 26px; }
  .feature { grid-template-columns: 72px 1fr; }
  .feature img { width: 72px; height: 90px; }
  .feature .btn-outline { grid-column: 1 / -1; justify-content: center; }

  .steps { display: block; }
  .steps-list {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: minmax(220px, 64%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .steps-list::-webkit-scrollbar { display: none; }
  .steps-list li { scroll-snap-align: start; }
  .steps-list li:first-child { border-left: 0; }
  .steps-list a { padding: 20px var(--gutter); }

  .section-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .section-head h2, .routine h2, .refill h2 { font-size: 36px; }
  .ingredients { padding: 72px var(--gutter) 80px; }
  .ingredient-list { grid-template-columns: 1fr; gap: 28px; margin-top: 40px; }

  .routine { grid-template-columns: 1fr; }
  .routine-media { min-height: 0; aspect-ratio: 4 / 3; }
  .routine-body { max-width: none; padding: 48px var(--gutter) 64px; }
  .routine-total { flex-wrap: wrap; }
  .routine-total span { flex-basis: 100%; }

  .refill { grid-template-columns: 1fr; gap: 36px; padding: 72px var(--gutter); }
  .refill-media { order: -1; }

  .footer { padding: 56px var(--gutter) 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px 20px; padding-bottom: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .menu-toggle__label { display: none; }
  .hero h1 { font-size: 40px; }
  .refill-facts { gap: 14px; }
  .refill-facts dt { font-size: 26px; }
}
