/* Pemma Demo: a boutique nail and beauty salon in King Farm, Rockville.
   Palette: milky-pink gel (page), nude (band), aubergine (ink and the visit section), cherry lacquer (Book).
   Type: Marcellus for display, Hanken Grotesk for everything read. Photos sit in an almond-nail shape. */

@font-face {
  font-family: "Marcellus";
  src: url("/fonts/marcellus-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/hanken-grotesk-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --milk: #f7eeee;
  --nude: #eedcd8;
  --line: #dcc6c5;
  --ink: #2a1724;
  --muted: #69505f;
  --cherry: #7a1631;
  --cherry-deep: #5e0f25;
  --pearl: #f6e9e8;
  --pearl-muted: #cdb7bf;

  --display: "Marcellus", "Optima", "Candara", "Segoe UI", serif;
  --text: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --wide: 1280px;
  --section: clamp(72px, 11vw, 144px);


  color: var(--ink);
  background: var(--milk);
  font-family: var(--text);
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.55;
  font-feature-settings: "kern", "liga";
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
figure {
  margin: 0;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h2 {
  font-size: clamp(2.25rem, 4.6vw, 3.5rem);
  line-height: 1.05;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--cherry);
  outline-offset: 3px;
  border-radius: 2px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--pearl);
  border-radius: 6px;
}
.skip:focus {
  top: 12px;
}

/* Buttons: Book is the one filled thing on the page. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--cherry);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.btn:hover {
  background: var(--cherry-deep);
}
.btn-small {
  min-height: 40px;
  padding: 0 20px;
  font-size: 0.9375rem;
}
.btn-light {
  background: var(--pearl);
  color: var(--ink);
}
.btn-light:hover {
  background: #fff;
}
.text-link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}
.text-link:hover {
  text-decoration-thickness: 2px;
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--milk) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}
.top-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 12px var(--gutter);
}
.brand {
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1;
  text-decoration: none;
  margin-right: auto;
}
.nav {
  display: none;
  gap: 28px;
  font-size: 0.9375rem;
}
.nav a {
  text-decoration: none;
  padding: 6px 0;
}
.nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.35em;
}
@media (min-width: 760px) {
  .nav {
    display: flex;
  }
}

/* Hero: the name, set as large as the page allows, beside a fresh manicure. */
.hero {
  display: grid;
  gap: 40px;
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(28px, 6vw, 72px) var(--gutter) var(--section);
}
.hero h1 {
  font-size: clamp(4.25rem, 19vw, 10.5rem);
  line-height: 0.88;
  letter-spacing: -0.025em;
  margin-left: -0.04em;
  max-width: 6ch;
}
.lede {
  margin-top: 28px;
  max-width: 30em;
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.5;
  color: var(--muted);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 32px;
}
.status {
  margin-top: 20px;
  font-size: 0.9375rem;
  color: var(--muted);
}
.status:empty {
  display: none;
}
/* The almond nail: a tapered tip, straight sides, a gentle curve at the cuticle (images/nail.svg). */
.nail {
  overflow: hidden;
  background: var(--nude);
  -webkit-mask: url("/images/nail.svg") center / 100% 100% no-repeat;
  mask: url("/images/nail.svg") center / 100% 100% no-repeat;
}
.nail img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.hero-photo {
  width: min(100%, 420px);
  justify-self: center;
}
@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    gap: 64px;
  }
  .hero-copy {
    padding-bottom: 24px;
  }
  .hero-photo {
    width: 100%;
    max-width: 480px;
    justify-self: end;
  }
}

/* Sections share a width and an opening. */
.menu,
.space {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--gutter) var(--section);
}
.section-head {
  display: grid;
  gap: 16px;
  margin-bottom: 48px;
}
.section-head p {
  max-width: 34em;
  color: var(--muted);
}
@media (min-width: 900px) {
  .section-head {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    gap: 64px;
  }
}

/* Menu: one row per category, opened like a drawer. */
.menu-group {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--muted);
  padding-bottom: 12px;
  margin-top: 56px;
  border-bottom: 1px solid var(--ink);
}
.section-head + .menu-group {
  margin-top: 0;
}
.cat {
  border-bottom: 1px solid var(--line);
}
.cat summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name sign" "note sign";
  align-items: center;
  column-gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
}
.cat summary::-webkit-details-marker {
  display: none;
}
.cat-name {
  grid-area: name;
  font-family: var(--display);
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  line-height: 1.1;
}
.cat-note {
  grid-area: note;
  margin-top: 4px;
  font-size: 0.9375rem;
  color: var(--muted);
}
/* A plus that becomes a minus. */
.cat summary::after {
  content: "";
  grid-area: sign;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 14px no-repeat;
  transition: background-size 0.2s ease, border-color 0.2s ease;
}
.cat[open] summary::after {
  background-size: 14px 1.5px, 1.5px 0;
}
.cat summary:hover::after {
  border-color: var(--ink);
}
.cat summary:hover .cat-name {
  color: var(--cherry);
}
@media (min-width: 760px) {
  .cat summary {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr) auto;
    grid-template-areas: "name note sign";
    align-items: baseline;
    padding: 28px 0;
  }
  .cat-note {
    margin-top: 0;
  }
  .cat summary::after {
    align-self: center;
  }
}
.cat-body {
  padding: 4px 0 40px;
}
.cat-book {
  display: inline-block;
  margin-top: 24px;
  font-weight: 600;
  color: var(--cherry);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}
.cat-book:hover {
  text-decoration-thickness: 2px;
}

/* Pemma's menu markup (worker/src/render.ts): ul.pm-services > li.pm-service > .pm-row(.pm-name .pm-dots .pm-price),
   p.pm-desc, p.pm-meta, then ul.pm-addons; groups and a foot of add-ons under h4.pm-group-name. */
.pm-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pm-services {
  display: grid;
  column-gap: 56px;
}
.pm-service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  column-gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  break-inside: avoid;
}
.pm-row {
  display: contents;
}
.pm-dots {
  display: none;
}
.pm-name {
  grid-column: 1;
  grid-row: 1;
  font-weight: 600;
}
.pm-meta {
  grid-column: 2;
  grid-row: 1;
  font-size: 0.875rem;
  color: var(--muted);
  white-space: nowrap;
}
.pm-price {
  grid-column: 3;
  grid-row: 1;
  font-weight: 600;
  font-variant-numeric: tabular-nums lining-nums;
  min-width: 3.2em;
  text-align: right;
}
.pm-desc {
  grid-column: 1 / -1;
  margin-top: 6px;
  max-width: 38em;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
}
.pm-service > .pm-addons {
  grid-column: 1 / -1;
  margin-top: 10px;
}
.pm-group,
.pm-foot {
  margin-top: 28px;
}
.pm-group-name {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.pm-foot {
  padding: 20px 24px 22px;
  background: var(--nude);
  border-radius: 14px;
}
.pm-foot .pm-addons {
  columns: 2 220px;
  column-gap: 40px;
}
.pm-addon {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 5px 0;
  font-size: 0.9375rem;
  break-inside: avoid;
}
.pm-addon .pm-name {
  font-weight: 400;
}
.pm-addon .pm-price {
  font-weight: 500;
  min-width: 0;
}

/* Long lists sit in columns, read top to bottom, one line per service. */
.cat-compact .pm-service {
  padding: 11px 0;
}
@media (min-width: 900px) {
  .pm-services {
    display: block;
    columns: 2;
    column-gap: 56px;
  }
  .cat-three .pm-services {
    columns: 3;
    column-gap: 48px;
  }
}

/* Our space */
.space {
  display: grid;
  gap: 40px;
}
.space-intro {
  display: grid;
  gap: 20px;
  max-width: 36em;
}
.space-intro p {
  color: var(--muted);
  line-height: 1.65;
}
.space-intro p:first-of-type {
  color: var(--ink);
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.55;
}
.space-wide img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 6px;
  background: var(--nude);
}
.trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 3vw, 40px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.trio figcaption {
  margin-top: 14px;
  font-size: 0.9375rem;
  text-align: center;
  color: var(--muted);
}
@media (max-width: 559px) {
  .trio figcaption {
    font-size: 0.8125rem;
    margin-top: 10px;
  }
}
@media (min-width: 900px) {
  .space {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: 64px;
    row-gap: 64px;
    align-items: start;
  }
  .space-intro {
    position: sticky;
    top: 110px;
  }
  .trio {
    grid-column: 1 / -1;
    padding: 0 8%;
  }
}

/* Gift cards and policies, on nude. */
.notes {
  background: var(--nude);
  padding: var(--section) var(--gutter);
  display: grid;
  gap: 48px;
  justify-items: center;
}
.notes > * {
  width: 100%;
  max-width: var(--wide);
}
.notes-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  background: var(--line);
}
.notes-list {
  display: grid;
  gap: 32px;
}
.notes-list h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.1;
  margin-bottom: 10px;
}
.notes-list p {
  max-width: 26em;
  color: var(--muted);
}
@media (min-width: 900px) {
  .notes {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: 64px;
    align-items: center;
    max-width: none;
    padding-left: max(var(--gutter), calc((100% - var(--wide)) / 2 + var(--gutter)));
    padding-right: max(var(--gutter), calc((100% - var(--wide)) / 2 + var(--gutter)));
  }
  .notes-list {
    gap: 40px;
  }
}

/* Visit: aubergine, like the inside of the salon after dark. */
.visit {
  background: var(--ink);
  color: var(--pearl);
}
.visit :focus-visible {
  outline-color: var(--pearl);
}
.visit-inner {
  display: grid;
  gap: 56px;
  max-width: var(--wide);
  margin: 0 auto;
  padding: var(--section) var(--gutter);
}
.visit h2 {
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: 0.95;
  margin-bottom: 32px;
}
.address {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.4;
}
.area,
.visit .status {
  color: var(--pearl-muted);
}
.area {
  margin-top: 4px;
}
.visit .status {
  margin-top: 24px;
  font-size: 1rem;
}
.visit .actions {
  margin-top: 36px;
}
.visit-hours h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--pearl-muted);
  padding-bottom: 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--pearl) 40%, transparent);
}
.hours ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pm-weekly li {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--pearl) 18%, transparent);
  font-variant-numeric: tabular-nums;
}
.pm-hours {
  text-align: right;
}
.pm-dates {
  margin-top: 20px !important;
  color: var(--pearl-muted);
  font-size: 0.9375rem;
}
.pm-dates li {
  padding: 4px 0;
}
@media (min-width: 900px) {
  .visit-inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 64px;
    align-items: end;
  }
}

/* Footer */
.foot {
  background: var(--ink);
  color: var(--pearl-muted);
  font-size: 0.9375rem;
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  align-items: baseline;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 28px var(--gutter) 40px;
  background: linear-gradient(color-mix(in srgb, var(--pearl) 18%, transparent) 0 0) center top /
    calc(100% - 2 * var(--gutter)) 1px no-repeat;
}
.foot :focus-visible {
  outline-color: var(--pearl);
}
.foot-name {
  font-family: var(--display);
  font-size: 1.375rem;
  color: var(--pearl);
}
.foot p:empty {
  display: none;
}
.foot-credit {
  margin-left: auto;
}
@media (max-width: 759px) {
  .foot-inner {
    flex-direction: column;
  }
  .foot-credit {
    margin-left: 0;
    margin-top: 12px;
  }
}
