/* Fonts — self-hosted, latin + latin-ext (Czech diacritics), one face per subset.
   Partial variable instances: the shipped files carry ONE axis, wght, clipped
   to 400-700 (the only weights this stylesheet asks for). Fraunces' opsz and
   SOFT are baked in at 120 and 60 — the values the headings used to set with
   font-variation-settings — so the declaration below must say 400 700, not
   100 900: a range the font cannot deliver invites the browser to synthesise,
   and font-synthesis-weight is off. See fonts/README.md for the recipe. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/fraunces-latin.cf2d671137dc.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/fraunces-latin-ext.459098d4b532.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin.7ed87f81cf01.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.78d24cecf6c3.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Brand — decided 2026-09-08 (direction A "Tiskárna", accent "Koňak"). */
  --paper: #f6f1e8;
  --paper-2: #faf7f0;
  --ink: #1b1713;
  --accent: #8a5a2b;
  --rule: #d9cfbf;
  --muted: #5a5148;
  --font-display: "Fraunces", Georgia, serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 62rem;
  /* Legacy aliases — older rules below still read these. */
  --bg: var(--paper);
  --line: var(--rule);
}

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

/* The UA's `[hidden] { display: none }` is author-beatable: any author rule
   that sets `display` (`.button { display: inline-block }` did exactly this)
   wins at equal specificity by origin, and `el.hidden = true` silently paints
   the element anyway. Every `hidden` attribute in this project is a real state
   gate (the own-photos CTA, the fallback PNGs, the error paragraphs, the file
   inputs), so make the attribute win outright, once, here. */
[hidden] { display: none !important; }

/* The other kind of hiding: OFF SCREEN BUT STILL THERE. `hidden` (above) and
   `display: none` remove an element from the accessibility tree and from the
   focus order, which is right for a state gate and wrong for a control the
   visitor has to be able to reach — the landing page's two file inputs are
   the drop zones' only keyboard affordance (I5, 2026-09-08). clip-path over
   the old clip() rect; `white-space: nowrap` stops a long value forcing a
   scrollbar. Never add `display: none` or `visibility: hidden` here. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

html { font-synthesis-weight: none; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  line-height: 1.55;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  /* No font-variation-settings: the shipped Fraunces has no opsz or SOFT axis
     left to set — both are instanced in at the values that used to be here
     (opsz 120, SOFT 60). A setting for a missing axis is silently ignored, so
     leaving it would only be a lie about what the font can do. */
  letter-spacing: -0.02em;
  line-height: 1.05;
}

main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2rem 1.25rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* The landing page opts out of the measure — the belt needs the full width. */
main.main--full { max-width: none; padding: 0; }

.site-header, .site-footer { padding: 1rem 1.25rem; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__brand {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.25rem;
  text-decoration: none;
  color: inherit;
}

.site-header__cta { font-size: 0.95rem; }

.site-footer {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

.site-footer__links a { color: inherit; }

.lede { font-size: 1.125rem; }

.button {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.8rem 1.5rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.button--primary { background: var(--accent); color: #fff; }
.button--primary:hover { background: #74491f; }

a { color: var(--accent); text-underline-offset: 3px; }

/* Landing page ------------------------------------------------------- */

.hero { padding: 0.5rem 0 2rem; }

.hero__lede {
  font-size: 1.125rem;
  max-width: 42rem;
}

.hero__notice {
  border-left: 3px solid var(--accent);
  background: #fff;
  padding: 0.75rem 1rem;
  max-width: 42rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.steps__list {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1.5rem;
}

.steps__item {
  min-width: 0;
  overflow-wrap: anywhere;
}

.steps__num {
  display: block;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--accent);
}

.steps__label { display: block; }

.landing-templates {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: 1rem;
}

.landing-templates__item {
  /* Long, unbroken template names/slugs otherwise put horizontal scroll on
     every phone — break-word alone is not enough. */
  min-width: 0;
  overflow-wrap: anywhere;
}

.landing-templates__item a {
  display: block;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.landing-templates__name { display: block; font-weight: 700; }

.landing-templates__kind {
  display: block;
  color: #6b6459;
  font-size: 0.9rem;
}

/* Legal pages ---------------------------------------------------------- */

.legal-facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35rem 1rem;
  margin: 1rem 0;
}

.legal-facts dt { font-weight: 700; }

.legal-facts dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.legal-table-wrap {
  /* A wide legal table must scroll inside its own box, never widen the
     page itself. */
  overflow-x: auto;
}

.legal table {
  border-collapse: collapse;
  width: 100%;
  min-width: 32rem;
}

.legal th, .legal td {
  border: 1px solid var(--line);
  padding: 0.5rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.legal .legal-notice {
  border-left: 3px solid var(--accent);
  background: #fff;
  padding: 0.75rem 1rem;
  min-width: 0;
  overflow-wrap: anywhere;
}
