/* The kreslene.sk blog. Same paper, ink and lime as the main page (web/majstro/index.html);
   this file adds what a page for reading needs: a narrow column, tables and the price-range chart. */
@font-face { font-family: 'Fraunces Kniha'; src: url('/fonts/fraunces.woff2') format('woff2'); font-weight: 500 700; font-display: swap; }
@font-face { font-family: 'Bricolage Kniha'; src: url('/fonts/bricolage.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
:root {
  --paper: #F2EDE0;
  --strip: #FBF8F0;
  --ink: #3D352E;
  --ink-soft: #62574C;
  --stone: #C7BCA8;
  --ochre: #E3CFA0;
  --lime: #A9B44A;
  --lime-deep: #7C8530;
  --display: 'Fraunces Kniha', 'Iowan Old Style', Georgia, serif;
  --body: 'Bricolage Kniha', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --step-0: 1.125rem;
  --step-1: 1.3rem;
  --step-2: clamp(1.55rem, 1.25rem + 1.2vw, 2rem);
  --step-3: clamp(2.1rem, 1.5rem + 2.8vw, 3.4rem);
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --measure: 42rem;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--step-0)/1.65 var(--body);
  padding-left: var(--gutter-l); padding-right: var(--gutter-r);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .24 0 0 0 0 .2 0 0 0 0 .17 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1120px; margin: 0 auto; }

/* ---- header and footer, as on the main page ---- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px 8px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand b { font: 600 1.5rem/1 var(--display); letter-spacing: -0.01em; }
.brand small { display: block; font-size: 0.85rem; color: var(--ink-soft); margin-top: 3px; }
.top nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); }
.top nav a { font-weight: 600; font-size: 0.95rem; min-height: 44px; display: inline-flex; align-items: center; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 28px 40px; border-top: 1.5px solid var(--stone); font-size: 0.9rem; color: var(--ink-soft); }
footer p { margin: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border: 2px solid var(--ink); border-radius: 999px; background: var(--lime); color: var(--ink); font: 600 1.05rem/1 var(--body); text-decoration: none; box-shadow: 0 3px 0 var(--ink); transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }

/* ---- the article ---- */
.post { padding-block: clamp(20px, 4vw, 48px) clamp(40px, 6vw, 72px); }
.post-head, .prose { max-width: var(--measure); margin-inline: auto; }
.crumb { margin: 0 0 14px; font-size: 0.95rem; font-weight: 600; }
.crumb a::before { content: '← '; }
h1 { margin: 0; font: 600 var(--step-3)/1.1 var(--display); letter-spacing: -0.02em; text-wrap: balance; }
.meta { margin: 16px 0 0; font-size: 0.95rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.prose { margin-top: clamp(24px, 4vw, 40px); }
/* the title picture: a little wider than the text column, like a plate in a book */
.hero { max-width: 52rem; margin: clamp(22px, 4vw, 36px) auto 0; }
.hero img { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 18px 40px -24px rgba(61,53,46,.6); }
.prose > * { margin-block: 0; }
.prose > * + * { margin-top: 1.15em; }
.prose p, .prose li { text-wrap: pretty; }
.prose h2 { margin-top: 2.1em; font: 600 var(--step-2)/1.18 var(--display); letter-spacing: -0.01em; text-wrap: balance; }
.prose h3 { margin-top: 1.7em; font: 600 var(--step-1)/1.25 var(--display); }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.5em; }
.prose li::marker { color: var(--lime-deep); font-weight: 700; }
.prose strong { font-weight: 650; }
.prose .num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* the short answer, on a pasted strip like the captions in the videos */
.answer { background: var(--strip); padding: 18px 22px 20px; font-size: var(--step-1); line-height: 1.45; transform: rotate(-0.5deg); box-shadow: 0 1px 0 rgba(61,53,46,.08), 0 10px 22px -14px rgba(61,53,46,.45); }

/* ---- price ranges: one row per kind of supplier, bars on a shared 0 to 3 000 € scale ---- */
.ranges { margin-inline: 0; }
.prose > .ranges, .prose > .table { margin-top: 1.5em; }
.prose .rg-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.rg { display: grid; grid-template-columns: minmax(0, 13.5rem) minmax(0, 1fr); gap: 4px 18px; align-items: center; margin: 0 !important; }
.rg .who { font-weight: 600; font-size: 1rem; line-height: 1.3; }
.rg .who small { display: block; font-weight: 400; font-size: 0.86rem; color: var(--ink-soft); }
.rg .val { grid-column: 2; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.rg .track { grid-column: 2; position: relative; height: 22px; border-bottom: 1.5px solid var(--stone); border-right: 1.5px solid var(--stone);
  background: linear-gradient(to right, var(--stone) 1.5px, transparent 1.5px) 0 0 / calc(100% / 3) 100%; } /* a tick every 1 000 € */
.rg .track i { position: absolute; top: 3px; bottom: 4px; left: calc(var(--a) / 3000 * 100%); width: max(10px, calc((var(--b) - var(--a)) / 3000 * 100%)); background: var(--lime); border: 2px solid var(--ink); border-radius: 4px; }
.rg.open .track i { border-right: 0; border-radius: 4px 0 0 4px; background: linear-gradient(to right, var(--lime) 70%, rgba(169,180,74,0)); }
.rg.wage .track i { background: var(--strip); border-style: dashed; }
.axis { display: grid; grid-template-columns: minmax(0, 13.5rem) minmax(0, 1fr); gap: 0 18px; margin-top: 6px; font-size: 0.82rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.axis div { grid-column: 2; display: flex; justify-content: space-between; }
/* ---- frames from our own videos, pinned side by side ---- */
.shots { margin-inline: 0; }
.prose > .shots { margin-top: 1.7em; }
.prose .shot-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 2.5vw, 22px); margin: 0; padding: 0; list-style: none; }
.shot-list li { margin: 0 !important; }
.shot-list a { display: block; text-decoration: none; font-size: 0.95rem; line-height: 1.3; font-variant-numeric: tabular-nums; }
.shot-list img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 6px; box-shadow: 0 14px 30px -20px rgba(61,53,46,.6); transition: transform 200ms var(--ease-out); }
.shot-list li:nth-child(1) img { transform: rotate(-1.2deg); }
.shot-list li:nth-child(2) img { transform: rotate(0.6deg); }
.shot-list li:nth-child(3) img { transform: rotate(-0.5deg); }
.shot-list a:hover img { transform: rotate(0deg) translateY(-2px); }
.shot-list span { display: block; margin-top: 12px; }
.shot-list b { font-weight: 650; }
figcaption { margin-top: 14px; font-size: 0.9rem; color: var(--ink-soft); }

/* ---- tables ---- */
.table { overflow-x: auto; margin-inline: calc(-1 * var(--gutter-l)) calc(-1 * var(--gutter-r)); padding-inline: var(--gutter-l) var(--gutter-r); }
.table:focus-visible { outline-offset: -3px; }
table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: 1rem; line-height: 1.4; font-variant-numeric: tabular-nums; }
th, td { padding: 11px 14px 11px 0; text-align: left; vertical-align: top; border-bottom: 1.5px solid var(--stone); }
thead th { font: 600 1.05rem/1.25 var(--display); border-bottom: 2px solid var(--ink); white-space: nowrap; }
tbody th { font-weight: 600; }
td.n { white-space: nowrap; }
tbody tr:last-child > * { border-bottom: 0; }
.sources { font-size: 0.92rem; color: var(--ink-soft); }
.sources li + li { margin-top: 0.3em; }

/* ---- the closing band ---- */
.band { background: var(--ochre); box-shadow: 0 0 0 100vmax var(--ochre); clip-path: inset(0 -100vmax); }
.cta { padding-block: clamp(36px, 6vw, 64px); }
.cta-in { max-width: var(--measure); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); grid-template-rows: 1fr auto 1fr; column-gap: clamp(20px, 4vw, 40px); align-items: end; }
.cta .frame { grid-row: 1 / -1; align-self: center; }
.cta .txt { grid-column: 2; grid-row: 1; }
.cta .actions { grid-column: 2; grid-row: 2; align-self: start; }
.cta .frame { display: block; aspect-ratio: 9 / 16; border-radius: 6px; overflow: hidden; transform: rotate(-1.5deg); box-shadow: 0 18px 40px -22px rgba(61,53,46,.6); }
.cta .frame img { width: 100%; height: 100%; object-fit: cover; }
.cta h2 { margin: 0 0 10px; font: 600 var(--step-2)/1.15 var(--display); letter-spacing: -0.01em; text-wrap: balance; }
.cta p { margin: 0; }
.cta .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 22px; font-weight: 600; }

/* ---- the list of articles ---- */
.blog-head { padding-block: clamp(24px, 5vw, 56px) clamp(8px, 2vw, 20px); }
.blog-head h1 { font-size: clamp(2.1rem, 1.5rem + 3.2vw, 3.8rem); text-wrap: initial; }
.blog-head .s { display: inline-block; background: var(--strip); padding: 0.06em 0.28em 0.1em; margin: 0 0 0.14em -0.1em; box-shadow: 0 1px 0 rgba(61,53,46,.08), 0 6px 14px -8px rgba(61,53,46,.35); }
.blog-head .s:nth-of-type(1) { transform: rotate(-1.2deg); }
.blog-head .s:nth-of-type(2) { transform: rotate(0.7deg) translateX(0.3em); }
.lede { max-width: 38rem; margin: 22px 0 0; font-size: var(--step-1); line-height: 1.45; text-wrap: pretty; }
.posts { list-style: none; margin: 0; padding: 0 0 clamp(40px, 6vw, 72px); max-width: 46rem; }
.posts li { border-bottom: 1.5px solid var(--stone); }
.posts a { display: block; padding-block: 26px; text-decoration: none; }
.posts a.pic { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: clamp(18px, 3vw, 28px); align-items: start; }
.posts a.pic img { display: block; width: 100%; height: auto; border-radius: 5px; margin-top: 4px; }
.posts h2 { margin: 0 0 8px; font: 600 var(--step-2)/1.18 var(--display); letter-spacing: -0.01em; text-wrap: balance; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 0.16em; transition: text-decoration-color 160ms var(--ease-out); }
.posts a:hover h2 { text-decoration-color: var(--lime-deep); }
.posts p { margin: 0; max-width: 40rem; }
.posts .meta { display: block; margin-top: 10px; }

@media (max-width: 640px) {
  :root { --step-0: 1.0625rem; }
  .top { padding-block: 14px 0; }
  .brand small { display: none; }
  .rg, .axis { grid-template-columns: minmax(0, 1fr); }
  .rg .val, .rg .track, .axis div { grid-column: 1; }
  .prose .rg-list { gap: 18px; }
  .answer { padding: 16px 16px 18px; font-size: 1.18rem; }
  .cta-in { grid-template-columns: minmax(0, 96px) minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; }
  .cta .frame { grid-row: 1; }
  .cta .actions { grid-column: 1 / -1; }
  .cta .actions .btn { width: 100%; }
  .cta .actions a:not(.btn) { min-height: 44px; display: inline-flex; align-items: center; }
  .blog-head .s:nth-of-type(2) { transform: rotate(0.7deg); }
  .posts a.pic { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .shot-list a { font-size: 0.86rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
