/* Studio Nala: demo site by Sorted Studio.
   Direction: fashion editorial. Pale stone-pink ground, near-black ink, one deep cherry block. Square corners.
   Type: Bodoni Moda (display, a beauty-editorial serif) with Hanken Grotesk (text). */

@font-face { font-family: "Bodoni Moda"; src: url("fonts/bodoni-moda.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("fonts/bodoni-moda-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ground: #f2ece8;
  --ground-2: #e9e0da;
  --ink: #1b1417;
  --ink-soft: #5d5257;
  --cherry: #9e1239;
  --cherry-deep: #7d0d2c;
  --blush: #fbe9ee;
  --blush-soft: #f0c9d4;
  --rule: rgba(27, 20, 23, 0.18);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(1.15rem, 4vw, 3rem);
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: "Hanken Grotesk", "Helvetica Neue", system-ui, sans-serif;
  font-size: 1.0625rem; line-height: 1.6; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2 { text-wrap: balance; }
ul { padding: 0; list-style: none; }
svg { width: 1.2em; height: 1.2em; flex: none; }
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding-inline: var(--gutter); }
:focus-visible { outline: 2px solid var(--cherry); outline-offset: 3px; }
.book :focus-visible { outline-color: var(--blush); }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--ground) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.top__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 4.5rem; gap: 1rem; }
.top__nav { display: flex; gap: 1.75rem; font-size: 0.95rem; font-weight: 500; }
.top__nav a { text-decoration: none; background: linear-gradient(var(--ink), var(--ink)) no-repeat 0 100% / 0 1px; padding-block: 0.25rem; transition: background-size 0.4s var(--ease); }
.top__nav a:hover { background-size: 100% 1px; }
.brand { font-family: var(--serif); font-weight: 500; font-size: 1.9rem; line-height: 1; letter-spacing: -0.01em; text-decoration: none; text-align: center; }
.brand em { font-style: italic; color: var(--cherry); }
.top__book { justify-self: end; }

/* Buttons: square corners, like the rest */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 3.2rem; padding: 0.75rem 1.4rem; border-radius: 0;
  font: inherit; font-weight: 600; font-size: 0.98rem; letter-spacing: 0.01em; text-decoration: none; white-space: nowrap;
  transition: background-color 0.3s var(--ease), transform 0.25s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn--ink { background: var(--ink); color: var(--ground); min-height: 2.9rem; padding-inline: 1.1rem; }
.btn--ink:hover { background: #3a2f33; }
.btn--cherry { background: var(--cherry); color: var(--blush); }
.btn--cherry:hover { background: var(--cherry-deep); }
.btn--blush { background: var(--blush); color: var(--cherry-deep); }
.btn--blush:hover { background: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; text-decoration: none; padding-block: 0.4rem; border-bottom: 1px solid var(--ink); }
.link-arrow svg { transition: transform 0.35s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(4rem, 9vw, 7rem);
}
.hero__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(3.6rem, 9.4vw, 9.2rem); line-height: 0.95; letter-spacing: -0.03em;
}
.hero__title em { display: block; font-style: italic; color: var(--cherry); padding-bottom: 0.08em; }
.hero__sub { margin-top: 1.75rem; max-width: 36ch; font-size: clamp(1.1rem, 0.5vw + 1rem, 1.28rem); color: var(--ink-soft); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2.25rem; }
.hero__photo img { width: 100%; aspect-ratio: 4 / 5; max-height: 78vh; object-fit: cover; object-position: 50% 30%; }

/* Prices */
.prices { padding-block: clamp(4.5rem, 9vw, 7rem); border-top: 1px solid var(--rule); }
.prices__title { font-family: var(--serif); font-weight: 500; font-size: clamp(3rem, 7vw, 6.4rem); line-height: 0.95; letter-spacing: -0.03em; }
.prices__intro { margin-top: 1rem; color: var(--ink-soft); max-width: 46ch; }
.group {
  display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 1rem clamp(2rem, 5vw, 5rem); margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.25rem; border-top: 1.5px solid var(--ink);
}
.group__name { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.8rem, 2.4vw, 2.4rem); line-height: 1.1; }
.group__list li { display: flex; justify-content: space-between; gap: 1.5rem; padding-block: 0.8rem; border-bottom: 1px solid var(--rule); }
.group__list li:first-child { padding-top: 0.35rem; }
.group__list li span:last-child { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.group__img { width: min(100%, 300px); aspect-ratio: 4 / 5; object-fit: cover; margin-top: 1.5rem; }

/* Booking: the one cherry block */
.book { background: var(--cherry); color: var(--blush); padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.book__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.book__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.book h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.5rem, 5vw, 4.8rem); line-height: 1; letter-spacing: -0.025em; max-width: 14ch; }
.book__steps { margin-block: 2.25rem 2.25rem; padding: 0; list-style: none; counter-reset: s; border-top: 1px solid rgba(251, 233, 238, 0.4); max-width: 34rem; }
.book__steps li { counter-increment: s; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); padding-block: 0.95rem; border-bottom: 1px solid rgba(251, 233, 238, 0.25); color: var(--blush); }
.book__steps li::before { content: counter(s); font-family: var(--serif); font-style: italic; font-size: 1.4rem; line-height: 1.2; color: var(--blush-soft); }

/* Nala */
.nala {
  display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(2.5rem, 7vw, 7rem); align-items: end;
  padding-block: clamp(4.5rem, 10vw, 8rem);
}
.nala__photo { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 20%; }
.nala h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(3rem, 7vw, 6.4rem); line-height: 0.95; letter-spacing: -0.03em; }
.nala__lead { margin-top: 1.75rem; font-family: var(--serif); font-size: clamp(1.35rem, 1.3vw + 1rem, 2rem); line-height: 1.3; max-width: 30ch; }
.nala__copy p + p { margin-top: 1.25rem; color: var(--ink-soft); max-width: 50ch; }

/* Visit */
.visit { background: var(--ground-2); padding-block: clamp(4.5rem, 9vw, 7rem); }
.visit__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.visit h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.5rem, 5vw, 4.6rem); line-height: 1; letter-spacing: -0.025em; }
.visit__hours { margin-top: 2rem; border-top: 1.5px solid var(--ink); }
.visit__hours div { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.8rem; border-bottom: 1px solid var(--rule); }
.visit__hours dt { font-weight: 600; }
.visit__hours dd { color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.visit__where { margin-top: 1.5rem; color: var(--ink-soft); max-width: 42ch; }
.visit__phone { margin-top: 1.25rem; font-family: var(--serif); font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1; }
.visit__phone a { text-decoration: none; border-bottom: 1px solid var(--ink); }
.visit__photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Footer */
.foot { padding-block: 2.5rem 3.5rem; font-size: 0.92rem; border-top: 1px solid var(--rule); }
.foot__inner { display: flex; flex-wrap: wrap; gap: 0.4rem 2.5rem; align-items: baseline; }
.foot__brand { font-family: var(--serif); font-size: 1.5rem; line-height: 1; }
.foot__brand em { color: var(--cherry); }
.foot__credit { color: var(--ink-soft); }

/* Demo tag */
.demo-tag {
  position: fixed; right: 0.9rem; bottom: 0.9rem; z-index: 30;
  font: 600 0.75rem/1 system-ui, sans-serif; color: #fff; background: rgba(27, 20, 23, 0.86);
  text-decoration: none; padding: 0.55rem 0.8rem; border-radius: 999px;
}
.demo-tag:hover { background: var(--ink); }

/* Motion */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .hero__copy > * { animation: rise 1s var(--ease) both; }
.js .hero__copy > :nth-child(2) { animation-delay: 0.08s; }
.js .hero__copy > :nth-child(3) { animation-delay: 0.16s; }
.js .hero__photo img { animation: unveil 1.2s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes unveil { from { opacity: 0; transform: scale(1.04); } }
.hero__photo { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Tablet */
@media (max-width: 960px) {
  .top__inner { grid-template-columns: auto 1fr; }
  .top__nav { display: none; }
  .brand { text-align: left; }
  .hero, .book__grid, .nala, .visit__grid { grid-template-columns: 1fr; }
  .hero__photo img { max-height: none; aspect-ratio: 4 / 4.4; }
  .book__photo { max-width: 420px; }
  .nala__photo { max-width: 360px; }
}

/* Phone */
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .top__inner { min-height: 4rem; }
  .brand { font-size: 1.55rem; }
  .top__book { padding-inline: 0.85rem; min-height: 2.6rem; font-size: 0.9rem; }
  .top__book span { display: none; }
  .top__book::after { content: "Book"; }
  .hero { padding-top: 1.75rem; gap: 2rem; }
  .hero__title { font-size: clamp(3.2rem, 16vw, 4.6rem); }
  .hero__actions .btn { width: 100%; }
  .group { grid-template-columns: 1fr; }
  .group__img { width: 100%; aspect-ratio: 16 / 10; margin-block: 1rem 0.5rem; }
  .book .btn { width: 100%; }
  .visit__hours div { flex-wrap: wrap; }
  .demo-tag { font-size: 0.7rem; right: 0.75rem; bottom: 0.75rem; }
}

/* Example banner: says plainly that this site is an example */
.example-bar { background: #15301c; color: #f5f5eb; text-align: center; font: 500 0.875rem/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; padding: 10px 16px; }
.example-bar a { color: #beff50; text-decoration: underline; text-underline-offset: 2px; }

/* Example contact buttons: the dialog and the no-JavaScript note they point to */
.demo-dialog {
  width: min(28rem, calc(100% - 2rem)); padding: clamp(1.25rem, 4vw, 2rem);
  background: var(--ground); color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 0;
}
.demo-dialog::backdrop { background: rgba(27, 20, 23, 0.6); }
.demo-dialog h2 { font-family: var(--serif); font-weight: 500; font-size: 2.1rem; line-height: 1.05; letter-spacing: -0.02em; }
.demo-dialog p { margin-top: 0.9rem; }
.demo-dialog__msg { margin: 0.75rem 0 0; padding: 0.8rem 1rem; background: var(--blush); border-left: 3px solid var(--cherry); }
.demo-dialog__note { font-weight: 600; }
.demo-dialog__cta a, .demo-note a { color: var(--cherry); font-weight: 600; text-underline-offset: 0.2em; }
.demo-dialog__close { width: 100%; margin-top: 1.5rem; border: 0; cursor: pointer; }
.demo-note { border-top: 1px solid var(--rule); padding-block: clamp(2.5rem, 6vw, 4rem); }
.demo-note h2 { font-family: var(--serif); font-weight: 500; font-size: 1.9rem; line-height: 1.1; }
.demo-note p { margin-top: 0.6rem; color: var(--ink-soft); max-width: 60ch; }
.demo-note .demo-note__strong { color: var(--ink); font-weight: 600; }
