:root {
  --night: #151412;
  --night-soft: #211e1a;
  --rice: #f5efe3;
  --rice-bright: #fffaf1;
  --ember: #d8bc70;
  --gold: #d8bc70;
  --muted: #c1b8aa;
  --line: #d8bc7038;
  --shadow: #00000024;
  --menu-surface: #211e1a;
  --menu-gold-line: var(--line);
  --menu-gold-line-strong: #d8bc7070;
  --mekoto-ink: #211e1a;
  --mekoto-cream-muted: #645c50;
  --mekoto-accent-hover: #e6d199;
  --mekoto-light-line: #d6ccba;
  --mekoto-display: "Manrope", Arial, sans-serif;
  --mekoto-body: "Manrope", Arial, sans-serif;
  --mekoto-space-1: .5rem;
  --mekoto-space-2: 1rem;
  --mekoto-space-3: 1.5rem;
  --mekoto-space-4: 2rem;
  --mekoto-space-5: 3rem;
  --mekoto-space-6: 4rem;
  --mekoto-space-7: 6rem;
  --mekoto-radius: .5rem;
  --mekoto-control-height: 3rem;
  --mekoto-duration: 200ms;
  --mekoto-text-small: .875rem;
  --mekoto-header-height: 5.5rem;
}

html { scroll-padding-top: var(--mekoto-header-height); }
body { background: var(--night); color: var(--rice); font-family: var(--mekoto-body); }
body, input, select, textarea, button { font-family: var(--mekoto-body); }
.display, .hero-strip strong, .menu-page h1, .menu-page h2, .menu-page h3, .menu-page h4 { font-family: var(--mekoto-display); }
::selection { background: var(--gold); color: var(--night); }
a, button, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.sakura-staging { display: none; }
.site-header.mekoto-header { background: var(--night); border-bottom: 1px solid var(--line); }
.mekoto-header .nav-links a { color: var(--muted); font-family: var(--mekoto-body); font-size: .875rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
.mekoto-header .nav-links a:hover, .mekoto-header .nav-links a[aria-current="page"] { color: var(--gold) !important; }
.mekoto-header .mobile-menu summary { border-radius: var(--mekoto-radius); }
.mekoto-header .mobile-menu-panel { background: var(--night-soft); border-color: var(--line); border-radius: var(--mekoto-radius); }
.mekoto-header .mobile-menu-panel a { color: var(--rice); font-size: .875rem; letter-spacing: 0; min-height: var(--mekoto-control-height); text-transform: none; }
.mekoto-header .mobile-menu:not([open]) .mobile-menu-panel { display: none; }
.mekoto-footer { background: var(--night); border-top: 1px solid var(--line); padding: var(--mekoto-space-4) 0; }
.mekoto-footer-main { display: grid; grid-template-columns: 200px 1fr auto; gap: var(--mekoto-space-4); align-items: center; }
.mekoto-footer p { font-size: .875rem; line-height: 1.8; margin: 0; color: var(--rice); }
.mekoto-footer p span { color: var(--muted); }
.mekoto-footer-main > div { display: grid; }
.mekoto-footer a { color: var(--rice); display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; }
.mekoto-footer a:hover { color: var(--gold); }
.mekoto-footer-bottom { border-top: 1px solid var(--line); margin-top: var(--mekoto-space-3); padding-top: var(--mekoto-space-2); font-size: var(--mekoto-text-small); color: var(--muted); }
.mekoto-button {
  align-items: center;
  appearance: none;
  background: var(--gold);
  border: 1px solid transparent;
  border-radius: var(--mekoto-radius);
  color: var(--mekoto-ink);
  cursor: pointer;
  display: inline-flex;
  font: 700 .9375rem/1.2 var(--mekoto-body);
  justify-content: center;
  min-height: 3.125rem;
  min-width: 0;
  padding: .75rem 1.25rem;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  transition: background-color var(--mekoto-duration), transform var(--mekoto-duration);
}

.mekoto-button:hover:not(:disabled) { background: var(--mekoto-accent-hover); }
.mekoto-button:disabled { background: #ddd4c4; color: #62594e; cursor: not-allowed; }
summary.mekoto-button { list-style: none; }
summary.mekoto-button::-webkit-details-marker { display: none; }
.floating-menu-nav .mekoto-menu-icon { display: none; }

.mekoto-action-link {
  align-items: center;
  color: var(--mekoto-action-color, inherit);
  display: inline-flex;
  font-size: .9375rem;
  font-weight: 700;
  gap: .65rem;
  min-height: 44px;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  text-underline-offset: .3em;
}

.mekoto-action-link:is(:hover, :focus-visible) { text-decoration-color: currentColor; }
.mekoto-action-link svg { flex: none; transition: translate var(--mekoto-duration); }

:is(a, button, summary):is(.mekoto-button, .mekoto-action-link):focus-visible {
  outline: 3px solid var(--mekoto-action-focus, var(--gold));
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .mekoto-button:hover:not(:disabled) { transform: translateY(-1px); }
  .mekoto-action-link:hover svg { translate: 2px -2px; }
}

@media (prefers-reduced-motion: no-preference) {
  .mekoto-button:active:not(:disabled) { transform: translateY(1px) scale(.985); }
}

.floating-menu-panel a { display: flex; align-items: center; min-height: 44px; }
.menu-page .menu-card .allergens > span { color: var(--muted); }
.menu-page .sakura-set-menu-allergens > span { color: var(--muted); }
#main .compact-allergens > span { color: var(--muted); }
.menu-page .compact-allergens::after { min-width: 0; width: min(20rem, calc(100vw - 6rem)); max-width: calc(100vw - 6rem); }
.sakura-content-page, .request-page {
  --mekoto-action-color: var(--mekoto-ink);
  --mekoto-action-focus: var(--mekoto-ink);
  background: var(--rice);
  color: var(--mekoto-ink);
}
.sakura-content-hero { background: var(--night); color: var(--rice); }
.sakura-content-hero .eyebrow { color: var(--gold); }
.sakura-content-hero h1 { line-height: 1.1; }
.sakura-content-section h2, .request-intro .display { color: var(--mekoto-ink); font-family: var(--mekoto-display); }
.sakura-content-note { background: var(--rice-bright); border-color: var(--gold); color: var(--mekoto-ink); }
.request-intro .eyebrow, .sakura-contact-list dt { color: var(--mekoto-cream-muted); }
.sakura-contact-list a { color: var(--mekoto-ink); }
.sakura-content-page :focus-visible, .request-page :focus-visible { outline-color: var(--mekoto-ink); }
.request-form { box-shadow: none; background: var(--rice-bright); border-color: var(--mekoto-light-line); }
.mekoto-dishes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--mekoto-space-4); }

#main :is(h1, h2, h3, h4) { font-family: var(--mekoto-body); font-style: normal; font-weight: 600; }
#main.menu-page h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.2; }
#main.menu-page h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); line-height: 1.3; }
#main.menu-page :is(h3, h4) { font-size: 1.125rem; line-height: 1.45; }
#main.sakura-content-page h1, #main .request-intro .display { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.2; }

@media (max-width: 1023px) {
  .mekoto-footer-main { grid-template-columns: 170px 1fr; }
  .mekoto-footer-main > div { grid-column: 2; }
}

@media (max-width: 760px) {
  :root { --mekoto-header-height: 5rem; }
  .floating-menu-nav .mekoto-button { width: 3.125rem; padding: 0; }
  .floating-menu-nav .mekoto-menu-label { display: none; }
  .floating-menu-nav:not([open]) .mekoto-menu-book,
  .floating-menu-nav[open] .mekoto-menu-close { display: block; }
  .mekoto-dishes { grid-template-columns: minmax(0, 1fr); gap: var(--mekoto-space-5); }
  .mekoto-footer-main { grid-template-columns: minmax(0, 1fr); gap: var(--mekoto-space-2); }
  .mekoto-footer-main > div { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mekoto-button, .mekoto-action-link svg, .mekoto-dish-photo img, .mekoto-text-link > span { transition: none; }
}
