/* ==========================================================================
   Friora Studio — foundations: tokens, reset, shared nav + footer
   ========================================================================== */

:root {
  --display: "Sora", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --text: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --cream: #f2ebdf;
  --cream-deep: #ece2d1;
  --ink: #2b1216;
  --burgundy: #4a2529;
  --burgundy-deep: #1c0d0f;
  --blush: #d1b4b2;
  --mauve: #b3a2a9;
  --rule: rgba(43, 18, 22, .16);

  /* Stage pages (Diamond Drop / Weekly Bloom) change these per section */
  --bg: var(--cream);
  --fg: var(--ink);

  --gutter: clamp(1.5rem, 6vw, 6.5rem);
  --left: max(var(--gutter), calc((100vw - 1440px) / 2 + 5rem));
  --navh: 3.6rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--text);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.stagepage { transition: background-color 1s ease, color 1s ease; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ol, ul, figure, dl, dd, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; }

:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--ink); color: var(--cream);
  padding: .75rem 1.25rem; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; transition: top .2s;
}
.skip:focus { top: 1rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ==========================================================================
   Nav — shared markup, two visual modes
   .nav--solid   : opaque bar for Home / Impressions / Delivery / About
   .nav--overlay : transparent bar for the cinematic Diamond Drop / Weekly Bloom
   ========================================================================== */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; }

.nav__announce {
  background: var(--ink); color: var(--cream);
  text-align: center; font-family: var(--display); font-size: .7rem; letter-spacing: .1em;
  padding: .6rem 1rem;
}
.nav--overlay .nav__announce { display: none; }

.nav__bar {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.05rem clamp(1.5rem, 4vw, 3.5rem);
}
/* The blur lives on a pseudo-element, not .nav__bar itself: backdrop-filter on
   the bar would make it a containing block for its position:fixed child
   (.nav__links, the full-screen mobile menu), shrinking that panel down to
   the bar's own height instead of the full viewport. */
.nav--solid .nav__bar {
  border-bottom: 1px solid var(--rule);
}
.nav--solid .nav__bar::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: rgba(242, 235, 223, .94);
  backdrop-filter: blur(10px);
}
.nav--overlay .nav__bar {
  background: linear-gradient(to bottom, rgba(20, 8, 10, .5), transparent);
  color: var(--fg);
  transition: color 1s ease;
}

.nav__mark { font-family: var(--display); font-size: 1.2rem; font-weight: 500; letter-spacing: .01em; color: inherit; text-decoration: none; white-space: nowrap; }

.nav__links { display: flex; gap: clamp(1.3rem, 2.4vw, 2.2rem); list-style: none; margin: 0; padding: 0; font-size: .82rem; }
.nav__links a { color: inherit; text-decoration: none; opacity: .78; position: relative; padding-bottom: .3rem; transition: opacity .2s; }
.nav__links a:hover, .nav__links a[aria-current="page"] { opacity: 1; }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
}

.nav__right { display: flex; align-items: center; gap: 1.3rem; }
.nav__reserve {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .68rem 1.35rem; font-family: var(--display); font-size: .76rem; letter-spacing: .06em;
  background: var(--ink); color: var(--cream); text-decoration: none; border-radius: 2px; white-space: nowrap;
}
.nav--overlay .nav__reserve { background: var(--fg); color: var(--bg); transition: background-color 1s ease, color 1s ease; }

.nav__toggle { display: none; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font-family: var(--display); font-size: .78rem; letter-spacing: .1em; }

@media (max-width: 979px) {
  .nav__links { display: none; position: fixed; inset: 0; z-index: 1; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1.6rem; padding: 6rem 2rem 3rem; background: var(--cream); color: var(--ink); }
  .nav.is-open .nav__links { display: flex; }
  .nav.is-open .nav__links a { font-family: var(--display); font-size: clamp(1.5rem, 6.4vw, 2.1rem); font-weight: 300; opacity: 1; }
  .nav__toggle { display: block; }
  body.menu-open { overflow: hidden; }
}

/* Smallest phones (iPhone SE/6/7/8/X and similar ~375px): the CTA button and
   the Menu toggle are tight against each other. Trim padding/gap so "Menu"
   never gets pushed off-screen. */
@media (max-width: 420px) {
  .nav__bar { padding: 1.05rem .9rem 1.05rem 1.1rem; gap: .7rem; }
  .nav__right { gap: .7rem; }
  .nav__reserve { padding: .6rem .85rem; font-size: .7rem; }
  .nav__mark { font-size: 1.05rem; }
}

/* ==========================================================================
   Footer — shared across every page
   ========================================================================== */
.sitefooter { background: var(--burgundy-deep); color: #e9dcd4; padding: 4.5rem 0 2rem; }
.sitefooter .wrap { max-width: 1400px; margin: 0 auto; padding: 0 clamp(1.5rem, 4vw, 3.5rem); }
.sitefooter .fgrid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
.sitefooter .fmark { font-family: var(--display); font-size: 1.25rem; margin-bottom: .8rem; }
.sitefooter .ftag { opacity: .68; font-size: .88rem; max-width: 22rem; line-height: 1.6; }
.sitefooter h5 { font-family: var(--display); font-weight: 400; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; opacity: .62; margin: 0 0 1rem; }
.sitefooter ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; font-size: .9rem; }
.sitefooter a { color: inherit; text-decoration: none; opacity: .88; }
.sitefooter a:hover { opacity: 1; text-decoration: underline; }
.fbottom { margin-top: 3.2rem; padding-top: 1.5rem; border-top: 1px solid rgba(233, 220, 212, .15); display: flex; justify-content: space-between; font-size: .78rem; opacity: .58; flex-wrap: wrap; gap: .5rem; }

@media (max-width: 760px) {
  .sitefooter .fgrid { grid-template-columns: 1fr 1fr; }
}

.nav--solid.is-scrolled .nav__bar { box-shadow: 0 1px 0 var(--rule); }
