/* Noily: an AI news feed on pure black. Soft Fraunces titles with a yellow full stop
   in the wordmark, Newsreader for reading, Inter for labels, meta and UI. Yellow is the one
   action (follow) and a few marks of the brand: the dot, kickers, step numbers. */

@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-latin.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; 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"; src: url("fonts/newsreader-latin-ext.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; 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"; src: url("fonts/newsreader-italic-latin.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; 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"; src: url("fonts/newsreader-italic-latin-ext.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; 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: "Fraunces"; src: url("fonts/fraunces-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; 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"; src: url("fonts/inter-opsz.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --band: 100px; /* height of the compact bar pinned to the top once the masthead scrolls away */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Fraunces", Georgia, serif;
  --go: #ffd23f;          /* the one action (odber) and the dot */
  --on-go: #000;          /* text on --go */
  --go-text: var(--go);   /* the accent used as text or focus ring */
  --err: #ff9a8f;
  --radius: 3px;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --pad: 96px;
  --gap: 32px;
}
body, .foot {
  --bg: #000; --fg: #fff; --soft: #d0d0d0; --dim: #b4b4b4; --line: #2c2c2c; --line-strong: #555; --panel: #141414;
}
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
*, *::before, *::after { box-sizing: border-box; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input { font: inherit; }
:focus-visible { outline: 2px solid var(--go-text); outline-offset: 3px; }
/* anchors and keyboard focus stop below the pinned bar */
:root { scroll-padding-top: calc(var(--band) + 8px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 40; display: flex; align-items: center; min-height: 44px; padding: 8px 14px; background: var(--go); color: var(--on-go); }
.skip:focus { top: 12px; }
.wrap { width: min(1248px, 100% - 2 * var(--pad)); margin-inline: auto; }

/* titles: soft Fraunces, set a touch tight */
:is(.article__head h1, .pagehead h1, .about h1, .about h2, .pitch__title, .endbox__title, .foot__title, .desk__name, .tool__name, .story__title) {
  font-family: var(--display); font-variation-settings: "SOFT" 50, "opsz" 72; letter-spacing: -.015em; text-wrap: balance;
}
:is(.card__title, .item__title, .line__title, .qa summary) { font-family: var(--display); font-variation-settings: "SOFT" 50, "opsz" 36; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 20px; border: 0; border-radius: var(--radius); cursor: pointer;
  font: 500 17px/1.4 var(--sans); white-space: nowrap; transition: filter .15s, transform .16s var(--ease-out);
}
.btn:active, .more:active { transform: scale(.97); }
.btn--go { background: var(--go); color: var(--on-go); }
.btn--go:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .6; cursor: progress; }
.more { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; background: color-mix(in srgb, var(--fg) 10%, transparent); border-radius: var(--radius); font: 400 17px/1.5 var(--sans); transition: background-color .15s, transform .16s var(--ease-out); }
.more:hover { background: color-mix(in srgb, var(--fg) 16%, transparent); }

/* ---------- top bar, edge to edge: menu and search left, the one action right, the wordmark
   centred on the rule; under it a newspaper section strip with the dateline ---------- */
.bar { position: relative; height: 126px; padding-inline: 16px; border-bottom: 1px solid var(--line); background: var(--bg); }
.bar__row { display: flex; align-items: center; justify-content: space-between; height: var(--band); }
/* scrolled past the masthead (site.js: .is-live once it watches, .is-compact while the masthead is gone) the row
   stays pinned on top, gets the page colour, the rule and a small wordmark. It is fixed, so nothing below moves. */
.bar__edge { position: absolute; left: 0; top: calc(100% - var(--band)); width: 1px; height: 1px; pointer-events: none; }
.bar.is-live .bar__row {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30; padding-inline: 16px; pointer-events: none;
  transition: background-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.bar.is-live .bar__row > * { pointer-events: auto; }
.bar.is-compact .bar__row { background: var(--bg); box-shadow: inset 0 -1px 0 var(--line); }
.bar__mini {
  position: absolute; left: 50%; top: 50%; translate: -50% -51%; font-size: 40px; line-height: 1;
  opacity: 0; visibility: hidden; transition: opacity .15s var(--ease-out), visibility 0s .15s;
}
.bar.is-compact .bar__mini { opacity: 1; visibility: visible; transition: opacity .2s var(--ease-out), visibility 0s; }
@media (prefers-reduced-motion: reduce) { .bar__row, .bar.is-live .bar__row, .bar__mini, .bar.is-compact .bar__mini { transition: none; } }
.bar__left { display: flex; align-items: center; gap: 14px; margin-left: -13px; }
.bar__icon, .menu summary { display: grid; place-items: center; width: 44px; height: 51px; cursor: pointer; }
.bar__icon:hover, .menu summary:hover { color: var(--go-text); }
/* the menu: a drawer from the left over a dimmed page, the hamburger turns into its close button */
.menu { position: relative; z-index: 20; }
.menu summary { position: relative; z-index: 2; list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu__close, .menu[open] .menu__open { display: none; }
.menu[open] .menu__close { display: block; }
.menu[open]::before { content: ""; position: fixed; inset: 0; background: rgb(0 0 0 / .6); animation: fade .2s var(--ease-out); }
.menu__panel {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 1; width: min(320px, 100% - 56px); overflow-y: auto;
  padding: 75px 16px 24px; background: var(--panel); border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.menu[open] .menu__panel { animation: drawer .24s var(--ease-out); }
@keyframes drawer { from { transform: translateX(-100%); } }
@keyframes fade { from { opacity: 0; } }
.menu__panel a { display: flex; align-items: center; min-height: 44px; border-bottom: 1px solid var(--line); font-size: 19px; }
.menu__panel a:hover { color: var(--go-text); }
.menu__panel .menu__minor { min-height: 40px; border: 0; font-size: 16px; color: var(--soft); }
.menu__panel a:not(.menu__minor) + .menu__minor { margin-top: 20px; }
body:has(.menu[open]) { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .menu[open] .menu__panel, .menu[open]::before { animation: none; } }
.bar .btn { min-height: 51px; padding: 12px 18px; }
/* the wordmark sits on the rule with its capitals centred on it (Fraunces: cap height .70em, baseline .86em
   from the top of a 1em line, so the caps' middle is .51em down) */
.mark { position: absolute; left: 50%; top: 126px; transform: translate(-50%, -51%); padding: 0 32px; background: var(--bg); font-size: 96px; line-height: 1; }
/* the wordmark: the site title in soft, wonky Fraunces with a yellow full stop */
.mast { display: inline-block; white-space: nowrap; font: 650 1em/1 var(--display); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; letter-spacing: -.035em; }
.mast::after { content: "."; color: var(--go); }
.mast--small { font-size: 36px; }
.strip { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; margin: 56px auto 48px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 3px double var(--line); font: 400 13px/1.5 var(--sans); }
.strip__date { color: var(--dim); }
.strip nav { display: flex; gap: 28px; }
.strip nav a { display: inline-flex; align-items: center; min-height: 24px; font-weight: 500; letter-spacing: .4px; text-transform: uppercase; }
.strip nav a:hover { color: var(--go-text); }
.strip__ed { justify-self: end; color: var(--dim); font: italic 400 15px/1.4 var(--serif); }

/* ---------- shared bits ---------- */
.kicker { font: 600 12px/1.5 var(--sans); letter-spacing: .9px; text-transform: uppercase; color: var(--go-text); }
.kicker a:hover { text-decoration: underline; text-underline-offset: 3px; }
.kind { color: var(--fg); }
.meta { font: 400 12px/1.5 var(--sans); letter-spacing: .6px; text-transform: uppercase; color: var(--dim); }
.meta a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.meta a:hover { text-decoration-color: currentColor; }
.byline:hover span { text-decoration: underline; text-underline-offset: 3px; }
.byline { display: inline-flex; align-items: center; gap: 10px; font: 500 13px/1.5 var(--sans); letter-spacing: .4px; text-transform: uppercase; }
.byline img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
:is(.card__title, .item__title, .line__title) a {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .25s;
}
:is(.card__title, .item__title, .line__title) a:hover,
:is(.card, .item):hover :is(.card__title, .item__title) a { background-size: 100% 1px; }
.card__img { display: block; overflow: hidden; background: var(--panel); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.card:hover img { transform: scale(1.04); }

/* a card: picture, meta, title, dek, author */
.card { display: flex; flex-direction: column; gap: 8px; }
.card__img { aspect-ratio: 16 / 9; margin-bottom: 6px; }
.card__body { display: flex; flex-direction: column; gap: 8px; }
.card__title { font-weight: 500; font-size: 24px; line-height: 1.18; }
.card__dek { font: 400 18px/1.5 var(--serif); color: var(--soft); }
.card .byline { margin-top: 4px; }

/* ---------- section heads and rails ---------- */
.band { padding-top: 56px; }
.railhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 16px; margin-bottom: 32px; border-bottom: 1px solid var(--fg); }
.railhead__title { font: 600 15px/1.5 var(--sans); letter-spacing: 1px; text-transform: uppercase; }
.railhead__sub { margin-top: 4px; font: 400 19px/1.45 var(--serif); color: var(--soft); }
.railhead__go { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; transition: background-color .15s; }
.railhead__go:hover { background: color-mix(in srgb, var(--fg) 12%, transparent); }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); row-gap: 48px; }
.grid > * { padding: 0 var(--gap); border-left: 1px solid var(--line); }
.grid > :nth-child(4n + 1) { padding-left: 0; border-left: 0; }
.grid > :nth-child(4n) { padding-right: 0; }
.grid .card__img { aspect-ratio: 1; }
.grid .card__title { font-size: 28px; }

/* ---------- home: the feed, explainers and tools beside it ---------- */
.news { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; }
.feed > li + li { border-top: 1px solid var(--line); }
/* a news card: the title link covers the whole card; a photo sits right (top on a phone) only when the post has one */
.item { position: relative; display: grid; gap: 16px 32px; padding: 24px 0; }
.item--img { grid-template-columns: minmax(0, 1fr) 280px; align-items: start; }
.item__text { display: grid; gap: 8px; align-content: start; }
.feed > li:first-child .item { padding-top: 0; }
.item__title { font-weight: 500; font-size: 26px; line-height: 1.2; text-wrap: balance; }
.item__title a::after { content: ""; position: absolute; inset: 0; }
.item__body { max-width: 680px; font: 400 18px/1.55 var(--serif); color: var(--soft); }
.item__img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--line); }
.zdroj { font: 400 14px/1.5 var(--sans); color: var(--dim); }
.zdroj a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.zdroj a:hover { text-decoration-color: var(--go); }
.news__feed > .more { margin-top: 16px; }
.side .card + .card { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.side .card__title { font-size: 21px; }
.side--own { margin-bottom: 40px; }
.toolbox { margin-top: 40px; padding: 24px; background: var(--panel); border-top: 3px solid var(--go); }
.toolbox p:not(.kicker) { margin: 8px 0 16px; font: 400 17px/1.5 var(--serif); color: var(--soft); }

/* the pitch: what Noily is in one sentence, and the form beside it */
.pitch { display: grid; grid-template-columns: 1fr 440px; gap: 64px; align-items: center; margin-top: 56px; padding: 40px 48px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.pitch--top { margin-block: 0 48px; padding: 28px 40px; }
.pitch--top .pitch__title { font-size: clamp(21px, 16px + .8vw, 26px); }
.pitch__title { font-weight: 450; font-size: clamp(24px, 18px + 1vw, 32px); line-height: 1.25; }
.pitch__social { display: inline-block; margin-top: 12px; }
.pitch__dek { margin-top: 10px; max-width: 640px; font: 400 18px/1.5 var(--serif); color: var(--soft); text-wrap: pretty; }

/* Rubriky: one column per desk */
.desks { display: grid; grid-template-columns: repeat(4, 1fr); }
.desk { display: flex; flex-direction: column; padding: 0 var(--gap); border-left: 1px solid var(--line); }
.desk:first-child { padding-left: 0; border-left: 0; }
.desk:last-child { padding-right: 0; }
.desk__name { font-weight: 560; font-size: 32px; line-height: 1.1; }
.desk__name a:hover { color: var(--go-text); }
.desk__dek { margin-top: 8px; font: 400 15px/1.5 var(--sans); color: var(--dim); }
.desk__count { flex: 1; margin-top: 16px; font: 400 14px/1.5 var(--sans); color: var(--dim); }
.desk__go { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 8px; font: 500 14px/1.5 var(--sans); }
.desk__go:hover { color: var(--go-text); }

/* who we are: portrait, a few honest lines, the authors (home, and big on /o-nas/) */
.about { display: grid; grid-template-columns: 280px 1fr; column-gap: 56px; align-items: center; margin-top: 56px; padding: 48px 0; border-top: 1px solid var(--line); }
.about__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--panel); }
.about h1, .about h2 { margin: 12px 0 16px; font-weight: 560; font-size: clamp(34px, 24px + 2vw, 52px); line-height: 1.08; }
.about__body > p:not(.kicker) { max-width: 640px; font: 400 20px/1.5 var(--serif); color: var(--soft); text-wrap: pretty; }
.about__body > p + p { margin-top: 12px; }
.about .more, .about .btn { margin-top: 24px; }
.crew { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.crew a { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: center; font: 400 15px/1.5 var(--sans); color: var(--soft); }
.crew img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.crew strong { display: block; color: var(--fg); font-weight: 600; letter-spacing: .4px; text-transform: uppercase; font-size: 13px; }
.crew a:hover strong { color: var(--go-text); }
.about--big { grid-template-columns: 360px 1fr; column-gap: 72px; margin-top: 0; padding-top: 8px; border: 0; }
.about--big .about__body > p:not(.kicker) { font-size: 22px; }
.about--big + .band { padding-top: 24px; }
.story { border-top: 1px solid var(--line); margin-top: 48px; }
.story__title { margin-top: 12px; font: 560 clamp(30px, 22px + 1.6vw, 42px)/1.12 var(--display); }
.story__body { max-width: 720px; margin-top: 24px; }
/* text Tobias still has to write: visible on purpose until he replaces it */
mark.todo { padding: 0 4px; background: #FDE68A; color: #000; font-family: var(--sans); font-size: .85em; }

/* ---------- article ---------- */
.article { width: min(720px, 100% - 2 * var(--pad)); margin: 24px auto 0; }
.article__head h1 { margin-top: 14px; font-weight: 560; font-size: clamp(36px, 22px + 2.2vw, 54px); line-height: 1.06; }
.article__dek { margin-top: 18px; font: 400 23px/1.4 var(--serif); color: var(--soft); text-wrap: pretty; }
.article__by { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font: 400 14px/24px var(--sans); color: var(--dim); }
.article__by .byline { color: var(--fg); }
.article__img { margin-top: 36px; }
.article__img img { width: 100%; }
.article__img figcaption { margin-top: 6px; font: 400 12px/18px var(--sans); color: var(--dim); }
.article__img figcaption a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.article__img figcaption a:hover { text-decoration-color: var(--go); }

.prose { margin-top: 36px; font: 400 20px/1.55 var(--serif); }
.prose > * + * { margin-top: 20px; }
.prose h2 { margin-top: 48px; font: 600 28px/1.25 var(--display); font-variation-settings: "SOFT" 50, "opsz" 48; }
.prose h3 { margin-top: 36px; font: 600 23px/1.3 var(--display); }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-color: var(--go); text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 8px; }
.prose blockquote { margin: 32px 0; padding-left: 24px; border-left: 3px solid var(--go); font-style: italic; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
.prose figure img { width: 100%; }
.prose figcaption { margin-top: 6px; font: 400 12px/18px var(--sans); color: var(--dim); }
.prose code { font: 400 .85em/1 ui-monospace, monospace; padding: 2px 5px; background: var(--panel); border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font: 400 16px/1.5 var(--sans); }
.prose th, .prose td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose .kg-callout-card { padding: 20px 24px; background: var(--panel); border-radius: var(--radius); }
/* the step every news piece ends with (Ghost rewrites heading ids, so match the prefix): a yellow-ruled panel with big numbered steps */
.prose h2[id^="ako-to"] { margin-top: 56px; padding: 28px 32px 0; background: var(--panel); border-top: 3px solid var(--go); }
.prose h2[id^="ako-to"] + :is(ol, ul, p) { margin-top: 0; padding: 16px 32px 32px; background: var(--panel); }
.prose h2[id^="ako-to"] + ol { list-style: none; counter-reset: step; }
.prose h2[id^="ako-to"] + ol > li { position: relative; padding-left: 52px; counter-increment: step; }
.prose h2[id^="ako-to"] + ol > li + li { margin-top: 18px; }
.prose h2[id^="ako-to"] + ol > li::before { content: counter(step); position: absolute; left: 0; top: -2px; font: 600 34px/1 var(--display); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; color: var(--go); }
.prose h2#zdroje { margin-top: 56px; font: 600 12px/1.5 var(--sans); letter-spacing: .9px; text-transform: uppercase; color: var(--dim); }
.prose h2#zdroje + ul { font: 400 15px/1.5 var(--sans); color: var(--soft); }

.endbox { display: grid; gap: 20px; margin-top: 56px; padding: 32px; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.endbox__title { font-weight: 450; font-size: 26px; line-height: 1.25; }
.endbox__title::before { content: ""; display: block; width: 10px; height: 10px; margin-bottom: 16px; border-radius: 50%; background: var(--go); }
.authorbox { display: grid; grid-template-columns: 64px 1fr; gap: 20px; margin-top: 40px; padding: 24px 0; border-block: 1px solid var(--line); font: 400 16px/1.5 var(--sans); color: var(--dim); }
.authorbox img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.authorbox__name { font: 600 13px/1.5 var(--sans); letter-spacing: .4px; text-transform: uppercase; color: var(--fg); margin-bottom: 4px; }
.authorbox__name a:hover { color: var(--go-text); }
.post-template .band { margin-top: 32px; }

/* ---------- list pages: head left, the feed or grid, text lines ---------- */
.colpage { padding-bottom: 32px; }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; padding-bottom: 32px; margin-bottom: 40px; border-bottom: 1px solid var(--fg); }
.pagehead__text { max-width: 760px; }
.pagehead h1 { margin-top: 10px; font-weight: 560; font-size: clamp(40px, 24px + 3vw, 72px); line-height: 1; }
.pagehead__dek { margin-top: 16px; font: 400 22px/1.4 var(--serif); color: var(--soft); text-wrap: pretty; }
.pagehead__img { flex: none; width: 160px; aspect-ratio: 1; object-fit: cover; }
.pagehead__img--round { border-radius: 50%; }
.grid:empty { display: none; }
.listing + .listing { margin-top: 56px; }
.listing > .kicker { margin-bottom: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--fg); }
.listing .feed > li:first-child .item { padding-top: 24px; }
.alist { counter-reset: none; }
.line { display: grid; grid-template-columns: 120px 1fr 160px; gap: 24px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.line__date, .line__by { font: 400 13px/1.5 var(--sans); color: var(--dim); }
.line__by { justify-self: end; text-transform: uppercase; letter-spacing: .4px; }
.line__kicker { font: 600 11px/1.5 var(--sans); letter-spacing: .9px; text-transform: uppercase; color: var(--go-text); }
.line__title { margin-top: 4px; font-weight: 500; font-size: 24px; line-height: 1.2; }
.line__dek { margin-top: 6px; max-width: 680px; font: 400 17px/1.5 var(--serif); color: var(--soft); }

/* ---------- search: one field like the odber one, then the matching lines or a start with the rubriky ---------- */
.find { max-width: 880px; padding-top: 8px; }
.find__field { display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 16px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--dim); }
.find__field:focus-within { border-color: var(--fg); }
.find__field svg { flex: none; }
.find__field input { flex: 1; min-width: 0; height: 44px; border: 0; background: none; color: var(--fg); font-size: 18px; }
.find__field input:focus { outline: none; }
.find__field input::placeholder { color: var(--dim); }
.find__field input::-webkit-search-cancel-button { filter: invert(1); }
.find__field .btn { min-height: 44px; padding: 8px 18px; font-size: 16px; }
.find__status { margin-top: 16px; text-align: center; color: var(--dim); }
.find__status:empty { display: none; }
.find__start { margin-top: 56px; text-align: center; }
.find__start[hidden], .find__list[hidden], .find__list > [hidden] { display: none; }
.find__title { font: 560 32px/1.2 var(--display); font-variation-settings: "SOFT" 50, "opsz" 72; }
.find__dek { margin-top: 10px; font: 400 19px/1.5 var(--serif); color: var(--soft); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 22px; font-weight: 500; }
.chips a:hover { border-color: var(--fg); }
.find__list { margin-top: 24px; border-top: 1px solid var(--fg); }

/* ---------- tools and follow: one card per tool, the live ones ruled yellow; questions ---------- */
.tools { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.tool { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); }
.tool--live { border-top: 3px solid var(--go); }
.tool__state { font: 600 12px/1.5 var(--sans); letter-spacing: .9px; text-transform: uppercase; color: var(--dim); }
.tool--live .tool__state { color: var(--go-text); }
.tool__name { font-weight: 560; font-size: 28px; line-height: 1.15; }
.tool__dek { max-width: 560px; font: 400 18px/1.5 var(--serif); color: var(--soft); }
.tool .more, .tool .signup { margin-top: 10px; }
.tool .signup { width: 100%; }
.prose .zdroj { margin-top: 32px; font-size: 15px; }
.qa { max-width: 840px; }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; justify-content: space-between; gap: 24px; padding: 20px 0; cursor: pointer; list-style: none; font-weight: 500; font-size: 24px; line-height: 1.3; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font: 300 28px/1 var(--sans); color: var(--go-text); transition: transform .2s; }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa details[open] p { animation: fade .24s var(--ease-out); }
@keyframes fade { from { opacity: 0; transform: translateY(-4px); } }
.qa p { padding: 0 0 24px; max-width: 680px; font: 400 18px/1.6 var(--serif); color: var(--soft); }

/* o nás: how we write */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: rule; }
.principles li { padding: 0 var(--gap); border-left: 1px solid var(--line); counter-increment: rule; font: 400 18px/1.5 var(--serif); color: var(--soft); }
.principles li:first-child { padding-left: 0; border-left: 0; }
.principles li::before { content: counter(rule); display: block; margin-bottom: 12px; font: 600 48px/1 var(--display); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; color: var(--go); }
.principles strong { display: block; margin-bottom: 6px; font: 600 22px/1.25 var(--display); color: var(--fg); }

/* ---------- footer ---------- */
.foot { margin-top: 80px; padding: 72px 0 56px; background: var(--bg); color: var(--fg); border-top: 1px solid var(--line); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 520px) 1fr 1fr; gap: 64px; }
.foot__title { margin: 20px 0 8px; font-weight: 500; font-size: 36px; line-height: 1.2; }
.foot__dek { margin-bottom: 24px; font: 400 19px/1.5 var(--serif); color: var(--soft); }
.foot__fine { margin-top: 24px; font-size: 14px; color: var(--dim); }
.foot__links { display: flex; flex-direction: column; padding-top: 8px; }
.foot__links:first-of-type { margin-left: auto; }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; gap: 6px; font: 500 17px/1.5 var(--sans); }
.foot__links a:hover { color: var(--go-text); }

/* odber form; --inline keeps field and button on one line where there is room */
.signup { display: grid; gap: 10px; }
.signup__label { font: 500 14px/1.5 var(--sans); }
.signup__row { display: grid; gap: 10px; }
.signup--inline .signup__row { grid-template-columns: 1fr auto; }
.signup input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg); color: inherit; font-size: 16px; }
.signup input::placeholder { color: var(--dim); }
.signup input[aria-invalid="true"] { border-color: var(--err); }
.signup__note { font-size: 14px; color: var(--dim); }
.signup__status:empty { display: none; }
.signup__status { font-size: 15px; }
.signup[data-state="error"] .signup__status { color: var(--err); }
.signup[data-state="success"] .signup__status { color: var(--go-text); }

/* ---------- small desktop, 1024-1279: narrower side column, two-column grids ---------- */
@media (max-width: 1279px) {
  :root { --pad: 24px; --gap: 28px; }
  .news { grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; }
  .grid, .desks, .principles { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  :is(.grid, .desks, .principles) > :nth-child(odd) { padding-left: 0; padding-right: var(--gap); border-left: 0; }
  :is(.grid, .desks, .principles) > :nth-child(even) { padding-right: 0; padding-left: var(--gap); border-left: 1px solid var(--line); }
  .pitch { grid-template-columns: 1fr; gap: 24px; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__cta { grid-column: 1 / -1; }
  .foot__links:first-of-type { margin-left: 0; }
}

/* ---------- tablet and phone, below 1024: one column, cards become rows, 16px gutters ---------- */
@media (max-width: 1023px) {
  :root { --pad: 16px; }
  .mark { font-size: 64px; padding: 0 24px; }
  /* the strip: dateline centred, rubriky wrap under it, archív lives in the menu */
  .strip { display: flex; flex-direction: column; align-items: center; gap: 0; margin-block: 44px 32px; padding: 4px 0; }
  .strip__ed, .strip nav .strip__all { display: none; }
  .strip nav { flex-wrap: wrap; justify-content: center; gap: 0 20px; }
  .strip nav a { display: flex; align-items: center; min-height: 44px; }
  .news { grid-template-columns: 1fr; gap: 56px; }
  .grid { grid-template-columns: 1fr; row-gap: 0; }
  .grid > *, .grid > :nth-child(odd), .grid > :nth-child(even) { padding: 16px 0; border-left: 0; border-top: 1px solid var(--line); }
  .grid > :first-child { border-top: 0; padding-top: 0; }
  /* cards become rows: picture right, words left */
  :is(.side, .grid) .card { display: grid; grid-template-columns: 1fr 104px; gap: 16px; align-items: start; }
  :is(.side, .grid) .card__img { grid-column: 2; grid-row: 1; margin: 0; aspect-ratio: 1; }
  :is(.side, .grid) .card__body { grid-column: 1; grid-row: 1; }
  :is(.side, .grid) .card__title { font-size: 21px; }
  .grid .card__dek { display: none; }
  :is(.side, .grid) .card .byline img { display: none; }
  .tools { grid-template-columns: 1fr; }
  .line { grid-template-columns: 1fr; gap: 4px; }
  .line__by { justify-self: start; }
  .about, .about--big { grid-template-columns: 200px 1fr; column-gap: 32px; }
  .crew { grid-template-columns: 1fr; gap: 16px; }
  /* touch: small links keep their look but get a 44px tall hit area */
  .meta a, .authorbox__name a { padding-block: 15px; }
  :is(.card__title, .item__title, .line__title) a { padding-block: 10px; background-origin: content-box; background-clip: content-box; }
  .zdroj a { padding-block: 12px; }
  .byline { padding: 13px 8px; margin: -13px -8px; }
  .card .byline { margin-top: -9px; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  :root { --band: 72px; }
  .bar { height: 99px; }
  .bar__mini { font-size: 28px; }
  .bar .btn { min-height: 44px; padding: 8px 14px; font-size: 16px; }
  .bar__left { gap: 6px; }
  .bar__icon, .menu summary { height: 44px; }
  .menu__panel { padding-top: 66px; }
  .mark { top: 99px; font-size: 40px; padding: 0 16px; }
  .strip { margin-block: 34px 24px; }
  .strip__date { font-size: 12px; }
  .strip nav { gap: 0 14px; }
  .strip nav a { font-size: 12px; }
  .band { padding-top: 40px; }
  .railhead__sub { font-size: 17px; }
  .item__title { font-size: 22px; }
  .item__body { font-size: 17px; }
  .item--img { grid-template-columns: 1fr; }
  .item--img .item__img { order: -1; }
  .tool { padding: 24px 20px; }
  .pitch { margin-top: 40px; padding: 28px 20px; }
  .pitch--top { margin-block: 0 32px; padding: 20px; }
  .signup--inline .signup__row { grid-template-columns: 1fr; }
  .desks, .principles { grid-template-columns: 1fr; row-gap: 0; }
  :is(.desks, .principles) > *, :is(.desks, .principles) > :nth-child(odd), :is(.desks, .principles) > :nth-child(even) { padding: 24px 0; border-left: 0; border-top: 1px solid var(--line); }
  :is(.desks, .principles) > :first-child { padding-top: 0; border-top: 0; }
  .about, .about--big { grid-template-columns: 1fr; row-gap: 24px; padding-top: 40px; }
  .about__img { width: min(220px, 60%); }
  .about__body > p:not(.kicker), .about--big .about__body > p:not(.kicker) { font-size: 19px; }
  .crew { margin-top: 16px; }
  .pagehead { flex-direction: column-reverse; align-items: flex-start; gap: 20px; }
  .pagehead__img { width: 96px; }
  .pagehead__dek { font-size: 19px; }
  .foot__grid { grid-template-columns: 1fr; gap: 32px; }
  .article__dek { font-size: 20px; }
  .prose { font-size: 19px; }
  .prose h2[id^="ako-to"] { padding: 24px 20px 0; }
  .prose h2[id^="ako-to"] + :is(ol, ul, p) { padding: 16px 20px 24px; }
  .prose h2[id^="ako-to"] + ol > li { padding-left: 40px; }
  .endbox { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
