/* István, a király app – shared look (dark: made for a projector and for watching video) */
:root {
  --head: 58px;
  --bg: #15120f; --panel: #1f1b17; --hover: #2a241f; --ink: #efe6d8; --muted: #9c9083; --line: #352e28;
  --accent: #b5452b; --accent-soft: #3d241b;
  --sans: -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.4 var(--sans); font-variant-numeric: tabular-nums; }
a { color: inherit; }
header { height: var(--head); display: flex; align-items: center; gap: 18px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--panel); }
.brand { font: 600 19px/1 var(--serif); text-decoration: none; letter-spacing: .01em; white-space: nowrap; }
.pages { margin-left: auto; display: flex; gap: 4px; }
.pages a { text-decoration: none; padding: 7px 14px; border-radius: 6px; color: var(--muted); border: 1px solid transparent; }
.pages a:hover { color: var(--ink); }
.pages a.on { color: var(--ink); border-color: var(--line); background: var(--bg); }
button { font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 5px 10px; cursor: pointer; }
button:hover { border-color: var(--accent); }
button:focus { outline: none; }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.seg { display: flex; gap: 4px; }
.seg button { display: flex; flex-direction: column; align-items: center; line-height: 1.1; padding: 5px 14px; min-width: 120px; }
.seg button small { font-size: 11px; opacity: .75; }
.seg.small button { min-width: 0; flex-direction: row; padding: 4px 9px; white-space: nowrap; }
.seg.small { flex-wrap: wrap; }
kbd { border: 1px solid var(--line); border-radius: 3px; padding: 0 4px; font: 11px var(--mono); background: var(--panel); color: var(--ink); }
label { cursor: pointer; }
input[type=checkbox] { accent-color: var(--accent); vertical-align: -2px; }
/* tabs in the header that link to other pages (IK43) look like the gallery's tab buttons */
.seg.small a { text-decoration: none; padding: 4px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); white-space: nowrap; }
.seg.small a:hover { border-color: var(--accent); }
.seg.small a.on { background: var(--accent); border-color: var(--accent); color: #fff; }
/* projector theme (T): brighter secondary text, bolder type */
html.proj { --muted: #d6cab8; --line: #5a4e42; --ink: #fffaf0; }
html.proj body { font-weight: 500; }
html.proj .pages a, html.proj .seg.small a, html.proj button { font-weight: 600; }
