/* King Social Lounge
   Palette comes from the lounge's own printed posts: oxblood ground, cream ink,
   one ember glow. Shapes: the capsule arch they frame photos in. */

:root {
  --wine: #2a0709;
  --oxblood: #6b1217;
  --garnet: #8f2226;
  --cream: #f3e7d3;
  --smoke: #cdb9a8;
  --ember: #f0a04b;

  --display: "Instrument Serif", "Bodoni 72", Didot, serif;
  --body: "Jost", "Avenir Next", "Helvetica Neue", sans-serif;
  --script: "Sacramento", "Snell Roundhand", cursive;

  --gutter: clamp(20px, 5vw, 72px);
  --section: clamp(88px, 13vw, 190px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--oxblood);
  color: var(--cream);
  font-family: var(--body);
  font-weight: 300;
  font-size: clamp(17px, 1.15vw, 19px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }

/* The chevron weave from their posts, kept barely there */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='28' viewBox='0 0 56 28'%3E%3Cpath d='M0 21 L14 7 L28 21 L42 7 L56 21' fill='none' stroke='%23f3e7d3' stroke-opacity='.05' stroke-width='1'/%3E%3C/svg%3E");
}
main, .footer { position: relative; z-index: 1; }

[hidden] { display: none !important; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--ember); }
h1, h2, h3, p { margin: 0; }
address { font-style: normal; }

:focus-visible { outline: 2px solid var(--ember); outline-offset: 4px; border-radius: 2px; }

.skip {
  position: fixed; left: 16px; top: -80px; z-index: 200;
  background: var(--cream); color: var(--wine); padding: 10px 16px; border-radius: 999px;
}
.skip:focus { top: 16px; }

/* ---------- Type ---------- */
.wordmark {
  font-family: var(--script);
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark--xl { font-size: clamp(64px, 13vw, 190px); }
.wordmark--footer { font-size: clamp(72px, 17vw, 250px); display: block; line-height: 1.25; }

.display {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(56px, 10.5vw, 168px);
  line-height: .86;
  letter-spacing: -.012em;
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  border-radius: 999px; border: 1px solid var(--cream);
  font: 400 15px/1 var(--body); letter-spacing: .02em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .25s, color .25s, border-color .25s;
}
.btn--cream { background: var(--cream); color: var(--wine); }
.btn--cream:hover { background: var(--ember); border-color: var(--ember); }
.btn--line { background: transparent; color: var(--cream); }
.btn--line:hover { background: var(--cream); color: var(--wine); }
.link {
  background: none; border: 0; padding: 0; color: inherit; cursor: pointer;
  font: inherit; text-decoration: underline; text-underline-offset: .2em;
}

/* ---------- Shapes ---------- */
.arch { border-radius: 999px; overflow: hidden; }

/* ---------- Intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  pointer-events: none;
}
.intro__mark { text-align: center; transform: translateY(-9vh); }
.intro__mark .wordmark { display: block; clip-path: inset(-20% 100% -20% 0); padding: 0 .12em; }
.intro__sub { display: block; margin-top: clamp(22px, 3.4vw, 52px); font-size: 15px; letter-spacing: .04em; color: var(--smoke); opacity: 0; }
.intro__skip {
  position: absolute; right: var(--gutter); bottom: 28px; pointer-events: auto;
  background: none; border: 0; color: var(--smoke); font: 300 14px var(--body);
  cursor: pointer; text-decoration: underline; text-underline-offset: .25em;
}
.intro.is-done { display: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  padding: 14px var(--gutter);
  transition: background-color .4s, transform .4s var(--ease);
}
.nav.is-solid { background: rgba(42, 7, 9, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav.is-hidden { transform: translateY(-110%); }
.nav__mark { font-size: 38px; padding-top: 6px; }
.nav__links { display: flex; gap: 30px; margin-left: auto; }
.nav__links a { font-size: 15px; text-decoration: none; padding: 8px 0; border-bottom: 1px solid transparent; }
.nav__links a:hover { border-bottom-color: var(--ember); }
.nav__cta { min-height: 42px; padding: 0 20px; }
body.is-loading .nav { opacity: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; align-content: end;
  padding: 120px var(--gutter) 44px;
  background: #170305;
  overflow: hidden;
}
.hero__film { position: absolute; inset: 0; will-change: transform; }
.hero__still, .hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 78% 70%;
}
.hero__video { opacity: 0; transition: opacity .9s ease; }
body.is-loading .hero__still { visibility: hidden; }
.hero__video.is-on { opacity: 1; }
/* Seat the type: darken the empty side of the frame, and the foot of it */
.hero__film::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(23, 3, 5, .72) 0%, rgba(23, 3, 5, .35) 42%, rgba(23, 3, 5, 0) 62%),
    linear-gradient(0deg, var(--oxblood) 0%, rgba(107, 18, 23, .0) 26%);
}
.hero__shade { position: absolute; inset: 0; background: #120203; opacity: 0; pointer-events: none; }

.hero__copy { position: relative; max-width: 760px; }
.hero__title {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(64px, 11.6vw, 196px);
  line-height: .84; letter-spacing: -.015em;
}
.hero__title .line { display: block; overflow: hidden; padding-top: .06em; }
.hero__title .line > span { display: block; }
.hero__title .line:nth-child(2) { padding-left: .62em; font-style: italic; text-transform: none; font-size: 1.04em; line-height: .9; }
.hero__lede { max-width: 34ch; margin-top: 26px; font-size: clamp(17px, 1.35vw, 21px); color: var(--cream); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__status { margin-top: 22px; font-size: 15px; color: var(--smoke); min-height: 1.6em; }
.hero__status::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--smoke); margin-right: 10px; vertical-align: 1px;
}
.hero__status.is-open::before { background: var(--ember); box-shadow: 0 0 12px var(--ember); }

/* ---------- Statement ---------- */
.statement {
  display: grid; grid-template-columns: minmax(220px, 30%) 1fr; gap: clamp(32px, 7vw, 120px);
  align-items: center;
  padding: var(--section) var(--gutter);
}
.statement__media { aspect-ratio: 9 / 16; max-height: 82vh; justify-self: start; width: 100%; background: var(--wine); }
.statement__video { width: 100%; height: 100%; object-fit: cover; }
.statement__big {
  font-family: var(--display);
  font-size: clamp(32px, 4.6vw, 76px);
  line-height: 1.04; letter-spacing: -.01em;
  max-width: 17ch;
}
.statement__small { max-width: 50ch; margin-top: 34px; color: var(--smoke); }

/* ---------- The room ---------- */
.room { padding: 0 0 var(--section); background: var(--wine); }
.room__head {
  display: grid; grid-template-columns: 1fr minmax(260px, 34ch); gap: 40px; align-items: end;
  padding: var(--section) var(--gutter) clamp(40px, 6vw, 84px);
}
.room__head p { color: var(--smoke); }
.room__track {
  display: grid; grid-template-columns: 1.55fr .8fr .8fr; gap: clamp(16px, 2.4vw, 40px);
  padding: 0 var(--gutter); align-items: start;
}
.room__item { margin: 0; }
.room__item--drop { margin-top: clamp(40px, 9vw, 150px); }
.frame { overflow: hidden; background: #3a0b0e; }
.frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); will-change: transform; }
.room__item--wide .frame { aspect-ratio: 16 / 10.6; border-radius: 6px; }
.room__item:not(.room__item--wide) .frame { aspect-ratio: 3 / 4.6; }
.room__item figcaption { margin-top: 14px; font-size: 15px; color: var(--smoke); }

/* ---------- What's here ---------- */
.here { padding: var(--section) var(--gutter); }
.here__head { margin-bottom: clamp(36px, 5vw, 72px); }
.here__body { display: grid; grid-template-columns: 1fr minmax(240px, 30%); gap: clamp(32px, 6vw, 110px); align-items: start; }
.here__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(243, 231, 211, .28); }
.here__row { border-bottom: 1px solid rgba(243, 231, 211, .28); }
.here__btn {
  width: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding: clamp(18px, 2.2vw, 30px) 0;
  background: none; border: 0; color: inherit; cursor: pointer; text-align: left;
}
.here__name {
  font-family: var(--display); font-size: clamp(34px, 4.8vw, 78px); line-height: 1;
  transition: transform .5s var(--ease), color .3s;
}
.here__note { font: 300 15px var(--body); color: var(--smoke); text-align: right; flex-shrink: 0; }
.here__row.is-active .here__name { font-style: italic; transform: translateX(clamp(10px, 1.6vw, 26px)); color: #fff6e6; }
.here__detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.here__detail > p { overflow: hidden; max-width: 52ch; color: var(--smoke); padding-left: clamp(10px, 1.6vw, 26px); }
.here__row.is-active .here__detail { grid-template-rows: 1fr; }
.here__row.is-active .here__detail > p { padding-bottom: clamp(20px, 2.4vw, 32px); }
.here__stage { position: sticky; top: 110px; aspect-ratio: 3 / 4.5; background: var(--wine); }
.here__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s ease; }
.here__stage img:nth-child(2) { opacity: 0; }
.here__stage.is-b img:nth-child(2) { opacity: 1; }

/* ---------- Table ordering note ---------- */
.table {
  display: flex; align-items: center; gap: clamp(20px, 3vw, 44px);
  margin: 0 var(--gutter); padding: clamp(28px, 4vw, 52px);
  border: 1px solid rgba(243, 231, 211, .4); border-radius: 999px;
}
.table__qr { flex-shrink: 0; width: 84px; height: 84px; color: var(--cream); }
.table__title { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 2.8vw, 42px); line-height: 1.05; }
.table p { color: var(--smoke); max-width: 62ch; margin-top: 6px; }

/* ---------- Reserve ---------- */
.reserve {
  display: grid; grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.1fr);
  gap: clamp(40px, 7vw, 120px);
  padding: var(--section) var(--gutter);
  align-items: start;
}
.reserve__intro p { max-width: 40ch; margin-top: 26px; color: var(--smoke); }
.reserve__intro .reserve__direct { color: var(--cream); margin-top: 16px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 22px; }
.field--full { grid-column: 1 / -1; }
.field label { display: block; font-size: 15px; margin-bottom: 8px; color: var(--smoke); }
.optional { opacity: .7; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 0;
  background: transparent; color: var(--cream);
  border: 0; border-bottom: 1px solid rgba(243, 231, 211, .5); border-radius: 0;
  font: 300 20px/1.3 var(--body);
  appearance: none; -webkit-appearance: none;
  color-scheme: dark;
}
.field textarea { resize: vertical; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23f3e7d3' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 4px center; padding-right: 26px;
}
.field select option { color: #2a0709; background: #f3e7d3; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none; border-bottom-color: var(--ember); box-shadow: 0 1px 0 var(--ember);
}
.field.has-error input { border-bottom-color: #ffc9a8; }
.field__error { margin-top: 8px; font-size: 15px; color: #ffd4b8; }
.stepper { display: flex; align-items: center; border-bottom: 1px solid rgba(243, 231, 211, .5); }
.stepper input { border: 0; text-align: center; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper button {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%;
  background: none; border: 1px solid rgba(243, 231, 211, .5); color: var(--cream);
  font-size: 20px; line-height: 1; cursor: pointer;
}
.stepper button:hover { background: var(--cream); color: var(--wine); }
.form__actions { margin-top: 8px; }

.request { grid-column: 2; padding: clamp(24px, 3vw, 40px); background: var(--wine); border-radius: 28px; }
.request:focus { outline: none; }
.request__title { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.1; }
.request__body { margin-top: 18px; padding: 18px 20px; border-left: 2px solid var(--ember); background: rgba(243, 231, 211, .06); white-space: pre-line; }
.request__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 24px; }
.request__hint { margin-top: 16px; font-size: 15px; color: var(--smoke); }

/* ---------- Visit ---------- */
.visit { padding: var(--section) var(--gutter); background: var(--wine); }
.visit__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 5vw, 80px); margin-top: clamp(40px, 6vw, 84px); }
.visit__block h3 { font-family: var(--display); font-weight: 400; font-style: italic; font-size: 30px; margin-bottom: 16px; }
.visit__block p { color: var(--smoke); margin-top: 14px; }
.visit__block .btn { margin-top: 22px; }
.visit__block address { font-size: 20px; line-height: 1.45; }
.visit__phone { font-family: var(--display); font-size: 40px; color: var(--cream); text-decoration: none; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: 9px 0; border-bottom: 1px solid rgba(243, 231, 211, .16); font-weight: 300; text-align: left; }
.hours td { text-align: right; color: var(--smoke); }
.hours tr.is-today th, .hours tr.is-today td { color: var(--ember); font-weight: 400; }

/* ---------- Footer ---------- */
.footer { padding: clamp(60px, 9vw, 120px) var(--gutter) 34px; text-align: center; overflow: hidden; }
.footer__line { margin-top: 0; color: var(--smoke); }
.footer__legal { margin-top: 8px; font-size: 14px; color: var(--smoke); opacity: .8; }

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  .hero__still, .hero__video { object-position: 79% 0%; height: 74%; }
  .hero__film::after {
    background: linear-gradient(0deg, var(--oxblood) 0%, var(--oxblood) 24%, rgba(60, 9, 12, .82) 44%, rgba(23, 3, 5, 0) 72%);
  }
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  .statement { grid-template-columns: 1fr; }
  .statement__media { width: min(62%, 300px); }
  .room__head { grid-template-columns: 1fr; }
  .room__track { grid-template-columns: 1fr 1fr; }
  .room__item--wide { grid-column: 1 / -1; }
  .room__item--drop { margin-top: 48px; }
  .here__body { grid-template-columns: 1fr; }
  .here__stage { display: none; }
  .here__btn { flex-direction: column; gap: 4px; }
  .here__note { text-align: left; }
  .table { flex-direction: column; align-items: flex-start; border-radius: 36px; }
  .reserve { grid-template-columns: 1fr; }
  .request { grid-column: 1; }
  .visit__grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .form { grid-template-columns: 1fr; }
  .nav__mark { font-size: 32px; }
  .hero__actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .frame img { transform: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
