/* Shared tokens for the kiosk and admin pages: the Heritage direction (Figma "A · Heritage").
   Built from the two logos: Seattle Fish Co's engraved serif capitals and Lombardi's maroon and red, on warm paper.
   Light only on purpose: the approved design has no dark version, and the tablet should look the same whatever its OS setting.
   Fonts are served from /assets/fonts (SIL OFL, licences alongside) because the CSP only allows this origin. */
@font-face { font-family: "Cormorant Garamond"; font-weight: 600 700; font-display: swap; src: url(/assets/fonts/cormorant-garamond.woff2) format("woff2"); }
@font-face { font-family: "Work Sans"; font-weight: 400 600; font-display: swap; src: url(/assets/fonts/work-sans.woff2) format("woff2"); }
:root {
  --ground: #f4eee4;   /* paper */
  --panel: #ffffff;
  --panel-2: #f7f1e8;  /* rows and keys on a white card */
  --ink: #2a2420;
  --muted: #766c63;
  --line: #e2d6c6;
  --accent: #681820;   /* Lombardi maroon: actions */
  --accent-ink: #ffffff;
  --accent-soft: #f3e3e1;
  --brand-red: #d86850;
  --ok: #2e6b3e;  --ok-bg: #e3efe1;
  --bad: #a0302a; --bad-bg: #f6e0da;
  --warn: #8a4f0d; --warn-bg: #f8ead2;
  --head: #faf6ef;     /* table headers */
  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --radius: 8px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--ground); color: var(--ink); font: 16px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { line-height: 1.1; text-wrap: balance; margin: 0; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-variant-numeric: lining-nums; }
[hidden] { display: none !important; }
.num { font-variant-numeric: lining-nums tabular-nums; font-weight: 600; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }

button, .btn {
  font: inherit; font-weight: 600; cursor: pointer; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  padding: .6em 1.1em; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  text-decoration: none;
}
button.primary, .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
button.danger { color: var(--bad); border-color: currentColor; }
button:disabled { opacity: .5; cursor: default; }
button:focus-visible, .btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: .55em .7em; min-height: 44px; width: 100%;
}
label { display: grid; gap: .3em; font-weight: 500; font-size: .9rem; color: var(--muted); }
label > input, label > select, label > textarea { color: var(--ink); }
.brand-logos { display: flex; align-items: center; gap: .9em; flex: none; }
.brand-logos img { display: block; height: 34px; width: auto; }
.brand-logos img.sfc { height: 25px; }
.brand-logos .rule { width: 1px; align-self: stretch; background: var(--line); }

.notice { max-width: 560px; margin: 12vh auto; padding-inline: 16px; }
.notice h1 { font-size: 1.6rem; margin-bottom: .5em; }
.notice a { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
}
