/* Vývěska: a wall with pinned sheets. At the top the sign with the title and the week, below it
   the sheets in a twelve-column grid: on the left the main sheet with the book ranking, on the
   right a column with the tear-off calendar and the yellow note; under them the treats with the
   head count, the comments with the sheet for fun, and a row of three small sheets.
   One look only (white paper on a light wall), on purpose without a dark version: the board
   keeps its own light surface even when the app is dark (black ink drawings need it).
   Every rule is scoped under .vyveska; the layout follows the width of the board itself
   (container queries), so it fits with the sidebar expanded, collapsed and on a phone.
   Fonts Montserrat and Caveat come from the shell's @font-face (app.css). */

.vyveska {
  --vy-wall: #F3F2EF;
  --vy-sheet: #FFFFFF;
  --vy-ink: #000000;
  --vy-text: #1A1A1A;
  --vy-muted: #5C5C5C;
  --vy-line: #E6E6E6;
  --vy-focus: #2563EB;
  --vy-note: #F3DFA5;
  --vy-tint-rj1: #D4E5D9;
  --vy-tint-rj2: #D2E4E7;
  --vy-tint-rj3: #E9DFD4;
  --vy-tint-rj4: #FCFCFC;
  --vy-tint-rj5: #F2DCD7;
  --vy-tint-rj6: #F3DFA5;
  --vy-tint-rj7: #E5DEEB;
  --vy-tint-rj8: #DCE1E7;
  --vy-tint-rs: #EADFD1;
  --vy-font-heading: Montserrat, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --vy-font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --vy-font-hand: Caveat, "Segoe Print", "Bradley Hand", cursive;
  --vy-shadow-sheet: 0 0 14px rgba(60, 35, 20, .07), 0 22px 44px -22px rgba(60, 35, 20, .30);
  --vy-gap-row: 30px;
  --vy-gap-col: 28px;

  container: vyveska / inline-size;
  display: block;
  min-width: 0;
  color-scheme: light;
  background: var(--vy-wall);
  color: var(--vy-text);
  font-family: var(--vy-font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  border-radius: 12px;
  /* Tilted sheets must never widen the page. */
  overflow-x: clip;
}
.vyveska *, .vyveska *::before, .vyveska *::after { box-sizing: border-box; }
/* Shield against the shell's global element rules (headings, paragraphs, lists, images). */
.vyveska :where(h1, h2, h3, p, ul, ol, li) {
  margin: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  letter-spacing: normal;
  text-transform: none;
}
.vyveska :where(img, svg) { max-width: none; }
.vyveska :focus-visible { outline: 3px solid var(--vy-focus); outline-offset: 3px; }

.vyveska .wall {
  max-width: 1480px;
  margin: 0 auto;
  padding: 18px 16px 40px;
}

/* Sign */
.vyveska .mast {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 8px 30px;
}
.vyveska .mast h1 {
  margin: 0;
  font-family: var(--vy-font-heading);
  font-weight: 800;
  font-size: clamp(44px, 6.4vw, 84px);
  font-size: clamp(44px, 6.4cqi, 84px);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--vy-ink);
}
.vyveska .mast h1 span { position: relative; display: inline-block; }
.vyveska .mast h1 svg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -.2em;
  width: 100%;
  height: .26em;
}
.vyveska .mast-week {
  margin: 20px 0 0;
  font-family: var(--vy-font-heading);
  font-weight: 700;
  font-size: clamp(18px, 1.9vw, 24px);
  font-size: clamp(18px, 1.9cqi, 24px);
  line-height: 1.35;
  color: var(--vy-ink);
}
.vyveska .mast-hand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--vy-font-hand);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.15;
  color: var(--vy-ink);
  transform: rotate(-2deg);
}
.vyveska .mast-hand[hidden] { display: none; }
.vyveska .mast-week .nowrap { white-space: nowrap; }
.vyveska .mast-hand svg { width: 54px; height: auto; flex: none; transform: scaleX(-1) rotate(-18deg); }

/* Sheets */
.vyveska .board {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--vy-gap-row) var(--vy-gap-col);
  align-items: start;
}
.vyveska .stack { display: contents; }
.vyveska .sheet {
  position: relative;
  grid-column: span 12;
  min-width: 0;
  background: var(--vy-sheet);
  border-radius: 4px;
  box-shadow: var(--vy-shadow-sheet);
  padding: 34px 30px 28px;
}
.vyveska .sheet::before {
  content: "";
  position: absolute;
  top: -7px;
  left: var(--pin-x, 50%);
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: var(--vy-ink);
  box-shadow: 0 3px 4px rgba(0, 0, 0, .28);
}
.vyveska .s-number { --pin-x: 44%; }
.vyveska .s-community { --pin-x: 56%; }
.vyveska .s-treats { --pin-x: 41%; }
.vyveska .s-reviews { --pin-x: 58%; }
.vyveska .s-fun { --pin-x: 37%; }
.vyveska .s-news { --pin-x: 46%; }
.vyveska .s-running { --pin-x: 55%; }
.vyveska .s-marketing { --pin-x: 43%; }

.vyveska .sheet h2 {
  margin: 0 0 10px;
  font-family: var(--vy-font-heading);
  font-weight: 800;
  font-size: clamp(24px, 2.3vw, 31px);
  font-size: clamp(24px, 2.3cqi, 31px);
  line-height: 1.25;
  color: var(--vy-ink);
  text-wrap: balance;
}
.vyveska :where(.sheet) p { margin: 0; max-width: 62ch; text-wrap: pretty; }
.vyveska :where(.sheet) p + p { margin-top: 10px; }
.vyveska .lead { font-size: 19px; }
.vyveska .small { font-size: 15px; line-height: 1.4; color: var(--vy-muted); }
.vyveska .foot { margin-top: 18px; }
.vyveska .hand {
  font-family: var(--vy-font-hand);
  font-weight: 700;
  font-size: 25px;
  line-height: 1.15;
  color: var(--vy-ink);
}
.vyveska .doodle {
  position: absolute;
  fill: none;
  stroke: var(--vy-ink);
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Headline number of a sheet */
.vyveska .headline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 18px; margin: 2px 0 10px; }
.vyveska .headline-label {
  font-family: var(--vy-font-heading);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  color: var(--vy-ink);
  max-width: 30ch;
}
.vyveska .big {
  font-family: var(--vy-font-heading);
  font-weight: 800;
  font-size: clamp(52px, 5.6vw, 84px);
  font-size: clamp(52px, 5.6cqi, 84px);
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--vy-ink);
  font-variant-numeric: tabular-nums;
}

/* Ranking */
.vyveska .rank { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 16px; }
.vyveska .rank li { display: grid; grid-template-columns: 1.6em minmax(0, 1fr); column-gap: 8px; align-items: center; }
.vyveska .rank--covers li { grid-template-columns: 1.6em 56px minmax(0, 1fr); column-gap: 10px; }
.vyveska .rank-pos {
  font-family: var(--vy-font-heading);
  font-weight: 800;
  font-size: 19px;
  color: var(--vy-ink);
  font-variant-numeric: tabular-nums;
}
.vyveska .rank-cover { width: 56px; height: 56px; object-fit: contain; display: block; }
.vyveska .rank-main { min-width: 0; }
.vyveska .rank-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.vyveska .rank-name { font-family: var(--vy-font-heading); font-weight: 700; font-size: 18px; color: var(--vy-ink); }
.vyveska .rank-tag { margin-left: 3px; font-family: var(--vy-font-body); font-weight: 400; font-size: 14px; color: var(--vy-muted); }
.vyveska .rank-note { margin-left: auto; transform: rotate(-2deg); }
.vyveska .rank-line { display: flex; align-items: center; gap: 12px; margin-top: 5px; }
.vyveska .rank-track { flex: 1 1 auto; min-width: 0; }
.vyveska .rank-bar {
  height: 22px;
  min-width: 8px;
  border-radius: 4px;
  background: var(--vy-sheet);
  box-shadow: inset 0 0 0 2px var(--vy-ink);
}
.vyveska .rank-num {
  flex: none;
  width: 10rem;
  text-align: right;
  font-family: var(--vy-font-heading);
  font-weight: 800;
  font-size: 21px;
  color: var(--vy-ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.vyveska .rank-delta {
  flex: none;
  width: 4.75rem;
  text-align: right;
  font-size: 17px;
  color: var(--vy-text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.vyveska .rank--first .rank-name { font-size: 22px; }
.vyveska .rank--first .rank-num { font-size: 30px; }
.vyveska .rank--first .rank-bar { height: 30px; }
.vyveska .rank--plain .rank-bar { height: 12px; background: var(--vy-ink); box-shadow: none; }
.vyveska .rank--plain .rank-num { width: 6.5rem; font-size: 19px; }

/* Tear-off calendar */
.vyveska .sheet.s-cal { padding: 0 0 26px; overflow: hidden; }
.vyveska .s-cal::before { top: 9px; background: var(--vy-sheet); box-shadow: none; }
.vyveska .cal-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 30px 30px 12px;
  background: var(--vy-ink);
  color: var(--vy-sheet);
  font-family: var(--vy-font-heading);
  font-weight: 700;
  font-size: 18px;
}
.vyveska .sheet .cal-top h2 { margin: 0; color: var(--vy-sheet); font-size: 18px; font-weight: 700; }
.vyveska .cal-body { padding: 14px 30px 0; border-top: 2px dashed rgba(0, 0, 0, .35); }
.vyveska .cal-day { display: flex; align-items: center; gap: 6px 22px; flex-wrap: wrap; }
.vyveska .cal-num {
  font-family: var(--vy-font-heading);
  font-weight: 800;
  font-size: clamp(84px, 9vw, 128px);
  font-size: clamp(84px, 9cqi, 128px);
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--vy-ink);
  font-variant-numeric: tabular-nums;
}
.vyveska .cal-what { min-width: 0; flex: 1 1 150px; }
.vyveska .cal-weekday { font-family: var(--vy-font-heading); font-weight: 700; font-size: 20px; color: var(--vy-ink); }
.vyveska .cal-title {
  margin: 2px 0 6px;
  font-family: var(--vy-font-heading);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.25;
  color: var(--vy-ink);
}
.vyveska .cal-body > p { margin-top: 10px; }
.vyveska .cal-count { margin-top: 12px; font-size: 40px; transform: rotate(-1.5deg); }
.vyveska .cal-note { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--vy-line); }
.vyveska .cal-program-title {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--vy-line);
  font-family: var(--vy-font-heading);
  font-weight: 800;
  font-size: 19px;
  color: var(--vy-ink);
}
.vyveska .cal-program { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 7px; }
.vyveska .cal-program li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; line-height: 1.35; }
.vyveska .cal-program svg { width: 20px; height: 20px; margin-top: 2px; }
.vyveska .cal-program .small { display: inline; }

/* Yellow note */
.vyveska .s-number { background: var(--vy-note); }
.vyveska .s-number p { margin-top: 8px; max-width: 34ch; }
.vyveska .s-number .doodle { top: 26px; right: 26px; width: 74px; height: auto; transform: rotate(8deg); }

/* How many of us */
.vyveska .s-community p { margin-top: 6px; }
.vyveska .s-community .big { font-size: clamp(44px, 4.2vw, 64px); font-size: clamp(44px, 4.2cqi, 64px); }
.vyveska .socials-intro {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--vy-line);
  font-family: var(--vy-font-heading);
  font-weight: 700;
  color: var(--vy-ink);
}
.vyveska .socials { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.vyveska .socials li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.vyveska .social-name { font-family: var(--vy-font-heading); font-weight: 700; font-size: 18px; color: var(--vy-ink); min-width: 0; }
.vyveska .social-value {
  font-family: var(--vy-font-heading);
  font-weight: 800;
  font-size: 24px;
  color: var(--vy-ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.vyveska .s-community .socials + .small { margin-top: 10px; }

/* Comments */
.vyveska .threads { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 22px; }
.vyveska .threads li { padding-top: 18px; border-top: 1px solid var(--vy-line); }
.vyveska .threads li:first-child { padding-top: 0; border-top: 0; }
.vyveska .quote { font-style: italic; font-size: 20px; color: var(--vy-text); quotes: "„" "“"; }
.vyveska .quote::before { content: open-quote; }
.vyveska .quote::after { content: close-quote; }
.vyveska .who { margin-top: 4px; }
.vyveska .reply { margin-top: 10px; padding-left: 14px; border-left: 3px solid var(--vy-ink); }
.vyveska .reply-who { font-family: var(--vy-font-heading); font-weight: 700; font-size: 15px; color: var(--vy-ink); }
.vyveska .reply-none { margin-top: 8px; font-size: 26px; transform: rotate(-1.5deg); transform-origin: left; }

/* For fun */
.vyveska .s-fun { padding-right: 104px; }
.vyveska .s-fun .doodle { top: 30px; right: 26px; width: 62px; height: auto; transform: rotate(-8deg); }
.vyveska .s-fun .hand { margin-top: 8px; font-size: 30px; transform: rotate(-1.5deg); }

/* Lists */
.vyveska .ticks, .vyveska .plain, .vyveska .top { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 14px; }
.vyveska .ticks li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; }
.vyveska .ticks svg { width: 24px; height: 24px; margin-top: 2px; }
.vyveska .item-title { font-family: var(--vy-font-heading); font-weight: 700; font-size: 18px; line-height: 1.35; color: var(--vy-ink); }
.vyveska .top li { display: grid; grid-template-columns: 1.6em minmax(0, 1fr); column-gap: 8px; }
.vyveska .code { font-variant-numeric: tabular-nums; }

.vyveska .empty p { max-width: 60ch; }
/* The message sheet is a pinned paper, not a banner across the whole board. */
.vyveska .sheet.empty { justify-self: start; max-width: 620px; }

/* Below two columns the calendar goes first: it is the one thing with a date on it. */
@container vyveska (max-width: 699px) {
  .vyveska .s-cal { order: -1; }
}

/* Two columns */
@container vyveska (min-width: 700px) {
  .vyveska .wall { padding: 22px 24px 48px; }
  .vyveska .board { grid-auto-flow: row dense; }
  .vyveska .s-cal, .vyveska .s-number, .vyveska .s-community, .vyveska .s-treats,
  .vyveska .s-fun, .vyveska .s-news, .vyveska .s-running, .vyveska .s-marketing { grid-column: span 6; }
}

/* The full board: a wide sheet with the books on the left and the stacked column on the right.
   From 1000 px of board, which a 1280 px laptop with the sidebar expanded still gives. */
@container vyveska (min-width: 1000px) {
  .vyveska .wall { padding: 28px 28px 56px; }
  .vyveska .board { grid-auto-flow: row; }
  .vyveska .stack { display: flex; flex-direction: column; gap: var(--vy-gap-row); min-width: 0; }
  .vyveska .stack-a, .vyveska .stack-c { grid-column: span 5; }
  .vyveska .stack-b { grid-column: span 7; }
  .vyveska .s-books { grid-column: span 7; }
  .vyveska .s-news, .vyveska .s-running, .vyveska .s-marketing { grid-column: span 4; }
  .vyveska .s-cal { transform: rotate(.8deg); }
  .vyveska .s-number { transform: rotate(-1.4deg); }
  .vyveska .s-fun { transform: rotate(1deg); }
}

/* The full board on a laptop with the sidebar open: the book sheet is narrow, so the numbers
   take less room and the bars keep theirs. */
@container vyveska (min-width: 1000px) and (max-width: 1239px) {
  .vyveska .rank-num { width: 8.5rem; }
  .vyveska .rank--first .rank-num { font-size: 26px; }
  .vyveska .rank-delta { width: 4.25rem; }
}

/* Projector or a big screen with the sidebar collapsed: everything a fifth bigger. */
@container vyveska (min-width: 1760px) {
  .vyveska .wall { zoom: 1.2; }
}

/* Phone */
@container vyveska (max-width: 560px) {
  .vyveska .wall { font-size: 17px; padding: 14px 12px 32px; }
  .vyveska .board { --vy-gap-row: 26px; }
  .vyveska .mast { padding-block: 6px 24px; }
  .vyveska .sheet { padding: 30px 20px 24px; }
  .vyveska .sheet.s-cal { padding: 0 0 24px; }
  .vyveska .cal-top { padding: 28px 20px 12px; }
  .vyveska .cal-body { padding: 14px 20px 0; }
  .vyveska .rank--covers li { grid-template-columns: 1.4em 44px minmax(0, 1fr); column-gap: 8px; align-items: start; }
  .vyveska .rank-cover { width: 44px; height: 44px; }
  .vyveska .rank-line { flex-wrap: wrap; row-gap: 2px; }
  .vyveska .rank-track { flex-basis: 100%; }
  .vyveska .rank-num, .vyveska .rank--plain .rank-num { width: auto; text-align: left; }
  .vyveska .rank-delta { width: auto; text-align: left; }
  .vyveska .rank-note { margin-left: 0; }
  .vyveska .mast-hand { font-size: 26px; }
  .vyveska .s-fun { padding-right: 96px; }
  .vyveska .s-fun .doodle { width: 58px; right: 20px; }
  .vyveska .s-number .doodle { width: 58px; right: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .vyveska * { transition: none !important; animation: none !important; }
}
