/* The Amber Room sample site: a late bar in Art Deco. One centred axis, brass rules, Poiret One over Jost. */
:root {
  --night: #1b110c;   /* smoked walnut: the page */
  --booth: #26170f;   /* one step up: framed panels */
  --velvet: #3a2016;  /* inputs and the open tab */
  --amber: #e3a857;   /* actions, links, focus */
  --amber-hi: #f0bd70;
  --brass: #a77b3a;   /* rules and ornaments */
  --champagne: #f4e7d0;
  --smoke: #c9b79c;

  --display: "Poiret One", "Futura", "Century Gothic", sans-serif;
  --sans: "Jost", "Futura", "Century Gothic", "Segoe UI", sans-serif;

  --text-meta: .75rem;
  --text-secondary: .875rem;
  --text-body: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.563rem;
  --step-3: 2.441rem;
  --step-4: 3.815rem;

  --motion-200: 200ms;
  --motion-300: 300ms;
  --lights-up: 1400ms; /* documented exception: the one slow fade when the page opens */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  --column: 40rem;
  --gutter: clamp(1rem, 5vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--champagne);
  font: 400 var(--text-body)/1.6 var(--sans);
  text-align: center;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, p { margin: 0; }
h2 { font: 400 var(--step-3)/1.15 var(--display); letter-spacing: .02em; color: var(--champagne); }
a { color: var(--amber); text-underline-offset: .25em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--amber-hi); outline-offset: 4px; }
::selection { background: var(--amber); color: var(--night); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--amber); color: var(--night); padding: .75rem 1rem; z-index: 60; }
.skip:focus { top: 1rem; }
.note, .intro { color: var(--smoke); font-size: var(--text-secondary); max-width: 34rem; margin-inline: auto; }

/* the lights come up once when the page opens */
.veil { position: fixed; inset: 0; z-index: 50; background: #0d0806; pointer-events: none; animation: lights-up var(--lights-up) var(--ease-in-out) 150ms forwards; }
@keyframes lights-up { to { opacity: 0; visibility: hidden; } }

.sample-line { padding: .75rem var(--gutter) 0; font-size: var(--text-meta); color: var(--smoke); }
.sample-line a { color: var(--smoke); }

/* symmetric header: two links, the fan, two links */
.top { padding: .5rem var(--gutter) 0; }
.nav { display: grid; grid-template-columns: repeat(2, auto) 5rem repeat(2, auto); justify-content: center; align-items: center; column-gap: clamp(.75rem, 3vw, 2.5rem); }
.nav-a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; color: var(--champagne); text-decoration: none; font-size: var(--text-secondary); font-weight: 500; letter-spacing: .08em; }
.nav-a:hover { color: var(--amber); }
.monogram { display: block; color: var(--brass); padding: .25rem; }
.monogram svg { width: 100%; height: auto; display: block; }
@media (max-width: 479.98px) {
  .nav { grid-template-columns: repeat(4, auto); row-gap: 0; }
  .monogram { grid-column: 1 / -1; grid-row: 1; width: 4.5rem; margin: 0 auto; }
}

/* hero: the wordmark, then the glass in an arch on the centre line */
.hero { padding: 2.5rem var(--gutter) 4rem; }
.wordmark { font: 400 clamp(2.6rem, 11vw, 6.5rem)/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--champagne); }
.wordmark-the { display: block; font-size: .32em; letter-spacing: .5em; margin-bottom: .6rem; color: var(--amber); padding-left: .5em; }
.hero-row { display: grid; gap: 2rem; justify-items: center; margin-top: 2.5rem; }
.hero-lede { font-size: var(--step-1); line-height: 1.5; max-width: 22rem; color: var(--champagne); }
.arch { width: min(78vw, 360px); padding: 10px; border: 1px solid var(--brass); border-radius: 999px 999px 0 0; }
.arch img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 999px 999px 0 0; }
.hero-side { display: grid; gap: 1.25rem; justify-items: center; }
.status { font-size: var(--text-secondary); color: var(--smoke); letter-spacing: .04em; }
.status.is-open { color: var(--amber); }
@media (min-width: 900px) {
  .hero { padding-top: 3rem; padding-bottom: 6rem; }
  .hero-row { grid-template-columns: 1fr 360px 1fr; align-items: end; gap: 3.5rem; max-width: 1180px; margin-inline: auto; margin-top: 3rem; }
  .hero-lede { justify-self: end; text-align: right; padding-bottom: 1rem; }
  .hero-side { justify-self: start; justify-items: start; text-align: left; padding-bottom: 1rem; }
}

/* buttons: notched corners like a plaque, and a double-ruled quiet version */
.actions { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; justify-content: center; }
@media (min-width: 900px) { .hero-side .actions { justify-content: flex-start; } }
.btn {
  --notch: 9px;
  --fill: var(--amber);
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.75rem;
  border: 0; cursor: pointer; text-decoration: none;
  font: 500 var(--text-body)/1 var(--sans); letter-spacing: .06em;
  color: var(--night);
  background:
    linear-gradient(135deg, transparent var(--notch), var(--fill) 0) top left / 51% 51% no-repeat,
    linear-gradient(-135deg, transparent var(--notch), var(--fill) 0) top right / 51% 51% no-repeat,
    linear-gradient(45deg, transparent var(--notch), var(--fill) 0) bottom left / 51% 51% no-repeat,
    linear-gradient(-45deg, transparent var(--notch), var(--fill) 0) bottom right / 51% 51% no-repeat;
  transition: opacity var(--motion-200) var(--ease-out);
}
.btn:hover { --fill: var(--amber-hi); }
.btn-rule { background: none; color: var(--champagne); border-block: 3px double var(--brass); padding-inline: 1rem; }
.btn-rule:hover { color: var(--amber); }

/* full-bleed band */
.band { position: relative; }
.band img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; min-height: 260px; }
.band::before, .band::after { content: ""; position: absolute; left: 0; right: 0; height: 3px; border-block: 1px solid var(--brass); }
.band::before { top: 12px; }
.band::after { bottom: 60px; }
.band figcaption { padding: 1.1rem var(--gutter) 0; font-size: var(--text-secondary); color: var(--smoke); }

/* framed panels: double rule, stepped by the outline */
.menu, .book { padding: 5rem var(--gutter); }
.frame { max-width: var(--column); margin: 0 auto; padding: 3rem clamp(1.25rem, 5vw, 3rem); background: var(--booth); border: 1px solid var(--brass); outline: 1px solid rgba(167, 123, 58, .55); outline-offset: 6px; display: grid; gap: 1.25rem; }
.ornament { width: 5rem; height: auto; margin: 0 auto -.25rem; color: var(--brass); display: block; }

/* menu tabs */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem; margin-top: .5rem; border-bottom: 1px solid rgba(167, 123, 58, .45); }
.tab { min-height: 44px; padding: 0 1rem; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--smoke); font: 500 var(--text-secondary) var(--sans); letter-spacing: .06em; cursor: pointer; }
.tab:hover { color: var(--champagne); }
.tab[aria-selected="true"] { color: var(--amber); border-bottom-color: var(--amber); }
.panel { padding-top: 1rem; }
.panel[hidden] { display: none; }
.panel.is-entering { animation: fade-in var(--motion-300) var(--ease-out); }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.drinks { list-style: none; margin: 0; padding: 0; }
.drinks li { display: grid; gap: .2rem; justify-items: center; padding: 1.1rem 0; }
.drinks li + li { border-top: 1px solid rgba(167, 123, 58, .3); }
.drink { font: 400 var(--step-2)/1.2 var(--display); letter-spacing: .02em; color: var(--champagne); }
.what { color: var(--smoke); font-size: var(--text-secondary); max-width: 26rem; }
.cost { color: var(--amber); font-weight: 500; font-variant-numeric: lining-nums; letter-spacing: .08em; }
.panel .note { margin-top: 1rem; }

/* two photos, mirrored frames */
.pair { display: grid; gap: 2.5rem; justify-items: center; padding: 1rem var(--gutter) 5rem; }
.pair figure { width: min(80vw, 380px); }
.pair img { width: 100%; object-fit: cover; padding: 8px; border: 1px solid var(--brass); }
.pair-a img { aspect-ratio: 3 / 4; border-radius: 999px 999px 0 0; }
.pair-b img { aspect-ratio: 1; border-radius: 50%; }
.pair figcaption { margin-top: .85rem; font-size: var(--text-secondary); color: var(--smoke); }
@media (min-width: 768px) {
  .pair { grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; align-items: end; gap: 4rem; }
  .pair figure { width: auto; }
}

/* hours */
.hours, .find, .contact { padding: 4rem var(--gutter); display: grid; gap: 1.25rem; justify-items: center; }
.week { border-collapse: collapse; width: min(100%, 26rem); margin-top: .5rem; }
.week th, .week td { padding: .7rem .25rem; font-weight: 400; border-bottom: 1px solid rgba(167, 123, 58, .3); }
.week th { text-align: left; letter-spacing: .04em; }
.week td { text-align: right; color: var(--smoke); font-variant-numeric: tabular-nums; }
.week tr.is-today th, .week tr.is-today td { color: var(--amber); }
.week tr.is-today th::before { content: ""; display: inline-block; width: .5rem; height: .5rem; margin-right: .6rem; background: var(--amber); transform: rotate(45deg) translateY(-2px); }

/* booking form */
.booking { display: grid; gap: 1.25rem; text-align: left; margin-top: .5rem; }
.booking-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); }
.field { display: grid; gap: .4rem; font-size: var(--text-secondary); color: var(--smoke); letter-spacing: .04em; }
.field-wide { grid-column: 1 / -1; }
.field input, .field select {
  min-height: 48px; width: 100%; padding: 0 .9rem;
  background: var(--velvet); color: var(--champagne);
  border: 1px solid rgba(244, 231, 208, .28); border-radius: 0;
  font: 400 var(--text-body) var(--sans); color-scheme: dark;
}
.field input[aria-invalid="true"] { border-color: #ff9c8a; }
.error { color: #ffb4a6; font-size: var(--text-secondary); }
.booking .btn { justify-self: center; }
.done { border-block: 3px double var(--brass); padding: 1rem .5rem; text-align: center; color: var(--champagne); }

/* map */
.address { font: 400 var(--step-1)/1.4 var(--display); letter-spacing: .03em; }
.map { width: min(100%, 44rem); }
.map svg { width: 100%; height: auto; display: block; background: var(--booth); }
.map-frame { fill: none; stroke: var(--brass); stroke-width: 1; }
.map-road { stroke: var(--brass); stroke-width: 6; fill: none; opacity: .55; }
.map-lane { stroke: var(--amber); stroke-width: 3; fill: none; }
.map-walk { stroke: var(--champagne); stroke-width: 1.5; stroke-dasharray: 3 6; fill: none; }
.map-station { fill: var(--velvet); stroke: rgba(244, 231, 208, .3); }
.map-text { font: 400 15px var(--sans); fill: var(--smoke); }
.map-street { font: 500 14px var(--sans); fill: var(--smoke); letter-spacing: .12em; }
.map-pin { color: var(--amber); }
.map-pin circle { fill: var(--amber); }
.map-name { font: 400 24px var(--display); fill: var(--champagne); letter-spacing: .06em; }
.actions-center { justify-content: center; }
@media (max-width: 599.98px) {
  .map-text, .map-street { font-size: 24px; }
  .map-name { font-size: 30px; }
}

/* contact */
.contact { padding-bottom: 5rem; }
.phone { font: 400 clamp(2.2rem, 9vw, 4rem)/1.1 var(--display); letter-spacing: .06em; color: var(--amber); font-variant-numeric: lining-nums; }
.contact p:not(.phone) { color: var(--smoke); max-width: 30rem; }

.footer { padding: 2.5rem var(--gutter) 3rem; border-top: 3px double rgba(167, 123, 58, .6); font-size: var(--text-secondary); color: var(--smoke); display: grid; gap: .6rem; justify-items: center; }
.footer p { max-width: 44rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1.5rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }

/* call panel */
.call { width: min(26rem, calc(100% - 2rem)); padding: 2.5rem 2rem; background: var(--booth); color: var(--champagne); border: 1px solid var(--brass); outline: 1px solid rgba(167, 123, 58, .55); outline-offset: 6px; text-align: center; }
.call::backdrop { background: rgba(8, 5, 3, .75); }
.call[open] { display: grid; gap: 1rem; justify-items: center; animation: fade-in var(--motion-300) var(--ease-out); }
.call h2 { font-size: var(--step-2); }
.call .phone { font-size: var(--step-3); }
.call p:not(.phone) { color: var(--smoke); font-size: var(--text-secondary); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .veil { display: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
