/* Fourth Cross: steel, stone and the dated daily menu.
   Plate white ground, ink text, steel rules and tier bands, one accent (decoction brown).
   Tiro Kannada for words (Latin and Kannada), Spline Sans Mono for numbers. */

:root {
  --paper: #fafaf7;
  --ink: #1d2324;
  --steel: #d5d8d8;
  --steel-2: #ebedec;
  --kota: #4f5d61;
  --brown: #6b3e1f;
  --brown-dark: #53301a;
  --veg: #008a3e;
  --nonveg: #944a28;
  --serif: "Tiro Kannada", "Noto Serif Kannada", Georgia, "Times New Roman", serif;
  --mono: "Spline Sans Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --header-h: 56px;
  --gutter: max(20px, calc((100vw - 1360px) / 2));
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.55;
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
}

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

h1, h2, h3 { font-weight: 400; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0 0 0.8em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brown); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brown-dark); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--brown); outline-offset: 3px; border-radius: 4px; }

.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.muted { color: var(--kota); }

.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }

[id] { scroll-margin-top: calc(var(--header-h) + 64px); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: var(--radius);
  font-family: var(--serif); font-size: 1.0625rem; line-height: 1.1;
  text-decoration: none; border: 1.5px solid var(--ink); color: var(--ink); background: transparent;
  cursor: pointer;
}
.btn:hover { color: var(--ink); background: var(--steel-2); text-decoration: none; }
.btn-main { background: var(--brown); border-color: var(--brown); color: var(--paper); }
.btn-main:hover { background: var(--brown-dark); border-color: var(--brown-dark); color: var(--paper); }
.btn-quiet { border-color: var(--kota); }

/* ---- Header (sticky at every width) ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--steel);
}
.header-row { display: flex; align-items: center; gap: 16px; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; margin-right: auto; min-width: 0; }
.logo:hover { color: var(--ink); }
.tag { flex: none; width: 36px; height: 36px; }
.tag-plate { fill: var(--steel-2); stroke: var(--kota); stroke-width: 1.2; }
.tag-ring { stroke: var(--steel); }
.tag-text { font-family: var(--serif); font-size: 20px; fill: var(--ink); }
.logo-words { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.logo-name { font-size: 1.25rem; white-space: nowrap; }
.logo-place { font-family: var(--mono); font-size: 0.72rem; color: var(--kota); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav-wide, .header-call, .header-main { display: none; }

.nav-small summary {
  display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px;
  border: 1.5px solid var(--ink); border-radius: var(--radius);
  list-style: none; cursor: pointer; font-size: 1rem;
}
.nav-small summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 16px; height: 1.5px; background: var(--ink); position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -5px; }
.burger::after { top: 5px; }
.nav-small[open] .burger { background: transparent; }
.nav-small[open] .burger::before { top: 0; transform: rotate(45deg); }
.nav-small[open] .burger::after { top: 0; transform: rotate(-45deg); }
.nav-small nav {
  position: absolute; left: 0; right: 0; top: var(--header-h);
  background: var(--paper); border-bottom: 1px solid var(--steel);
  box-shadow: 0 12px 24px rgb(29 35 36 / 0.08);
}
.nav-small ul { list-style: none; margin: 0; padding: 8px var(--gutter) 16px; }
.nav-small li a {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--steel-2);
  color: var(--ink); text-decoration: none; font-size: 1.25rem;
}
.nav-small a[aria-current="page"] { color: var(--brown); }

/* ---- Phone action bar ---- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr 1.4fr;
  background: var(--ink); padding-bottom: env(safe-area-inset-bottom);
}
.action-bar a {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 64px; color: var(--paper); text-decoration: none; font-size: 1rem;
  border-right: 1px solid rgb(250 250 247 / 0.16);
}
.action-bar a:last-child { border-right: 0; }
.action-bar .ab-main { background: var(--brown); }
.action-bar a:focus-visible { outline-offset: -4px; outline-color: var(--paper); }

/* ---- Footer ---- */
.site-footer { background: var(--steel-2); border-top: 1px solid var(--steel); margin-top: 72px; padding: 40px 0 24px; font-size: 1rem; }
.footer-grid { display: grid; gap: 28px; }
.site-footer h2 { font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--kota); margin-bottom: 10px; }
.footer-promise { margin-top: 12px; color: var(--kota); max-width: 30ch; }
.footer-links { list-style: none; padding: 0; margin: 0 0 12px; }
.footer-links li { padding: 3px 0; }
.footer-legal p { font-size: 0.9rem; }
.footer-base { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--steel); color: var(--kota); font-size: 0.85rem; }
.footer-base p { margin-bottom: 4px; }
