@font-face {
  font-family: Outfit;
  src: url('./outfit.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --paper: hsl(0 0% 5%);
  --field: hsl(35 12% 9%);
  --ink: hsl(40 20% 90%);
  --muted: hsl(40 10% 72%);
  --line: hsl(40 18% 26%);
  --gold: hsl(40 60% 50%);
  --gold-light: hsl(40 70% 65%);
  --viewport-height: 100vh;
  --control-height: clamp(54px, calc(var(--viewport-height) * .083), 64px);
  --form-gap: clamp(18px, calc(var(--viewport-height) * .029), 26px);
  --form-offset: clamp(11px, calc(var(--viewport-height) * .021), 18px);
  --cta-height: clamp(56px, calc(var(--viewport-height) * .09), 66px);
  --cta-offset: clamp(8px, calc(var(--viewport-height) * .013), 12px);
  --cta-safe-bottom: max(8px, env(safe-area-inset-bottom, 0px));
  font-family: Outfit, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

@supports (height: 100svh) {
  :root { --viewport-height: 100svh; }
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.reservation {
  --form-height-to-button: calc(4 * (var(--control-height) + var(--form-gap)) + var(--form-offset) + var(--cta-height) + var(--cta-offset));
  min-height: var(--viewport-height);
}

.hero {
  height: clamp(58px, min(calc(var(--viewport-height) * .35), calc(var(--viewport-height) - var(--form-height-to-button) - 18px)), 316px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #251e18;
  color: #fff9ec;
}
.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  z-index: -2;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, #140e0a60, transparent 72%),
              linear-gradient(180deg, #0d0b091e 3%, #0d0b093d 42%, #0d0c0bc7 83%, var(--paper) 100%);
  z-index: -1;
}
.hero__brand {
  display: grid;
  justify-items: center;
  gap: 9px;
  padding-block: 2px 12px;
  text-shadow: 0 2px 14px #120d09;
}
.hero__logo {
  width: clamp(102px, 30vw, 142px);
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 2px 12px #120d09a0);
}
.hero__brand span { font-size: .66rem; text-transform: uppercase; letter-spacing: .19em; }

.panel { position: relative; margin-top: var(--form-offset); min-width: 0; }
.panel__inner {
  max-width: 526px;
  margin-inline: auto;
  padding: 0 max(clamp(16px, 5vw, 26px), env(safe-area-inset-right))
           calc(12px + env(safe-area-inset-bottom)) max(clamp(16px, 5vw, 26px), env(safe-area-inset-left));
}
form { display: grid; gap: var(--form-gap); }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--form-gap); }
input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: var(--control-height);
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--field);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 400;
}
input::placeholder { color: var(--muted); opacity: 1; }
input:focus { outline: 2px solid var(--gold-light); outline-offset: 1px; }
input[type="date"], input[type="time"] { height: var(--control-height); -webkit-appearance: none; appearance: none; }
input::-webkit-date-and-time-value { text-align: left; }
.native { display: block; position: relative; }
.native:not(.has-value):has(input:invalid)::after {
  content: attr(data-empty);
  position: absolute;
  inset: 1px 39px 1px 12px;
  display: flex;
  align-items: center;
  padding-left: 3px;
  background: var(--field);
  color: var(--muted);
  pointer-events: none;
  font-size: .9rem;
  line-height: 1.1;
}
.guest {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--control-height);
  padding-left: 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--field);
}
.guest label { color: var(--muted); font-size: .91rem; }
.stepper { display: grid; grid-template-columns: 44px 39px 44px; }
.stepper button {
  min-height: calc(var(--control-height) - 2px);
  border: 0;
  background: transparent;
  color: var(--gold-light);
  padding: 0;
  font-size: 1.24rem;
}
.stepper input {
  min-height: calc(var(--control-height) - 2px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
  appearance: textfield;
}
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { appearance: none; }
.trap { position: absolute; top: 0; left: 0; height: 1px; width: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.actions { padding-block-start: var(--cta-offset); }
.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: var(--cta-height);
  padding: 8px 11px;
  border: 1px solid var(--gold-light);
  border-radius: 9px;
  background: linear-gradient(155deg, hsl(39 66% 57%), var(--gold) 68%, hsl(37 59% 46%));
  color: var(--paper);
  font-weight: 700;
  font-size: .92rem;
  line-height: 1.18;
  text-align: center;
  text-decoration: none;
}
.cta:hover { background: var(--gold-light); }
.cta span { text-wrap: balance; }
.cta svg { width: 21px; height: 21px; flex: 0 0 21px; }
.next { text-align: center; color: var(--muted); font-size: .75rem; line-height: 1.44; }
.next p { margin: 0; }
.next:has(#hint:not(:empty)) { margin-top: 6px; }
.text-button { background: transparent; border: 0; color: var(--gold-light); text-decoration: underline; min-height: 36px; padding: 3px 11px; font-weight: 700; }

@media (max-width: 799px), (pointer: coarse) {
  .actions {
    position: -webkit-sticky;
    position: sticky;
    bottom: 0;
    z-index: 1;
    padding-block-end: var(--cta-safe-bottom);
    background: linear-gradient(0deg, var(--paper) 82%, transparent);
  }
  .reservation :is(input, .stepper button) {
    scroll-margin-block-end: calc(var(--cta-height) + var(--cta-offset) + var(--cta-safe-bottom) + 16px);
  }
}

@media (min-width: 800px), (min-width: 440px) and (orientation: landscape) and (max-height: 520px) {
  .reservation { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
  .hero { height: var(--viewport-height); position: sticky; top: 0; place-items: end start; }
  .hero::after {
    background: linear-gradient(270deg, var(--paper), #0d0d0d00 23%),
                linear-gradient(20deg, #1e130de3 1%, #1e130d00 67%);
  }
  .hero__brand { justify-items: start; padding: 0 0 46px 43px; gap: 13px; }
  .hero__logo { width: 151px; }
  .panel { margin: 0; align-self: center; }
  .panel__inner { padding-block: 10px; }
}
@media (orientation: landscape) and (max-height: 430px) {
  :root { --control-height: 44px; --form-gap: 10px; --cta-height: 54px; --cta-offset: 4px; }
  .reservation { grid-template-columns: minmax(0, .58fr) minmax(0, 1fr); }
  .hero { place-items: center; }
  .hero__brand { justify-items: center; padding: 0 8px 0 0; gap: 8px; }
  .hero__logo { width: clamp(74px, 17vw, 120px); }
}

@media (orientation: portrait) and (max-height: 510px) {
  :root {
    --control-height: 48px;
    --form-gap: 13px;
    --form-offset: 9px;
    --cta-height: 54px;
    --cta-offset: 4px;
  }
}

@media (max-width: 439px) and (max-height: 404px) {
  :root { --control-height: 44px; --form-gap: 10px; --form-offset: 7px; }
  .hero__brand { padding-bottom: 8px; gap: 3px; }
  .hero__logo { width: 78px; }
  .hero__brand span { font-size: .56rem; }
}

@media (max-width: 467px) {
  .cta span { max-width: 210px; }
}

@media (max-width: 359px) {
  .native:not(.has-value):has(input:invalid)::after { font-size: .82rem; }
}
