/* Rumors Salon & Boutique — demo site, minimal direction.
   The salon's real work plays full-screen behind the opening screens; after that
   every section sits in its own band. Black and white with one warm taupe from the
   salon's Instagram graphics. Type follows their highlight slides (wide-tracked
   geometric capitals), paired with a light serif for headlines. */

:root {
  --ink: #141414;
  --ink-2: #4a4745;
  --muted: #7d7773;
  --line: #e4e0dc;
  --bg: #ffffff;
  --tint: #f5f3f0;
  --dark: #121212;
  --accent: #9c8781;
  --open: #2f6b45;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Jost", "Avenir Next", system-ui, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --max: 1200px;
  --header: 84px;
  --bar: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header); }
html:has(dialog[open]) { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 300 1.0625rem/1.75 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .3em; text-decoration-thickness: 1px; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 300; line-height: 1.04; }
p { margin: 0; }
address { font-style: normal; }
button { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .7rem 1rem; background: var(--ink); color: #fff; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.label, .status, .brands, .text-link, .btn, .nav a, .header-book, .stylist-role, .stylist-cta, .profile-close, .profile-facts dt, .footer-links, .mobile-bar a, .film-credit {
  font-family: var(--sans); font-weight: 400; letter-spacing: .24em; text-transform: uppercase;
}
.label { font-size: .7rem; line-height: 1.6; color: var(--muted); }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: .9rem 2rem; border: 1px solid var(--ink); background: transparent; font-size: .72rem; line-height: 1; text-decoration: none; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.text-link { font-size: .72rem; line-height: 1; padding-bottom: .45rem; border-bottom: 1px solid currentColor; text-decoration: none; transition: opacity .2s; }
.text-link:hover { opacity: .65; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2.25rem; }
.status { font-size: .7rem; color: var(--muted); }
[data-open-status].is-open { color: var(--open); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--ink); background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); transition: background-color .35s, border-color .35s, color .35s; }
.site-header.is-over { color: #fff; background: transparent; border-color: transparent; }
.bar { max-width: var(--max); height: var(--header); margin-inline: auto; padding-inline: var(--gutter); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.brand { position: relative; justify-self: start; }
.brand img { width: auto; height: 58px; transition: opacity .35s; }
.brand .logo-white { position: absolute; inset: 0; opacity: 0; }
.is-over .brand .logo-white { opacity: 1; }
.is-over .brand .logo-ink { opacity: 0; }
.nav { display: flex; gap: 2.75rem; }
.nav a { font-size: .7rem; text-decoration: none; opacity: .8; transition: opacity .2s; }
.nav a:hover { opacity: 1; }
.header-book { justify-self: end; font-size: .7rem; padding-bottom: .4rem; border-bottom: 1px solid currentColor; text-decoration: none; }

/* ---------- Photo film behind the opening screens ---------- */
.film { position: relative; background: var(--dark); color: #fff; }
.film-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.film-poster, .film-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.film-poster { object-fit: cover; object-position: 50% 35%; }
.film-stage canvas { opacity: 0; transition: opacity .5s; }
.film.is-live .film-stage canvas { opacity: 1; }
.film-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 12, 12, .72) 0%, rgba(12, 12, 12, .5) 45%, rgba(12, 12, 12, .22) 100%), linear-gradient(0deg, rgba(12, 12, 12, .5) 0%, transparent 35%); }
.film-credit { position: absolute; right: var(--gutter); bottom: calc(var(--bar) + 1.75rem); font-size: .6rem; color: rgba(255, 255, 255, .7); }

.film-beats { position: relative; z-index: 1; margin-top: -100vh; margin-top: -100svh; }
.beat { min-height: 90svh; max-width: var(--max); margin-inline: auto; padding: 6rem var(--gutter); display: flex; flex-direction: column; justify-content: center; }
.beat-hero { min-height: 100svh; padding-top: calc(var(--header) + 3rem); }
.beat:last-child { min-height: 100svh; }
.beat-inner { max-width: 34rem; display: grid; justify-items: start; gap: 1.4rem; text-shadow: 0 1px 28px rgba(0, 0, 0, .25); }
.film .label, .film .status { color: rgba(255, 255, 255, .78); }
.film [data-open-status].is-open { color: #a8dcb6; }
.beat h1 { font-size: clamp(3.5rem, 6.6vw, 6.2rem); }
.beat h2 { font-size: clamp(2.7rem, 4.8vw, 4.2rem); }
.beat p:not(.label):not(.status) { max-width: 30rem; color: rgba(255, 255, 255, .88); font-size: 1.1rem; }
.beat .actions { margin-top: .5rem; }
.beat .text-link { margin-top: .25rem; text-shadow: none; }
.film .btn-ink { background: #fff; border-color: #fff; color: var(--ink); text-shadow: none; }
.film .btn-ink:hover { background: transparent; color: #fff; }

/* ---------- Bands ---------- */
.section { padding-block: clamp(5.5rem, 11vw, 9.5rem); }
.section-tint { background: var(--tint); }
.section-dark { background: var(--dark); color: #fff; }
.section-dark .label { color: rgba(255, 255, 255, .6); }
.section-head { display: grid; gap: 1.25rem; align-content: start; max-width: 36rem; margin-bottom: clamp(3rem, 5vw, 4.5rem); }
.section-head h2 { font-size: clamp(2.7rem, 4.4vw, 3.9rem); }
.section-head p:not(.label):not(.brands) { color: var(--ink-2); }
.section-dark .section-head p:not(.label):not(.brands) { color: rgba(255, 255, 255, .78); }

/* Stylists */
.roster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 6vw, 5rem); }
.stylist { border-bottom: 1px solid var(--line); }
.stylist:nth-child(-n + 2) { border-top: 1px solid var(--line); }
.stylist-open { width: 100%; display: grid; grid-template-columns: 84px 1fr auto; align-items: center; gap: 1.6rem; padding: 1.5rem 0; background: none; border: 0; text-align: left; cursor: pointer; }
.stylist-photo { width: 84px; height: 105px; object-fit: cover; object-position: 50% 25%; background: #e9e5e1; }
.stylist-text { display: grid; gap: .3rem; }
.stylist-name { font: 400 1.65rem/1.1 var(--serif); transition: color .2s; }
.stylist-role { font-size: .64rem; line-height: 1.6; color: var(--muted); }
.stylist-focus { color: var(--ink-2); font-size: .95rem; line-height: 1.5; }
.stylist-when { color: var(--muted); font-size: .88rem; line-height: 1.5; }
.stylist-cta { font-size: .64rem; padding-bottom: .35rem; border-bottom: 1px solid var(--line); transition: border-color .2s; }
.stylist-open:hover .stylist-name { color: var(--accent); }
.stylist-open:hover .stylist-cta { border-color: var(--ink); }
.monogram { display: grid; place-items: center; color: var(--muted); font: 300 2.2rem/1 var(--serif); }

/* Stylist profile dialog */
.profile { width: min(640px, calc(100% - 2rem)); max-height: calc(100svh - 2rem); padding: 0; border: 0; background: #fff; color: var(--ink); overflow: auto; }
.profile::backdrop { background: rgba(18, 18, 18, .6); }
.profile-inner { position: relative; display: grid; gap: 1.6rem; padding: clamp(1.75rem, 5vw, 3.25rem); }
.profile-close { position: absolute; top: 1.25rem; right: 1.25rem; padding: .4rem 0; border: 0; border-bottom: 1px solid var(--ink); background: none; font-size: .64rem; cursor: pointer; }
.profile-head { display: grid; grid-template-columns: 120px 1fr; gap: 1.75rem; align-items: end; }
.profile-photo { width: 120px; height: 150px; object-fit: cover; object-position: 50% 25%; background: var(--tint); }
.profile-head h3 { margin-top: .5rem; font-size: clamp(2.2rem, 5vw, 2.9rem); }
.profile-bio { color: var(--ink-2); }
.profile-facts { margin: 0; display: grid; gap: .85rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.profile-facts div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; }
.profile-facts dt { font-size: .64rem; line-height: 2.1; color: var(--muted); }
.profile-facts dd { margin: 0; }

/* Services */
.services-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.services-grid .section-head { margin: 0; }
.menu h3 { padding-bottom: 1rem; border-bottom: 1px solid var(--ink); }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li { padding: .95rem 0; border-bottom: 1px solid var(--line); }

/* Boutique */
.boutique-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: center; }
.boutique-grid .section-head { margin: 0; }
.brands { font-size: .7rem; color: #fff; }
.boutique-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.boutique-photos img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.boutique-photos img:first-child { margin-top: 4rem; }

/* Visit: information on the left, map filling the right half. */
.visit { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.visit-info { padding-block: clamp(5.5rem, 10vw, 8.5rem); padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); padding-right: clamp(2rem, 6vw, 5rem); }
.visit-info .section-head { margin-bottom: 2rem; }
.visit-info address { margin-bottom: 1.25rem; font-size: 1.1rem; line-height: 1.75; }
.hours { width: 100%; max-width: 26rem; margin: 1.75rem 0 2.5rem; border-collapse: collapse; }
.hours th, .hours td { padding: .85rem 0; border-bottom: 1px solid var(--line); font-weight: 300; text-align: left; }
.hours td { text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 500; }
.map { position: relative; min-height: 520px; background: var(--tint); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }

/* Footer */
.site-footer { padding-block: 4.5rem 2.5rem; background: var(--dark); color: #bcb7b3; }
.footer-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 3.5rem; align-items: center; }
.footer-grid img { width: 104px; }
.footer-info { font-size: .95rem; line-height: 1.8; }
.site-footer a { color: #fff; text-decoration: none; }
.footer-links { display: flex; gap: 2.25rem; font-size: .66rem; }
.fine { grid-column: 1 / -1; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, .12); color: #8b8581; font-size: .8rem; }

.mobile-bar { display: none; }

/* ---------- Phones and small tablets ---------- */
@media (max-width: 900px) {
  :root { --header: 68px; --bar: calc(74px + env(safe-area-inset-bottom)); }
  body { padding-bottom: var(--bar); }
  .bar { grid-template-columns: auto 1fr; }
  .nav { display: none; }
  .brand img { height: 48px; }

  .film-shade { background: linear-gradient(180deg, rgba(12, 12, 12, .4) 0%, rgba(12, 12, 12, .45) 45%, rgba(12, 12, 12, .78) 100%); }
  .film-credit { display: none; }
  .beat { min-height: 85svh; padding: 5rem var(--gutter) calc(var(--bar) + 3.5rem); justify-content: flex-end; }
  .beat-hero { min-height: 100svh; padding-top: calc(var(--header) + 2rem); }
  .beat:last-child { min-height: 100svh; }
  .beat h1 { font-size: clamp(3rem, 13vw, 3.9rem); }
  .beat h2 { font-size: 2.7rem; }
  .beat p:not(.label):not(.status) { font-size: 1.02rem; }

  .roster { grid-template-columns: 1fr; }
  .stylist:nth-child(2) { border-top: 0; }
  .stylist-open { grid-template-columns: 68px 1fr auto; gap: 1.1rem; padding: 1.2rem 0; }
  .stylist-photo { width: 68px; height: 85px; }
  .stylist-name { font-size: 1.45rem; }

  .profile { width: 100%; max-width: none; max-height: 92svh; margin: auto 0 0; }
  .profile-head { grid-template-columns: 96px 1fr; gap: 1.25rem; }
  .profile-photo { width: 96px; height: 120px; }
  .profile-facts div { grid-template-columns: 1fr; gap: .1rem; }

  .services-grid, .boutique-grid, .footer-grid { grid-template-columns: 1fr; }
  .boutique-photos img:first-child { margin-top: 0; }
  .visit { grid-template-columns: 1fr; }
  .visit-info { padding: 4.5rem var(--gutter); }
  .map { min-height: 340px; }
  .footer-grid { gap: 2rem; }

  .mobile-bar { position: fixed; inset: auto 0 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); }
  .mobile-bar a { min-height: 50px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--ink); font-size: .68rem; text-decoration: none; }
  .mobile-bar a:first-child { background: var(--ink); color: #fff; }
}

@media (max-width: 420px) {
  .header-book-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .film-stage canvas { display: none; }
}
