/* Empress Beauty. Tokens and rules come from docs/DESIGN.md. */
:root {
  --paper: oklch(98.5% 0.004 85);
  --paper-2: oklch(96.5% 0.007 85);
  --line: oklch(88% 0.008 80);
  --ink: oklch(22% 0.01 70);
  --ink-hover: oklch(32% 0.012 70);
  --ink-2: oklch(45% 0.012 70);
  --ink-3: oklch(54% 0.012 70);
  --gold: oklch(72% 0.11 85);
  --gold-deep: oklch(48% 0.085 78);
  --error: oklch(48% 0.16 25);
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px;
  --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --gutter: max(clamp(16px, 4vw, 48px), env(safe-area-inset-left), env(safe-area-inset-right));
  --section: clamp(64px, 5vw + 40px, 128px);
  --content: 1200px;
  --measure: 62ch;
  --header-h: 60px;
  --bar-h: 64px;
  --r-1: 2px; --r-2: 4px; --r-round: 999px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.64, 0, 0.78, 0);
  --t-1: 120ms; --t-2: 240ms; --t-3: 400ms; --t-4: 600ms;
  --font-head: "Sorts Mill Goudy", "Goudy Fallback", Georgia, serif;
  --font-body: "Archivo", "Archivo Fallback", Arial, sans-serif;
  --fs-0: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --fs-1: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --fs-2: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  --fs-3: clamp(1.375rem, 1.2rem + 0.9vw, 1.875rem);
  --fs-4: clamp(1.75rem, 1.4rem + 1.8vw, 2.75rem);
  --fs-5: clamp(2.25rem, 1.6rem + 3.4vw, 4rem);
}
@font-face { font-family: "Goudy Fallback"; src: local("Georgia"); size-adjust: 96%; ascent-override: 92%; }
@font-face { font-family: "Archivo Fallback"; src: local("Arial"); size-adjust: 99%; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--s-4)); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--fs-1)/1.55 var(--font-body);
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
  overflow-x: clip;
}
body.menu-open { overflow: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 400; margin: 0; }
h1 { font-size: var(--fs-5); line-height: 1.1; text-wrap: balance; }
h2 { font-size: var(--fs-4); line-height: 1.15; }
h3 { font-size: var(--fs-3); line-height: 1.15; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

main { padding-bottom: var(--section); }
.wrap { max-width: var(--content); margin-inline: auto; padding-inline: var(--gutter); }
.label { font: 500 var(--fs-0)/1.2 var(--font-body); font-stretch: 112%; letter-spacing: 0.08em; text-transform: uppercase; }
.eyebrow { display: block; color: var(--gold-deep); margin-bottom: var(--s-5); }
.eyebrow::after { content: ""; display: block; width: 40px; height: 1px; background: var(--gold); margin-top: var(--s-3); }
.on-marble .eyebrow { color: var(--ink); }
.lead { font-size: var(--fs-2); color: var(--ink-2); max-width: var(--measure); }
.copy { max-width: var(--measure); }
.copy p + p { margin-top: var(--s-4); }
.note { color: var(--ink-2); font-size: var(--fs-0); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--s-4); top: var(--s-4); z-index: 60; background: var(--paper); padding: var(--s-3) var(--s-4); }
.link { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.link:hover { text-decoration-thickness: 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px;
  border-radius: var(--r-1); text-decoration: none; text-align: center;
  font: 500 14px/1.2 var(--font-body); font-stretch: 112%; letter-spacing: 0.08em; text-transform: uppercase;
  transition: background-color var(--t-1) var(--ease-out);
}
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: inset 0 0 0 1px var(--gold); }
.btn-primary:hover { background: var(--ink-hover); }
.btn-secondary { border: 1px solid var(--ink); color: var(--ink); background: transparent; }
.btn-secondary:hover { background: var(--paper-2); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-6); height: var(--header-h); max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.wordmark { font: 400 22px/1 var(--font-head); letter-spacing: 0.01em; text-decoration: none; color: var(--ink); white-space: nowrap; }
.menu-btn { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; min-width: 44px; }
.menu-btn i { display: block; width: 18px; height: 7px; border-block: 1px solid var(--ink); }
.nav { display: none; }
.header-book { display: none; }

/* Phone menu */
.menu-panel {
  position: fixed; inset: var(--header-h) 0 0; z-index: 30; background: var(--paper); padding: var(--s-6) var(--gutter) calc(var(--bar-h) + env(safe-area-inset-bottom) + var(--s-5));
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-6); overflow-y: auto;
  opacity: 0; transform: translateY(-8px); visibility: hidden;
  transition: opacity var(--t-2) var(--ease-out), transform var(--t-2) var(--ease-out), visibility 0s linear var(--t-2);
}
.menu-open .menu-panel { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.menu-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.menu-panel a.item { font: 400 var(--fs-4)/1.15 var(--font-head); text-decoration: none; }
.menu-panel a.item[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gold-deep); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.menu-foot { font-size: var(--fs-0); color: var(--ink-2); }

/* Fixed phone Book bar */
.book-bar {
  position: fixed; inset: auto 0 0; z-index: 50; background: var(--paper); border-top: 1px solid var(--line);
  height: calc(var(--bar-h) + env(safe-area-inset-bottom)); padding: var(--s-2) var(--gutter) calc(var(--s-2) + env(safe-area-inset-bottom));
  transition: transform var(--t-2) var(--ease-in);
}
.book-bar .btn { width: 100%; }
.book-bar.is-hidden { transform: translateY(100%); }

/* Hero */
.hero { position: relative; }
.hero-media { position: relative; height: min(52svh, 110vw); background: var(--paper-2); overflow: hidden; }
.hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.hero-media video { opacity: 0; transition: opacity var(--t-3) var(--ease-out); }
.hero-media video.is-playing { opacity: 1; }
.hero-media::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(to top, var(--paper), transparent); pointer-events: none; }
.hero-copy { padding: var(--s-5) var(--gutter) var(--s-6); position: relative; }
.hero-copy .lead { margin-top: var(--s-3); }
.hero-copy .btn { display: none; }
.pause {
  position: absolute; right: var(--s-4); bottom: var(--s-4); z-index: 3; width: 40px; height: 40px; border-radius: var(--r-round);
  background: oklch(98.5% 0.004 85 / 0.92); border: 1px solid var(--line); display: grid; place-items: center;
}
.pause svg { width: 14px; height: 14px; fill: var(--ink); }

/* Sections */
.section { margin-top: var(--section); }
.section-head h2 { max-width: 16ch; }

/* Work */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
.tile { display: block; width: 100%; aspect-ratio: 3 / 4; border-radius: var(--r-2); overflow: hidden; cursor: zoom-in; background: var(--paper-2); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.reveal { opacity: 0; transform: translateY(12px); transition: opacity var(--t-4) var(--ease-out), transform var(--t-4) var(--ease-out); }
.reveal.is-in, .no-js .reveal { opacity: 1; transform: none; }
.grid:not(.hang) li:first-child { grid-column: span 2; }
.hang { margin-top: var(--s-6); }
.hang li:first-child { grid-column: span 2; }
.see-all { margin-top: var(--s-5); }
.see-all.left { text-align: left; }
.see-all .btn { width: 100%; }
.cta-row.spaced, .menu-group.first { margin-top: var(--s-7); }
.after-methods { margin-top: var(--s-5); }
.form-note { margin-top: var(--s-3); }
.med { font-weight: 500; }
@media (max-width: 1119px) { .cta-row .btn-primary { display: none; } }
.filters { display: flex; flex-wrap: wrap; gap: 0 var(--s-5); margin: var(--s-5) 0 var(--s-5); }
.filters button { min-height: 44px; min-width: 44px; color: var(--ink-2); position: relative; text-transform: inherit; letter-spacing: inherit; font-stretch: inherit; padding-inline: var(--s-2); margin-inline: calc(-1 * var(--s-2)); }
.filters button[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold-deep); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.filters button:hover { color: var(--ink); }
.page-head { padding-top: var(--s-7); }
.page-head .lead { margin-top: var(--s-4); }

/* Viewer */
.viewer { position: fixed; inset: 0; width: 100vw; max-width: none; height: 100svh; max-height: none; margin: 0; padding: 0; border: 0; background: oklch(98.5% 0.004 85 / 0.96); color: var(--ink); }
.viewer::backdrop { background: oklch(98.5% 0.004 85 / 0.96); }
.viewer-strip { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.viewer-strip::-webkit-scrollbar { display: none; }
.viewer-slide { flex: 0 0 100vw; scroll-snap-align: center; display: grid; place-items: center; padding: 56px var(--s-4); }
.viewer-slide img { max-width: 100%; max-height: calc(100svh - 112px); width: auto; height: auto; border-radius: var(--r-2); }
.viewer-close { position: absolute; top: var(--s-2); right: var(--s-2); min-width: 44px; min-height: 44px; padding: 0 var(--s-3); }
.viewer-count { position: absolute; left: var(--gutter); bottom: var(--s-4); color: var(--ink-3); font-size: var(--fs-0); }
.viewer-nav { display: none; position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: var(--r-round); background: var(--paper); border: 1px solid var(--line); place-items: center; font-size: 18px; }
.viewer-prev { left: var(--s-5); }
.viewer-next { right: var(--s-5); }

/* Marble */
.marble { position: relative; isolation: isolate; background: var(--paper); overflow: hidden; }
.marble::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.65;
  background: url("/assets/marble.webp") center / cover no-repeat;
}
.band { padding-block: var(--s-8); margin-top: var(--section); }
.band-grid { display: grid; gap: var(--s-6); }
.band-grid h2 { max-width: 14ch; }
.band-grid .copy { margin-top: var(--s-4); }
.band-grid .btn { margin-top: var(--s-5); }
.band-photo { border-radius: var(--r-2); aspect-ratio: 3 / 4; width: 100%; object-fit: cover; }

/* Prices */
.rows { list-style: none; margin: var(--s-5) 0 0; padding: 0; max-width: 680px; border-top: 1px solid var(--line); }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-5); min-height: 56px; padding-block: var(--s-3); border-bottom: 1px solid var(--line); }
.row a { text-decoration: none; }
.row a:hover { text-decoration: underline; text-underline-offset: 4px; }
.row small { display: block; font-size: var(--fs-0); color: var(--ink-2); margin-top: 2px; }
.price { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.menu-group + .menu-group { margin-top: var(--s-7); }

/* Emily */
.emily { display: grid; gap: var(--s-5); margin-top: var(--s-9); }
.emily img { border-radius: var(--r-2); aspect-ratio: 3 / 4; width: 100%; object-fit: cover; }
.emily .copy { margin-top: var(--s-4); }
.quote { margin: var(--s-5) 0 0; padding: 0; font: 400 var(--fs-3)/1.25 var(--font-head); max-width: 24ch; }
.quote-by { display: block; margin-top: var(--s-3); color: var(--ink-2); font: 400 var(--fs-0)/1.4 var(--font-body); }

/* Visit */
.visit { background: var(--paper-2); border-top: 1px solid var(--line); margin-top: var(--section); padding-block: var(--s-8); }
.visit .eyebrow { margin-bottom: var(--s-4); }
.visit-grid { display: grid; gap: var(--s-6); }
.hours { list-style: none; margin: 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: var(--s-4); max-width: 340px; }
.visit .btn { display: none; }

/* Page layouts */
.two-col { display: grid; gap: var(--s-6); }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); list-style: none; margin: 0; padding: 0; }
.photo-pair img { border-radius: var(--r-2); aspect-ratio: 3 / 4; width: 100%; object-fit: cover; }
.facts { list-style: none; margin: var(--s-5) 0 0; padding: 0; max-width: 680px; border-top: 1px solid var(--line); }
.facts li { padding-block: var(--s-3); border-bottom: 1px solid var(--line); }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }
.faq { max-width: 680px; margin-top: var(--s-5); border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); cursor: pointer; list-style: none; font-weight: 500; padding-block: var(--s-3); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; color: var(--ink-2); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: var(--s-4); color: var(--ink-2); }

.methods { margin-top: var(--s-6); max-width: var(--measure); }
.methods h3 { font-size: var(--fs-2); margin-top: var(--s-5); }
.methods p { color: var(--ink-2); margin-top: var(--s-1); }

/* Form */
.intro-band { padding-block: var(--s-8); }
.intro-band h1 { max-width: 14ch; }
.intro-band .lead { color: var(--ink); margin-top: var(--s-4); }
.form-wrap { max-width: 640px; }
.field { margin-top: var(--s-6); border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { display: block; font-weight: 500; padding: 0; margin-bottom: var(--s-2); }
.help { display: block; color: var(--ink-2); font-size: var(--fs-0); margin-bottom: var(--s-2); }
.input { width: 100%; min-height: 48px; padding: var(--s-3) var(--s-4); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-1); color: var(--ink); font: 400 max(16px, var(--fs-1))/1.4 var(--font-body); }
.input::placeholder { color: var(--ink-3); }
.input:focus { border-color: var(--ink); outline: 2px solid var(--ink); outline-offset: 2px; }
textarea.input { min-height: 140px; resize: vertical; }
.choices { border-top: 1px solid var(--line); }
.choice { display: flex; align-items: center; gap: var(--s-3); min-height: 52px; padding-inline: var(--s-2); border-bottom: 1px solid var(--line); cursor: pointer; transition: background-color var(--t-1) var(--ease-out); }
.choice:has(input:checked) { background: var(--paper-2); }
.choice input { appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border: 1px solid var(--ink); border-radius: var(--r-round); background: var(--paper); display: grid; place-items: center; cursor: pointer; }
.choice input:checked { background: var(--ink); }
.choice input:checked::before { content: ""; width: 8px; height: 8px; border-radius: var(--r-round); background: var(--paper); }
.picker { border: 1px solid var(--line); border-radius: var(--r-1); padding: var(--s-5); }
.picker input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.picker input[type="file"]:focus-visible + .btn { outline: 2px solid var(--ink); outline-offset: 3px; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-2); list-style: none; margin: var(--s-4) 0 0; padding: 0; }
.thumbs:empty { display: none; }
.thumbs li { position: relative; aspect-ratio: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-2); }
.thumbs .blank { width: 100%; height: 100%; display: grid; place-items: center; background: var(--paper-2); border-radius: var(--r-2); font-size: var(--fs-0); color: var(--ink-2); text-align: center; padding: var(--s-1); overflow: hidden; }
.thumbs button { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: var(--r-round); background: var(--ink); color: var(--paper); font-size: 14px; line-height: 24px; text-align: center; }
.thumbs button::after { content: ""; position: absolute; inset: -10px; }
.count { display: block; margin-top: var(--s-2); color: var(--ink-3); font-size: var(--fs-0); }
.field-error { display: block; color: var(--error); font-size: var(--fs-0); margin-top: var(--s-2); }
.has-error .input, .has-error .picker, .has-error .choices { border-color: var(--error); }
.has-error .choices { border: 1px solid var(--error); }
.error-summary { border: 1px solid var(--error); border-radius: var(--r-1); padding: var(--s-4); margin-top: var(--s-5); }
.error-summary ul { margin: var(--s-2) 0 0; padding-left: 20px; }
.send-failed { border: 1px solid var(--error); border-radius: var(--r-1); padding: var(--s-4); margin-top: var(--s-5); }
.progress { display: block; color: var(--ink-2); font-size: var(--fs-0); margin-top: var(--s-3); min-height: 1.4em; }
.submit { width: 100%; margin-top: var(--s-6); }
.hp { position: absolute; left: -9999px; }
.success h2 { margin-bottom: var(--s-3); }
.success .link { display: inline-block; margin-top: var(--s-4); }

/* Footer */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--line); padding: var(--s-8) 0 var(--s-7); color: var(--ink-2); }
.visit + .site-footer { border-top: 0; padding-top: 0; }
.footer-grid { display: grid; gap: var(--s-6); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-word { font: 400 22px/1 var(--font-head); color: var(--ink); margin-bottom: var(--s-3); display: block; }
.footer-maps { margin-top: var(--s-2); display: inline-block; text-decoration: underline; text-underline-offset: 4px; }
.copyright { margin-top: var(--s-6); color: var(--ink-3); font-size: var(--fs-0); }

.not-found { padding-block: var(--s-10); }
.not-found p { margin-block: var(--s-4) var(--s-5); color: var(--ink-2); }

/* Tablet: more photos across, phone navigation stays */
@media (min-width: 768px) {
  .grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
  .grid:not(.hang) li:first-child { grid-column: auto; }
  .hang { grid-template-columns: repeat(4, 1fr); }
  .hang li:first-child { grid-column: span 2; grid-row: span 2; }
  .hang li:first-child .tile { height: 100%; aspect-ratio: auto; }
}

/* Desktop */
@media (min-width: 1120px) {
  :root { --header-h: 72px; }
  body { padding-bottom: 0; }
  .book-bar, .menu-btn, .menu-panel { display: none; }
  .nav { display: flex; gap: clamp(20px, 2.4vw, 32px); margin-right: auto; margin-left: var(--s-5); }
  .nav a { text-decoration: none; color: var(--ink-2); padding-block: var(--s-2); transition: color var(--t-1) var(--ease-out); }
  .nav a:hover { color: var(--ink); }
  .nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold-deep); text-decoration-thickness: 2px; text-underline-offset: 8px; }
  .header-book { display: inline-flex; min-height: 44px; padding-inline: 20px; }
  .btn { min-height: 52px; }
  .hero-media { height: max(420px, min(calc(100svh - 72px - 208px), 760px)); }
  .hero-media img, .hero-media video { object-position: 50% 30%; }
  .hero-media::after { height: 12%; }
  .hero-copy { display: grid; grid-template-columns: 7fr 5fr; gap: var(--s-6); align-items: end; padding: var(--s-5) var(--gutter) 0; max-width: var(--content); margin-inline: auto; }
  .hero-copy h1 { font-size: clamp(2.5rem, 1.6rem + 2.4vw, 3.5rem); }
  .hero-copy .lead { margin-top: 0; font-size: var(--fs-1); }
  .hero-copy .btn { display: inline-flex; margin-top: var(--s-4); }
  .pause { right: var(--s-5); bottom: var(--s-5); }
  .grid { gap: var(--s-5); }
  .hang { gap: var(--s-4); }
  .see-all { text-align: right; }
  .see-all .btn { width: auto; }
  .band { padding-block: var(--s-9); }
  .band-grid { grid-template-columns: 6fr 1fr 5fr; align-items: center; }
  .band-grid > :last-child { grid-column: 3; }
  .emily { grid-template-columns: 5fr 1fr 6fr; align-items: center; }
  .emily > :last-child { grid-column: 3; }
  .visit-grid { grid-template-columns: 1fr 1fr 1fr; }
  .visit .btn { display: inline-flex; margin-top: var(--s-5); }
  .two-col { grid-template-columns: 5fr 1fr 6fr; }
  .photo-pair { gap: var(--s-4); }
  .two-col > :last-child { grid-column: 3; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .viewer-nav { display: grid; }
  .site-footer { padding-bottom: var(--s-7); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
  .reveal { opacity: 1; transform: none; }
}
