/* components.css
   Every reusable piece of interface. Built once here, reused on every page.
   Loads after tokens.css and base.css. No raw colour values. */

/* =============================================================== buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: var(--tap);
  padding: var(--s-3) var(--s-6);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--ff-body);
  font-size: var(--fs-small);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease,
    color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: scale(0.98);
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-primary {
  background-color: var(--action);
  border-color: var(--action);
  color: var(--action-ink);
}

.btn-primary:hover {
  background-color: var(--action-hover);
  border-color: var(--action-hover);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--ink-soft);
  background-color: var(--bg-elev);
  box-shadow: var(--shadow);
}

.btn-ghost {
  background-color: transparent;
  border-color: transparent;
  color: var(--rose-deep);
  padding-inline: var(--s-2);
}

.btn-ghost:hover {
  color: var(--ink);
}

/* Outlined button that sits on the rosewood band. */
.btn-on-dark {
  background-color: transparent;
  border-color: var(--on-rosewood-line);
  color: var(--rosewood-ink);
}

.btn-on-dark:hover {
  background-color: var(--rosewood-ink);
  border-color: var(--rosewood-ink);
  color: var(--rosewood);
}

.btn-block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}

/* ================================================================= brand */

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--ink);
  text-decoration: none;
  flex: none;
}

.brand__mark {
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex: none;
}

.brand__name {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: currentColor;
  white-space: nowrap;
}

@media (min-width: 900px) {
  .brand__mark {
    width: 64px;
    height: 64px;
  }

  .brand__name {
    font-size: 22px;
  }
}

/* ================================================================ header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--header-bg);
  border-bottom: 1px solid var(--line);
}

@supports (backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px)) {
  .site-header {
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    backdrop-filter: blur(14px) saturate(1.4);
  }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: var(--header-h);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex: none;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--ink-soft);
  font-family: var(--ff-body);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease;
}

.site-nav__link:hover {
  color: var(--ink);
}

.site-nav__link[aria-current="page"] {
  color: var(--ink);
}

.site-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% + 0.5em + 6px);
  height: 2px;
  border-radius: 2px;
  background-color: var(--rose);
}

/* Round control. The visible circle is 40px, the hit area is 44px. */
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background-color: transparent;
  color: var(--ink-soft);
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.icon-btn::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
}

.icon-btn:hover {
  color: var(--ink);
  border-color: var(--ink-soft);
  background-color: var(--bg);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.menu-btn {
  display: none;
}

@media (max-width: 899px) {
  .menu-btn {
    display: inline-flex;
  }

  .site-header__cta {
    display: none;
  }
}

/* Desktop: the nav sits between the brand and the actions. */
.site-nav {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}

/* Full screen panel dropping from under the header. */

@media (max-width: 899px) {
  /* Absolute against the sticky header rather than fixed: backdrop-filter on the
     header makes it a containing block, which would trap a fixed panel. */
  .site-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    z-index: 90;
    background-color: var(--bg);
    padding: var(--s-7) var(--s-5) calc(var(--s-7) + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 200ms ease, transform 200ms ease, visibility 200ms;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .site-nav__list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav__link {
    display: flex;
    align-items: center;
    min-height: 56px;
    font-family: var(--ff-display);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
  }

  .site-nav__link[aria-current="page"] {
    color: var(--rose-deep);
  }

  .site-nav__link[aria-current="page"]::after {
    display: none;
  }

  .site-nav__cta {
    margin-top: var(--s-7);
    width: 100%;
  }

  /* No JavaScript means the panel can never be opened, so drop the nav into the
     header as a normal block and take the dead menu button away. */
  html:not(.js) .menu-btn {
    display: none;
  }

  html:not(.js) .site-header__inner {
    flex-wrap: wrap;
  }

  html:not(.js) .site-nav {
    position: static;
    flex: 0 0 100%;
    height: auto;
    visibility: visible;
    opacity: 1;
    transform: none;
    box-shadow: none;
    padding: 0 0 var(--s-5);
    overflow: visible;
  }

  html:not(.js) .site-nav__link {
    min-height: var(--tap);
    font-size: var(--fs-lead);
  }

  html:not(.js) .site-nav__cta {
    margin-top: var(--s-5);
  }
}

@media (min-width: 900px) {
  .site-nav__cta {
    display: none;
  }
}

/* ================================================================ bands */

.band-blush {
  background-color: var(--blush-soft);
}

.band-rosewood {
  position: relative;
  isolation: isolate;
  background-color: var(--band-bottom);
  background-image: linear-gradient(to bottom, var(--band-top), var(--band-bottom));
  color: var(--rosewood-ink);
  border-bottom: 1px solid var(--line);
}

/* Soft blush glow behind the heading. */
.band-rosewood::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 34%;
  width: min(680px, 92%);
  aspect-ratio: 2 / 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, var(--blush) 0%, transparent 72%);
  opacity: 0.25;
  pointer-events: none;
}

.band-rosewood h1,
.band-rosewood h2,
.band-rosewood h3,
.band-rosewood .display {
  color: var(--rosewood-ink);
}

.band-rosewood p {
  color: var(--rosewood-ink);
}

/* Closing band inner spacing. */
.band-rosewood__lead {
  margin-top: var(--s-5);
  color: var(--rosewood-ink);
  opacity: 0.82;
}

.band-rosewood__action {
  margin-top: var(--s-7);
}

/* ================================================================ footer */

.site-footer {
  position: relative;
  overflow: hidden;
  background-color: var(--footer-bg);
  color: var(--rosewood-ink);
  border-top: 1px solid var(--line);
  padding-block: var(--s-8);
}

.site-footer__top {
  display: grid;
  gap: var(--s-7);
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .site-footer__top {
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: var(--s-8);
  }
}

.site-footer__brand {
  display: block;
  color: var(--rosewood-ink);
  text-decoration: none;
  width: max-content;
}

.site-footer__logo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: block;
  margin-bottom: var(--s-4);
}

.site-footer__name {
  font-family: var(--ff-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--rosewood-ink);
}

.site-footer__tagline {
  margin-top: var(--s-2);
  color: var(--rosewood-ink);
  opacity: 0.78;
  font-size: var(--fs-small);
  max-width: 34ch;
}

/* The dimming sits on the plain words, not the paragraph: a group opacity here
   would drag the name down with it and cost it AA in light mode. */
.site-footer__maker,
.site-footer__sister {
  margin-top: var(--s-2);
  color: var(--rosewood-ink);
  font-size: var(--fs-small);
  line-height: 1.7;
}

.site-footer__maker > span,
.site-footer__sister > span {
  opacity: 0.78;
}

/* Her name, given weight wherever it appears in visible copy. */
.maker-name {
  font-weight: 700;
  color: var(--rose-deep);
}

[data-theme="dark"] .maker-name {
  color: var(--rose);
}

/* On the rosewood band the deeper rose sits too close to the ground, so the
   lighter one carries it in both themes. 4.77:1 light, 9.45:1 dark. */
.site-footer__maker .maker-name,
.site-footer__sister .maker-name {
  color: var(--rose);
}

.site-footer__sister a {
  color: var(--rosewood-ink);
  text-decoration: none;
  font-weight: 500;
  padding: var(--s-1) 0;
  transition: color 180ms ease;
}

.site-footer__sister a:hover {
  color: var(--rose);
}

.site-footer__heading {
  display: block;
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--rose);
  margin-bottom: var(--s-4);
}

.site-footer__links {
  display: grid;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--rosewood-ink);
  text-decoration: none;
  font-size: var(--fs-small);
  font-weight: 500;
  transition: color 180ms ease;
  width: fit-content;
}

.site-footer__link:hover {
  color: var(--rose);
}

.site-footer__note {
  color: var(--rosewood-ink);
  opacity: 0.78;
  font-size: var(--fs-small);
  margin-bottom: var(--s-4);
  max-width: 30ch;
}

.site-footer__bottom {
  display: grid;
  gap: var(--s-3);
  margin-top: var(--s-8);
  padding-top: var(--s-5);
  border-top: 1px solid var(--on-rosewood-line);
  font-size: var(--fs-small);
}

.site-footer__bottom p {
  color: var(--rosewood-ink);
  opacity: 0.78;
  margin: 0;
}

@media (min-width: 768px) {
  .site-footer__bottom {
    grid-auto-flow: column;
    justify-content: space-between;
    align-items: center;
  }
}

/* Signature sprig, tucked into the corner. */
.site-footer__sprig {
  position: absolute;
  right: -28px;
  bottom: -24px;
  width: 200px;
  height: auto;
  opacity: 0.6;
  color: var(--sage-deep);
  pointer-events: none;
}

/* ================================================ floating instagram button */

.ig-fab-anchor {
  position: sticky;
  bottom: calc(var(--s-5) + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  height: 0;
  pointer-events: none;
}

.ig-fab {
  position: absolute;
  right: calc(var(--s-5) + env(safe-area-inset-right, 0px));
  bottom: 0;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: var(--r-pill);
  background-color: var(--rose-deep);
  color: var(--rose-ink);
  border: 1px solid var(--rose-deep);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease;
}

[data-theme="dark"] .ig-fab {
  background-color: var(--rose);
  border-color: var(--rose);
}


.ig-fab:hover {
  transform: translateY(-2px);
}

.ig-fab svg {
  width: 27px;
  height: 27px;
}

/* ================================================================= toast */

.toast {
  position: fixed;
  z-index: 120;
  left: 50%;
  transform: translate(-50%, 8px);
  bottom: calc(var(--s-4) + 76px + env(safe-area-inset-bottom, 0px));
  max-width: min(92vw, 420px);
  padding: var(--s-3) var(--s-5);
  background-color: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow);
  font-size: var(--fs-small);
  text-align: center;
  opacity: 0;
  transition: opacity 240ms ease, transform 240ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (min-width: 900px) {
  .toast {
    bottom: calc(var(--s-5) + env(safe-area-inset-bottom, 0px));
  }
}

/* Manual copy fallback, only shown when both clipboard paths fail. */
.ig-manual {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: var(--s-4);
  background-color: var(--bg);
}

.ig-manual__inner {
  width: min(100%, 480px);
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: var(--s-5);
}

.ig-manual__title {
  font-family: var(--ff-display);
  font-size: var(--fs-h3);
  margin-bottom: var(--s-4);
}

.ig-manual__text {
  width: 100%;
  padding: var(--s-3);
  background-color: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: var(--fs-small);
  line-height: var(--lh-body);
  resize: vertical;
}

.ig-manual__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-4);
}

/* ============================================================= chip/pill */

.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: var(--tap);
  padding: var(--s-2) var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background-color: var(--surface);
  color: var(--ink-soft);
  font-size: var(--fs-small);
  font-weight: 700;
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.chip:hover {
  border-color: var(--ink-soft);
  color: var(--ink);
}

.chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

.chip__check {
  width: 14px;
  height: 14px;
  flex: none;
  opacity: 0;
  transition: opacity 180ms ease;
}

/* Selection is carried by the ring and the tick, never by colour alone. */
.chip input:checked ~ .chip__check {
  opacity: 1;
}

.chip:has(input:checked) {
  color: var(--ink);
  border-color: var(--rose-deep);
  box-shadow: inset 0 0 0 2px var(--rose-deep);
}

.chip:has(input:focus-visible) {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* ================================================================== card */

.card {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  transition: box-shadow 200ms ease, transform 200ms ease;
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card__title {
  font-family: var(--ff-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: var(--ls-heading);
  line-height: 1.15;
  margin-bottom: var(--s-3);
  color: var(--ink);
}

.card__body {
  color: var(--ink-soft);
  font-size: var(--fs-small);
}

.card-grid {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: 1fr;
}

.card-grid > * {
  min-width: 0;
}

@media (min-width: 760px) {
  .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ======================================================== section header */

.section-header {
  margin-bottom: var(--s-7);
  max-width: 42ch;
}

.section-header--center {
  margin-inline: auto;
  text-align: center;
}

.section-header__title {
  font-family: var(--ff-display);
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: var(--ls-heading);
  line-height: var(--lh-heading);
  color: var(--ink);
}

.section-header__lead {
  margin-top: var(--s-4);
  font-size: var(--fs-lead);
  color: var(--ink-soft);
}

/* ========================================================== trust strip */

.trust {
  border-block: 1px solid var(--line);
}

.trust__list {
  display: grid;
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
}

.trust__item {
  padding-block: var(--s-4);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--rose-deep);
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.trust__item:last-child {
  border-bottom: 0;
}

@media (min-width: 760px) {
  .trust__list {
    grid-template-columns: repeat(3, 1fr);
  }

  .trust__item {
    padding-block: var(--s-5);
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }

  .trust__item:last-child {
    border-right: 0;
  }
}

/* ============================================================= step card */

.steps {
  counter-reset: step;
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: var(--s-4);
  border-radius: var(--r-pill);
  background-color: var(--surface);
  border: 1px solid var(--line);
  color: var(--rose-deep);
  font-family: var(--ff-display);
  font-size: 20px;
  font-weight: 700;
}

/* =================================================================== faq */

.faq {
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: var(--tap);
  padding: var(--s-4) 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--ff-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--ink);
}

.faq__item > summary::-webkit-details-marker {
  display: none;
}

.faq__item > summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 1px solid var(--ink-soft);
  border-bottom: 1px solid var(--ink-soft);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 180ms ease;
}

.faq__item[open] > summary::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.faq__answer {
  padding-bottom: var(--s-5);
  color: var(--ink-soft);
}

/* ================================================================= hero */

.hero {
  padding-block: var(--section-y);
}

.hero__inner {
  display: grid;
  gap: var(--s-7);
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-8);
  }
}

.hero__inner > * {
  min-width: 0;
}

.hero__lead {
  margin-top: var(--s-5);
}

.hero__actions {
  margin-top: var(--s-7);
}

.hero__art {
  position: relative;
}

/* ======================================================== collections */

/* renderNailSet draws its own card, so the wrapper is a hairline only. */
.collection {
  display: flex;
  flex-direction: column;
}

.collection__art {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

/* ============================================================ nail art */

.nail-art {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================ page hero */

.page-hero {
  padding-block: var(--s-8);
}

.page-hero__lead {
  margin-top: var(--s-4);
}

/* =============================================================== studio */

.studio__inner {
  display: grid;
  gap: var(--s-7);
  grid-template-columns: 1fr;
}

.studio__inner > * {
  min-width: 0;
}

/* Mobile: the preview pins under the header while the controls scroll past. */
.studio__preview {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  height: 220px;
  display: grid;
  place-items: center;
  background-color: var(--bg);
  border-bottom: 1px solid var(--line);
  margin-inline: calc(var(--s-5) * -1);
  padding-inline: var(--s-5);
}

.studio__preview .nail-art {
  height: 186px;
  width: auto;
  max-width: 100%;
}

@media (min-width: 900px) {
  .studio__inner {
    grid-template-columns: 480px 1fr;
    gap: var(--s-8);
    align-items: start;
  }

  .studio__preview {
    position: sticky;
    top: calc(var(--header-h) + var(--s-5));
    height: auto;
    border-bottom: 0;
    margin-inline: 0;
    padding: var(--s-6);
    background-color: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
  }

  .studio__preview .nail-art {
    height: min(420px, 58vh);
    width: auto;
    max-width: 100%;
  }
}

.studio__group {
  padding-block: var(--s-6);
  border-bottom: 1px solid var(--line);
  margin: 0;
  border-inline: 0;
  border-top: 0;
}

.studio__legend {
  display: block;
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--ink-soft);
  margin-bottom: var(--s-4);
  padding: 0;
}

.studio__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

/* Chip carrying a shape silhouette. */
.chip__glyph {
  width: 15px;
  height: 21px;
  flex: none;
  color: var(--ink-soft);
}

.chip:has(input:checked) .chip__glyph {
  color: var(--rose-deep);
}

/* ------------------------------------------------------------ swatches */

.swatch-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: var(--s-4);
}

.swatch {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
  cursor: pointer;
  text-align: center;
}

.swatch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

.swatch__dot {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.swatch__name {
  font-size: var(--fs-eyebrow);
  color: var(--ink-soft);
  line-height: 1.3;
}

.swatch__check {
  width: 18px;
  height: 18px;
  opacity: 0;
  color: var(--surface);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55));
}

/* Selection is the ring plus the tick, never the colour on its own. */
.swatch input:checked ~ .swatch__dot .swatch__check {
  opacity: 1;
}

.swatch:has(input:checked) .swatch__dot {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--rose-deep);
  transform: translateY(-2px);
}

.swatch:has(input:checked) .swatch__name {
  color: var(--ink);
  font-weight: 700;
}

.swatch:has(input:focus-visible) .swatch__dot {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.studio__custom {
  margin-top: var(--s-5);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4);
}

.studio__custom input[type="color"] {
  width: 64px;
  height: var(--tap);
  padding: var(--s-1);
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
}

.studio__notes {
  width: 100%;
  max-width: 46ch;
  padding: var(--s-3);
  background-color: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  resize: vertical;
}

.studio__count {
  display: block;
  margin-top: var(--s-2);
  font-size: var(--fs-eyebrow);
  color: var(--ink-soft);
}

/* ------------------------------------------------------------- summary */

.summary {
  margin-top: var(--s-7);
  background-color: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
}

.summary__list {
  display: grid;
  gap: var(--s-2);
  margin: 0 0 var(--s-6);
  padding: 0;
}

.summary__row {
  display: flex;
  gap: var(--s-3);
  font-size: var(--fs-small);
}

.summary__row dt {
  flex: none;
  width: 8.5rem;
  color: var(--ink-soft);
}

.summary__row dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.summary__aside {
  margin-top: var(--s-4);
  font-size: var(--fs-small);
}

/* ============================================================== filters */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: 0 0 var(--s-7);
  padding: 0;
  border: 0;
}

.filters legend {
  padding: 0;
  margin-bottom: var(--s-3);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--ink-soft);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  list-style: none;
  margin: 0 0 var(--s-4);
  padding: 0;
}

.tag {
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 4px var(--s-3);
}

/* ========================================================= step figures */

.steps-list {
  display: grid;
  gap: var(--s-6);
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: stepnum;
}

.steps-list > li {
  counter-increment: stepnum;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--s-5);
  align-items: start;
}

.step-figure {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background-color: var(--surface);
  color: var(--ink-soft);
}

.step-figure svg {
  width: 32px;
  height: 32px;
}

.steps-list__title {
  font-family: var(--ff-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: var(--s-2);
}

.steps-list__title::before {
  content: counter(stepnum) ". ";
  color: var(--rose-deep);
}

.steps-list__body {
  color: var(--ink-soft);
}

/* ============================================================== callout */

.callout {
  margin-top: var(--s-7);
  background-color: var(--blush-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
}

.callout__title {
  font-family: var(--ff-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  margin-bottom: var(--s-3);
}

.callout__body {
  color: var(--ink-soft);
  margin-bottom: var(--s-5);
}

/* Bulleted list in the brand style. */
.bullets {
  display: grid;
  gap: var(--s-3);
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--ink-soft);
}

.bullets > li {
  position: relative;
  padding-left: var(--s-5);
}

.bullets > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--rose-deep);
}

.prose-block + .prose-block {
  margin-top: var(--s-8);
}

.prose-block__title {
  font-family: var(--ff-display);
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: var(--ls-heading);
  line-height: var(--lh-heading);
  margin-bottom: var(--s-5);
}

.prose-block p + p {
  margin-top: var(--s-4);
}

.about__art {
  margin-top: var(--s-7);
}

.about__art .nail-art {
  max-width: 460px;
  margin-inline: auto;
}

/* ====================================================== page composition */

.hero__art .nail-art--hero {
  max-width: 520px;
  margin-inline: auto;
}

/* Static art shown only when scripting is off. */
.hero__fallback {
  max-width: 190px;
  margin-inline: auto;
}

html.js .hero__fallback {
  display: none;
}

.collection__art {
  margin-bottom: var(--s-5);
}

.collection .card__title {
  margin-bottom: var(--s-2);
}

.collection .card__body {
  margin-bottom: var(--s-3);
}

/* motion */

/* Nothing is hidden until ui.js adds .reveal-ready, so content is visible with
   JavaScript off and the observer always puts it back. */
html.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease-out, transform 500ms ease-out;
}

html.reveal-ready [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html.reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-header);
}

/* The preview is replaced wholesale on every change, so fade the new one in.
   The stage has a fixed height, so nothing shifts. */
@keyframes nail-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.studio__preview .nail-art,
.mini__stage .nail-art {
  animation: nail-in 200ms ease-out;
}

/* two ways to order */

.duo {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: 1fr;
}

.duo > * {
  min-width: 0;
}

@media (min-width: 860px) {
  .duo {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-6);
  }
}

.duo-card {
  display: flex;
  flex-direction: column;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  transition: box-shadow 200ms ease, transform 200ms ease;
}

.duo-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.duo-card__art {
  display: grid;
  place-items: center;
  margin-block: var(--s-6);
  min-height: 190px;
}

.duo-card__art .nail-art {
  height: 190px;
  width: auto;
  max-width: 100%;
}

.duo-card__art .nail-art--set {
  height: auto;
  width: 100%;
}

.duo-card__actions {
  margin-top: auto;
  padding-top: var(--s-5);
}

/* mini studio */

.mini {
  display: grid;
  gap: var(--s-6);
  grid-template-columns: 1fr;
  align-items: start;
}

.mini > * {
  min-width: 0;
}

@media (min-width: 860px) {
  .mini {
    grid-template-columns: 360px 1fr;
    gap: var(--s-8);
  }
}

.mini__stage {
  display: grid;
  place-items: center;
  min-height: 300px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
}

.mini__stage .nail-art {
  height: 260px;
  width: auto;
  max-width: 100%;
}

.mini__group + .mini__group {
  margin-top: var(--s-6);
}

.mini__actions {
  margin-top: var(--s-7);
}

/* why press-on */

.icon-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--rose-deep);
}

.icon-card__icon svg {
  width: 26px;
  height: 26px;
}

/* instagram block */

.ig-block {
  text-align: center;
}

.ig-block__glyph {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: var(--s-5);
  border-radius: var(--r-pill);
  background-color: var(--blush-soft);
  color: var(--rose-deep);
}

.ig-block__glyph svg {
  width: 30px;
  height: 30px;
}

.ig-block__handle {
  font-family: var(--ff-display);
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: var(--ls-heading);
  color: var(--ink);
  margin-bottom: var(--s-3);
}

.ig-block__line {
  color: var(--ink-soft);
  margin-inline: auto;
  margin-bottom: var(--s-6);
}

/* reading pages */

/* Sizing and Care are text pages, so the column is centred rather than
   hard against the left edge of a 1120px container. */
.reading {
  max-width: 68ch;
  margin-inline: auto;
}

.reading .prose-block__title,
.reading p,
.reading .bullets {
  max-width: none;
}

@media (min-width: 860px) {
  .steps-list--two {
    grid-template-columns: 1fr 1fr;
    column-gap: var(--s-7);
  }
}

/* ========================================================== sister brand */

/* Print Matrix, her other brand. Built from the same parts as .card so the
   About page still reads as one family. */
.sister-card {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: start;
  gap: var(--s-5);
  margin-top: var(--s-6);
  padding: var(--s-6);
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

@media (min-width: 620px) {
  .sister-card {
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: var(--s-6);
  }
}

/* The mark carries its own cream ground, so the ring only has to frame it. */
.sister-card__mark {
  width: 120px;
  height: 120px;
  border-radius: var(--r-pill);
  background-color: var(--bg-elev);
  border: 1px solid var(--line);
}

.sister-card__name {
  font-family: var(--ff-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: var(--ls-heading);
  line-height: 1.15;
  color: var(--ink);
}

.sister-card__tagline {
  margin-top: var(--s-2);
  color: var(--ink-soft);
  font-size: var(--fs-small);
}

/* --ink-muted would be the quieter choice but only reaches 4.29:1 on --surface,
   so the handle takes --ink-soft and the hierarchy comes from the order. */
.sister-card__handle {
  margin-top: var(--s-1);
  color: var(--ink-soft);
  font-size: var(--fs-small);
}

.sister-card__action {
  margin-top: var(--s-4);
}

/* One quiet line under the home page Instagram button. */
.sister-line {
  margin-top: var(--s-5);
  color: var(--ink-soft);
  font-size: var(--fs-small);
  line-height: 1.7;
}

.sister-line a {
  color: var(--ink);
  padding: var(--s-1) 0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
  transition: text-decoration-color 180ms ease;
}

.sister-line a:hover {
  text-decoration-color: var(--rose-deep);
}
