/* Lumbre v3: a dark room. One black field, lit paintings, warm type and an accent taken from each picture. */
:root {
  --night: #0c0a08;
  --umber: #17120d;
  --bone: #efe6d6;
  --dim: #a99d8a;
  --accent: #c9a24a;
  --display: 'Gloock', 'Times New Roman', serif;
  --body: 'Albert Sans', system-ui, sans-serif;
  --bar-font: var(--body);
  --bar-bg: #000;
  --bar-fg: var(--dim);
  --toast-bg: var(--bone);
  --toast-fg: var(--night);
  --toast-radius: 2px;
}

body { background: var(--night); color: var(--bone); font: 300 17px/1.6 var(--body); }
em { font-style: italic; color: var(--accent); transition: color 600ms; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; background: var(--bone); color: var(--night); font-weight: 600; letter-spacing: 0.02em; text-decoration: none; border-radius: 2px; transition: background 300ms; }
@media (hover: hover) { .btn:hover { background: var(--accent); } }
.eyebrow { font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--dim); }

/* Header */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: linear-gradient(var(--night) 60%, transparent); }
.top-brand { font: 400 26px/1 var(--display); text-decoration: none; }
.top-nav { display: flex; align-items: center; gap: 18px; font-size: 15px; }
.top-nav a { text-decoration: none; }
.top-cta { padding: 8px 14px; border: 1px solid var(--bone); border-radius: 2px; }

/* Hero: the Seville kitchen in a frame of darkness */
.hero { display: grid; gap: 28px; padding: 12px 16px 72px; }
.hero-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 30% 50%; }
.hero-frame figcaption { margin-top: 8px; font-size: 13px; color: var(--dim); }
.hero h1 { font: 400 clamp(2.6rem, 11vw, 6.2rem)/0.98 var(--display); letter-spacing: -0.01em; }
.hero-copy p { max-width: 36ch; margin: 18px 0 26px; font-size: 1.1rem; color: #d9cfbe; }
.js .hero-frame img { animation: light 2.4s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes light { from { opacity: 0; filter: brightness(0.2); } to { opacity: 1; filter: none; } }

@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; gap: 56px; padding: 24px 48px 120px; }
  .hero-frame img { aspect-ratio: auto; height: min(74vh, 640px); }
  .hero h1 { font-size: 4.8rem; }
}

/* La carta: painting, dish tabs and the plate card */
.carta { padding: 72px 16px 96px; background: var(--umber); }
.carta-head { margin-bottom: 28px; }
.carta h2 { margin-top: 10px; font: 400 clamp(2.2rem, 9vw, 4.8rem)/1 var(--display); }
.gallery { display: grid; gap: 18px; }
.canvas-frame { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: #000; box-shadow: 0 0 0 1px rgba(239, 230, 214, 0.08), 0 30px 80px rgba(0, 0, 0, 0.7); }
.canvas-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 900ms ease, transform 6s cubic-bezier(0.16, 1, 0.3, 1); }
.canvas-frame img.is-entering { opacity: 0; transform: scale(1); }
.canvas-frame img.is-shown { opacity: 1; transform: scale(1.55); }
.canvas figcaption { margin-top: 8px; font-size: 13px; color: var(--dim); }

.plates { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
.plates::-webkit-scrollbar { display: none; }
.plates button { flex: none; scroll-snap-align: start; display: flex; align-items: baseline; gap: 8px; min-height: 48px; padding: 0 18px; border: 1px solid rgba(239, 230, 214, 0.25); border-radius: 2px; font-size: 16px; color: var(--dim); transition: color 300ms, border-color 300ms, background 300ms; }
.plates button span { font-size: 12px; font-variant-numeric: tabular-nums; }
.plates button[aria-selected="true"] { color: var(--night); background: var(--accent); border-color: var(--accent); }

.plate-card { display: grid; gap: 8px; padding-top: 6px; }
.plate-course { font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); transition: color 600ms; }
.plate-card h3 { font: 400 clamp(1.8rem, 7vw, 3rem)/1.05 var(--display); }
.plate-text { max-width: 44ch; color: #d9cfbe; }
.plate-price { font: 400 1.6rem/1 var(--display); color: var(--accent); transition: color 600ms; }

@media (min-width: 960px) {
  .carta { padding: 120px 48px; }
  .gallery { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 56px; row-gap: 32px; }
  .canvas { grid-row: 1 / 3; }
  .plates { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
  .plate-card { align-self: start; }
}

/* Reservation */
.reserve { padding: 80px 16px 72px; }
.reserve h2 { font: 400 clamp(2.2rem, 9vw, 4.8rem)/1 var(--display); }
.facts { display: grid; gap: 18px; margin-top: 48px; max-width: 760px; }
.facts div { display: grid; gap: 2px; padding-top: 14px; border-top: 1px solid rgba(239, 230, 214, 0.15); }
.facts dt { font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--dim); }
@media (min-width: 960px) {
  .reserve { padding: 120px 48px; }
  .facts { grid-template-columns: repeat(3, 1fr); }
}

/* Footer */
.foot { padding: 40px 16px 28px; border-top: 1px solid rgba(239, 230, 214, 0.12); font-size: 14px; color: var(--dim); }
.foot-row { display: grid; gap: 12px; margin-top: 22px; }
.foot-cta { color: var(--bone); font-weight: 600; }
.foot nav { display: flex; flex-wrap: wrap; gap: 16px; }
@media (min-width: 960px) { .foot { padding-inline: 48px; } }

@media (prefers-reduced-motion: reduce) { .canvas-frame img.is-shown { transform: scale(1.3); } }
.foot-row p { max-width: 68ch; }

/* Reservation: controls, the plan of the house and a museum ticket */
.reserve-lead { max-width: 46ch; margin-top: 14px; color: #d9cfbe; }
.book { display: grid; gap: 24px; margin-top: 30px; }
.book-controls { display: grid; gap: 20px; min-width: 0; }
.book legend, .floor-head { display: block; margin-bottom: 10px; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); }
.dates { display: flex; gap: 8px; margin-inline: -16px; padding-inline: 16px; overflow-x: auto; scrollbar-width: none; }
.dates::-webkit-scrollbar { display: none; }
.dates button { flex: 0 0 62px; display: grid; justify-items: center; gap: 2px; padding: 10px 0; border: 1px solid rgba(239, 230, 214, 0.25); border-radius: 2px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); }
.dates b { font: 400 1.6rem/1 var(--display); color: var(--bone); }
.dates button:disabled { opacity: 0.3; cursor: not-allowed; }
.dates button.is-active { background: var(--accent); border-color: var(--accent); color: var(--night); }
.dates button.is-active b { color: var(--night); }
.book-row { display: grid; gap: 20px; }
.party { display: inline-flex; align-items: center; gap: 10px; }
.party button { width: 46px; height: 46px; border: 1px solid rgba(239, 230, 214, 0.4); border-radius: 50%; font-size: 20px; }
.party output { min-width: 40px; text-align: center; font: 400 2rem/1 var(--display); }
.times { display: flex; flex-wrap: wrap; gap: 6px; }
.times button { min-height: 44px; padding: 0 14px; border: 1px solid rgba(239, 230, 214, 0.25); border-radius: 2px; font-variant-numeric: tabular-nums; }
.times button.is-active { background: var(--bone); color: var(--night); }

.floor-wrap { min-width: 0; padding: 14px; border: 1px solid rgba(239, 230, 214, 0.15); background: #120f0b; }
.floor-head { display: flex; justify-content: space-between; gap: 10px; }
.floor-legend { display: inline-flex; align-items: center; gap: 6px; letter-spacing: 0.06em; text-transform: none; }
.floor-legend i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.floor-legend i.taken { background: #3a322a; margin-left: 6px; }
.floor { width: 100%; height: auto; }
.floor .wall { fill: none; stroke: rgba(239, 230, 214, 0.55); stroke-width: 2; }
.floor .inner { fill: none; stroke: rgba(239, 230, 214, 0.35); stroke-width: 1.5; }
.floor .kitchen { fill: rgba(224, 120, 79, 0.18); }
.floor .counter { fill: #2a2119; stroke: rgba(239, 230, 214, 0.35); }
.floor .frame { fill: #b08a5a; }
.floor .fountain { fill: none; stroke: rgba(160, 196, 210, 0.7); stroke-width: 1.5; }
.floor .plinth { fill: #3a322a; }
.floor .bust { fill: #d8d0c4; }
.floor .chair { fill: #3a322a; }
.floor .zone { fill: var(--dim); font: 400 9px var(--body); letter-spacing: 0.14em; text-anchor: middle; }
.floor .zone.small { letter-spacing: 0.04em; font-style: italic; text-anchor: start; }
.table { cursor: pointer; outline: none; }
.table circle, .table rect { fill: rgba(201, 162, 74, 0.2); stroke: var(--accent); stroke-width: 1.5; transition: fill 200ms; }
.table text { fill: var(--bone); font: 600 10px var(--body); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
@media (hover: hover) { .table:hover circle, .table:hover rect { fill: rgba(201, 162, 74, 0.45); } }
.table:focus-visible circle, .table:focus-visible rect { stroke: #fff; stroke-width: 2.5; }
.table.is-taken { cursor: not-allowed; }
.table.is-taken circle, .table.is-taken rect { fill: #221c16; stroke: #3a322a; }
.table.is-taken text { fill: #6c6055; }
.table.is-active circle, .table.is-active rect { fill: var(--accent); stroke: var(--bone); }
.table.is-active text { fill: var(--night); }
.floor-info { min-height: 3em; margin-top: 10px; font-size: 15px; color: #d9cfbe; }
.floor-info b { color: var(--bone); font-weight: 600; }

/* The ticket is an entrance to a museum that happens to serve dinner. */
.ticket { display: grid; grid-template-columns: minmax(0, 1fr) 76px; max-width: 520px; margin: 32px auto 0; background: var(--bone); color: var(--night); outline: none; animation: print 720ms cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes print { from { opacity: 0; transform: translateY(-14px) scaleY(0.92); transform-origin: top; } to { opacity: 1; transform: none; } }
.ticket-main { display: grid; gap: 8px; padding: 22px 20px; }
.ticket-brand { font: 400 2.2rem/1 var(--display); }
.ticket-kind { font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; color: #6b5a44; }
.ticket-room { font: italic 400 1.4rem/1.1 var(--display); }
.ticket dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 0; margin: 4px 0 8px; border-block: 1px solid rgba(12, 10, 8, 0.25); }
.ticket dt { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: #6b5a44; }
.ticket dd { font: 400 1.15rem/1.15 var(--display); }
.ticket .btn { background: var(--night); color: var(--bone); justify-self: start; }
.ticket-stub { display: grid; place-content: center; justify-items: center; gap: 4px; border-left: 2px dashed rgba(12, 10, 8, 0.35); background: var(--accent); }
.ticket-stub span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; }
.ticket-stub b { font: 400 2.4rem/1 var(--display); }
@media (min-width: 960px) {
  .book { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
  .dates { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { .ticket { animation: none; } }

.pitch-close { --pitch-bg: var(--umber); --pitch-fg: var(--bone); --pitch-accent: var(--accent); --pitch-font: 400 clamp(2.4rem, 10vw, 5.4rem)/1 var(--display); --pitch-radius: 2px; border-top: 1px solid rgba(239, 230, 214, 0.12); }
.pitch-close h2 em { font-style: italic; }
