/* ── Reset & Variables ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f4ecdc;
  --ink: #1a1b2e;
  --accent: #6b1f1a;
  --secondary: #1e2a4a;
  --signal: #6b1f1a;
  --muted: rgba(26,27,46,0.5);
  --border: rgba(26,27,46,0.12);
  --card-bg: rgba(244,236,220,0.85);
  --font-body: 'JetBrains Mono', ui-monospace, monospace;
  --font-display: 'Fraunces', 'Playfair Display', serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1b2e;
    --ink: #e8e0d0;
    --accent: #c94a3e;
    --secondary: #7a8bb5;
    --signal: #c94a3e;
    --muted: rgba(232,224,208,0.45);
    --border: rgba(232,224,208,0.12);
    --card-bg: rgba(26,27,46,0.9);
  }
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow: hidden;
  height: 100vh;
}

/* ── Diagonal Split Panels ── */
.panel {
  position: fixed;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.panel-left {
  left: 0;
  width: 55%;
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
  background: var(--bg);
  z-index: 2;
}

.panel-right {
  right: 0;
  width: 50%;
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
  background: var(--secondary);
  z-index: 1;
  color: #e8e0d0;
}

.panel-inner {
  padding: 3rem 3rem 6rem;
  max-width: 600px;
}

.panel-right .panel-inner {
  padding-top: 6rem;
  padding-left: 5rem;
}

/* ── Site Header ── */
.site-header {
  margin-bottom: 4rem;
  padding-top: 2rem;
}

.site-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 400;
  font-variation-settings: "SOFT" 80;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  /* Signature color reveal */
  animation: revealFromLeft 800ms cubic-bezier(.2,.7,.1,1) both;
  animation-timeline: view();
  animation-range: entry 0% entry 60%;
}

@keyframes revealFromLeft {
  from {
    clip-path: inset(0 100% 0 0);
    background: transparent;
  }
  to {
    clip-path: inset(0 0 0 0);
    background: transparent;
  }
}

/* The accent block reveal — a single element gets the signal bg */
.accent-block {
  width: 4rem;
  height: 4rem;
  background: var(--signal);
  margin-bottom: 2rem;
  animation: accentReveal 800ms cubic-bezier(.2,.7,.1,1) both;
  animation-timeline: view();
  animation-range: entry 0% entry 60%;
}

@keyframes accentReveal {
  from { transform: scaleX(0); transform-origin: left; }
  to { transform: scaleX(1); transform-origin: left; }
}

.site-tagline {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.site-locale {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* ── Sections ── */
.section {
  margin-bottom: 3.5rem;
  padding-top: 1rem;
}

.section-label {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  font-variation-settings: "SOFT" 60;
  color: var(--ink);
  margin-bottom: 1.25rem;
  anchor-name: --section-label;
}

/* ── Museum Wall Labels ── */
.label-tag {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  position-area: right span-block;
  white-space: nowrap;
  margin-left: 1rem;
}

/* ── Menu Grid ── */
.menu-grid {
  display: grid;
  gap: 1.25rem;
}

.menu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 0.75rem;
  align-items: baseline;
}

.menu-name {
  font-weight: 500;
  color: var(--ink);
}

.menu-price {
  font-size: 0.8rem;
  color: var(--accent);
  text-align: right;
}

.menu-desc {
  grid-column: 1 / -1;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ── Hours ── */
.hours-grid {
  display: grid;
  gap: 0.5rem;
}

.hours-row {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

.hours-day {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.hours-time {
  font-size: 0.85rem;
  color: var(--ink);
}

/* ── Location ── */
.location-block {
  font-style: normal;
  line-height: 1.8;
}

.location-block p {
  font-size: 0.85rem;
}

.location-note {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* ── Reservation Form ── */
.reserve-form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.reserve-form label {
  display: grid;
  gap: 0.35rem;
}

.label-text {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.reserve-form input,
.reserve-form textarea {
  font-family: var(--font-body);
  font-size: 0.8rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--card-bg);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}

.reserve-form input:focus,
.reserve-form textarea:focus {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.submit-btn {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: #f4ecdc;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  justify-self: start;
}

.submit-btn:hover {
  opacity: 0.85;
}

.form-status {
  font-size: 0.75rem;
  color: var(--accent);
}

/* ── Right Panel Decorative ── */
.decorative-block {
  margin-bottom: 4rem;
}

.decorative-quote {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-variation-settings: "SOFT" 70;
  line-height: 1.4;
  color: #e8e0d0;
  opacity: 0.9;
}

.decorative-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-variation-settings: "SOFT" 90;
  color: var(--accent);
  opacity: 0.7;
}

.decorative-detail {
  font-size: 0.8rem;
  line-height: 1.7;
  opacity: 0.75;
}

/* ── Site Footer ── */
.site-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.7rem;
  color: var(--muted);
}

/* ── Kwaku Attribution ── */
.attribution {
  position: fixed;
  bottom: 0.5rem;
  right: 0.75rem;
  font-size: 0.7rem;
  opacity: 0.5;
  font-family: var(--font-body);
  z-index: 10;
}
.attribution a { color: var(--ink); text-decoration: none; }
.attribution a:hover { text-decoration: underline; }

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-timeline: auto !important;
    transition-duration: 0.01ms !important;
  }
  .site-title { animation: none; }
  .accent-block { animation: none; }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .panel-left {
    width: 100%;
    clip-path: none;
    position: relative;
    height: auto;
    overflow-y: visible;
  }
  .panel-right {
    display: none;
  }
  body {
    overflow-y: auto;
    height: auto;
  }
  .panel-inner {
    padding: 2rem 1.5rem 5rem;
  }
}
