/* ============================================
   RE:SET SKINCARE — Design System
   Tokens: cream #F7F3EE / ink #18140F / rose #C49581 / berry #B9727C
   Display: Fraunces · Body/UI: Inter
   Signature: the open ring — drawn from the logo's broken circle
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Inter:wght@400;500;600&display=swap');

:root{
  --cream: #F7F3EE;
  --cream-deep: #EFE6DC;
  --ink: #18140F;
  --ink-soft: #4A433C;
  --rose: #C49581;
  --rose-soft: #DCC1B2;
  --berry: #B9727C;
  --line: rgba(24,20,15,0.14);
  --line-soft: rgba(24,20,15,0.08);

  --display: 'Fraunces', serif;
  --body: 'Inter', sans-serif;

  --container: 1180px;
  --nav-h: 84px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body{
  margin:0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font-family: inherit; cursor:pointer; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,p{ margin:0; }

.wrap{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Type ---------- */
.eyebrow{
  font-family: var(--body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--berry);
}
.eyebrow--ink{ color: var(--ink-soft); }
.eyebrow--cream{ color: var(--rose-soft); }

h1, .h1{
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
}
h2, .h2{
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
h3, .h3{
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  line-height: 1.25;
}
.lede{
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 46ch;
}
.pull{
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.35;
  color: var(--ink);
}

/* ---------- Buttons / Forms ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
  white-space: nowrap;
}
.btn:hover{ background: transparent; color: var(--ink); }
.btn:focus-visible{ outline: 2px solid var(--berry); outline-offset: 3px; }

.btn--ghost{
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover{ background: var(--ink); color: var(--cream); }

.btn--cream{
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}
.btn--cream:hover{ background: transparent; color: var(--cream); border-color: var(--cream); }

.field{
  width: 100%;
  padding: 15px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.5);
  font-family: var(--body);
  font-size: 14.5px;
  color: var(--ink);
}
.field:focus-visible{ outline: 2px solid var(--berry); outline-offset: 2px; }
.field::placeholder{ color: var(--ink-soft); opacity: .7; }

.inline-form{
  display:flex;
  gap: 10px;
  max-width: 440px;
}
.inline-form .field{ flex:1; min-width: 0; }

.form-note{
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 10px;
}
.form-success{
  display:none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--berry);
  margin-top: 12px;
}
.form-success.is-visible{ display:block; }

/* ---------- Signature: the open ring ---------- */
.ring{
  position:absolute;
  border-radius: 50%;
  border: 1px solid var(--ink);
  opacity: .16;
  clip-path: inset(0 0 18% 0);
  pointer-events:none;
}
.ring--rose{ border-color: var(--berry); opacity: .35; }

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top:0;
  z-index: 50;
  height: var(--nav-h);
  display:flex;
  align-items:center;
  background: rgba(247,243,238,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-family: var(--display);
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}
.brand img{ height: 34px; width:auto; }

.nav-links{
  display:flex;
  align-items:center;
  gap: 38px;
}
.nav-links a{
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
}
.nav-links a::after{
  content:'';
  position:absolute;
  left:0; right:0; bottom:0;
  height:1px;
  background: var(--berry);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after{ transform: scaleX(1); }
.nav-links a[aria-current="page"]{ color: var(--ink); }

.nav-cta{ display:flex; align-items:center; gap: 22px; }

.nav-toggle{
  display:none;
  background:none;
  border:none;
  width: 30px; height: 22px;
  position: relative;
}
.nav-toggle span{
  position:absolute; left:0; right:0; height:1px; background: var(--ink);
  transition: transform .3s var(--ease), opacity .3s var(--ease), top .3s var(--ease);
}
.nav-toggle span:nth-child(1){ top:0; }
.nav-toggle span:nth-child(2){ top:10px; }
.nav-toggle span:nth-child(3){ top:20px; }
.nav-toggle.is-open span:nth-child(1){ top:10px; transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2){ opacity:0; }
.nav-toggle.is-open span:nth-child(3){ top:10px; transform: rotate(-45deg); }

/* ---------- Marquee strip ---------- */
.marquee{
  overflow:hidden;
  background: var(--ink);
  color: var(--rose-soft);
  padding: 14px 0;
  white-space: nowrap;
}
.marquee__track{
  display:inline-flex;
  gap: 3rem;
  animation: scroll-left 26s linear infinite;
}
.marquee span{
  font-family: var(--display);
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
@keyframes scroll-left{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce){
  .marquee__track{ animation: none; }
}

/* ---------- Sections ---------- */
section{ position:relative; }
.section{ padding: 116px 0; }
.section--tight{ padding: 84px 0; }
.section--alt{ background: var(--cream-deep); }
.section--ink{ background: var(--ink); color: var(--cream); }
.section--ink .eyebrow{ color: var(--rose-soft); }

.divider{
  height:1px;
  background: var(--line);
  border:none;
  margin:0;
}

/* reveal on scroll — hidden state only applies once JS confirms it can reveal it again (see inline head script) */
.js .reveal{ opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible{ opacity:1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce){
  .js .reveal{ opacity:1; transform:none; transition:none; }
}

/* ---------- Footer ---------- */
.site-footer{
  background: var(--ink);
  color: var(--cream);
  padding: 76px 0 34px;
}
.footer-top{
  display:flex;
  justify-content:space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 56px;
}
.footer-cols{
  display:flex;
  gap: 72px;
  flex-wrap:wrap;
}
.footer-col h4{
  font-family: var(--body);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose-soft);
  margin-bottom: 16px;
}
.footer-col a, .footer-col li{
  display:block;
  font-size: 14px;
  color: rgba(247,243,238,0.78);
  margin-bottom: 10px;
}
.footer-col a:hover{ color: var(--cream); }
.footer-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding-top: 26px;
  border-top: 1px solid rgba(247,243,238,0.14);
  font-size: 12.5px;
  color: rgba(247,243,238,0.55);
  flex-wrap:wrap;
  gap: 10px;
}
.footer-logo-badge{
  display:inline-flex;
  background: var(--cream);
  padding: 10px 16px;
  border-radius: 14px;
}
.footer-logo{ height: 28px; width:auto; }

/* ---------- Grid helpers ---------- */
.grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items:center;
}
.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* ---------- Pillars ---------- */
.pillar{ padding-top: 6px; }
.pillar .ring-icon{
  width: 46px; height:46px;
  border-radius:50%;
  border: 1px solid var(--berry);
  clip-path: inset(0 0 22% 0);
  margin-bottom: 22px;
}
.pillar h3{ margin-bottom: 10px; }
.pillar p{ color: var(--ink-soft); font-size: 14.5px; max-width: 34ch; }

/* ---------- Cards (shop) ---------- */
.card{
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.card__media{
  aspect-ratio: 4/5;
  background: var(--cream-deep);
  position:relative;
  overflow:hidden;
}
.card__media img{ width:100%; height:100%; object-fit:cover; }
.card__placeholder{
  width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
  position:relative;
}
.card__ribbon{
  position:absolute; top:16px; left:16px;
  background: var(--ink);
  color: var(--cream);
  font-size: 10.5px;
  font-weight:600;
  letter-spacing:0.12em;
  text-transform:uppercase;
  padding: 7px 13px;
  border-radius: 999px;
}
.card__body{ padding: 26px 24px 28px; display:flex; flex-direction:column; gap: 10px; flex:1; }
.card__body h3{ margin:0; }
.card__body p{ color: var(--ink-soft); font-size: 13.8px; flex:1; }
.card__row{
  display:flex; align-items:center; justify-content:space-between;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
}
.card__price{ font-family: var(--display); font-style: italic; color: var(--ink-soft); }
.card__notify{
  font-size: 11.5px;
  font-weight:600;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color: var(--berry);
  border-bottom: 1px solid transparent;
}
.card__notify:hover{ border-color: var(--berry); }

/* ---------- Hero framed image ---------- */
.framed{
  position:relative;
  border-radius: 22px;
  overflow:hidden;
  background: var(--cream-deep);
}
.framed img{ width:100%; height:100%; object-fit:cover; }

/* ---------- Utility ---------- */
.center{ text-align:center; }
.mx-auto{ margin-left:auto; margin-right:auto; }
.stack{ display:flex; flex-direction:column; gap: 20px; }
.mt-8{ margin-top:8px;} .mt-16{margin-top:16px;} .mt-24{margin-top:24px;} .mt-32{margin-top:32px;} .mt-48{margin-top:48px;} .mt-64{margin-top:64px;}

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .grid-2{ grid-template-columns: 1fr; gap: 40px; }
  .grid-3{ grid-template-columns: 1fr; gap: 32px; }
  .footer-cols{ gap: 40px; }
}

@media (max-width: 760px){
  .wrap{ padding: 0 22px; }
  .nav-links{
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: var(--cream);
    flex-direction: column;
    justify-content:flex-start;
    align-items:flex-start;
    padding: 40px 28px;
    gap: 26px;
    transform: translateY(-8px);
    opacity:0;
    pointer-events:none;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
  }
  .nav-links.is-open{ opacity:1; transform:none; pointer-events:auto; }
  .nav-links a{ font-size: 16px; }
  .nav-toggle{ display:block; }
  .section{ padding: 76px 0; }
  .section--tight{ padding: 56px 0; }
  .inline-form{ flex-direction:column; }
  .inline-form .btn{ justify-content:center; }
  .footer-top{ flex-direction:column; align-items:flex-start; }
}
