/*
 * RAS — the public face of the Restaurant Automation System.
 * A single, committed dark restaurant look (uplifted from the original #222),
 * with a warm gold accent and an elegant printed-menu feel.
 */

:root {
  --ground: #1a1c20;
  --surface: #23262c;
  --text: #ecedee;
  --muted: #9aa0a8;
  --gold: #d4a017;
  --gold-bright: #e7b62f;
  --rule: rgba(255, 255, 255, 0.09);
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  font-size: 17px;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); }

img { max-width: 100%; height: auto; }

.wrap { width: 100%; max-width: 900px; margin: 0 auto; padding: 0 1.25rem; }
.measure { max-width: 40rem; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--gold); color: #1a1c20; padding: .6rem 1rem; border-radius: 6px;
}
.skip-link:focus { left: 1rem; top: 1rem; z-index: 10; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(20, 22, 26, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark {
  font-weight: 800; letter-spacing: .12em; font-size: .82rem;
  background: var(--gold); color: #1a1c20;
  padding: .3rem .5rem; border-radius: 5px;
}
.brand-name { font-family: var(--serif); font-size: 1.15rem; letter-spacing: .01em; }
.site-nav { display: flex; gap: 1.4rem; }
.site-nav a { font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; }

/* Menu page */
.menu-page { padding: 3rem 0 4rem; }
.menu-head { text-align: center; margin-bottom: 2.75rem; }
.eyebrow {
  margin: 0 0 .6rem; font-size: .72rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
}
.menu-head h1 { font-family: var(--serif); font-size: 2.6rem; font-weight: 400; margin: 0 0 .5rem; }
.lede { color: var(--muted); margin: 0; }

.menu-group { margin: 0 0 2.75rem; }
.menu-group h2 {
  font-family: var(--serif); font-weight: 400; font-size: 1.5rem;
  margin: 0 0 1.1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--rule);
  color: var(--text);
}
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-item { padding: .7rem 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.05); }
.menu-item:last-child { border-bottom: 0; }
.menu-row { display: flex; align-items: baseline; gap: .35rem; }
.menu-name { font-weight: 500; }
.menu-leader { flex: 1; border-bottom: 1px dotted rgba(255, 255, 255, 0.28); transform: translateY(-.25rem); }
.menu-price { font-variant-numeric: tabular-nums; color: var(--gold); font-weight: 600; white-space: nowrap; }
.menu-desc { margin: .3rem 0 0; color: var(--muted); font-size: .92rem; max-width: 46ch; }
.empty { color: var(--muted); text-align: center; padding: 2rem 0; }

/* Homepage */
.btn {
  display: inline-block; padding: .7rem 1.3rem; border-radius: 6px;
  font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
  border: 1px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-gold { background: var(--gold); color: #1a1c20; }
.btn-gold:hover { background: var(--gold-bright); color: #1a1c20; }
.btn-ghost { border-color: var(--rule); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }

.hero {
  border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(1200px 400px at 50% -120px, rgba(212, 160, 23, 0.10), transparent 70%),
    var(--ground);
}
.hero-inner { text-align: center; padding: 5.5rem 0 4.5rem; }
.hero-title { font-family: var(--serif); font-weight: 400; font-size: 3.4rem; line-height: 1.05; margin: 0 0 1rem; text-wrap: balance; }
.hero-tagline { color: var(--muted); font-size: 1.15rem; max-width: 34rem; margin: 0 auto 1.9rem; }
.hero-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin: 0; }

.home-section { padding: 3.75rem 0; border-bottom: 1px solid var(--rule); }
.section-head { text-align: center; margin-bottom: 2.25rem; }
.section-title { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; margin: 0 0 1rem; }
.about { text-align: center; }
.about .section-title { margin-bottom: 1rem; }
.about-body { color: var(--muted); font-size: 1.08rem; margin: 0; }

.dish-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.dish { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 1.4rem; }
.dish-cat { margin: 0 0 .5rem; font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.dish-row { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; }
.dish-name { font-family: var(--serif); font-size: 1.2rem; }
.dish-price { font-variant-numeric: tabular-nums; color: var(--gold); font-weight: 600; white-space: nowrap; }
.dish-blurb { margin: .55rem 0 0; color: var(--muted); font-size: .92rem; }
.section-more { text-align: center; margin: 2rem 0 0; }
.section-more a { letter-spacing: .04em; text-transform: uppercase; font-size: .9rem; }

.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.visit-col .section-title { font-size: 1.5rem; }
.visit-body { color: var(--muted); margin: 0 0 .5rem; }

.reserve { text-align: center; border-bottom: 0; }
.reserve-lede { color: var(--muted); margin: 0 0 1.6rem; }

@media (max-width: 40rem) {
  .hero-title { font-size: 2.5rem; }
  .hero-inner { padding: 4rem 0 3.25rem; }
  .dish-grid { grid-template-columns: 1fr; }
  .visit-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* Generic page + 404 */
.page { padding: 3rem 0 4rem; }
.page h1 { font-family: var(--serif); font-weight: 400; font-size: 2.2rem; margin: 0 0 1rem; }
.prose { color: var(--text); }
.notfound { text-align: center; }

/* Online ordering */
.order-page { padding: 3rem 0 4rem; }
.demo-note {
  display: inline-block; margin: 1rem auto 0; padding: .5rem .9rem;
  background: rgba(212, 160, 23, 0.12); border: 1px solid rgba(212, 160, 23, 0.35);
  border-radius: 8px; color: var(--gold-bright); font-size: .9rem;
}
.order-error {
  max-width: 46rem; margin: 0 auto 1.5rem; padding: .7rem 1rem; text-align: center;
  background: rgba(192, 57, 43, 0.15); border: 1px solid rgba(192, 57, 43, 0.5);
  border-radius: 8px; color: #f2b8b1;
}
.order-form { max-width: 40rem; margin: 0 auto; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

.order-group { margin: 0 0 2rem; }
.order-group h2 {
  font-family: var(--serif); font-weight: 400; font-size: 1.4rem; margin: 0 0 .8rem;
  padding-bottom: .5rem; border-bottom: 1px solid var(--rule);
}
.order-list { list-style: none; margin: 0; padding: 0; }
.order-item {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .65rem 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}
.order-item-main { display: flex; align-items: baseline; gap: .6rem; min-width: 0; }
.order-name { font-weight: 500; }
.order-price { color: var(--gold); font-variant-numeric: tabular-nums; }
.order-qty { display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; }
.order-qty-label { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }

.order-page input[type="number"],
.order-page input[type="text"],
.order-page input[type="tel"] {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--rule); border-radius: 6px; padding: .5rem .6rem; font: inherit;
}
.order-page input:focus { outline: none; border-color: var(--gold); }
.order-qty input[type="number"] { width: 4.5rem; text-align: center; }

.order-details { margin: 2rem 0 1.5rem; }
.order-details h2 { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; margin: 0 0 1rem; }
.order-field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.order-field label { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.order-field input { width: 100%; }
.order-submit { width: 100%; border: 0; cursor: pointer; font-size: .9rem; }

.order-receipt { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.order-receipt-row { display: flex; align-items: baseline; gap: .7rem; padding: .5rem 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.06); }
.order-receipt-qty { color: var(--muted); font-variant-numeric: tabular-nums; }
.order-receipt-name { flex: 1; }
.order-receipt-price { color: var(--gold); font-variant-numeric: tabular-nums; }
.order-receipt-total { display: flex; justify-content: space-between; margin: 1rem 0 0; padding-top: .8rem; border-top: 1px solid var(--rule); font-weight: 600; }
.order-receipt-total span:last-child { color: var(--gold); font-variant-numeric: tabular-nums; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 2.5rem 0; margin-top: 2rem; }
.footer-inner { text-align: center; }
.footer-name { font-family: var(--serif); font-size: 1.15rem; margin: 0 0 .3rem; }
.footer-meta { color: var(--muted); margin: 0 0 .6rem; }
.footer-fine { color: var(--muted); font-size: .8rem; margin: 0; opacity: .8; }

@media (max-width: 40rem) {
  .menu-head h1 { font-size: 2.1rem; }
  .brand-name { display: none; }
  body { font-size: 16px; }
}

/* ---------- Journal (blog) ---------- */
.journal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.25rem; }
.journal-item { border-bottom: 1px solid var(--rule); padding-bottom: 2rem; }
.journal-item:last-child { border-bottom: 0; padding-bottom: 0; }
.journal-title { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; margin: 0; color: var(--text); }
.journal-link { display: inline-block; }
.journal-link:hover .journal-title { color: var(--gold-bright); }
.journal-date { color: var(--muted); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin: .45rem 0 0; }
.journal-summary { color: var(--muted); margin: .75rem 0 0; max-width: 54ch; }
.journal-more { display: inline-block; margin-top: .85rem; font-size: .9rem; }
.journal-article-title { font-family: var(--serif); font-weight: 400; font-size: 2.5rem; line-height: 1.08; margin: .5rem 0 0; text-wrap: balance; }
.journal-article .eyebrow a { color: var(--gold); }
.journal-back { margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.prose { margin-top: 1.6rem; font-size: 1.06rem; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: 1.55rem; margin-top: 2.1rem; }
.prose h3 { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; margin-top: 1.7rem; }
.prose ul { margin: 1.1rem 0 0 1.2rem; }
.prose li + li { margin-top: .35rem; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose code { background: var(--surface); padding: .12rem .38rem; border-radius: 4px; font-size: .9em; }
