@view-transition { navigation: auto; }

:root {
  --sky: #58b2e4;
  --sky-deep: #2f8fca;
  --ink: #0c1b3d;
  --ink-soft: #3b4768;
  --paper: #fff9ec;
  --paper-2: #fdf0d2;
  --gold: #e8b52c;
  --gold-deep: #a9730c;
  --gold-light: #fff0a8;
  --danger: #a81f3d;
  --ok: #17693f;
  --display: 'Grenze Gotisch', 'Times New Roman', serif;
  --body: 'Figtree', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --border: 3px solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --radius: 14px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--ink);
  font: 400 17px/1.55 var(--body);
  /* Safari paints a plain color behind the phone's status bar and toolbar, and the page
     can't draw there. Fading the clouds out at the edges hides the line where they meet. */
  background:
    linear-gradient(var(--sky), transparent 90px),
    linear-gradient(to top, var(--sky), transparent 90px),
    var(--sky) url('/assets/texture.svg');
}

h1, h2, h3 { margin: 0; line-height: 1.1; }

a { color: inherit; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* Metallic gold lettering, from the book cover reference */
.gold-text {
  font-family: var(--display);
  font-weight: 800;
  color: var(--gold);
  background: linear-gradient(170deg, #fff6c4 8%, #e8b52c 42%, #fff0a8 58%, #a9730c 92%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(2px 2px 0 var(--ink)) drop-shadow(-1px -1px 0 var(--ink)) drop-shadow(1px -1px 0 var(--ink)) drop-shadow(-1px 1px 0 var(--ink));
}

/* ---------- Home ---------- */
.home {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding: clamp(10px, 2.5vh, 26px) 16px 24px;
}

.home-title {
  font-size: clamp(2rem, min(11.5vw, 7.5vh), 4.2rem);
  text-align: center;
  padding: 0 6px;
}

.stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
}

/* Everything inside .character is placed on one 1000 x 1400 grid. From back to front:
   head and hair, body, a copy of her face so her chin sits over her neck, the things
   she's holding, then a copy of just her fingers so they wrap around the handles while her palms stay behind. */
.character {
  position: relative;
  width: min(116%, calc((100dvh - 162px) * 0.714), 660px);
  flex: none;
  /* The dryer sticks out farther than the mirror, so the art sits left of center without this. */
  translate: 4.9% 0;
  aspect-ratio: 1000 / 1400;
}

.character img { display: block; height: auto; }
.prop img { width: 100%; }

.char-body, .char-hand {
  position: absolute;
  left: 9.1%;
  top: 27.8%;
  width: 72%;
  pointer-events: none;
  transform-origin: 50% 90%;
}

.char-body { z-index: 2; }
.char-hand { z-index: 6; }
.char-hand-left { clip-path: polygon(15.62% 19.53%, 10.74% 22.14%, 10.50% 24.41%, 13.18% 27.02%, 15.62% 26.69%, 17.63% 25.39%, 18.19% 24.90%, 22.09% 24.50%, 22.34% 23.68%, 21.24% 22.54%, 19.17% 20.43%); }
.char-hand-right { clip-path: polygon(80.69% 21.08%, 85.21% 21.24%, 88.87% 20.67%, 89.60% 23.93%, 86.18% 27.43%, 83.25% 26.77%, 83.98% 25.47%, 79.22% 25.23%, 79.35% 24.17%, 82.52% 23.36%, 83.37% 22.71%); }

.char-head, .char-face {
  position: absolute;
  left: 12%;
  top: 0;
  width: 70%;
  transform-origin: 47% 77%;
  will-change: transform;
  pointer-events: none;
  user-select: none;
}

.char-head { z-index: 1; }

/* The shadow lives on the wrapper because a clipped image would cut off its own. */
.char-face { z-index: 3; filter: drop-shadow(0 2px 0 #1b1210); }
.char-face img {
  width: 100%;
  clip-path: polygon(60.05% 66.99%, 59.97% 68.10%, 59.41% 69.22%, 58.13% 70.33%, 56.78% 71.45%, 55.18% 72.57%, 53.51% 73.68%, 51.59% 74.80%, 49.84% 75.92%, 46.97% 77.03%, 45.85% 77.19%, 44.58% 77.19%, 43.38% 77.03%, 40.83% 75.92%, 39.63% 74.80%, 38.84% 73.68%, 38.20% 72.57%, 37.64% 71.45%, 36.76% 70.33%, 35.96% 69.22%, 35.09% 68.10%, 34.21% 66.99%);
}

/* The image's see-through corners would otherwise block clicks on the mirror. */
.head-hit {
  position: absolute;
  left: 17%;
  top: 2%;
  width: 60%;
  height: 44%;
  z-index: 4;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.prop {
  position: absolute;
  display: block;
  z-index: 5;
  text-decoration: none;
  transition: transform 0.18s cubic-bezier(0.3, 1.6, 0.5, 1);
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  touch-action: manipulation;
  user-select: none;
}

.prop.is-active, .prop:focus-visible { transform: scale(1.08) rotate(var(--tilt)); }
.prop:active { transform: scale(0.97); }
.prop-mirror.is-active img { filter: brightness(1.18) drop-shadow(0 0 10px #fff); }

@media (hover: hover) {
  .prop:hover { transform: scale(1.08) rotate(var(--tilt)); }
  .prop:active { transform: scale(0.97); }
}

/* On phones the labels stay hidden until a tap, so these gentle wiggles show what to tap. */
@media (hover: none) {
  .prop:not(.is-active) { animation: invite 3.4s ease-in-out infinite; }
  .prop-mirror:not(.is-active) { animation-delay: 1.7s; }
}

@keyframes invite {
  0%, 78%, 100% { rotate: 0deg; }
  84% { rotate: var(--tilt); }
  90% { rotate: calc(var(--tilt) * -0.7); }
  95% { rotate: calc(var(--tilt) * 0.35); }
}
.prop img { filter: drop-shadow(0 6px 0 rgb(12 27 61 / 0.2)); }

.prop-dryer { left: 2%; top: 33.1%; width: 30%; --tilt: 4deg; transform-origin: 67% 85%; }
.prop-mirror { left: 56.4%; top: 29.1%; width: 23%; --tilt: 5deg; transform-origin: 50% 90%; }

/* Leans the mirror away from her so it doesn't cover her earring. */
.prop-mirror img { transform: rotate(18deg); transform-origin: 50% 72%; }

/* The name tag that appears on a prop */
.prop-tag {
  position: absolute;
  left: 50%;
  bottom: 100%;
  translate: -50% 0;
  white-space: nowrap;
  padding: 6px 15px 7px;
  font: 800 clamp(1.1rem, 2.9vh, 1.6rem)/1 var(--display);
  color: var(--gold-light);
  background: var(--ink);
  border: 3px solid var(--gold);
  border-radius: 999px;
  box-shadow: 3px 3px 0 rgb(12 27 61 / 0.35);
  transition: opacity 0.15s, translate 0.18s cubic-bezier(0.3, 1.6, 0.5, 1);
}

/* Under her hands, so the tags never cover her face. */
.prop-dryer .prop-tag { left: 67%; bottom: auto; top: 108%; }
.prop-mirror .prop-tag { left: 60%; bottom: auto; top: 101%; }

.prop-tag { opacity: 0; translate: -50% 8px; pointer-events: none; }
.prop.is-active .prop-tag, .prop:focus-visible .prop-tag { opacity: 1; translate: -50% 0; pointer-events: auto; }
.prop.is-active .prop-tag { animation: tag-pulse 1.3s ease-in-out infinite; }

@media (hover: hover) {
  .prop:hover .prop-tag { opacity: 1; translate: -50% 0; pointer-events: auto; }
}

@keyframes tag-pulse {
  0%, 100% { scale: 1; }
  50% { scale: 1.08; }
}

/* Hot air coming off the dryer when it is hovered */
.air {
  position: absolute;
  left: -8.7%;
  top: 33.8%;
  width: 14%;
  z-index: 5;
  scale: -1 1;
  overflow: visible;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.air path {
  fill: none;
  stroke: #fff;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 14 26;
  animation: blow 0.7s linear infinite;
}

.prop-dryer.is-active ~ .air, .prop-dryer:focus-visible ~ .air { opacity: 0.9; }

@media (hover: hover) {
  .prop-dryer:hover ~ .air { opacity: 0.9; }
}

@keyframes blow { to { stroke-dashoffset: -40; } }

/* Sparkles that invite a click */
.sparkle {
  position: absolute;
  width: 7%;
  aspect-ratio: 1;
  z-index: 7;
  pointer-events: none;
  animation: twinkle 2.4s ease-in-out infinite;
}

.sparkle::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
}

.sparkle-1 { left: 0; top: 33%; }
.sparkle-2 { left: 85%; top: 29%; animation-delay: 0.9s; }

@keyframes twinkle {
  0%, 100% { transform: scale(0.35) rotate(0deg); opacity: 0.2; }
  50% { transform: scale(1) rotate(45deg); opacity: 1; }
}

.home-hint {
  margin: 4px 0 0;
  text-align: center;
  font-size: clamp(0.95rem, 2.1vh, 1.1rem);
  font-weight: 600;
}

.home-hint a { font-weight: 800; text-underline-offset: 3px; }

.home-privacy {
  position: absolute;
  right: 6px;
  bottom: 2px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.75;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  .sparkle, .air path { animation: none; }
  .prop, .prop-tag { transition: none; animation: none !important; }
  @view-transition { navigation: none; }
}

/* ---------- Inner pages ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 880px;
  margin: 0 auto;
  padding: 14px 16px 0;
}

.topbar-home {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.topbar-home img { width: 52px; height: 54px; }
.topbar-name { font-size: 1.75rem; }

.topbar-links { display: flex; gap: 8px; }

.pill-link {
  padding: 6px 15px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 999px;
}

.pill-link:hover { background: var(--gold-light); }
.pill-link[aria-current='page'] { background: var(--ink); color: var(--gold-light); }

.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 18px 16px 56px;
}

.page-title { font-size: clamp(2.8rem, 9vw, 4.2rem); text-align: center; margin: 6px 0 6px; }
.page-lede { text-align: center; font-weight: 600; max-width: 560px; margin: 0 auto 22px; }

.card {
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(16px, 4vw, 28px);
  margin-bottom: 26px;
}

.step-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 800 clamp(1.8rem, 5vw, 2.3rem)/1.05 var(--display);
  margin-bottom: 14px;
}

.step-number {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding-bottom: 3px;
  color: var(--gold-light);
  background: var(--ink);
  border-radius: 50%;
  font-size: 1.6rem;
}

/* ---------- Public calendar. Nothing in it is clickable, on purpose. ---------- */
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cal-month { font: 800 1.7rem/1 var(--display); }

.cal-nav {
  width: 44px;
  height: 44px;
  font: 800 1.3rem/1 var(--body);
  color: var(--ink);
  background: var(--paper-2);
  border: 2px solid var(--ink);
  border-radius: 10px;
  cursor: pointer;
}

.cal-nav:hover:not(:disabled) { background: var(--gold-light); }
.cal-nav:disabled { opacity: 0.3; cursor: default; }

.cal-table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 4px; }
.cal-table th { padding: 2px 0 4px; font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }

.cal-day {
  height: clamp(44px, 10vw, 66px);
  text-align: center;
  vertical-align: middle;
  font-weight: 700;
  border-radius: 8px;
  cursor: default;
}

.cal-day.is-open { background: #fff; border: 2px solid var(--ink); }
.cal-day.is-closed { background: var(--ink); color: #8c97b8; border: 2px solid var(--ink); text-decoration: line-through; }
.cal-day.is-blank { background: transparent; }

.cal-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; font-size: 0.95rem; font-weight: 600; }
.cal-legend span { display: inline-flex; align-items: center; gap: 8px; }
.swatch { display: inline-block; width: 22px; height: 22px; border: 2px solid var(--ink); border-radius: 5px; background: #fff; }
.swatch-closed { background: var(--ink); }

.note {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--gold-light);
  border: 2px solid var(--ink);
  border-radius: 10px;
}

.note strong { display: block; font: 800 1.45rem/1.15 var(--display); margin-bottom: 4px; }
.note p { margin: 0; }

/* ---------- Policies ---------- */
.policy { margin-bottom: 16px; }
.policy h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 3px; font-family: var(--body); }
.policy p { margin: 0; white-space: pre-line; }

.agree {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  margin-top: 8px;
  font-weight: 700;
  background: var(--paper-2);
  border: 2px solid var(--ink);
  border-radius: 10px;
  cursor: pointer;
}

.agree input { flex: none; width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--ink); }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 5px; padding: 0; }
.field .help { margin: -2px 0 6px; font-size: 0.92rem; color: var(--ink-soft); }
.req { color: var(--danger); }

input[type='text'], input[type='tel'], input[type='email'], input[type='date'], select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  color: var(--ink);
  font: 400 16px/1.4 var(--body);
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 9px;
}

textarea { min-height: 96px; resize: vertical; }

.field-error { display: block; margin-top: 5px; font-size: 0.93rem; font-weight: 700; color: var(--danger); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }

.choice {
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 12px 14px 4px;
  margin: 0 0 12px;
  background: var(--paper-2);
}

.choice legend { font: 800 1.3rem/1 var(--display); padding: 0 6px; margin-left: -6px; }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice .field { margin-bottom: 10px; }
.choice .field label { font-size: 0.93rem; }

@media (max-width: 520px) {
  .choice-row { grid-template-columns: 1fr; gap: 0; }
}

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 8px 0 20px;
  font-size: 0.95rem;
  cursor: pointer;
}

.consent input { flex: none; width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--ink); }

.btn {
  display: inline-block;
  padding: 11px 26px 13px;
  font: 800 1.45rem/1.1 var(--display);
  color: var(--gold-light);
  text-decoration: none;
  background: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--gold-deep);
  cursor: pointer;
}

.btn:hover { background: #1d2f6b; }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--gold-deep); }
.btn:disabled { opacity: 0.55; cursor: wait; }
.btn-wide { width: 100%; }

.form-alert { margin: 0 0 14px; padding: 10px 14px; font-weight: 700; color: #fff; background: var(--danger); border-radius: 9px; }

.success { text-align: center; padding: 14px 0; }
.success h3 { font: 800 2.3rem/1.1 var(--display); margin-bottom: 8px; }
.success p { margin: 0 auto 10px; max-width: 480px; }

.form-intro { margin: 0 0 12px; }
.note-hours { margin-top: 8px; font-weight: 700; }

.add-on-box { padding: 12px 16px 8px; border: 2px solid var(--ink); border-radius: 12px; min-width: 0; }
.field .add-on-box legend, .add-on-box legend { padding: 0 6px; margin-bottom: 0; font-weight: 700; }
.add-on-desc { display: block; margin-top: 2px; font-size: 0.92rem; color: var(--ink-soft); }

fieldset.radio-group { margin-left: 0; margin-right: 0; padding: 0; border: 0; min-width: 0; }
.field .radio-option { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-weight: 400; margin: 0; cursor: pointer; }
.radio-option input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); }
.has-error .radio-option input { box-shadow: none; }

input[type='file'] {
  display: block;
  width: 100%;
  padding: 10px;
  font: 600 15px/1.3 var(--body);
  background: #fff;
  border: 2px dashed var(--ink);
  border-radius: 9px;
  cursor: pointer;
}

.photo-count { margin: 6px 0 8px; }
.photo-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-thumb { position: relative; width: 84px; height: 84px; }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; border: 2px solid var(--ink); border-radius: 8px; }
.photo-remove {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 30px;
  height: 30px;
  padding: 0;
  color: #fff;
  font: 800 18px/1 var(--body);
  background: var(--danger);
  border: 2px solid #fff;
  border-radius: 50%;
  cursor: pointer;
}

/* ---------- Waiver ---------- */
.waiver-title { margin-bottom: 12px; font: 800 1.35rem/1.25 var(--body); }
.waiver-facts { margin: 0 0 16px; }
.waiver-facts dt { margin-top: 6px; font-size: 0.88rem; font-weight: 700; color: var(--ink-soft); }
.waiver-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.waiver-list { margin: 6px 0; padding-left: 22px; }
.waiver-closing { margin-top: 8px; }
.waiver-sign-heading { margin: 22px 0 10px; font: 800 1.1rem/1.25 var(--body); }
.sig-canvas { display: block; width: 100%; height: 170px; background: #fff; border: 2px solid var(--ink); border-radius: 9px; cursor: crosshair; touch-action: none; }
.has-error .sig-canvas { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.link-clear { min-height: 44px; padding: 0; color: var(--ink); font: 600 0.95rem/1 var(--body); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; cursor: pointer; }
.guardian { margin-bottom: 8px; }
.field .agree { display: flex; padding: 14px; font-weight: 700; margin: 0; }

/* A signed waiver, ready to print */
.record-page { background: #eef3f8; }
.record-print { float: right; margin: 0 0 12px 12px; font-size: 1.15rem; padding: 7px 16px 9px; }
.record-sign-label { margin: 10px 0 4px; font-size: 0.88rem; font-weight: 700; color: var(--ink-soft); }
.record-signature { display: block; width: min(100%, 420px); height: auto; background: #fff; border-bottom: 2px solid var(--ink); }
.record-audit { margin: 18px 0 0; font-size: 0.8rem; color: var(--ink-soft); overflow-wrap: anywhere; }

@media print {
  .record-page { background: #fff; }
  .record-page .page { max-width: none; padding: 0; }
  .record-page .card { border: 0; box-shadow: none; padding: 0; }
  .record-print { display: none; }
}

/* Hidden from people, tempting to bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Service menu ---------- */
.menu-category { font: 800 2.3rem/1.1 var(--display); margin: 8px 0 14px; }

.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-bottom: 30px; }

@media (max-width: 620px) {
  .service-grid { grid-template-columns: minmax(0, 1fr); }
}

.service {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.service img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: var(--border); background: var(--paper-2); }
.service-body { flex: 1; display: flex; flex-direction: column; padding: 14px 16px 16px; }
.service-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.service h3 { font: 800 1.75rem/1.05 var(--display); }
.service-price { flex: none; font-weight: 800; font-size: 1.05rem; }
.service-time { margin: 3px 0 8px; font-size: 0.92rem; font-weight: 600; color: var(--ink-soft); }
.service-desc { margin: 0 0 14px; flex: 1; }
.service .btn { align-self: flex-start; font-size: 1.25rem; padding: 7px 18px 9px; }

.loading, .load-error { text-align: center; font-weight: 600; padding: 20px 0; }

.site-footer { padding: 0 16px 26px; text-align: center; font-size: 0.9rem; font-weight: 600; }
.site-footer a { margin: 0 6px; }

.prose h2 { font: 800 1.8rem/1.1 var(--display); margin: 18px 0 6px; }
.prose p { margin: 0 0 10px; }
