@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..600;1,9..144,300..600&family=Hanken+Grotesk:ital,wght@0,300..700;1,300..600&family=Righteous&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=paquito@400&display=swap');

/* ─── Design tokens ─────────────────────────────────────────── */
:root {
  --ivory:  #F4F4F4;
  --camel:  #D0C7C0;
  --stone:  #A09A95;
  --sage:   #7F8269;
  --noir:   #242021;

  --ff-display: 'Fraunces', Georgia, serif;
  --ff-brand:   'Fraunces', Georgia, serif;
  --ff-body:    'Hanken Grotesk', system-ui, sans-serif;

  --nav-h:  80px;
  --max-w:  1100px;
  --pad-x:  clamp(1.5rem, 5vw, 5rem);

  /* Spacing scale */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2.5rem;
  --sp-5: 4rem;
  --sp-6: 6rem;

  /* Corners */
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-pill: 999px;

  /* Elevation */
  --shadow-sm: 0 4px 16px rgba(36, 32, 33, 0.06);
  --shadow-md: 0 14px 36px rgba(36, 32, 33, 0.09);
  --shadow-lg: 0 26px 60px rgba(36, 32, 33, 0.13);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
img  { display: block; max-width: 100%; }
a    { color: inherit; }
ul   { list-style: none; }

/* ─── Base ───────────────────────────────────────────────────── */
body {
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 1rem;
  background-color: var(--ivory);
  color: var(--noir);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--sage); color: var(--ivory); }

/* ─── Grain overlay ──────────────────────────────────────────── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

/* ─── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 0 var(--pad-x);
  transition: background 0.5s ease, border-color 0.5s ease, backdrop-filter 0.5s;
  border-bottom: 1px solid transparent;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.nav__left { justify-content: center; }
.nav.scrolled {
  background: rgba(244,244,244,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--camel);
}

.nav__left, .nav__right { display: flex; align-items: center; gap: 2rem; }
.nav__right { justify-content: flex-end; }

.nav__left a, .nav__right a {
  font-family: var(--ff-body);
  font-weight: 450;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--noir);
  transition: color 0.3s;
}
.nav__left a:hover, .nav__right a:hover { color: var(--sage); }
.nav__left a.active { color: var(--sage); }

.nav__logo {
  text-align: center;
  text-decoration: none;
  display: block;
  line-height: 1;
}
.nav__logo-oshi {
  display: block;
  font-family: var(--ff-brand);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--noir);
  letter-spacing: -0.02em;
  line-height: 1;
}
.nav__logo-studio {
  display: block;
  font-family: var(--ff-body);
  font-weight: 300;
  font-size: 0.5rem;
  letter-spacing: 0.46em;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: 0.1rem;
}

.nav__cta {
  display: inline-block;
  padding: 0.45rem 1.3rem;
  border: 1px solid var(--noir);
  border-radius: var(--radius-pill);
  font-family: var(--ff-body);
  font-weight: 450;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--noir);
  transition: all 0.3s;
}
.nav__cta:hover { background: var(--noir); color: var(--ivory) !important; }

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.95rem 2.4rem;
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  border-radius: var(--radius-pill);
  transition: all 0.35s var(--ease-out);
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn--dark    { background: var(--noir); color: var(--ivory); }
.btn--dark:hover { background: var(--sage); }
.btn--outline { background: transparent; color: var(--noir); border: 1px solid var(--noir); }
.btn--outline:hover { background: var(--noir); color: var(--ivory); }
.btn--sage    { background: var(--sage); color: var(--ivory); }
.btn--sage:hover { background: var(--noir); }
.btn--ivory   { background: var(--ivory); color: var(--noir); }
.btn--ivory:hover { background: var(--camel); }

/* ─── Typography ─────────────────────────────────────────────── */
.label {
  font-family: var(--ff-body);
  font-weight: 450;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* Eyebrow: small label with leading rule, used above headings */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--ff-body);
  font-weight: 450;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--sage);
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--sage);
}

/* Heading scale — Fraunces, light italic, editorial */
.title-xl, .title-lg, .title-md {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 340;
  letter-spacing: -0.02em;
}
.title-xl { font-size: clamp(3rem, 6vw, 5.6rem);   line-height: 1.05; }
.title-lg { font-size: clamp(2.3rem, 4.2vw, 3.8rem); line-height: 1.12; }
.title-md { font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1.2; }

/* Body copy */
.copy {
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 0.98rem;
  line-height: 1.85;
  color: var(--stone);
}

/* ─── Utility ────────────────────────────────────────────────── */
.max-w  { max-width: var(--max-w); margin: 0 auto; }
.section { padding: clamp(5.5rem, 9.5vw, 10rem) var(--pad-x); }
.section--noir  { background: var(--noir);  color: var(--ivory); }
.section--sage  { background: var(--sage);  color: var(--ivory); }
.section--camel { background: var(--camel); color: var(--noir);  }

.divider {
  width: 2.5rem;
  height: 1px;
  background: currentColor;
  opacity: 0.25;
  margin: 0.9rem 0 1.2rem;
}

/* Coloured sections render as inset rounded cards on every page */
.section--noir,
.section--sage,
.section--camel {
  margin-left: var(--pad-x);
  margin-right: var(--pad-x);
  border-radius: var(--radius-md);
}

/* Status chip (room availability, event states) */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--ff-body);
  font-weight: 450;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
  white-space: nowrap;
}
.chip::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.chip--available { background: rgba(127,130,105,0.12); color: var(--sage); }
.chip--taken     { background: rgba(160,154,149,0.14); color: var(--stone); }
.chip--soon      { background: rgba(208,199,192,0.35); color: var(--stone); }

/* ─── Newsletter form (shared, dark sections) ───────────────── */
.nl-form {
  display: flex;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}
.nl-input {
  flex: 1;
  min-width: 0;
  padding: 0.9rem 1.3rem;
  background: rgba(244,244,244,0.09);
  border: 1px solid rgba(244,244,244,0.22);
  border-right: none;
  border-radius: var(--radius-pill) 0 0 var(--radius-pill);
  color: var(--ivory);
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
}
.nl-input::placeholder { color: rgba(244,244,244,0.38); }
.nl-input:focus { border-color: var(--sage); background: rgba(244,244,244,0.13); }
.nl-btn {
  padding: 0.9rem 1.7rem;
  background: var(--sage);
  color: var(--ivory);
  border: 1px solid var(--sage);
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s, color 0.3s;
}
.nl-btn:hover { background: var(--ivory); color: var(--sage); }

/* ─── Scroll reveal ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out),
              transform 0.9s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ─── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--noir);
  color: var(--ivory);
  padding: clamp(3.5rem, 6vw, 5.5rem) var(--pad-x) 2rem;
  margin-left: var(--pad-x);
  margin-right: var(--pad-x);
  margin-bottom: var(--pad-x);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 3rem;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  align-items: stretch;
}
.footer__grid > div:first-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 auto;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(244,244,244,0.1);
}
.footer__logo-oshi {
  font-family: var(--ff-brand);
  font-weight: 600;
  font-size: 1.8rem;
  line-height: 1;
  letter-spacing: -0.02em;
}
.footer__logo-studio {
  font-family: var(--ff-body);
  font-weight: 300;
  font-size: 0.5rem;
  letter-spacing: 0.46em;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: 0.15rem;
  display: block;
}
.footer__tagline {
  margin-top: 1.2rem;
  font-family: var(--ff-body);
  font-size: 0.85rem;
  color: var(--stone);
  line-height: 1.6;
}
.footer__heading {
  font-family: var(--ff-body);
  font-weight: 450;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 1.4rem;
}
.footer__links { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__links a {
  text-decoration: none;
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 0.9rem;
  color: rgba(244,244,244,0.75);
  transition: color 0.3s;
}
.footer__links a:hover { color: var(--camel); }
.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 0.85rem;
  color: rgba(244,244,244,0.75);
  margin-bottom: 0.85rem;
  text-decoration: none;
  transition: color 0.3s;
}
.footer__contact-item:hover { color: var(--camel); }
.footer__contact-icon { color: var(--stone); flex-shrink: 0; margin-top: 0.1rem; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-w);
  margin: 2rem auto 0;
  font-family: var(--ff-body);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--stone);
}

/* ─── Hamburger menu ─────────────────────────────────────────── */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--noir);
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}
/* When the ivory overlay menu is open, the burger must stay dark on every page */
.nav__burger.is-open span { background: var(--noir) !important; }
.nav__burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--ivory);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 340;
  font-size: clamp(2rem, 8vw, 3rem);
  color: var(--noir);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--sage); }
.mobile-menu__contact {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.mobile-menu__contact a {
  font-family: var(--ff-body);
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--stone);
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav__right { display: none; }
  .nav__burger { display: flex; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .nav { grid-template-columns: auto 1fr; }
  .nav__left { display: none; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__grid > div:first-child { align-items: center; text-align: center; }
  .footer__bottom { flex-direction: column; align-items: center; gap: 0.6rem; text-align: center; }
}
