:root {
  --linen: #E4DCCD;      /* Beautira's brand beige */
  --linen-deep: #D8CDBA;
  --panel: #EDE7DC;
  --espresso: #2A201B;
  --bark: #64554A;
  --rule: #BFB09B;

  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --body: "Quicksand", "Avenir Next", system-ui, sans-serif;

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 72rem;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--linen);
  color: var(--espresso);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 500;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
  font-optical-sizing: auto;
}

p { margin: 0; }

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

[hidden] { display: none !important; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--espresso); color: var(--linen); padding: 0.5rem 1rem;
}
.skip:focus { left: 1rem; top: 1rem; z-index: 10; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--espresso);
  color: var(--linen);
  text-decoration: none;
  font-weight: 600;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  transition: background-color 0.2s;
}
.btn:hover { background: #46362D; }
.btn--small { padding: 0.55rem 1.2rem; font-size: 0.95rem; }
.btn--light { background: var(--linen); color: var(--espresso); }
.btn--light:hover { background: #fff; }
.btn--light:focus-visible { outline-color: var(--linen); }

.link { font-weight: 600; }

/* Header */
.top {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.wordmark {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1;
  margin-right: auto;
}
.wordmark__name {
  font-family: var(--display);
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.wordmark__by {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 0.15rem;
  color: var(--bark);
}
.top__nav { display: flex; gap: 1.75rem; font-size: 0.95rem; }
.top__nav a { text-decoration: none; }
.top__nav a:hover { text-decoration: underline; }

/* Hero */
.hero {
  padding-top: clamp(2.5rem, 7vw, 6rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
}
.hero h1 {
  font-size: clamp(3rem, 7.5vw, 6.25rem);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.hero__lede {
  margin-top: 1.75rem;
  font-size: 1.15rem;
  max-width: 34rem;
  color: var(--bark);
}
.hero__actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
}
.hero__art { color: var(--espresso); }

/* Lash drawings */
.lash { display: block; width: 100%; height: auto; overflow: visible; }
.lash--hero { transform: rotate(-4deg); }
.lash--hero path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 0.9s cubic-bezier(.3,.6,.3,1) forwards;
  animation-delay: calc(0.4s + var(--i, 0) * 28ms);
}
.lash--hero .lash__lid { animation-delay: 0s; animation-duration: 0.6s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lash--hero path { animation: none; stroke-dashoffset: 0; }
}

/* Section scaffolding */
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
.section-head p { margin-top: 1rem; color: var(--bark); }

.top, .hero, .sets, .gallery, .about, .visit, .aftercare, .foot {
  padding-left: max(var(--gutter), (100% - var(--max)) / 2);
  padding-right: max(var(--gutter), (100% - var(--max)) / 2);
}
.sets, .gallery, .visit, .aftercare {
  padding-top: clamp(3.5rem, 8vw, 6.5rem);
  padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
}

.note { color: var(--bark); font-size: 0.95rem; max-width: 40rem; }

/* Sets */
.sets { background: var(--panel); }

.scale {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--bark);
  margin-bottom: 1.5rem;
}
.scale__line {
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--rule), var(--espresso));
  border-radius: 2px;
}

.sets__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}
.set {
  padding: 2rem 1.5rem 2rem;
  border-left: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
}
.set:first-child { border-left: 0; padding-left: 0; }
.set:last-child { padding-right: 0; }
.set .lash { color: var(--espresso); margin-bottom: 1.5rem; }
.set h3 { font-size: 2.1rem; }
.set > p { margin-top: 0.75rem; color: var(--bark); flex: 1; }

.prices, .extras { margin: 1.5rem 0 0; }
.prices div, .extras div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rule);
}
.prices div:first-child { border-top: 1px solid var(--rule); }
.prices dd, .extras dd {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1;
}
.prices div:first-child dd { font-size: 1.75rem; }

.sets__foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem 4rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--espresso);
}
.sets__foot .extras { margin: 0; grid-row: span 2; }
.sets__foot .extras div:first-child { padding-top: 0; }

/* Gallery */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.gallery figure { margin: 0; }
.gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
  background: var(--linen-deep);
}

.gallery__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* About */
.about {
  padding-top: clamp(3.5rem, 8vw, 6.5rem);
  padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
  display: grid;
  gap: 2.5rem 4rem;
  align-items: start;
}
/* Without a photo: story left, comfort list right. With one: photo left, both stacked right. */
.about { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.about__comfort h3 { margin-top: 0.4rem; }
.about--photo { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.about--photo .about__comfort { grid-column: 2; }
.about--photo .about__comfort h3 { margin-top: 0; }
.about__photo { margin: 0; }
.about__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
}
.about__text { max-width: 38rem; }
.about h2 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
.about__lede { margin-top: 1rem; font-size: 1.15rem; color: var(--bark); }
.about__story p { margin-top: 1rem; }
.about__story p:first-child { margin-top: 1.5rem; }
.about h3 { font-size: 1.6rem; margin-top: 2.5rem; }
.about h3 + p { margin-top: 0.5rem; color: var(--bark); }
.comfort { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.comfort li { padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }
.comfort li:first-child { border-top: 1px solid var(--rule); }

/* Visit */
.steps {
  list-style: none;
  padding: 0;
  margin-bottom: 3rem;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 4rem;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  column-gap: 1rem;
}
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  font-family: var(--display);
  font-size: 3.25rem;
  line-height: 0.85;
}
.steps h3 { font-size: 1.6rem; }
.steps p { margin-top: 0.5rem; color: var(--bark); max-width: 32rem; }

/* Aftercare */
.aftercare { background: var(--linen-deep); }
.care {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}
.care li {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.25;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
}
.care li:first-child { border-top: 1px solid var(--rule); }

/* Footer */
.foot {
  background: var(--espresso);
  color: var(--linen);
  padding-top: clamp(3.5rem, 8vw, 6rem);
  padding-bottom: 2.5rem;
}
.foot__book {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #54443A;
}
.foot__line { font-family: var(--display); font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.1; }
.foot__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.5rem;
  padding-top: 1.75rem;
  font-size: 0.95rem;
  color: #CDBFAD;
}
.foot__name { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.04em; color: var(--linen); }
.foot a:focus-visible { outline-color: var(--linen); }

/* Responsive */
@media (max-width: 960px) {
  .sets__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .set { padding: 2rem 1.5rem; }
  .set:nth-child(odd) { border-left: 0; padding-left: 0; }
  .set:nth-child(even) { padding-right: 0; }
  .set:nth-child(n+3) { border-top: 1px solid var(--rule); }
}

@media (max-width: 760px) {
  .top { gap: 1rem; }
  .top__nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 1rem; }
  .hero__art { order: -1; max-width: 22rem; }
  .steps { grid-template-columns: 1fr; }
  .about--photo { grid-template-columns: 1fr; }
  .about__photo { max-width: 24rem; }
  .sets__foot { grid-template-columns: 1fr; }
  .sets__foot .extras { grid-row: auto; }
  .gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 540px) {
  .sets__grid { grid-template-columns: 1fr; }
  .set, .set:nth-child(odd), .set:nth-child(even) { border-left: 0; padding: 2rem 0; }
  .set + .set { border-top: 1px solid var(--rule); }
  .set .lash { max-width: 16rem; }
}

/* About and Visit share a background, so drop the doubled gap between them */
.about + .visit { padding-top: 0; }

.about .about__comfort h3 { margin-top: 0.4rem; }
@media (max-width: 760px) {
  .about, .about--photo { grid-template-columns: 1fr; }
  .about--photo .about__comfort { grid-column: auto; }
}
