/* Hoitola Aamuvalo. Phone first. Plum (--plum) is used on buttons and links only. */

@font-face { font-family: "Marcellus"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/marcellus-latin.woff2") format("woff2"); }
@font-face {
  font-family: "Albert Sans";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("fonts/albert-sans-latin.woff2") format("woff2");
}
/* Fallbacks scaled to the web fonts' width, so text does not rewrap and jump when they arrive. */
@font-face { font-family: "Marcellus fb"; src: local("Georgia"); size-adjust: 100%; }
@font-face { font-family: "Albert fb"; src: local("Arial"); size-adjust: 101.1%; }

:root {
  --bg: #fcf9f6;
  --sage: #dfe6d9;
  --blush: #f3e1da;
  --ink: #2d2829;
  --muted: #5c5456;
  --line: #d8cec2;
  --line-strong: #8a7f7b;
  --leaf: #66785f;
  --plum: #5a2a4c;
  --plum-deep: #431e38;
  --on-plum: #fff8f3;

  --serif: "Marcellus", "Marcellus fb", Georgia, serif;
  --sans: "Albert Sans", "Albert fb", "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section: clamp(5.5rem, 15vw, 11.5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-color: var(--line-strong) var(--bg); -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.65;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 62rem) { body { font-size: 1.1875rem; } }

::selection { background: var(--blush); color: var(--ink); }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; border-radius: 2px; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; text-wrap: balance; }
h1, h2 { text-transform: uppercase; letter-spacing: 0.045em; overflow-wrap: break-word; }
h1 { font-size: clamp(2.3rem, 7.4vw, 3.75rem); line-height: 1.12; }
h2 { font-size: clamp(1.8rem, 4.6vw, 2.75rem); line-height: 1.18; }
/* the word that says the reviews are invented */
.head h2 em { text-decoration: underline 1px; text-underline-offset: 0.18em; }
h3 { font-size: clamp(1.4rem, 3vw, 1.7rem); line-height: 1.2; }
h1 em, h2 em { font-style: normal; }
/* the short rule under a main heading */
.hero h1::after, .head h2::after, .pagehead h1::after { content: ""; display: block; width: 3rem; margin-top: 1.5rem; border-top: 1px solid currentColor; }
.head h2::after, .pagehead h1::after { margin-inline: auto; }
p { margin: 0; }
p + p { margin-top: 1.1em; }
ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }

a { color: var(--plum); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--plum-deep); text-decoration-thickness: 2px; }

.wrap { width: min(100% - 2 * var(--gutter), 74rem); margin-inline: auto; }
.measure { max-width: 36rem; }
.lede { font-size: 1.25rem; line-height: 1.55; max-width: 34rem; }
@media (min-width: 62rem) { .lede { font-size: 1.375rem; } }
.small { font-size: 1rem; color: var(--muted); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--plum); color: var(--on-plum); padding: 0.75rem 1.25rem; border-radius: 2px; }
.skip:focus, .skip:hover { top: 0.75rem; color: var(--on-plum); }

/* Buttons: the only filled plum on the site */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0.5rem 2rem;
  background: var(--plum); color: var(--on-plum);
  border: 1px solid var(--plum); border-radius: 2px;
  font: 500 1.0625rem/1.2 var(--sans); letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; touch-action: manipulation;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
.btn:hover { background: var(--plum-deep); border-color: var(--plum-deep); color: var(--on-plum); }
.btn:active { background: var(--ink); border-color: var(--ink); }
.btn[aria-disabled="true"] { background: transparent; color: var(--muted); border: 1px dashed var(--line-strong); cursor: not-allowed; }
.btn-quiet { background: transparent; color: var(--plum); }
.btn-quiet:hover { background: var(--plum); color: var(--on-plum); }
.btn-small { min-height: 2.75rem; padding-inline: 1.25rem; font-size: 1rem; }
.btn-block { width: 100%; }
@media (min-width: 40rem) { .btn-block { width: auto; } }

/* Top line and header */
.topline { border-bottom: 1px solid var(--line); text-align: center; font-size: 0.9375rem; padding: 0.45rem var(--gutter); color: var(--muted); }
.header { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 0.5rem; min-height: 4.5rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.4rem; margin-right: auto; color: var(--ink); text-decoration: none; font-family: var(--serif); text-transform: uppercase; letter-spacing: 0.14em; font-size: 1.15rem; line-height: 1; padding-block: 0.6rem; }
@media (min-width: 26rem) { .brand { font-size: 1.35rem; } }
.header-cta { padding-inline: 1rem; }
@media (max-width: 25.99rem) {
  .brand { font-size: 1.05rem; letter-spacing: 0.08em; }
  .header-cta { padding-inline: 0.85rem; }
  .menu-btn { padding-inline: 0.7rem; }
}
@media (max-width: 23.99rem) { .header .brand svg { display: none; } }
.brand:hover { color: var(--ink); }
.brand svg { width: 1.15rem; height: 1.9rem; color: var(--leaf); }
.menu-btn { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.9rem; background: none; border: 1px solid var(--line-strong); border-radius: 2px; font: 400 1rem var(--sans); color: var(--ink); cursor: pointer; }
html:not(.js) .menu-btn { display: none; }
.nav { flex-basis: 100%; padding-bottom: 1.25rem; }
html.js .nav:not(.open) { display: none; }
.nav a { display: block; padding: 0.7rem 0; color: var(--ink); text-decoration: none; border-top: 1px solid var(--line); font-size: 1.125rem; }
.nav a:hover { color: var(--plum); }
.nav a[aria-current="page"] { font-weight: 500; }
@media (min-width: 72rem) {
  .header { top: -5rem; }
  .menu-btn { display: none; }
  .header-in { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0 1rem; }
  .brand { grid-column: 1 / -1; justify-self: center; margin: 0; height: 5rem; font-size: 1.9rem; padding: 0; }
  .brand svg { width: 1.5rem; height: 2.5rem; }
  .nav, html.js .nav:not(.open) { grid-column: 2; display: flex; gap: 1.5rem; padding: 0; }
  .header-cta { grid-column: 3; grid-row: 2; justify-self: end; margin-block: 0.5rem; }
  .nav a { border: 0; padding: 0.9rem 0; font-size: 1rem; background: linear-gradient(var(--ink), var(--ink)) no-repeat 50% 78% / 0 1px; transition: background-size 0.6s var(--ease); }
  .nav a:hover, .nav a[aria-current="page"] { background-size: 100% 1px; color: var(--ink); font-weight: 400; }
}

/* Sections and tinted fields */
.section { padding-block: var(--section); }
.section-tight { padding-block: calc(var(--section) * 0.6); }
.field-sage, .field-blush { border-radius: 50% 50% 0 0 / clamp(2.5rem, 7vw, 6rem) clamp(2.5rem, 7vw, 6rem) 0 0; }
.field-sage { background: var(--sage); --field: var(--sage); }
.field-blush { background: var(--blush); --field: var(--blush); }
.head { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); text-align: center; }
.head p { margin: 1.5rem auto 0; }

/* Photo masks */
.arch, .oval { overflow: hidden; background: var(--blush); }
.arch { border-radius: 999px 999px 0 0; aspect-ratio: 3 / 4; }
.oval { border-radius: 50%; aspect-ratio: 4 / 5; }
.arch img, .oval img { width: 100%; height: 100%; object-fit: cover; }

/* Botanical line drawings */
.sprig { color: var(--leaf); fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.sprig * { vector-effect: non-scaling-stroke; }

/* Hero: words left, one large photo right */
.hero { display: grid; overflow: hidden; border-radius: 0; }
.hero-text { padding: clamp(2.75rem, 8vw, 5rem) var(--gutter); }
.hero-text > * + * { margin-top: 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2.25rem; }
.hero-photo { position: relative; aspect-ratio: 4 / 5; width: min(100% - 2 * var(--gutter), 26rem); margin-inline: auto; overflow: hidden; background: var(--blush); border-radius: 50% 50% 0 0 / 40% 40% 0 0; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 56rem) {
  .hero { grid-template-columns: 1fr 1fr; align-items: center; }
  .hero-text { padding-left: max(var(--gutter), calc((100vw - 74rem) / 2)); padding-right: clamp(2rem, 5vw, 5rem); }
  .hero { align-items: end; }
  .hero-text { align-self: center; }
  .hero-photo { width: min(100% - var(--gutter), 30rem); margin: 2.5rem auto 0; }
}

/* Treatment groups on the home page: tinted arch panels */
.groups { display: grid; gap: 1.25rem; }
.groups li { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; text-align: center; padding: 4rem 1.5rem 2.5rem; border-radius: 14rem 14rem 0 0; background: var(--sage); }
.groups li:nth-child(even) { background: var(--blush); }
.groups .sprig { width: 2rem; height: auto; margin-bottom: 0.5rem; }
.groups p { max-width: 16rem; }
.groups .from { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.groups .go { display: inline-block; padding-block: 0.5rem; margin-top: auto; }
@media (min-width: 40rem) { .groups { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68rem) { .groups { grid-template-columns: repeat(4, 1fr); gap: 1.75rem; } .groups li { min-height: 24rem; padding-top: 5rem; } }
.more { margin-top: 2.5rem; text-align: center; }

/* Steps: a real sequence, so the numerals stay */
.steps { position: relative; display: grid; gap: 3.5rem; counter-reset: step; max-width: 58rem; margin-inline: auto; }
.steps::before { content: ""; position: absolute; left: 1.4rem; top: 0.5rem; bottom: 0.5rem; border-left: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); }
.steps li { position: relative; counter-increment: step; padding-left: 4.5rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -0.35rem; width: 2.8rem; height: 2.8rem; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--ink) 45%, transparent); border-radius: 50%; background: var(--field, var(--bg)); font: 1.35rem/1 var(--serif); }
.steps h3 { margin-bottom: 0.6rem; }
@media (min-width: 56rem) {
  .steps { gap: 2rem; }
  .steps::before { left: 50%; }
  .steps li { width: 50%; padding: 0 4.5rem 0 0; text-align: right; }
  .steps li::before { left: auto; right: -1.4rem; }
  .steps li:nth-child(even) { margin-left: 50%; padding: 0 0 0 4.5rem; text-align: left; }
  .steps li:nth-child(even)::before { left: -1.4rem; right: auto; }
}

/* Split: photo and text */
.split { display: grid; gap: 3.5rem; align-items: center; }
.split-art { position: relative; max-width: 22rem; }
.split-art.framed::before { content: ""; position: absolute; inset: -1rem 1rem 1rem -1rem; border: 1px solid var(--leaf); border-radius: 999px 999px 0 0; }
.split-art .arch { position: relative; }
.split-art .sprig { position: absolute; right: -0.75rem; top: -3rem; width: 4rem; height: auto; }
.split-text > * + * { margin-top: 1.5rem; }
@media (min-width: 56rem) {
  .split { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 7rem; }
  .split-flip .split-art { order: 2; justify-self: end; }
  .split-art { width: 100%; max-width: 26rem; }
  .split-art .sprig { right: -3rem; top: -3.5rem; width: 5.5rem; }
}

/* Example reviews */
.reviews { display: grid; gap: clamp(3.5rem, 8vw, 5rem); }
.reviews li + li::before { content: ""; display: block; width: 3rem; margin: 0 auto clamp(3.5rem, 8vw, 5rem); border-top: 1px solid color-mix(in srgb, var(--ink) 40%, transparent); }
.reviews blockquote p { font-size: clamp(1.25rem, 3vw, 1.5rem); line-height: 1.55; max-width: 44rem; margin-inline: auto; text-align: center; text-wrap: balance; }
.reviews footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem 1rem; margin-top: 1.5rem; font-size: 1rem; }
.tag { display: inline-block; border: 1px solid var(--ink); border-radius: 2px; padding: 0.15rem 0.8rem; font-size: 0.9375rem; font-weight: 500; }

/* Call to action band */
.band { padding-block: clamp(4.5rem, 12vw, 8rem); text-align: center; border-block: 1px solid var(--line); }
.band .sprig { width: 3rem; height: auto; margin: 0 auto 1.5rem; display: block; }
.band p { font-family: var(--serif); text-transform: uppercase; letter-spacing: 0.045em; font-size: clamp(1.7rem, 4.6vw, 2.75rem); line-height: 1.18; text-wrap: balance; max-width: 22ch; margin-inline: auto; }
.band .btn { margin-top: 2.25rem; }

/* Photo band: a call to action over a pale photo */
.photoband { position: relative; isolation: isolate; display: grid; align-items: center; min-height: clamp(22rem, 40vw, 30rem); padding-block: 4rem; text-align: center; background: var(--blush); }
.photoband > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.photoband::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(252 249 246 / 0.8); }
.photoband .big { max-width: 16ch; margin-inline: auto; font-family: var(--serif); text-transform: uppercase; letter-spacing: 0.045em; font-size: clamp(2rem, 6vw, 3.5rem); line-height: 1.12; }
.photoband .btn { margin-top: 2.25rem; }

/* Four plain facts in a row */
.trust { padding-block: 2rem; background: var(--blush); }
.trust ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1.25rem; }
.trust a { color: var(--ink); }
.trust li { display: flex; align-items: center; gap: 0.75rem; line-height: 1.3; }
.trust .sprig { width: 1.4rem; height: auto; flex: none; }
@media (min-width: 56rem) {
  .trust ul { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .trust li + li { padding-left: 2rem; border-left: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); }
}

/* Hours and facts */
.facts { display: grid; gap: 3rem; max-width: 40rem; margin-inline: auto; text-align: center; }
.facts .measure, .facts .lede { margin-inline: auto; }
.hours { max-width: 34rem; margin-inline: auto; text-align: left; }
.hours div { display: flex; justify-content: space-between; gap: 2rem; padding-block: 0.85rem; border-top: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); font-variant-numeric: tabular-nums; }
.hours div:last-child { border-bottom: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); }
.hours dt { font-weight: 500; }
address { font-style: normal; }

/* Page head for inner pages */
.pagehead { padding-block: clamp(3.5rem, 9vw, 6rem) clamp(4rem, 10vw, 7rem); background: var(--sage); border-radius: 0 0 50% 50% / 0 0 clamp(2.5rem, 7vw, 6rem) clamp(2.5rem, 7vw, 6rem); }
.pagehead p { margin-top: 1.75rem; }
.pagehead > .wrap { display: block; text-align: center; }
.pagehead .lede, .pagehead .measure { margin-inline: auto; }
.pagehead .split-art { width: 100%; max-width: 22rem; margin: 3.5rem auto 0; }
.pagehead-compact { padding-block: 1.75rem 2rem; border-radius: 0; }
.pagehead-compact h1::after { display: none; }
.pagehead-compact p { margin-top: 0.75rem; }
.pagehead-compact + .section-tight { padding-top: 2rem; }
.head-sprig { display: block; width: 3.25rem; height: auto; margin: 0 auto 1.5rem; }
.prose > * + * { margin-top: 1.25rem; }
.prose h2 { margin-top: clamp(3.5rem, 8vw, 5.5rem); margin-bottom: 0.5rem; }
.ticks li { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.ticks li:last-child { border-bottom: 1px solid var(--line); }

/* Price list */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-bottom: clamp(3rem, 7vw, 5rem); }
html:not(.js) .filters { display: none; }
.chip { min-height: 2.75rem; padding: 0 1.1rem; background: transparent; border: 1px solid var(--line-strong); border-radius: 2px; font: 400 1rem var(--sans); color: var(--ink); cursor: pointer; transition: background-color 0.4s var(--ease), color 0.4s var(--ease); }
.chip:hover { border-color: var(--plum); }
.chip[aria-pressed="true"] { background: var(--plum); border-color: var(--plum); color: var(--on-plum); }
.cat { max-width: 54rem; margin-inline: auto; padding: clamp(4.5rem, 11vw, 6.5rem) clamp(1.25rem, 5vw, 4rem) 3rem; background: var(--sage); border-radius: 27rem 27rem 0 0; --line: color-mix(in srgb, var(--ink) 22%, transparent); }
.cat:nth-of-type(even) { background: var(--blush); }
.cat + .cat { margin-top: clamp(1.5rem, 4vw, 2.5rem); }
.cat h2 { margin-bottom: 2rem; text-align: center; }
.cat .prices .desc, .cat .prices .meta span, .cat .note { color: var(--ink); }
.cat ~ .note { margin-inline: auto; text-align: center; }
.prices li { display: grid; grid-template-columns: 1fr auto; gap: 0.35rem 1.5rem; padding-block: 1.6rem; border-top: 1px solid var(--line); align-items: baseline; }
.prices li:last-child { border-bottom: 1px solid var(--line); }
.prices h3 { font-family: var(--sans); font-weight: 500; font-size: 1.25rem; line-height: 1.3; }
.prices .meta { grid-column: 2; grid-row: 1 / span 2; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.prices .meta b { font-weight: 500; font-size: 1.25rem; display: block; }
.prices .meta span { color: var(--muted); font-size: 1rem; }
.prices .desc { grid-column: 1; grid-row: 2; color: var(--muted); max-width: 30rem; }
.prices .go { grid-column: 1 / -1; margin-top: 0.4rem; font-size: 1rem; }
.prices .go a { display: inline-block; padding-block: 0.6rem; }
.note { margin-top: 1.5rem; color: var(--muted); max-width: 36rem; }
@media (min-width: 60rem) {
  .prices li { grid-template-columns: minmax(0, 1fr) 8rem 4.5rem; column-gap: 2rem; }
  .prices li:has(.go a[href^="lahja"]) { grid-template-columns: minmax(0, 1fr) 8rem 9rem; }
  .prices .go { grid-column: 3; grid-row: 1 / span 2; margin: 0; text-align: right; }
}

/* Booking demo */
.progress { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-bottom: 2.5rem; font-size: 1rem; color: var(--muted); }
.progress li { display: flex; align-items: center; gap: 0.5rem; }
@media (max-width: 30rem) {
  .progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; text-align: center; }
  .progress li { flex-direction: column; gap: 0.3rem; font-size: 0.9375rem; }
}
.progress li span { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border: 1px solid var(--line-strong); border-radius: 50%; font-variant-numeric: tabular-nums; }
.progress li[aria-current="step"] { color: var(--ink); font-weight: 500; }
.progress li[aria-current="step"] span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.progress li.done span { background: var(--sage); border-color: var(--leaf); color: var(--ink); }
.chosen { margin-bottom: 2.25rem; padding-block: 1rem; border-block: 1px solid var(--line); max-width: 34rem; }
.step h2 { font-size: clamp(1.9rem, 5vw, 2.75rem); margin-bottom: 0.75rem; }
.step h2:focus { outline: none; }
.step > p { color: var(--muted); margin-bottom: 2rem; }
.step-nav { display: flex; flex-wrap: wrap-reverse; gap: 0.75rem; margin-top: 2.5rem; position: sticky; bottom: 0; padding-block: 0.9rem; background: var(--bg); border-top: 1px solid var(--line); }
.done-box .step-nav { position: static; background: none; border: 0; padding: 0; }
.step-nav .btn { flex: 1 1 8rem; padding-inline: 1.25rem; white-space: nowrap; }
@media (min-width: 40rem) { .step-nav .btn { flex: 0 0 auto; } }

fieldset { border: 0; padding: 0; margin: 0 0 2.25rem; min-width: 0; }
legend { font-family: var(--serif); font-size: 1.6rem; padding: 0; margin-bottom: 0.75rem; }
.opt { position: relative; display: block; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt span { display: grid; grid-template-columns: 1.5rem 1fr auto; gap: 0.2rem 0.9rem; align-items: baseline; padding: 1rem 0.25rem; border-top: 1px solid var(--line); }
.opt:last-child span { border-bottom: 1px solid var(--line); }
.opt span::before { content: ""; width: 1.15rem; height: 1.15rem; border: 1px solid var(--line-strong); border-radius: 50%; align-self: center; transition: box-shadow 0.3s var(--ease); }
.opt input:checked + span::before { border-color: var(--plum); box-shadow: inset 0 0 0 0.3rem var(--plum); }
.opt input:checked + span { background: color-mix(in srgb, var(--sage) 60%, transparent); }
.opt input:focus-visible + span { outline: 2px solid var(--plum); outline-offset: 2px; }
.opt em { font-style: normal; color: var(--muted); font-size: 1rem; grid-column: 2; }
.opt b { font-weight: 500; grid-column: 3; grid-row: 1; font-variant-numeric: tabular-nums; }

.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; max-width: 28rem; }
.cal-head h3 { font-size: 1.6rem; }
.cal-head h3::first-letter { text-transform: uppercase; }
.cal-arrow { width: 3rem; height: 3rem; display: inline-grid; place-items: center; background: none; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--plum); cursor: pointer; }
.cal-arrow:disabled { color: var(--line); border-color: var(--line); cursor: not-allowed; }
.cal-arrow svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.25rem; max-width: 28rem; }
.cal .wd { text-align: center; font-size: 0.9375rem; color: var(--muted); padding-bottom: 0.4rem; }
.day { aspect-ratio: 1; min-height: 2.75rem; display: grid; place-items: center; background: none; border: 1px solid transparent; border-radius: 50%; font: 400 1.0625rem var(--sans); font-variant-numeric: tabular-nums; color: var(--plum); cursor: pointer; }
.day:hover:not(:disabled) { border-color: var(--plum); }
.day:disabled { color: #9a908d; cursor: not-allowed; font-weight: 400; }
.day[aria-pressed="true"] { background: var(--plum); color: var(--on-plum); }
.day.today { border-color: var(--line-strong); }

.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); gap: 0.6rem; max-width: 34rem; }
.time { min-height: 3rem; background: none; border: 1px solid var(--line-strong); border-radius: 2px; font: 400 1.0625rem var(--sans); font-variant-numeric: tabular-nums; color: var(--plum); cursor: pointer; }
.time:hover { border-color: var(--plum); }
.time[aria-pressed="true"] { background: var(--plum); border-color: var(--plum); color: var(--on-plum); }
.empty { padding-block: 1.5rem; border-block: 1px solid var(--line); max-width: 34rem; }

.summary div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding-block: 0.9rem; border-top: 1px solid var(--line); }
.summary div:last-child { border-bottom: 1px solid var(--line); }
.summary dt { color: var(--muted); }
.summary { max-width: 34rem; }
.done-box { padding-block: clamp(2.5rem, 7vw, 4rem); border-block: 1px solid var(--line); max-width: 40rem; }
.done-box h2 { font-size: clamp(2rem, 5.5vw, 3rem); }
.done-box p { margin-top: 1.25rem; color: var(--ink); }
.done-box .sprig { width: 3rem; height: auto; margin-bottom: 1.25rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; align-items: center; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: var(--blush); cursor: zoom-in; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 2.4s var(--ease); }
.gallery button:hover img { transform: scale(1.03); }
.g-arch { border-radius: 999px 999px 0 0; aspect-ratio: 3 / 4; }
.g-oval { border-radius: 50%; aspect-ratio: 4 / 5; }
.gallery button:focus-visible { outline-offset: 4px; border-radius: inherit; }
@media (min-width: 48rem) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }

.lightbox { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: var(--bg); color: var(--ink); }
.lightbox::backdrop { background: var(--bg); }
.lb { display: grid; grid-template-rows: auto 1fr auto; height: 100%; padding: 1rem var(--gutter) 1.25rem; gap: 1rem; }
.lb-top { display: flex; justify-content: space-between; align-items: center; font-variant-numeric: tabular-nums; }
.lb-stage { min-height: 0; display: grid; place-items: center; touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 0.75rem; }
.lb-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.lb-bottom p { text-align: center; flex: 1; }

/* Footer */
.footer { padding-block: clamp(5rem, 11vw, 8rem) 2.5rem; text-align: center; background: var(--blush); border-radius: 50% 50% 0 0 / clamp(2.5rem, 7vw, 6rem) clamp(2.5rem, 7vw, 6rem) 0 0; }
.footer .brand { font-size: 1.9rem; padding: 0; margin: 0; }
.footer .brand svg { width: 1.5rem; height: 2.5rem; }
.footer p { margin-top: 1rem; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1.5rem; margin-top: 2rem; }
.footer-nav a { display: inline-block; padding-block: 0.6rem; }
.footer a { color: var(--ink); }
.footer a:hover { color: var(--plum); }
.footline { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between; font-size: 1rem; }
.footline a, .topline a { color: var(--plum); }

/* Nail colour chart */
.nails { display: grid; gap: 3rem; align-items: center; }
.nail-stage { position: relative; aspect-ratio: 4 / 5; width: 100%; max-width: 30rem; margin-inline: auto; border-radius: 999px 999px 0 0; background: var(--blush); overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; }
.nail-stage.drag { cursor: grabbing; }
.nail-stage::before { content: ""; position: absolute; left: 50%; bottom: 17.5%; height: 4.5%; aspect-ratio: 6 / 1; translate: -50%; background: radial-gradient(closest-side, rgb(45 40 41 / 0.2), transparent); pointer-events: none; }
.nail-stage canvas { -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
/* phone: the chart stays on screen while the colour list scrolls under it */
@media (max-width: 59.99rem) {
  .nail-stick { position: sticky; top: 4.5rem; z-index: 1; background: var(--bg); padding-block: 0.75rem; }
  .nail-stage { aspect-ratio: 1; width: min(100%, 46svh); }
}
.nail-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.nail-flat { display: none; position: absolute; left: 50%; top: 50%; width: 34%; aspect-ratio: 1 / 2; translate: -50% -50%; border-radius: 48% 48% 42% 42% / 30% 30% 12% 12%; background: var(--c); }
.nail-stage.no-gl { cursor: default; }
.nail-stage.no-gl .nail-flat { display: block; }
.nail-stage.no-gl canvas { display: none; }
.nail-turn { position: absolute; left: 0; right: 0; bottom: 1rem; display: flex; justify-content: center; gap: 0.75rem; }
.nail-turn .cal-arrow { background: var(--blush); }
.nail-panel h2 { }
.nail-panel > p { margin-top: 0.75rem; max-width: 30rem; }
.ctl { margin-top: 2rem; }
.ctl-label { font-weight: 500; margin-bottom: 0.75rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.sw { display: inline-flex; align-items: center; gap: 0.55rem; }
.sw::before { content: ""; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--c); border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); flex: none; }
.nail-panel .btn { margin-top: 2.5rem; }
@media (min-width: 60rem) { .nails { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 5rem; } }

/* Motion: slow fade, slow rise, a little parallax. Content is visible by default;
   html.motion is added by script only when the visitor has not asked for reduced motion. */
html.motion [data-reveal] { opacity: 0; transform: translateY(1.25rem); transition: opacity 1.9s var(--ease), transform 2.4s var(--ease); }
html.motion [data-reveal].in { opacity: 1; transform: none; }
html.motion [data-parallax] { will-change: transform; }
html.motion .hero-photo::after { content: ""; position: absolute; inset: 0; background: var(--sage); animation: light 3s var(--ease) both; }
html.motion .draw path, html.motion .draw circle { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 3.6s 0.5s var(--ease) forwards; }
@keyframes light { from { transform: none; } to { transform: translateY(-101%); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
