/* F · Radlická 115: tokens, grounds, reset, typography, focus, buttons */
:root {
  --bg: #15100B; --fg: #F7EBD6; --muted: #D8C9AE; --link: #FFC878; --accent: #F59200;
  --accent-text: #F59200; --focus: #FFE600; --rule: #4a3a28; --on-accent: #000;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", "Segoe UI", Arial, sans-serif;
  --gutter: clamp(1rem, 4vw, 2.5rem); --max: 76rem; --hh: 4rem;
  color-scheme: dark;
}
/* Grounds: every section sets its own token set. */
.on-dark { --bg: #15100B; --fg: #F7EBD6; --muted: #D8C9AE; --link: #FFC878; --accent-text: #F59200; --focus: #FFE600; --rule: #4a3a28; }
.on-paper { --bg: #FBF3E2; --fg: #17120D; --muted: #4A3F33; --link: #00006B; --accent-text: #7A3D00; --focus: #000; --rule: #17120D; }
.on-cream { --bg: #F7DEB9; --fg: #17120D; --muted: #3d3226; --link: #00006B; --accent-text: #6a3500; --focus: #000; --rule: #17120D; }
.on-orange { --bg: #F59200; --fg: #000; --muted: #000; --link: #000; --accent-text: #000; --focus: #000; --rule: #000; }
.on-paper, .on-cream, .on-orange { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; background: #15100B; }
body {
  margin: 0; background: #15100B; color: #F7EBD6; font: 400 1.125rem/1.6 var(--font-body);
  font-optical-sizing: auto; text-rendering: optimizeLegibility; overflow-x: clip;
}
html { scroll-padding-top: calc(var(--hh) + 1rem); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-display); font-optical-sizing: auto; font-weight: 650; line-height: 1.12;
  margin: 0 0 .5em; text-wrap: balance; overflow-wrap: break-word; letter-spacing: -.01em;
}
h1 { font-size: clamp(2.05rem, 5.2vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 4.2vw, 3rem); }
h3 { font-size: 1.4rem; }
p, li, figcaption { text-wrap: pretty; }
p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { max-width: 68ch; }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: .1em; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .2em; }
a[href^="tel:"] { white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
strong { font-weight: 700; }
dl, figure { margin: 0; } dt { font-weight: 700; } dd { margin: 0; } address { font-style: normal; }
.num { font-variant-numeric: lining-nums tabular-nums; }
.eyebrow { font: 600 .95rem/1.4 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 1rem; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; box-shadow: 0 0 0 6px var(--bg); border-radius: 2px; }
:focus:not(:focus-visible) { outline: none; }
main:focus { outline: none; }

.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip {
  position: absolute; left: 1rem; top: -10rem; z-index: 200; padding: .75rem 1.25rem; min-height: 2.75rem;
  background: #F59200; color: #000; font-weight: 700; text-decoration: underline; display: inline-flex; align-items: center;
}
.skip:focus { top: 1rem; outline-color: #000; box-shadow: 0 0 0 6px #fff; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.75rem;
  padding: .55rem 1.25rem; font: 700 1.0625rem/1.3 var(--font-body); text-decoration: none; cursor: pointer;
  border: 2px solid #F59200; background: #F59200; color: #000; border-radius: 999px;
}
.btn:hover { background: #FFB13D; border-color: #FFB13D; }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn--ghost:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.on-paper .btn, .on-cream .btn { border-color: #17120D; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  html.anim .btn, html.anim a { transition: background-color .15s, color .15s, border-color .15s; }
}
@media (forced-colors: active) {
  .btn, .skip { border: 2px solid ButtonText; }
  :focus-visible { outline: 3px solid Highlight; box-shadow: none; }
}
