/* Databrief – „korektura“: papír, inkoust, červená a modrá tužka */
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/assets/fonts/newsreader-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/assets/fonts/newsreader-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap;
  src: url(/assets/fonts/newsreader-latin-wght-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap;
  src: url(/assets/fonts/newsreader-latin-ext-wght-italic.woff2) format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Plex Mono"; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Mono"; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/ibm-plex-mono-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Plex Mono"; font-weight: 500; font-display: swap;
  src: url(/assets/fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Mono"; font-weight: 500; font-display: swap;
  src: url(/assets/fonts/ibm-plex-mono-latin-ext-500-normal.woff2) format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #F6F2EA;
  --paper-2: #EDE6D8;
  --card: #FBF9F4;
  --ink: #1F1B16;
  --muted: #5B5348;
  --rule: #D6CCBA;
  --red: #B0361F;
  --red-soft: #F4DCD3;
  --blue: #274A7C;
  --blue-soft: #DCE4EF;
  --hl: #F1E2A2;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --mono: "Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --w: 1180px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif);
  font-size: 1.1875rem; line-height: 1.6; font-optical-sizing: auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 16px; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 28px; }
h1, h2, h3 { font-weight: 500; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); font-weight: 400; letter-spacing: -0.03em; }
h1 em, h2 em { color: var(--red); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 400; letter-spacing: -0.02em; }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0 0 1em; }
.mono, .label { font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.label { color: var(--red); display: block; margin-bottom: 14px; }
.lead { font-size: 1.35rem; line-height: 1.5; color: var(--muted); max-width: 40em; }
.muted { color: var(--muted); }

/* masthead */
.mast { border-bottom: 1px solid var(--ink); background: var(--paper); position: relative; z-index: 5; }
.mast-top { display: flex; justify-content: space-between; gap: 16px; font-family: var(--mono); font-size: .72rem;
  text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 0; border-bottom: 1px solid var(--rule); }
.mast-main { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 0; }
.brand { display: inline-flex; align-items: baseline; gap: 2px; text-decoration: none; color: var(--ink); font-size: 2rem; line-height: 1; letter-spacing: -0.02em; }
.brand i { color: var(--red); font-weight: 400; }
.brand svg { align-self: center; margin-right: 10px; }
.nav ul { list-style: none; display: flex; gap: 6px 26px; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a { font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink); text-decoration: none; padding: 10px 0; display: inline-block; }
.nav a:hover { color: var(--red); }
.nav a[aria-current="page"] { text-decoration: underline wavy var(--red); text-underline-offset: 7px; text-decoration-thickness: 1.5px; }
.menu-btn { display: none; font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em;
  background: none; border: 1px solid var(--ink); color: var(--ink); padding: 10px 14px; cursor: pointer; min-height: 44px; }

/* stamp */
.stamp { display: inline-block; font-family: var(--mono); font-weight: 500; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); border: 2px solid var(--red); padding: 6px 12px 5px; transform: rotate(-2.5deg); border-radius: 3px;
  box-shadow: inset 0 0 0 1px var(--paper), inset 0 0 0 2px rgba(176,54,31,.35); }

/* sections */
section { padding: 96px 0; }
.rule-top { border-top: 1px solid var(--ink); }
.tint { background: var(--paper-2); }
.sec-head { display: grid; grid-template-columns: 180px 1fr; gap: 28px; margin-bottom: 48px; }
.sec-head .sec-no { font-family: var(--mono); font-size: .8rem; color: var(--red); padding-top: 12px; border-top: 2px solid var(--red); align-self: start; }
.sec-head h2 { margin: 0; max-width: 18em; }
.margin-grid { display: grid; grid-template-columns: 180px 1fr; gap: 28px; }
.side { font-family: var(--mono); font-size: .78rem; color: var(--muted); line-height: 1.5; }
.side b { color: var(--red); font-weight: 500; display: block; margin-bottom: 6px; }

/* hero */
.hero { padding: 72px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: end; }
.hero h1 { margin: 22px 0 28px; }
.strike { text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 3px; color: var(--muted); }
.caret { color: var(--blue); font-style: italic; position: relative; }
.caret::before { content: "‸"; position: absolute; left: -.25em; bottom: -.55em; font-style: normal; color: var(--blue); font-size: .7em; }
.cta { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 22px; font-family: var(--mono); font-size: .85rem;
  text-transform: uppercase; letter-spacing: .05em; text-decoration: none; border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper); cursor: pointer; transition: background .18s, color .18s; }
.btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.link-arrow { font-family: var(--mono); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink); }

/* proof sheet (ukázka) */
.sheet { background: var(--card); border: 1px solid var(--rule); box-shadow: 0 1px 0 var(--rule), 8px 10px 0 -1px var(--paper-2), 8px 10px 0 0 var(--rule); position: relative; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 1px dashed var(--rule); font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.sheet-tabs { display: flex; gap: 4px; }
.sheet-tabs button { font-family: var(--mono); font-size: .75rem; min-width: 36px; min-height: 36px; border: 1px solid var(--rule); background: transparent; color: var(--muted); cursor: pointer; }
.sheet-tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.sheet-body { padding: 24px 22px 8px; }
.sheet-q { font-size: 1.3rem; line-height: 1.45; margin-bottom: 18px; }
.sheet-q .bad { background: linear-gradient(transparent 58%, var(--red-soft) 58%); }
.notes { list-style: none; padding: 0; margin: 0 0 20px; border-left: 2px solid var(--red); padding-left: 14px; }
.notes li { font-style: italic; color: var(--red); font-size: 1.02rem; line-height: 1.45; }
.notes li .tag { font-family: var(--mono); font-style: normal; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; border: 1px solid currentColor; padding: 1px 6px; margin-right: 6px; white-space: nowrap; }
.notes li + li { margin-top: 6px; }
.why { font-size: 1rem; color: var(--muted); margin-bottom: 18px; }
.fix { border-top: 1px dashed var(--rule); padding-top: 14px; }
.fix .mono { color: var(--blue); }
.fix p { color: var(--blue); font-size: 1.2rem; font-style: italic; margin: 6px 0 0; }
.sheet-foot { padding: 12px 22px 14px; font-family: var(--mono); font-size: .7rem; color: var(--muted); }

/* prose */
.prose { max-width: 38em; }
.prose p { font-size: 1.2rem; }
.drop::first-letter { float: left; font-size: 4.4em; line-height: .82; padding: 6px 10px 0 0; color: var(--red); }
.cols-2 { columns: 2 22em; column-gap: 48px; }
.cols-2 p { break-inside: avoid; }

/* figure */
figure { margin: 0; }
figure img { width: 100%; object-fit: cover; filter: sepia(.18) saturate(.9); }
figcaption { font-family: var(--mono); font-size: .72rem; color: var(--muted); margin-top: 10px; display: flex; gap: 10px; }
figcaption::before { content: "obr."; color: var(--red); }

/* numbered steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps > li { counter-increment: s; display: grid; grid-template-columns: 180px 1fr; gap: 28px; padding: 36px 0; border-top: 1px solid var(--rule); }
.steps > li::before { content: counter(s, decimal-leading-zero); font-size: 4rem; line-height: .9; color: var(--red); font-weight: 300; font-style: italic; }
.steps h3 { font-size: 1.7rem; font-weight: 500; }
.steps p { max-width: 36em; color: var(--muted); }

/* glossary */
.gloss { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.entry { padding: 32px 0; border-top: 1px solid var(--rule); }
.entry h3 { font-size: 1.6rem; font-weight: 500; margin-bottom: 4px; }
.entry .pos { font-family: var(--mono); font-size: .74rem; color: var(--muted); display: block; margin-bottom: 14px; }
.entry .ex { margin-top: 14px; padding: 14px 16px; background: var(--card); border: 1px solid var(--rule); font-size: 1.05rem; }
.entry .ex s { text-decoration-color: var(--red); text-decoration-thickness: 2px; color: var(--muted); }
.entry .ex .better { display: block; color: var(--blue); font-style: italic; margin-top: 6px; }
.entry .ex .better::before { content: "→ "; font-style: normal; }

/* index list on home */
.toc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.toc li { border-bottom: 1px solid var(--rule); }
.toc a { display: grid; grid-template-columns: 70px 1fr auto; gap: 18px; align-items: baseline; padding: 22px 0; text-decoration: none; color: var(--ink); transition: background .18s, padding .18s; }
.toc a:hover { background: var(--card); padding-left: 10px; padding-right: 10px; color: var(--ink); }
.toc .n { font-family: var(--mono); font-size: .8rem; color: var(--red); }
.toc .t { font-size: 1.6rem; line-height: 1.2; }
.toc .t small { display: block; font-size: 1rem; color: var(--muted); margin-top: 4px; }
.toc .go { font-family: var(--mono); font-size: .8rem; color: var(--muted); }

/* price list */
.pricelist { border-top: 2px solid var(--ink); }
.pl-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.pl-name { display: flex; align-items: baseline; gap: 12px; font-size: 1.9rem; line-height: 1.1; }
.pl-name::after { content: ""; flex: 1; border-bottom: 2px dotted var(--rule); transform: translateY(-6px); min-width: 30px; }
.pl-price { font-size: 1.9rem; line-height: 1.1; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.pl-price small { font-family: var(--mono); font-size: .75rem; color: var(--muted); margin-left: 6px; }
.pl-desc { grid-column: 1 / -1; color: var(--muted); font-size: 1.05rem; }
.pl-row.pick .pl-name > span { background: linear-gradient(transparent 60%, var(--hl) 60%); }
.pl-desc .mono { color: var(--red); margin-right: 8px; }

/* facts table */
.facts { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.facts th { font-family: var(--mono); font-weight: 400; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); width: 34%; padding-right: 18px; padding-top: 18px; }

/* timeline */
.log { list-style: none; margin: 0; padding: 0; }
.log li { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px dashed var(--rule); }
.log time, .log .when { font-family: var(--mono); font-size: .78rem; color: var(--muted); padding-top: 4px; }
.log .done::before { content: "✓ "; color: var(--blue); }
.log .next { color: var(--muted); font-style: italic; }

/* callout / contact */
.callout { border: 1.5px solid var(--ink); padding: 40px; background: var(--card); position: relative; }
.callout .stamp { position: absolute; top: -16px; right: 28px; background: var(--paper); }
.mail-big { font-size: clamp(1.8rem, 4.6vw, 3.4rem); color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 8px; word-break: break-word; }
.mail-big:hover { color: var(--red); }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 12px 0 12px 34px; border-bottom: 1px solid var(--rule); position: relative; }
.checklist li::before { content: "☐"; position: absolute; left: 0; top: 10px; color: var(--red); font-size: 1.2rem; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }

/* footer */
.foot { border-top: 1px solid var(--ink); padding: 56px 0 40px; font-size: 1rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot h2 { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--red); margin-bottom: 12px; font-weight: 400; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { padding: 3px 0; }
.foot a { color: var(--ink); }
.foot .small { font-family: var(--mono); font-size: .72rem; color: var(--muted); margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 960px) {
  .hero-grid, .two { grid-template-columns: 1fr; gap: 48px; }
  .sec-head, .margin-grid, .steps > li { grid-template-columns: 1fr; gap: 12px; }
  .sec-head .sec-no { justify-self: start; padding-right: 24px; }
  .gloss { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--ink); padding: 8px 28px 18px; }
  .menu-open .nav { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { padding: 12px 0; display: block; }
}
@media (max-width: 600px) {
  body { font-size: 1.0625rem; }
  .wrap { padding: 0 18px; }
  section { padding: 64px 0; }
  .hero { padding: 40px 0 64px; }
  .mast-top span + span { display: none; }
  .brand { font-size: 1.7rem; }
  .lead { font-size: 1.15rem; }
  .prose p { font-size: 1.08rem; }
  .callout { padding: 28px 20px; }
  .pl-name, .pl-price { font-size: 1.45rem; }
  .pl-row { grid-template-columns: 1fr; }
  .pl-name::after { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
  .log li { grid-template-columns: 1fr; gap: 4px; }
  .toc a { grid-template-columns: 44px 1fr; }
  .toc .go { display: none; }
  .toc .t { font-size: 1.3rem; }
  .facts th { width: 40%; }
  .nav { padding: 8px 18px 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
