/* POTTER - styles */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-400);
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: .005em;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--color-ink); color: var(--color-bg);
  padding: .6rem 1rem; font-size: var(--fs-300);
}
.skip-link:focus { left: 0; }

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

::selection { background: var(--color-gold); color: var(--color-bg); }

[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }

/* ---------- Utilities ---------- */
.container { width: min(var(--container), 100% - 3rem); margin-inline: auto; }

.caps {
  font-family: var(--font-body);
  font-size: var(--fs-200);
  font-weight: 700;
  letter-spacing: var(--caps-ls);
  text-transform: uppercase;
}

.link-u {
  display: inline-block;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .35em;
  text-decoration-color: var(--color-gold);
  transition: text-decoration-color .2s ease;
}
.link-u:hover { text-decoration-color: currentColor; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.8rem;
  border: 1px solid var(--color-gold);
  border-radius: var(--radius);
  font-size: var(--fs-300);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-gold);
  background: transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--color-gold); color: var(--color-bg); }

.btn--solid { background: var(--color-gold); border-color: var(--color-gold); color: var(--color-bg); }
.btn--solid:hover { background: #dbb76e; border-color: #dbb76e; }

.btn--ghost { border-color: var(--color-line-strong); color: var(--color-ink); }
.btn--ghost:hover { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-bg); }

.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section--raised { background: var(--color-bg-2); }

.section-head { max-width: 46rem; }
.section-head h2 { font-size: var(--fs-800); }
.section-head p { margin-top: var(--s4); color: var(--color-muted); font-size: var(--fs-500); }
.section-head--center { margin-inline: auto; text-align: center; }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled { background: rgba(16, 12, 7, .93); backdrop-filter: blur(8px); border-bottom-color: var(--color-line); }

.header__inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
}

.brand {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
  display: inline-flex; align-items: baseline; gap: .3rem;
}
.brand__mark { color: var(--color-gold); }

.header__nav { display: none; align-items: center; gap: clamp(1.1rem, 2vw, 2rem); }
.header__link {
  font-size: var(--fs-300);
  font-weight: 500;
  text-decoration: none;
  padding-block: .3rem;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.header__link:hover { border-bottom-color: var(--color-gold); }

.lang { display: inline-flex; align-items: center; gap: .15rem; }
.lang__btn {
  padding: .25rem .45rem;
  font-size: var(--fs-200);
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--color-muted);
  transition: color .2s ease;
}
.lang__btn[aria-pressed="true"] { color: var(--color-ink); text-decoration: underline; text-underline-offset: .3em; text-decoration-color: var(--color-gold); }
.lang__sep { color: var(--color-line-strong); }

.burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 2.4rem; height: 2.4rem;
}
.burger span { display: block; width: 22px; height: 1.5px; background: var(--color-ink); transition: transform .25s ease, opacity .25s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (min-width: 1024px) {
  .header__nav { display: flex; }
  .burger { display: none; }
}

/* Drawer (mobile) */
.drawer {
  position: fixed; inset: 0; z-index: 40;
  background: var(--color-bg);
  padding: calc(var(--header-h) + 2rem) 1.5rem 2.5rem;
  display: flex; flex-direction: column; gap: var(--s5);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s ease, transform .3s ease, visibility 0s .3s;
  overflow-y: auto;
}
.drawer.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s ease, transform .3s ease; }
.drawer__link {
  font-family: var(--font-display);
  font-size: var(--fs-700);
  font-weight: 500;
  text-decoration: none;
  padding-block: .3rem;
  border-bottom: 1px solid var(--color-line);
}
.drawer__foot { margin-top: auto; display: flex; flex-direction: column; gap: var(--s5); align-items: flex-start; }
body.drawer-locked { overflow: hidden; }
@media (min-width: 1024px) { .drawer { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 96svh;
  display: flex; align-items: flex-end;
  isolation: isolate;
  padding-block: calc(var(--header-h) + 3rem) clamp(2.5rem, 6vw, 4.5rem);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.95) contrast(1.02); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(14, 10, 6, .6) 0%, rgba(14, 10, 6, .25) 40%, rgba(14, 10, 6, .88) 100%);
}

.hero__inner { width: 100%; }
.hero__status {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .45rem .9rem;
  border: 1px solid var(--color-line-strong);
  border-radius: 999px;
  font-size: var(--fs-200);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hero__status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-muted); }
.hero__status.is-open .dot { background: #8fbf6a; }
.hero__status.is-open { color: var(--color-ink); }

.hero__inner h1 { margin-top: var(--s5); font-size: var(--fs-hero); max-width: 12ch; }
.hero__sub { margin-top: var(--s5); font-size: var(--fs-500); max-width: 34rem; color: var(--color-ink); }
.hero__actions { margin-top: var(--s6); display: flex; flex-wrap: wrap; gap: var(--s4) var(--s5); align-items: center; }

.hero__meta {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: var(--s5);
  border-top: 1px solid var(--color-line);
  display: flex; flex-wrap: wrap; gap: .6rem 2.2rem;
  font-size: var(--fs-300);
  color: var(--color-muted);
}
.hero__meta a { text-decoration: none; }
.hero__meta a:hover { color: var(--color-ink); }
.hero__meta .gold { color: var(--color-gold); }

/* ---------- Day rail ---------- */
.rail { overflow: clip; }
.rail__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s5); }
.rail__btns { display: flex; gap: .6rem; }
.rail__btn {
  width: 2.9rem; height: 2.9rem;
  border: 1px solid var(--color-line-strong);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.15rem;
  color: var(--color-ink);
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.rail__btn:hover { background: var(--color-ink); color: var(--color-bg); border-color: var(--color-ink); }

.rail__track {
  margin-top: var(--s7);
  display: flex; gap: var(--s5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--s4);
  scrollbar-width: thin;
  scrollbar-color: var(--color-gold-dim) transparent;
}
.stop {
  flex: 0 0 clamp(240px, 26vw, 330px);
  scroll-snap-align: start;
  border: 1px solid var(--color-line);
  background: var(--color-bg-2);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.stop__media { aspect-ratio: 4 / 3; overflow: hidden; }
.stop__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.93) contrast(1.03); }
.stop__body { padding: var(--s5); }
.stop__time { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--color-gold); line-height: 1; }
.stop__body h3 { margin-top: .5rem; font-size: var(--fs-600); }
.stop__body p { margin-top: .45rem; color: var(--color-muted); font-size: var(--fs-300); line-height: 1.55; }
.stop__now {
  position: absolute; top: .9rem; right: .9rem;
  z-index: 2; /* the filtered img below creates a stacking context painted in tree order */
  display: none;
  padding: .25rem .7rem;
  background: var(--color-gold); color: var(--color-bg);
  border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.stop.is-now { border-color: var(--color-gold-dim); }
.stop.is-now .stop__now { display: inline-block; }

/* ---------- Menu ---------- */
.menu__layout { margin-top: var(--s7); display: grid; gap: var(--s8); }
@media (min-width: 1024px) {
  .menu__layout { grid-template-columns: 1.7fr 1fr; gap: clamp(3rem, 5vw, 5rem); }
  .menu__layout > * { min-width: 0; }
}

.menu__nav {
  position: sticky; top: calc(var(--header-h) + .75rem); z-index: 5;
  display: flex; flex-wrap: wrap; gap: .5rem;
  padding: .6rem 0;
  background: linear-gradient(180deg, var(--color-bg) 75%, transparent);
}
.pill {
  padding: .45rem 1rem;
  border: 1px solid var(--color-line-strong);
  border-radius: 999px;
  font-size: var(--fs-200);
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--color-muted);
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.pill:hover { color: var(--color-ink); border-color: var(--color-gold-dim); }
.pill.is-active { background: var(--color-gold); border-color: var(--color-gold); color: var(--color-bg); }

.mcat { padding-block: var(--s6); border-bottom: 1px solid var(--color-line); }
.mcat:last-child { border-bottom: 0; }
.mcat h3 { font-size: var(--fs-700); font-weight: 600; color: var(--color-gold); }
.mcat ul { list-style: none; margin: var(--s5) 0 0; padding: 0; display: grid; gap: .8rem; }
@media (min-width: 640px) { .mcat ul { grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 4vw, 3.5rem); } .mcat ul > * { min-width: 0; } }

.mrow { display: flex; align-items: baseline; gap: .6rem; }
.mrow__name { font-weight: 500; }
.mrow__dots { flex: 1; border-bottom: 1px dotted var(--color-line-strong); transform: translateY(-.28em); min-width: 1.5rem; }
.mrow__price { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--color-ink); white-space: nowrap; }

.menu__aside { display: grid; gap: var(--s5); align-content: start; }
.menu__aside figure { margin: 0; }
.menu__aside img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); filter: saturate(.93) contrast(1.03); }
.menu__note {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-bg-2);
  padding: var(--s5);
}
.menu__note .caps { color: var(--color-gold); }
.menu__note p { margin-top: var(--s3); color: var(--color-muted); font-size: var(--fs-300); line-height: 1.6; }

/* ---------- Events ---------- */
.event {
  display: grid; gap: var(--s5);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--color-line);
  align-items: center;
}
.events__list { margin-top: var(--s7); border-bottom: 1px solid var(--color-line); }
.event__media { overflow: hidden; border-radius: var(--radius); }
.event__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; filter: saturate(.93) contrast(1.03); transition: transform .5s ease; }
.event:hover .event__media img { transform: scale(1.03); }
.event__chip {
  display: inline-block;
  padding: .3rem .8rem;
  border: 1px solid var(--color-gold-dim);
  border-radius: 999px;
  color: var(--color-gold);
  font-size: var(--fs-200);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.event__body h3 { margin-top: var(--s4); font-size: var(--fs-700); }
.event__body p { margin-top: var(--s3); color: var(--color-muted); max-width: 34rem; }
.event__body .link-u { margin-top: var(--s4); }

@media (min-width: 900px) {
  .event { grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 5vw, 5rem); }
  .event > * { min-width: 0; }
  .event:nth-child(even) .event__media { order: 2; }
}

/* ---------- Study band ---------- */
.study { background: var(--color-green); }
.study__grid { margin-top: var(--s7); display: grid; gap: var(--s6); }
.study__item { border-top: 1px solid rgba(239, 230, 210, .22); padding-top: var(--s5); }
.study__item h3 { font-size: var(--fs-600); }
.study__item p { margin-top: var(--s3); color: rgba(239, 230, 210, .72); font-size: var(--fs-300); line-height: 1.6; }
@media (min-width: 820px) {
  .study__grid { grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 3.5rem); }
  .study__grid > * { min-width: 0; }
}

/* ---------- Proof ---------- */
.proof { text-align: center; }
.proof__stats { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s6) clamp(3rem, 8vw, 6.5rem); }
.proof__stat .num { font-family: var(--font-display); font-size: var(--fs-stat); font-weight: 600; color: var(--color-gold); line-height: 1; }
.proof__stat .caps { display: block; margin-top: .6rem; color: var(--color-muted); }
.proof__quotes { margin-top: var(--s8); display: grid; gap: var(--s6); }
.proof__quote p { font-family: var(--font-display); font-size: var(--fs-600); font-weight: 500; line-height: 1.35; }
.proof__quote .caps { display: block; margin-top: var(--s3); color: var(--color-muted); }
@media (min-width: 820px) {
  .proof__quotes { grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 5vw, 5rem); max-width: 60rem; margin-inline: auto; }
  .proof__quotes > * { min-width: 0; }
}

/* ---------- Reserve ---------- */
.reserve__grid { display: grid; gap: var(--s8); align-items: start; }
@media (min-width: 1024px) {
  .reserve__grid { grid-template-columns: 1.35fr 1fr; gap: clamp(3rem, 5vw, 5.5rem); }
  .reserve__grid > * { min-width: 0; }
}

.form { margin-top: var(--s6); display: grid; gap: var(--s5); }
.form__row { display: grid; gap: var(--s5); }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } .form__row--2 > * { min-width: 0; } }

.field { display: grid; gap: .5rem; }
.field > label { font-size: var(--fs-200); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-ink); }
.field > label .opt { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--color-muted); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: .8rem 1rem;
  background: var(--color-field);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius);
  font-size: var(--fs-400);
  color: var(--color-ink);
  transition: border-color .2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--color-muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-gold); }
.field textarea { min-height: 5.5rem; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c9a25a' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.6rem; }
.field input[type="date"] { color-scheme: dark; }

.field__err { display: none; font-size: var(--fs-200); color: var(--color-err); }
.field.has-error input, .field.has-error select { border-color: var(--color-err); }
.field.has-error .field__err { display: block; }

/* Guests stepper */
.stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--color-line-strong); background: var(--color-field); border-radius: var(--radius); }
.stepper__btn {
  width: 3rem; display: grid; place-items: center;
  font-size: 1.2rem; line-height: 1;
  color: var(--color-gold);
  transition: background .2s ease, color .2s ease;
}
.stepper__btn:hover:not(:disabled) { background: var(--color-bg-2); }
.stepper__btn:disabled { color: var(--color-line-strong); cursor: not-allowed; }
.stepper__val { min-width: 4.5rem; display: grid; place-items: center; padding: .75rem .5rem; border-inline: 1px solid var(--color-line-strong); font-weight: 700; }

.form__actions { margin-top: var(--s2); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s5); }
.form__small { font-size: var(--fs-200); color: var(--color-muted); max-width: 24rem; }

.form-success { margin-top: var(--s6); border: 1px solid var(--color-line-strong); border-radius: var(--radius); background: var(--color-bg-2); padding: clamp(1.75rem, 4vw, 2.5rem); }
.form-success h3 { font-size: var(--fs-600); }
.form-success .form-success__summary { margin-top: var(--s4); color: var(--color-gold); font-family: var(--font-display); font-size: var(--fs-500); font-weight: 600; }
.form-success p { margin-top: var(--s4); color: var(--color-muted); }
.form-success .link-u { margin-top: var(--s5); }

/* Contact card (reserve aside) */
.reserve__aside { display: grid; gap: var(--s5); align-content: start; }
.reserve__aside figure { margin: 0; }
.reserve__aside img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); filter: saturate(.93) contrast(1.03); }
.contact-card {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-bg-2);
  padding: var(--s6);
  display: grid; gap: var(--s5);
}
.contact-card__row .caps { color: var(--color-gold); }
.contact-card__row p, .contact-card__row a { margin-top: .35rem; font-size: var(--fs-400); text-decoration: none; display: block; }
.contact-card__row a.link-u { text-decoration: underline; text-decoration-color: var(--color-gold); }
.contact-card__row a:hover { color: var(--color-gold); }
.contact-card__row .link-u { display: inline-block; margin-top: .5rem; font-size: var(--fs-300); }

/* ---------- Hiring ---------- */
.hiring { border-block: 1px solid var(--color-line); background: var(--color-bg-2); }
.hiring__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s5); padding-block: var(--s7); }
.hiring__inner h2 { font-size: var(--fs-700); }
.hiring__inner p { margin-top: var(--s3); color: var(--color-muted); max-width: 34rem; }

/* ---------- Footer ---------- */
.footer { background: var(--color-bg-3); }
.footer__grid { padding-block: var(--s8); display: grid; gap: var(--s6); }
.footer__brand .brand { font-size: 2.3rem; }
.footer__brand p { margin-top: var(--s4); color: var(--color-muted); font-size: var(--fs-300); max-width: 22rem; }
.footer__col h4 { font-size: var(--fs-200); font-weight: 700; letter-spacing: var(--caps-ls); text-transform: uppercase; color: var(--color-gold); }
.footer__col ul { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; gap: .55rem; }
.footer__col li { font-size: var(--fs-300); color: var(--color-ink); }
.footer__col a { text-decoration: none; border-bottom: 1px solid var(--color-line-strong); padding-bottom: .1rem; transition: border-color .2s ease; }
.footer__col a:hover { border-bottom-color: var(--color-gold); }

@media (min-width: 900px) {
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); }
  .footer__grid > * { min-width: 0; }
}

.footer__bar { border-top: 1px solid var(--color-line); padding-block: var(--s5); display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; align-items: center; justify-content: space-between; }
.footer__bar p, .footer__bar a { font-size: var(--fs-200); color: var(--color-muted); }
.footer__bar a { text-decoration: none; }
.footer__bar a:hover { color: var(--color-ink); }
