/* Salon layout ("fern"): a menu card scrolls beside a fixed panel; the photo sits in an oval like the salon's mirrors. */

:root {
  --font: "EB Garamond", Garamond, Georgia, serif;
  --gap: 12px;
  --radius: 20px;
  --step-small: 0.9375rem;
  --step-body: clamp(1.125rem, 1.05rem + 0.25vw, 1.25rem);
  --step-lead: clamp(1.25rem, 1.15rem + 0.4vw, 1.4375rem);
  --step-head: clamp(2rem, 1.6rem + 1.4vw, 2.75rem);
  --step-hero: clamp(2.75rem, 1.4rem + 3.9vw, 5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

body { background: var(--field); color: var(--ink); font-family: var(--font); font-size: var(--step-body); line-height: 1.55; }
::selection { background: var(--accent); color: var(--accent-ink); }

.m-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); padding: var(--gap); align-items: start; }

/* The mirror */
.m-mirror {
  order: 2; position: sticky; top: var(--gap); height: calc(100svh - var(--gap) * 2);
  border-radius: var(--radius); background: var(--paper-2); overflow: hidden; display: grid; place-items: center;
}
.m-glass {
  position: relative; width: min(74%, 30rem); aspect-ratio: 3 / 4.2; max-height: 78%;
  border-radius: 50%; overflow: hidden; background: var(--field);
  outline: 10px solid var(--paper); outline-offset: 0;
}
.m-glass-name { position: absolute; inset: 0; display: grid; place-items: center; padding: 2rem; margin: 0; text-align: center; font-style: italic; font-size: clamp(1.75rem, 1.2rem + 2vw, 3rem); line-height: 1.05; color: var(--accent); }
.m-frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 0.8s ease, transform 1.4s var(--ease); }
.m-frame.is-shown { opacity: 1; transform: scale(1); }
.m-mirror-bar {
  position: absolute; left: 0; right: 0; bottom: 0; min-height: 3.5rem; padding: 0 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--paper); font-size: var(--step-small);
}

/* The card */
.m-card { order: 1; background: var(--paper); border-radius: var(--radius); padding: 0 clamp(1.25rem, 0.5rem + 3vw, 4rem); }
.m-head { min-height: calc(100svh - var(--gap) * 2); display: flex; flex-direction: column; }
.m-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding: 1.25rem 0; }
.m-nav a { text-decoration: none; padding: 0.5rem 0; }
.m-nav a:first-child { justify-self: start; }
.m-nav a:last-child { justify-self: end; }
.m-nav a:hover { text-decoration: underline; }
.m-wordmark { font-style: italic; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1; }
.m-hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem; text-align: center; padding: 3rem 0 5rem; }
.m-hero h1 { font-weight: 400; font-size: var(--step-hero); line-height: 1.04; letter-spacing: -0.015em; color: var(--accent); max-width: 14ch; animation: m-rise 1s var(--ease) both; }
.m-intro { font-size: var(--step-lead); max-width: 34ch; animation: m-rise 1s var(--ease) 0.1s both; }
.m-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0 2rem;
  background: var(--accent); color: var(--accent-ink); border-radius: 2px; text-decoration: none; font-size: 1.1875rem;
  transition: background-color 0.2s ease, transform 0.2s var(--ease);
}
.m-hero .m-btn { animation: m-rise 1s var(--ease) 0.2s both; }
.m-btn:hover { background: var(--accent-hover); }
.m-btn:active { transform: scale(0.97); }
.m-status { display: inline-flex; align-items: center; gap: 0.5rem; font-style: italic; }
.m-status::before { content: ""; width: 0.625rem; height: 0.625rem; border-radius: 50%; background: var(--muted); }

.m-card section { max-width: 34rem; margin: 0 auto; padding: clamp(4rem, 3rem + 4vw, 7rem) 0; }
.m-card h2 { font-weight: 400; font-style: italic; font-size: var(--step-head); line-height: 1.1; text-align: center; margin-bottom: 1.25rem; }
.m-note { color: var(--muted); font-style: italic; text-align: center; max-width: 36ch; margin: 0 auto; }

/* Menu with dotted leaders */
.m-group { margin-top: 2.75rem; }
.m-group h3 { font-weight: 500; font-size: 1.375rem; color: var(--accent); margin-bottom: 0.75rem; text-align: center; }
.m-group li { display: grid; grid-template-columns: auto minmax(1.5rem, 1fr) auto; align-items: baseline; gap: 0.5rem; padding: 0.5rem 0; }
.m-item { display: flex; flex-direction: column; }
.m-detail { font-style: italic; color: var(--muted); font-size: 1rem; }
.m-leader { border-bottom: 3px dotted var(--field); transform: translateY(-0.3em); }
.m-price { font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }

/* About */
.m-about p { margin-top: 1rem; }
.m-about p:first-of-type::first-letter { font-size: 3.4em; float: left; line-height: 0.85; padding: 0.06em 0.08em 0 0; color: var(--accent); }
.m-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2.5rem; text-align: center; }
.m-facts div { display: flex; flex-direction: column-reverse; padding: 1.25rem 0.5rem; background: var(--paper-2); border-radius: 12px; }
.m-facts dd { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); line-height: 1.1; color: var(--accent); }
.m-facts dt { font-style: italic; color: var(--muted); font-size: 1rem; }

/* Photo strip */
.m-card .m-strip { max-width: none; display: grid; grid-template-columns: 3fr 2fr; gap: var(--gap); padding: 0; align-items: end; }
.m-strip figure { overflow: hidden; border-radius: 12px; }
.m-strip figure:first-child { aspect-ratio: 4 / 5; }
.m-strip figure:last-child { aspect-ratio: 1; margin-bottom: 3rem; }
.m-strip img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.m-strip figure:last-child { border-radius: 0; }
.m-strip figure:last-child img { object-fit: contain; }

/* Visit */
.m-visit { display: grid; gap: 1.5rem; justify-items: center; text-align: center; }
.m-address { font-size: var(--step-lead); }
.m-hours { width: 100%; font-variant-numeric: lining-nums tabular-nums; }
.m-hours th, .m-hours td { padding: 0.5rem 0.75rem; font-weight: 400; text-align: left; }
.m-hours td { text-align: right; }
.m-hours tr.is-today { background: var(--paper-2); }
.m-hours tr.is-today th, .m-hours tr.is-today td { font-weight: 500; color: var(--accent); }
.m-contact { display: grid; gap: 0.25rem; font-size: var(--step-lead); }
.m-contact a { display: inline-block; padding: 0.25rem 0; }
.m-visit .map { border-radius: 12px; }

.m-foot { max-width: 34rem; margin: 0 auto; padding: 3rem 0 2.5rem; display: grid; gap: 0.75rem; text-align: center; font-size: var(--step-small); color: var(--muted); }
.m-foot-name { font-style: italic; font-size: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); line-height: 1; color: var(--ink); margin-bottom: 1rem; }

@keyframes m-rise { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: none; } }

/* Back-to-top button colours */
:root { --to-top-bg: var(--accent); --to-top-ink: var(--accent-ink); }

@media (max-width: 860px) {
  .m-stage { grid-template-columns: 1fr; padding: 8px; gap: 0; }
  .m-mirror { order: 1; position: sticky; top: 0; height: 58svh; z-index: 0; }
  .m-glass { width: min(62%, 18rem); max-height: 80%; outline-width: 7px; }
  .m-mirror-bar { min-height: 3rem; }
  .m-card { order: 2; position: relative; z-index: 1; margin-top: 8px; }
  .m-head { min-height: 0; }
  .m-hero { padding: 1.5rem 0 3rem; }
  .m-nav { padding: 1rem 0 0.5rem; }
}
@media (max-width: 420px) {
  .m-facts { grid-template-columns: 1fr 1fr 1fr; gap: 0.5rem; }
  .m-card .m-strip { grid-template-columns: 1fr; }
  .m-strip figure:last-child { display: none; }
}
