/* ============================================================
   Sitting Pretty Glam
   Palette and type locked to the official brand kit:
   #ffffff · #f1ece6 · #e2d8cd · #cfc2b6 · #6c5248
   Derivia (headlines) · Inter Light (body)
   ============================================================ */

@font-face {
  font-family: "Derivia";
  src: url("assets/Derivia-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* --- brand palette, exact --- */
  --white: #ffffff;
  --cream: #f1ece6;
  --sand: #e2d8cd;
  --taupe: #cfc2b6;
  --mocha: #6c5248;

  /* --- derived only for text contrast --- */
  --ink: #4e3b33;
  --ink-soft: #6c5248;
  --ink-muted: #756051;
  --line: #ddd2c7;

  /* --- type --- */
  --display: "Derivia", "Bodoni Moda", Georgia, serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --text-xs: 0.72rem;
  --text-sm: 0.875rem;
  --text-base: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: clamp(1.5rem, 2.4vw, 1.875rem);
  --text-2xl: clamp(2rem, 4.2vw, 3rem);
  --text-3xl: clamp(2.6rem, 6vw, 4.25rem);
  --text-hero: clamp(2.85rem, 5.4vw, 4.35rem);

  --track: 0.18em;
  --track-wide: 0.26em;

  --gut: clamp(1.5rem, 5vw, 4.5rem);
  --bay: clamp(5.5rem, 11vw, 10rem);
  --maxw: 1180px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink-soft);
  font-family: var(--body);
  font-size: var(--text-base);
  font-weight: 300;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--ink);
  margin: 0;
  line-height: 1.06;
  letter-spacing: -0.005em;
}

p {
  margin: 0 0 1.1em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.eyebrow {
  font-family: var(--body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 1.1rem;
  line-height: 1.5;
}

.lead {
  font-size: var(--text-lg);
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink-soft);
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 999;
  background: var(--mocha);
  color: var(--cream);
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-size: var(--text-sm);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--track);
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.15em 2.5em;
  border: 1px solid var(--mocha);
  border-radius: 999px;
  background: var(--mocha);
  color: var(--cream);
  cursor: pointer;
  transition:
    background 0.45s var(--ease),
    color 0.45s var(--ease),
    border-color 0.45s var(--ease);
}

.btn:hover {
  background: var(--ink);
  border-color: var(--ink);
}

.btn--ghost {
  background: transparent;
  color: var(--mocha);
}

.btn--ghost:hover {
  background: var(--mocha);
  color: var(--cream);
}

.btn--light {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--mocha);
}

.btn--light:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--mocha);
}

.btn--sm {
  padding: 0.9em 1.9em;
}

/* a quiet text link with a rule under it */
.tlink {
  display: inline-block;
  font-family: var(--body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--track);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding-bottom: 0.35em;
  border-bottom: 1px solid var(--taupe);
  transition:
    color 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

.tlink:hover {
  color: var(--ink);
  border-color: var(--mocha);
}

:focus-visible {
  outline: 2px solid var(--mocha);
  outline-offset: 3px;
}

/* ---------- header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(241, 236, 230, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.5s var(--ease);
}

.header.is-scrolled {
  border-bottom-color: var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 82px;
}

.header__logo {
  display: block;
  flex: none;
}

.header__logo img {
  height: 20px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.75rem);
}

.nav a {
  font-family: var(--body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--track);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.35s var(--ease);
}

.nav a:hover {
  color: var(--ink);
}

@media (max-width: 860px) {
  .nav {
    display: none;
  }
  .header__inner {
    min-height: 68px;
  }
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}

.hero__media {
  position: relative;
  overflow: hidden;
  background: var(--sand);
  min-height: clamp(520px, 78vh, 820px);
}

.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
}

.hero__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 7vw, 6rem) clamp(1.75rem, 5vw, 5rem);
  background: var(--cream);
}

.hero__inner {
  max-width: 30rem;
}

.hero h1 {
  font-size: var(--text-hero);
  margin: 0 0 1.5rem;
}

.hero .lead {
  margin-bottom: 2.5rem;
  max-width: 26rem;
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2rem);
  flex-wrap: wrap;
}

.rating {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2.75rem;
  font-family: var(--body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.rating__stars {
  color: var(--mocha);
  letter-spacing: 0.14em;
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero__media {
    min-height: clamp(400px, 92vw, 560px);
  }
  .hero__media img {
    object-position: 50% 6%;
  }
  .hero__body {
    padding: clamp(2.75rem, 10vw, 4rem) var(--gut) clamp(3rem, 11vw, 4.5rem);
  }
  .hero__inner {
    max-width: none;
  }
}

/* ---------- sections ---------- */
.section {
  padding: var(--bay) 0;
}

.section--sand {
  background: var(--sand);
}

.section--mocha {
  background: var(--mocha);
  color: var(--sand);
}

.section--mocha h2,
.section--mocha h3 {
  color: var(--cream);
}

.section--mocha .eyebrow {
  color: var(--sand);
}

.section__head {
  max-width: 34rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section__title {
  font-size: var(--text-2xl);
}

.section__lede {
  margin-top: 1.5rem;
  font-size: var(--text-lg);
  font-weight: 300;
  line-height: 1.6;
}

.mark {
  width: 46px;
  height: auto;
  margin-bottom: 1.75rem;
  opacity: 0.85;
}

/* ---------- studio split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: center;
}

.split__media img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
}

.split__body {
  max-width: 30rem;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .split__media img {
    aspect-ratio: 3 / 2;
  }
}

/* ---------- service menu ---------- */
.group + .group {
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
}

.group__title {
  font-family: var(--body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--taupe);
}

.svc {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 2rem;
  align-items: baseline;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}

.svc:last-child {
  border-bottom: 0;
}

.svc__name {
  font-family: var(--display);
  font-size: var(--text-xl);
  color: var(--ink);
  line-height: 1.15;
  margin: 0;
}

.svc__price {
  font-family: var(--display);
  font-size: var(--text-xl);
  color: var(--ink);
  line-height: 1.15;
  white-space: nowrap;
  text-align: right;
}

.svc__meta {
  grid-column: 1;
  font-family: var(--body);
  font-size: var(--text-sm);
  font-weight: 300;
  line-height: 1.62;
  color: var(--ink-muted);
  max-width: 42rem;
  margin: 0.4rem 0 0;
}

.svc__time {
  grid-column: 2;
  grid-row: 2;
  font-family: var(--body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: right;
  white-space: nowrap;
  margin: 0.55rem 0 0;
}

.tag {
  display: inline-block;
  vertical-align: 0.28em;
  margin-left: 0.7rem;
  font-family: var(--body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mocha);
  background: var(--sand);
  border: 1px solid var(--taupe);
  border-radius: 999px;
  padding: 0.35em 0.75em;
  white-space: nowrap;
}

.section--sand .tag {
  background: var(--cream);
}

@media (max-width: 620px) {
  .svc {
    grid-template-columns: 1fr auto;
    gap: 0.35rem 1rem;
  }
  .svc__name,
  .svc__price {
    font-size: 1.375rem;
  }
}

/* ---------- service photos ---------- */
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
}

.pair figure {
  margin: 0;
}

.pair img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 50%;
}

.pair img.crop-high {
  object-position: 50% 12%;
}

.pair figcaption {
  margin-top: 0.9rem;
  font-family: var(--body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink-muted);
}

@media (max-width: 620px) {
  .pair {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

/* ---------- quiet quotes ---------- */
.quotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.quote {
  margin: 0;
}

.quote p {
  font-family: var(--display);
  font-size: var(--text-xl);
  line-height: 1.28;
  color: var(--ink);
  margin: 0 0 1.1rem;
}

.quote cite {
  font-family: var(--body);
  font-style: normal;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink-muted);
}

@media (max-width: 720px) {
  .quotes {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ---------- visit ---------- */
.places {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.place {
  background: var(--cream);
  border: 1px solid var(--taupe);
  padding: clamp(1.75rem, 4vw, 2.75rem);
}

.section--sand .place {
  background: var(--cream);
}

.place h3 {
  font-size: var(--text-xl);
  margin-bottom: 1.5rem;
}

.hours {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--text-sm);
  font-weight: 400;
}

.hours li:last-child {
  border-bottom: 0;
}

.hours span:last-child {
  color: var(--ink-muted);
  white-space: nowrap;
}

.place__note {
  font-size: var(--text-sm);
  font-weight: 300;
  color: var(--ink-muted);
  margin: 0;
}

.place__note a {
  color: var(--ink-soft);
}

.contact {
  margin: 1.1rem 0 0;
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 300;
  color: var(--ink-muted);
}

.contact a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--taupe);
  padding-bottom: 0.15em;
  transition: border-color 0.4s var(--ease);
}

.contact a:hover {
  border-color: var(--mocha);
}

.closed {
  margin-top: clamp(2rem, 4vw, 3rem);
  text-align: center;
  font-family: var(--body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--ink-muted);
}

@media (max-width: 720px) {
  .places {
    grid-template-columns: 1fr;
  }
}

/* ---------- know before you go ---------- */
.policy {
  margin-top: clamp(4rem, 9vw, 7rem);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1.55fr;
  gap: clamp(1.75rem, 6vw, 5rem);
  align-items: start;
}

/* Brand headline face (Derivia) per the brand kit, set above the display floor */
.policy h3 {
  margin: 0;
  font-family: var(--display);
  font-size: var(--text-xl);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: 0.005em;
  color: var(--mocha);
}

.policy ul {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 34rem;
}

.policy li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: 0.85rem;
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink-muted);
}

.policy li:last-child {
  margin-bottom: 0;
}

.policy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.82em;
  width: 5px;
  height: 1px;
  background: var(--taupe);
}

@media (max-width: 860px) {
  .policy {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
}

/* ---------- gift band ---------- */
.band__inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.band__inner h2 {
  font-size: var(--text-2xl);
  margin-bottom: 1.25rem;
}

.band__inner p {
  color: var(--sand);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.chip {
  font-family: var(--display);
  font-size: var(--text-lg);
  color: var(--cream);
  border: 1px solid rgba(226, 216, 205, 0.45);
  border-radius: 999px;
  padding: 0.45em 1.1em;
  line-height: 1;
}

@media (max-width: 820px) {
  .band__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ---------- closing ---------- */
.final {
  padding: var(--bay) 0;
  text-align: center;
  border-top: 1px solid var(--line);
}

.final img.mark {
  margin-inline: auto;
  width: 56px;
}

.final h2 {
  font-size: var(--text-3xl);
  max-width: 24rem;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

/* ---------- footer ---------- */
.foot {
  background: var(--mocha);
  color: var(--sand);
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
}

.foot__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(226, 216, 205, 0.22);
}

.foot__logo img {
  height: 22px;
  width: auto;
}

.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.25rem, 3vw, 2.25rem);
}

.foot__links a {
  font-family: var(--body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--track);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--sand);
  transition: color 0.35s var(--ease);
}

.foot__links a:hover {
  color: var(--white);
}

.foot__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--sand);
}

/* ---------- sticky mobile book bar ---------- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: none;
  padding: 0.7rem var(--gut) max(0.7rem, env(safe-area-inset-bottom));
  background: rgba(241, 236, 230, 0.94);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}

.dock .btn {
  width: 100%;
  padding: 1.1em 1.5em;
}

@media (max-width: 860px) {
  .dock {
    display: block;
  }
  body {
    padding-bottom: 5.25rem;
  }
}

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- add to home screen ---------- */
.install {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  transform: translate(-50%, 140%);
  width: min(540px, calc(100vw - 2rem));
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.15rem;
  background: var(--white);
  border: 1px solid var(--taupe);
  border-radius: 16px;
  box-shadow: 0 18px 44px -18px rgba(78, 59, 51, 0.3);
  opacity: 0;
  transition:
    transform 0.6s var(--ease),
    opacity 0.45s var(--ease);
}

.install.is-in {
  transform: translate(-50%, 0);
  opacity: 1;
}

.install__mark {
  flex: none;
  width: 38px;
  height: auto;
}

.install__copy {
  flex: 1 1 auto;
  min-width: 0;
}

.install__title {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
}

.install__text {
  margin: 0.15rem 0 0;
  font-size: var(--text-xs);
  font-weight: 300;
  color: var(--ink-muted);
  line-height: 1.45;
}

.install__actions {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.install__close {
  border: 0;
  background: none;
  padding: 0.5em 0.35em;
  font-family: var(--body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.3s var(--ease);
}

.install__close:hover {
  color: var(--ink);
}

@media (max-width: 860px) {
  .install {
    bottom: max(5.5rem, calc(env(safe-area-inset-bottom) + 5.25rem));
  }
}

@media (max-width: 560px) {
  .install {
    flex-wrap: wrap;
    gap: 0.75rem 0.9rem;
  }
  .install__actions {
    width: 100%;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  .install {
    transform: translate(-50%, 0);
    transition: opacity 0.2s linear;
  }
}
