/* Bespoke Massage & Wellness: first draft */
@font-face { font-family: "Young Serif"; src: url("fonts/young-serif-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --night: #17110d;      /* cabin at night */
  --night-2: #241a14;
  --timber: #9a6337;     /* cladding, decorative only */
  --gold: #d4ae6a;       /* lamplight, for use on dark */
  --gold-deep: #7a5520;  /* gold text on light */
  --blush: #f1e3df;      /* muted blush surface */
  --blush-2: #e6cfc9;
  --blush-ink: #8a4c47;  /* small headings on blush */
  --ink: #2b1d17;
  --cream: #f6eee6;      /* text on dark */
  --muted-dark: #cbbcae; /* secondary text on dark */
  --serif: "Young Serif", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--blush); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
p { margin: 0 0 1em; max-width: 62ch; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
::selection { background: var(--gold); color: var(--night); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.prices :focus-visible, .treatments :focus-visible, .book :focus-visible { outline-color: var(--gold-deep); }
a, button { touch-action: manipulation; }
button { font: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--cream); color: var(--night); padding: 0.75rem 1rem; border-radius: 6px; font-weight: 600; }
.skip:focus { top: 1rem; }
main:focus { outline: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--night); color: var(--cream); border-bottom: 1px solid rgba(212, 174, 106, 0.25); }
.bar { max-width: var(--wrap); margin: 0 auto; padding: 0.75rem var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.wordmark { font-family: var(--serif); text-decoration: none; line-height: 1.05; display: flex; flex-direction: column; padding: 0.25rem 0; }
.wm-line:first-child { font-size: 1.45rem; color: var(--gold); }
.wm-line:last-child { font-size: 0.98rem; color: var(--cream); }
.menu-btn { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0 0.9rem; background: transparent; color: var(--cream); border: 1px solid rgba(246, 238, 230, 0.35); border-radius: 999px; cursor: pointer; user-select: none; -webkit-user-select: none; }
.menu { display: none; width: 100%; }
.menu.open { display: block; }
.menu ul { list-style: none; margin: 0; padding: 0.5rem 0 0.75rem; }
.menu a { display: flex; align-items: center; min-height: 48px; text-decoration: none; font-size: 1.15rem; border-top: 1px solid rgba(246, 238, 230, 0.12); }
.no-js .menu { display: block; }
.no-js .menu-btn { display: none; }

@media (min-width: 768px) {
  .menu-btn { display: none; }
  .menu { display: block; width: auto; }
  .menu ul { display: flex; gap: 0.25rem; padding: 0; }
  .menu a { border: 0; font-size: 1rem; padding: 0 0.85rem; min-height: 44px; border-radius: 999px; }
  .wm-line:first-child { font-size: 1.6rem; }
  .wm-line:last-child { font-size: 1.05rem; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 50px; padding: 0.75rem 1.4rem; border-radius: 999px; font-weight: 600; text-decoration: none; user-select: none; -webkit-user-select: none; transition: transform 140ms var(--ease-out), background-color 200ms var(--ease-out), border-color 200ms var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn-gold { background: var(--gold); color: var(--night); }
.btn-line { border: 1px solid rgba(246, 238, 230, 0.5); color: var(--cream); }
.btn-dark { background: var(--night); color: var(--cream); }
.btn-big { font-size: 1.3rem; min-height: 60px; padding: 0.9rem 1.8rem; }
.text-link { font-weight: 600; color: var(--gold-deep); display: inline-flex; align-items: center; min-height: 44px; }
.text-link.on-dark { color: var(--gold); }
@media (hover: hover) and (pointer: fine) {
  .btn-gold:hover { background: #e2c083; }
  .btn-line:hover { border-color: var(--gold); }
  .btn-dark:hover { background: #2e2119; }
  .menu a:hover { background: rgba(246, 238, 230, 0.08); }
  .text-link:hover { text-decoration-thickness: 2px; }
}

/* Hero */
.hero { background: var(--night); color: var(--cream); display: grid; }
.hero-copy { padding: clamp(2.5rem, 7vw, 5rem) var(--gutter) 2.5rem; align-self: center; }
.hero h1 { font-size: clamp(2.35rem, 6.4vw, 4.4rem); max-width: 14ch; color: var(--cream); }
.lede { margin-top: 1.4rem; font-size: 1.15rem; color: var(--muted-dark); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 2rem 0 0; }
.hero-photo { margin: 0; position: relative; overflow: hidden; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 55% 40%; }
/* The one authored moment: the cabin lights come up once on load. */
.hero-photo::after { content: ""; position: absolute; inset: 0; background: var(--night); opacity: 0; pointer-events: none; animation: lights-on 1600ms var(--ease-out) 200ms backwards; }
@keyframes lights-on { from { opacity: 0.72; } to { opacity: 0; } }

@media (min-width: 600px) and (max-width: 959px) {
  .hero-photo img, .cabin-photo img { aspect-ratio: 3 / 2; }
}
@media (min-width: 960px) {
  .hero { grid-template-columns: 1.08fr 0.92fr; min-height: calc(100svh - 72px); }
  .hero-copy { padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); padding-right: 3rem; }
  .hero-photo img { height: 100%; aspect-ratio: auto; min-height: 560px; }
}

/* Treatments */
.treatments { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.treatments h2, .prices h2 { font-size: clamp(2rem, 4.5vw, 3rem); color: var(--ink); }
.lead-treatments { display: grid; gap: 0; margin-top: 2rem; border-top: 1px solid var(--blush-2); }
.lead { padding: 1.75rem 0; border-bottom: 1px solid var(--blush-2); }
.lead h3 { font-size: clamp(1.75rem, 3.6vw, 2.4rem); color: var(--blush-ink); margin-bottom: 0.6rem; }
.lead p { margin-bottom: 0.25rem; }
@media (min-width: 768px) {
  .lead-treatments { grid-template-columns: 1fr 1fr; column-gap: 3rem; }
}
.also-title { font-size: 1.4rem; margin-top: 3rem; color: var(--ink); }
.also { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0; }
.also li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 52px; border-bottom: 1px solid var(--blush-2); }
.also-name { font-family: var(--serif); font-size: 1.2rem; }
a.also-name { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
.also-note { color: #5e4a40; font-size: 0.98rem; text-align: right; }
@media (min-width: 768px) { .also { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }

/* Prices */
.prices { background: #f8efec; padding: clamp(3.5rem, 8vw, 6rem) 0; border-top: 1px solid var(--blush-2); }
.prices-intro { margin-top: 0.75rem; color: #5e4a40; }
.price-groups { display: grid; gap: 2.5rem; margin-top: 2.25rem; }
@media (min-width: 900px) { .price-groups { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.price-group h3 { font-size: 1.75rem; color: var(--blush-ink); margin: 0 0 0.5rem; }
.price-group h3 + .price-table { margin-top: 0; }
.price-group .price-table + h3 { margin-top: 2.5rem; }
.price-table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; font-variant-numeric: tabular-nums lining-nums; }
.price-table caption { text-align: left; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em; color: var(--gold-deep); padding: 0.75rem 0 0.4rem; }
.price-table thead th { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.price-table tbody th { text-align: left; font-weight: 400; padding: 0.7rem 1rem 0.7rem 0; border-bottom: 1px solid var(--blush-2); vertical-align: top; }
.price-table td { text-align: right; white-space: nowrap; font-weight: 600; padding: 0.7rem 0; border-bottom: 1px solid var(--blush-2); vertical-align: top; }

/* Cabin */
.cabin { background: var(--night); color: var(--cream); display: grid; }
.cabin-photo { margin: 0; }
.cabin-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 600px) and (max-width: 959px) { .cabin-photo img { aspect-ratio: 3 / 2; object-position: 50% 60%; } }
.cabin-copy { padding: clamp(2.5rem, 7vw, 5rem) var(--gutter); align-self: center; }
.cabin h2 { font-size: clamp(2rem, 4.5vw, 3rem); color: var(--gold); margin-bottom: 1.25rem; }
.cabin p { color: var(--muted-dark); font-size: 1.1rem; }
@media (min-width: 960px) {
  .cabin { grid-template-columns: 0.9fr 1.1fr; }
  .cabin-photo img { height: 100%; max-height: 820px; }
  .cabin-copy { padding-right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); padding-left: 4rem; }
}

/* Book */
.book { padding: clamp(3.5rem, 8vw, 6rem) 0; background: var(--blush); }
.book-inner { display: grid; justify-items: start; gap: 0.5rem; }
.book h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 0.5rem; }
.book .btn-big { margin: 1rem 0; }
.book-place { color: #5e4a40; }

/* Footer */
.site-footer { background: var(--night-2); color: var(--muted-dark); padding: 2.5rem 0 calc(6rem + env(safe-area-inset-bottom, 0px)); }
.foot p { margin: 0 0 0.35rem; }
.foot-name { font-family: var(--serif); color: var(--cream); font-size: 1.2rem; }
.foot a { color: var(--gold); display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 768px) { .site-footer { padding-bottom: 2.5rem; } }

/* Mobile call dock */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom, 0px)); background: rgba(23, 17, 13, 0.95); border-top: 1px solid rgba(212, 174, 106, 0.3); }
.dock .btn { width: 100%; }
@media (min-width: 768px) { .dock { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-photo::after { animation: none; }
  .btn { transition: none; }
  .btn:active { transform: none; }
}

/* 404 */
.not-found { min-height: 100svh; align-content: center; }
.not-found h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }

