/* Kouzelná Linka — Vánoční inspirace (blog index and articles), loaded after kl.css */

.post-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.post-meta span:first-child { color: var(--red); }

/* ---------- Index ---------- */
.blog-head h1 { max-width: 17ch; }
.season { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 980px; }
.season > li { position: relative; border-radius: 18px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.season > li.season-count { display: grid; align-content: center; justify-items: start; gap: 2px; padding: 14px 16px; background: linear-gradient(160deg, rgba(232, 185, 49, .26), rgba(232, 185, 49, .07)); box-shadow: inset 0 0 0 1px rgba(232, 185, 49, .5); }
.season-count a { display: grid; justify-items: start; gap: 2px; color: inherit; text-decoration: none; }
.season-count span { font-size: .85rem; color: var(--on-night-2); line-height: 1.25; }
.season-count strong { font: 900 2.6rem/1 var(--font-display); color: var(--gold); letter-spacing: -.02em; }
.season-day a { display: grid; gap: 4px; height: 100%; padding: 14px 16px 15px; border-radius: inherit; color: var(--on-night); text-decoration: none; transition: background-color .2s; }
.season-day a:hover { background: rgba(255, 255, 255, .06); }
.season-day time { font-size: .9rem; color: var(--on-night-2); }
.season-day time b { font: 900 1.35rem/1 var(--font-display); color: var(--on-night); }
.season-day strong { font: 700 1rem/1.25 var(--font-display); }
.season-note { display: inline-flex; align-items: center; gap: 5px; font-size: .84rem; font-weight: 700; color: var(--gold); }
.season-note .i { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.season-day a:hover .season-note .i { transform: translateX(3px); }
.season-when { position: absolute; top: 12px; right: 12px; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: .72rem; font-weight: 800; color: var(--on-night); }
.season-day.is-past { opacity: .55; }
@media (max-width: 420px) { .season-when { position: static; justify-self: start; order: -1; } }
@media (min-width: 760px) { .season { grid-template-columns: .85fr repeat(3, minmax(0, 1fr)); margin-top: 22px; } }

.blog-list { padding-block: 6px 80px; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.cat-chips button { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line-2); font-weight: 700; font-size: .9rem; color: var(--ink); transition: background-color .2s, color .2s; }
.cat-chips button:hover { box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.cat-chips .count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--paper-2); font-size: .75rem; color: var(--ink-2); }
.cat-chips button[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.cat-chips button[aria-pressed="true"] .count { background: rgba(255, 255, 255, .16); color: #fff; }
.post-grid { display: grid; gap: 18px; }
.post-card { position: relative; display: grid; grid-template-rows: auto 1fr; border-radius: var(--r-lg); overflow: hidden; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); transition: transform .25s var(--ease), box-shadow .25s; }
.post-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line-2), 0 22px 44px -28px rgba(40, 30, 10, .5); }
.post-card .media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-2); }
.post-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .media img { transform: scale(1.04); }
.post-card .body { display: grid; gap: 10px; padding: 18px 20px 20px; align-content: start; }
.post-card h2 { font-size: 1.25rem; line-height: 1.3; }
.post-card h2 a { text-decoration: none; }
.post-card h2 a::after { content: ""; position: absolute; inset: 0; }
.post-card p { color: var(--ink-2); font-size: .975rem; }
.post-card .more { font-weight: 700; color: var(--red); font-size: .95rem; display: inline-flex; gap: 6px; align-items: center; margin-top: 2px; }
.post-card .more .i { width: 17px; height: 17px; transition: transform .2s var(--ease); }
.post-card:hover .more .i { transform: translateX(3px); }
.fresh { justify-self: start; padding: 5px 10px; border-radius: 999px; background: var(--red); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.post-card.featured h2 { font-size: clamp(1.5rem, 5vw, 2.2rem); line-height: 1.2; }
@media (min-width: 720px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-card.featured { grid-column: 1 / -1; grid-template-rows: none; min-height: 470px; align-items: end; background: var(--night); box-shadow: none; }
  .post-card.featured .media { position: absolute; inset: 0; aspect-ratio: auto; }
  .post-card.featured .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 19, 15, .9) 0%, rgba(8, 19, 15, .66) 40%, rgba(8, 19, 15, 0) 70%), linear-gradient(0deg, rgba(8, 19, 15, .6), rgba(8, 19, 15, 0) 50%); }
  .post-card.featured .body { position: relative; max-width: 560px; padding: 40px; gap: 12px; color: var(--on-night); }
  .post-card.featured p { color: var(--on-night-2); font-size: 1.05rem; }
  .post-card.featured .post-meta { color: var(--on-night-2); }
  .post-card.featured .post-meta span:first-child { color: var(--gold); }
  .post-card.featured .more { color: var(--gold); }
}
@media (min-width: 1040px) { .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .post-card.featured .body { padding: 52px; } }

.post-filler { display: none; align-content: center; justify-items: start; gap: 10px; padding: 26px; border-radius: var(--r-lg); background: var(--paper); box-shadow: inset 0 0 0 2px var(--line-2); border: 0; outline: 2px dashed rgba(185, 138, 30, .35); outline-offset: -10px; }
.post-filler p { color: var(--ink-2); max-width: 46ch; }
@media (min-width: 720px) and (max-width: 1039px) { .post-filler[data-fill2] { display: grid; } }
@media (min-width: 1040px) { .post-filler[data-fill3] { display: grid; grid-column: span var(--span3); } }
.post-filler[hidden] { display: none !important; }

.voice-band { grid-column: 1 / -1; display: grid; gap: 20px; padding: 28px 18px 18px; border-radius: var(--r-xl); }
.voice-band > *:not(.sky) { position: relative; z-index: 1; }
.voice-band-copy { display: grid; gap: 8px; align-content: center; padding-inline: 4px; }
.voice-band h2 { font-weight: 900; font-size: clamp(1.6rem, 6vw, 2.2rem); line-height: 1.15; }
.voice-band h2 em { color: var(--gold); }
.voice-band-copy p { color: var(--on-night-2); max-width: 40ch; }
.voice-band-list { display: grid; gap: 10px; }
.voice-band .voice { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.voice-band .voice-copy span { display: none; }
@media (min-width: 980px) { .voice-band { grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: 36px; padding: 40px; align-items: center; } .voice-band .voice-copy span { display: block; } }

.blog-finale { display: grid; text-align: center; padding-block: 80px 260px; }
.blog-finale-bg { position: absolute; inset: 0; z-index: -3; background: 50% 78% / cover no-repeat; }
.blog-finale-bg.is-near { background-image: url("/images/night-village.webp"); }
.blog-finale-veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12, 27, 33, .9) 0%, rgba(12, 27, 33, .55) 40%, rgba(12, 27, 33, 0) 66%, rgba(8, 19, 15, .4) 90%, #08130f 100%); }
.blog-finale .sky { z-index: -2; }
.blog-finale .wrap { position: relative; z-index: 1; display: grid; justify-items: center; gap: 14px; }
.finale-faces { display: flex; align-items: center; margin-bottom: 4px; }
.finale-faces img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--night), 0 0 0 5px var(--gold); }
.finale-faces img:nth-child(2) { width: 76px; height: 76px; margin-inline: -10px; position: relative; z-index: 1; }
.blog-finale h2 { font-weight: 900; font-size: clamp(1.9rem, 7.5vw, 3.2rem); line-height: 1.12; max-width: 20ch; }
.blog-finale h2 em { color: var(--gold); }
.blog-finale p { color: var(--on-night-2); max-width: 46ch; font-size: 1.05rem; }
.blog-finale .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
@media (min-width: 980px) { .blog-finale { padding-block: 110px 340px; } }

/* ---------- Article ---------- */
.article-head { padding-bottom: calc(var(--vh) + 4px); }
.article-head .wrap { display: grid; gap: 26px; }
.article-copy { display: grid; gap: 14px; align-content: start; }
.article-copy h1 { font-weight: 900; font-size: clamp(1.9rem, 7vw, 3rem); line-height: 1.14; max-width: 22ch; }
.article-head .post-meta { color: var(--on-night-2); }
.article-head .post-meta span:first-child { color: var(--gold); }
.article-lead { font-size: 1.15rem; color: var(--on-night-2); line-height: 1.6; max-width: 60ch; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.blog-author-mark { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--night); color: var(--gold); font: 700 .95rem/1 var(--font-display); flex: none; box-shadow: inset 0 0 0 1.5px rgba(232, 185, 49, .55); }
.byline > span:nth-child(2) { display: grid; line-height: 1.3; font-size: .95rem; }
.byline small { color: var(--on-night-2); font-size: .85rem; }
.share-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; margin-left: auto; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); color: var(--on-night); font-weight: 700; font-size: .875rem; }
.share-btn:hover { background: rgba(255, 255, 255, .14); }
.share-btn .i { width: 16px; height: 16px; }
.article-hero { position: relative; margin: 0; }
.article-hero::before { content: ""; position: absolute; inset: 18px -10px -12px 18px; border-radius: var(--r-lg); background: rgba(232, 185, 49, .16); box-shadow: inset 0 0 0 1px rgba(232, 185, 49, .4); transform: rotate(1.6deg); }
.article-hero img { position: relative; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-lg); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08); }
@media (min-width: 980px) {
  .article-head .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: 56px; align-items: center; }
  .article-hero { transform: rotate(-1deg); }
}

.article-voice { display: grid; gap: 10px; margin-block: 4px; }
.article-voice .hand-note { font-size: 1.35rem; }
.article-voice > p { font-size: .85rem !important; color: var(--muted) !important; }

.author-box { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px 16px; align-items: start; padding: 20px; border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--shadow-paper); }
.author-mark { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--night); color: var(--gold); font: 700 1.1rem/1 var(--font-display); }
.author-box strong { font: 700 1.1rem/1.3 var(--font-display); }
.author-box p { font-size: .975rem !important; line-height: 1.6 !important; margin-top: 4px; }
.author-box .btn { grid-column: 2; justify-self: start; }

.article-layout { display: grid; gap: 26px; padding-block: 24px 80px; }
.toc { border-radius: var(--r); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.toc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; font-weight: 800; cursor: pointer; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary .i { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.toc[open] summary .i { transform: rotate(180deg); }
.toc ol { margin: 0; padding: 0 18px 8px 38px; display: grid; gap: 8px; font-size: .95rem; }
.toc ol a { color: var(--ink-2); text-decoration: none; }
.toc ol a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.toc ol a[aria-current] { color: var(--red); font-weight: 700; }
.toc ol li::marker { color: var(--muted); }
.toc .btn { margin: 8px 18px 18px; }
.article-body { display: grid; gap: 34px; min-width: 0; max-width: 720px; }
.article-body section { display: grid; gap: 14px; scroll-margin-top: 90px; }
.sec-num { font: 600 1.4rem/1 var(--font-hand); color: var(--red); }
.article-body h2 { font-weight: 900; font-size: clamp(1.45rem, 5vw, 1.85rem); line-height: 1.22; }
.article-body p { font-size: 1.0625rem; line-height: 1.75; color: var(--ink-2); }
.article-body h3 { font: 700 1.08rem/1.35 var(--font-display); }
/* Christmas countdown card (article section with countdown: true). */
.xmas-count { display: grid; gap: 6px; padding: 26px 24px 22px; border-radius: var(--r-lg); background: radial-gradient(120% 90% at 85% 0%, rgba(232, 185, 49, .16), transparent 60%), var(--night); color: var(--on-night); box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .7); }
.article-body .xmas-count-main { display: flex; align-items: baseline; gap: 12px; font: 900 1.6rem/1 var(--font-display); color: var(--on-night); }
.xmas-count-num { font-size: clamp(3.6rem, 16vw, 5.2rem); color: var(--gold); letter-spacing: -.02em; }
.article-body .xmas-count-sub { color: var(--on-night-2); font-size: 1rem; line-height: 1.5; }
.xmas-count-list { list-style: none; margin: 14px 0 0; padding: 14px 0 0; display: grid; gap: 10px; border-top: 1px solid var(--night-line); }
.xmas-count-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; }
.xmas-count-list strong { color: #fff; font-weight: 800; }
.xmas-count-list span { grid-column: 1; color: var(--on-night-2); font-size: .9rem; }
.xmas-count-list em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font-weight: 800; color: var(--gold); white-space: nowrap; }
.callout { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px 18px; border-radius: var(--r); background: var(--gold-tint); box-shadow: inset 0 0 0 1px rgba(232, 185, 49, .42); }
.callout .i { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--paper); color: var(--gold-deep); box-shadow: 0 0 0 1px rgba(232, 185, 49, .5); }
.callout p { color: var(--ink); font-size: 1rem; line-height: 1.6; align-self: center; }
/* Steps read as a path: night badges with gold numbers joined by a dashed gold thread. */
.steps { list-style: none; margin: 0; padding: 0; display: grid; }
.steps li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding-bottom: 22px; }
.steps li:last-child { padding-bottom: 0; }
.steps li:not(:last-child)::before { content: ""; position: absolute; left: 21px; top: 52px; bottom: 6px; border-left: 2px dashed rgba(201, 152, 28, .55); }
.steps li > span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--night); color: var(--gold); font: 900 1.1rem/1 var(--font-display); box-shadow: 0 0 0 4px var(--gold-tint), 0 10px 20px -12px rgba(12, 27, 33, .7); }
.steps h3 { padding-top: 10px; }
.steps p { font-size: 1rem; margin-top: 4px; }
/* The bedtime variant: the same steps on a small night sky with a moon. */
.ritual { position: relative; padding: 30px 22px 24px; border-radius: var(--r-lg); background: radial-gradient(90% 70% at 100% 0%, rgba(232, 185, 49, .14), transparent 60%), var(--night); box-shadow: 0 26px 50px -32px rgba(0, 0, 0, .75); display: grid; gap: 18px; }
.ritual-moon { position: absolute; top: 20px; right: 20px; width: 38px; height: 38px; color: var(--gold); fill: var(--gold); filter: drop-shadow(0 0 14px rgba(232, 185, 49, .55)); }
.ritual .steps { padding-right: 34px; }
.ritual .steps li > span { background: var(--gold); color: var(--night); box-shadow: 0 0 0 4px rgba(232, 185, 49, .16), 0 0 24px rgba(232, 185, 49, .45); }
.ritual .steps li:not(:last-child)::before { border-left-color: rgba(232, 185, 49, .4); }
.ritual .steps h3 { color: #fff; }
.article-body .ritual .steps p { color: var(--on-night-2); }
.article-body .ritual-end { justify-self: end; font: 600 1.7rem/1 var(--font-hand); color: var(--gold); }
@media (min-width: 640px) { .ritual { padding: 36px 34px 28px; } .ritual-moon { top: 26px; right: 28px; width: 44px; height: 44px; } }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; font-size: 1.0625rem; line-height: 1.6; color: var(--ink-2); }
.checklist .i { color: var(--green-ink); width: 20px; height: 20px; margin-top: 4px; stroke-width: 2.6; }
/* Cards are little paper notes held by a strip of washi tape. A "Label: value" title splits
   into a handwritten label and the value, so "1. neděle: 29. listopadu" reads like a calendar note. */
.age-grid { display: grid; gap: 18px 14px; padding-top: 6px; }
.age-grid > div { position: relative; padding: 20px 18px 16px; border-radius: 6px 6px var(--r) var(--r); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line), 0 16px 28px -24px rgba(60, 40, 10, .6); display: grid; gap: 6px; align-content: start; }
.age-grid > div::before { content: ""; position: absolute; top: -8px; left: 20px; width: 58px; height: 17px; border-radius: 2px; background: rgba(232, 185, 49, .55); transform: rotate(-3deg); }
.age-grid > div:nth-child(even)::before { left: auto; right: 24px; background: rgba(212, 43, 51, .2); transform: rotate(4deg); }
.age-kicker { font: 600 1.35rem/1 var(--font-hand); color: var(--red); }
.age-grid strong { font: 900 1.12rem/1.3 var(--font-display); color: var(--ink); }
.age-grid p { font-size: .975rem; line-height: 1.6; }
@media (min-width: 640px) { .age-grid { grid-template-columns: 1fr 1fr; } }
/* Icon cards: three ways to do something, each with a gold icon in a soft circle. */
.icon-cards { display: grid; gap: 12px; }
.icon-cards > div { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 4px 14px; padding: 16px; border-radius: var(--r); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.icon-cards .i { grid-row: span 2; width: 46px; height: 46px; padding: 12px; border-radius: 50%; background: var(--gold-tint); color: var(--gold-deep); }
.icon-cards strong { font: 700 1.05rem/1.3 var(--font-display); align-self: end; }
.icon-cards p { font-size: .95rem; line-height: 1.55; }
@media (min-width: 720px) { .icon-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } .icon-cards > div { grid-template-columns: 1fr; align-content: start; padding: 20px 18px; } .icon-cards .i { grid-row: auto; margin-bottom: 6px; } .icon-cards strong { align-self: start; } }
/* Facts: a row of big numbers, the page at a glance. */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; border-radius: var(--r); overflow: hidden; background: var(--line); box-shadow: inset 0 0 0 1px var(--line); }
.facts > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; padding: 14px 16px; background: var(--paper); }
.facts dd { margin: 0; font: 900 1.7rem/1 var(--font-display); color: var(--red); letter-spacing: -.01em; }
.facts dt { font-size: .85rem; font-weight: 700; color: var(--muted); }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Story cards: a shelf of bedtime stories, each with its painting and running time. */
.story-cards { display: grid; gap: 12px; }
.story-card { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px; border-radius: var(--r-lg); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line), 0 18px 30px -26px rgba(60, 40, 10, .55); text-decoration: none; color: inherit; transition: transform .2s var(--ease), box-shadow .2s; }
.story-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line-2), 0 22px 36px -24px rgba(60, 40, 10, .6); }
.story-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.story-card-media { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--night); }
.story-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.story-card:hover .story-card-media img { transform: scale(1.04); }
.story-card-time { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px 5px 7px; border-radius: 999px; background: rgba(12, 27, 33, .82); color: #fff; font: 800 .8rem/1 var(--font-text); }
.story-card-time .i { width: 14px; height: 14px; color: var(--gold); fill: var(--gold); }
.story-card-body { display: grid; gap: 3px; }
.story-card-kicker { font: 600 1.2rem/1.1 var(--font-hand); color: var(--red); }
.story-card strong { font: 900 1.05rem/1.3 var(--font-display); color: var(--ink); }
.story-card-text { font-size: .9rem; line-height: 1.5; color: var(--ink-2); }
@media (max-width: 420px) { .story-card-text { display: none; } .story-card { grid-template-columns: 112px minmax(0, 1fr); } }
@media (min-width: 680px) {
  .story-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  /* Four stories: two columns of compact cards with the painting on the left. */
  .story-cards:has(> :nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-cards:has(> :nth-child(4)) .story-card { grid-template-columns: 124px minmax(0, 1fr); align-items: center; padding: 10px; }
  .story-cards:has(> :nth-child(4)) .story-card-media { aspect-ratio: 4 / 3; }
  .story-cards:has(> :nth-child(4)) .story-card-body { padding: 0; }
  /* An odd count leaves no card alone at the end: the first (newest) story spans the row. */
  .story-cards:has(> :nth-child(4)):has(> :last-child:nth-child(odd)) > :first-child { grid-column: 1 / -1; }
  .story-card { grid-template-columns: 1fr; align-items: start; align-content: start; gap: 12px; padding: 8px 8px 16px; }
  .story-card-media { aspect-ratio: 16 / 10; }
  .story-card-body { padding: 0 8px; }
}
/* Pull quote: one line worth remembering, handwritten, with a big gold opening quote. */
.pullquote { position: relative; margin: 6px 0; padding: 22px 8px 4px 58px; }
.pullquote::before { content: "\201E"; position: absolute; left: 0; top: -18px; font: 900 6rem/1 var(--font-display); color: var(--gold); }
.pullquote blockquote { margin: 0; }
.article-body .pullquote p { font: 600 clamp(1.6rem, 6vw, 2.05rem)/1.25 var(--font-hand); color: var(--ink); }
.pullquote figcaption { margin-top: 10px; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); }
.pullquote figcaption::before { content: ""; display: inline-block; width: 26px; height: 2px; margin-right: 10px; vertical-align: middle; background: var(--gold); }
.template-quote { position: relative; padding: 20px 22px 18px 34px; border-radius: 6px; background: var(--paper); box-shadow: var(--shadow-paper); }
.template-quote::after { content: ""; position: absolute; top: 0; bottom: 0; left: 20px; width: 1.5px; background: rgba(212, 43, 51, .3); }
.template-quote span { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 6px; }
.template-quote p { font: 500 1.45rem/1.4 var(--font-hand); color: #2b2f3a; white-space: pre-line; }
.poem-grid { display: grid; gap: 12px; }
.poem { position: relative; margin: 0; padding: 18px 22px 18px 34px; border-radius: 6px; background: var(--paper); box-shadow: var(--shadow-paper); }
.poem::after { content: ""; position: absolute; top: 0; bottom: 0; left: 20px; width: 1.5px; background: rgba(212, 43, 51, .3); }
.poem figcaption { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 6px; }
.poem p { font: 500 1.4rem/1.35 var(--font-hand); color: #2b2f3a; white-space: pre-line; }
@media (min-width: 640px) { .poem-grid { grid-template-columns: 1fr 1fr; } }
/* Bedtime story: YouTube player that loads only on click, and the story text on paper. */
.story-video { margin: 0; display: grid; gap: 10px; }
.story-video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--night); box-shadow: var(--shadow-paper); }
.story-video-frame img, .story-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.story-video-play { position: absolute; inset: 0; width: 100%; display: grid; place-items: center; border: 0; padding: 0; background: linear-gradient(transparent 60%, rgba(12, 27, 33, .5)); color: #fff; cursor: pointer; }
.story-video-play .i { margin-left: 32%; width: 78px; height: 78px; padding: 21px 19px 21px 25px; border-radius: 50%; background: var(--red); box-shadow: 0 12px 30px rgba(0, 0, 0, .35); transition: transform .2s var(--ease); }
.story-video-play span { position: absolute; right: 12px; bottom: 12px; padding: 5px 9px; border-radius: 6px; background: rgba(12, 27, 33, .78); font: 700 .875rem/1 var(--font-text); }
.story-video-play:hover .i, .story-video-play:focus-visible .i { transform: scale(1.06); }
.story-video-play:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.story-video figcaption { font-size: .9rem; line-height: 1.5; color: var(--ink-2); }
.story-video figcaption a { color: var(--red); font-weight: 700; }
.story-text { position: relative; padding: 24px 22px 24px 38px; border-radius: 6px; background: var(--paper); box-shadow: var(--shadow-paper); display: grid; gap: 14px; }
.story-text::after { content: ""; position: absolute; top: 0; bottom: 0; left: 22px; width: 1.5px; background: rgba(212, 43, 51, .3); }
.story-text p { font: 400 1.125rem/1.8 var(--font-display); color: #2b2f3a; }
.story-text .story-refrain { font: 600 1.6rem/1.3 var(--font-hand); color: var(--gold-deep); text-align: center; }
.story-text .story-chapter { margin: 18px 0 0; font: 700 .8rem/1.4 var(--font-text); letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.story-text .story-chapter:first-child { margin-top: 0; }
/* A character line in a story with several voices: the name in red handwriting, the line indented under it. */
.story-text .story-line { padding-left: 14px; box-shadow: inset 2px 0 0 rgba(232, 185, 49, .55); }
.story-who { margin-right: 4px; font: 700 1.3rem/1 var(--font-hand); color: var(--red); }
@media (min-width: 640px) { .story-text { padding: 32px 34px 32px 52px; } .story-text::after { left: 30px; } }
.section-link a { font-weight: 700; color: var(--red); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.section-link a:hover { text-decoration: underline; text-underline-offset: 3px; }
.section-link .i { width: 17px; height: 17px; }

.blog-faq { gap: 0 !important; }
.blog-faq h2 { margin-bottom: 8px; }
.blog-faq details { border-bottom: 1px solid var(--line-2); }
.blog-faq details:first-of-type { border-top: 1px solid var(--line-2); }
.blog-faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 2px; font: 700 1.05rem/1.4 var(--font-display); cursor: pointer; }
.blog-faq summary::-webkit-details-marker { display: none; }
.blog-faq details p { padding: 0 2px 18px; font-size: 1rem; }
.faq-ico { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line-2); transition: transform .25s var(--ease), background-color .2s; }
.faq-ico .i { width: 16px; height: 16px; }
.blog-faq details[open] .faq-ico { transform: rotate(45deg); background: var(--gold); box-shadow: none; }

.convert { border-radius: var(--r-xl); padding: 26px 22px; display: grid; gap: 16px; }
.convert > *:not(.sky) { position: relative; z-index: 1; }
.convert .hand-note { font-size: 1.35rem; }
.convert h2 { color: var(--on-night); }
.convert p { color: var(--on-night-2) !important; }
.convert .btn { justify-self: start; }
.convert .row { display: flex; align-items: center; gap: 12px; }
.convert .row img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--gold); }
.related { display: grid; gap: 8px; }
.related h2 { margin-bottom: 8px; }
.related-grid { display: grid; gap: 12px; }
.related-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px; border-radius: var(--r-lg); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s; }
.related-card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--line-2), 0 16px 30px -22px rgba(40, 30, 10, .5); }
.related-media { display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--paper-2); }
.related-media img { width: 100%; height: 100%; object-fit: cover; }
.related-body { display: grid; gap: 4px; }
.related-cat { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.related-card strong { font: 700 1.02rem/1.35 var(--font-display); color: var(--ink); }
.related-time { font-size: .8rem; color: var(--muted); }
@media (min-width: 640px) {
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-card { grid-template-columns: 1fr; align-items: start; padding: 0; overflow: hidden; }
  .related-media { aspect-ratio: 16 / 9; border-radius: 0; }
  .related-body { padding: 4px 16px 16px; }
}
@media (min-width: 980px) {
  .article-layout { grid-template-columns: 260px minmax(0, 720px); gap: 56px; justify-content: center; }
  .toc { position: sticky; top: 96px; align-self: start; }
  .toc summary { pointer-events: none; }
  .toc summary .i { display: none; }
  .convert { padding: 34px; }
}

/* Letter builder (dopis-jeziskovi-k-vytisknuti): pick a painted frame, a layout and a heading;
   the sheet is sized in container units so the preview and the printed A4 page match. */
.letter-tool { display: grid; gap: 22px; padding: 20px 18px; border-radius: var(--r-lg); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line), 0 24px 44px -36px rgba(60, 40, 10, .6); }
.letter-step { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 10px; }
.letter-step legend { display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 12px; font: 700 1.02rem/1.3 var(--font-display); color: var(--ink); }
.letter-step legend span { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--night); color: var(--gold); font: 900 .88rem/1 var(--font-display); }
.letter-frame-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; }
.letter-frame-pick { position: relative; display: grid; gap: 6px; justify-items: center; cursor: pointer; text-align: center; }
.letter-frame-pick input, .letter-layout-pick input { position: absolute; opacity: 0; pointer-events: none; }
.letter-frame-pick img { width: 100%; height: auto; aspect-ratio: 200 / 283; border-radius: 5px; box-shadow: 0 0 0 1px var(--line), 0 8px 16px -12px rgba(60, 40, 10, .5); transition: transform .2s var(--ease), box-shadow .2s; }
.letter-frame-pick span { font-size: .8rem; font-weight: 700; line-height: 1.25; color: var(--muted); }
.letter-frame-pick:hover img { transform: translateY(-2px); }
.letter-frame-pick input:checked + img { box-shadow: 0 0 0 3px var(--gold), 0 12px 22px -12px rgba(60, 40, 10, .6); }
.letter-frame-pick input:checked ~ span { color: var(--ink); }
.letter-frame-pick input:focus-visible + img { outline: 3px solid var(--red); outline-offset: 3px; }
.letter-layout-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.letter-layout-pick { position: relative; cursor: pointer; }
.letter-layout-pick > span { display: grid; gap: 2px; height: 100%; padding: 10px 12px; border-radius: 12px; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line-2); transition: background-color .2s, box-shadow .2s; }
.letter-layout-pick strong { font-size: .95rem; line-height: 1.3; }
.letter-layout-pick small { font-size: .78rem; color: var(--muted); }
.letter-layout-pick input:checked + span { background: var(--gold-tint); box-shadow: inset 0 0 0 2px var(--gold); }
.letter-layout-pick input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.letter-field { display: grid; gap: 6px; }
.letter-field > span { font-size: .9rem; font-weight: 700; color: var(--ink); }
.letter-field small { margin-left: 4px; font-weight: 500; color: var(--muted); }
.letter-field input { width: 100%; padding: 8px 12px; border: 0; border-radius: 10px; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line-2); font: 700 1.4rem/1.2 var(--font-hand); color: var(--ink); }
.letter-field input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--gold); }
.letter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.letter-chips button { padding: 6px 12px; border: 0; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line-2); font: 700 1.1rem/1 var(--font-hand); color: var(--ink-2); cursor: pointer; }
.letter-chips button:hover, .letter-chips button:focus-visible { box-shadow: inset 0 0 0 1.5px var(--gold); color: var(--ink); }
.letter-check { display: flex; gap: 10px; align-items: center; font-size: .95rem; font-weight: 600; cursor: pointer; }
.letter-check input { width: 20px; height: 20px; flex: none; accent-color: var(--gold-deep); }
.letter-check small { margin-left: 4px; font-weight: 500; color: var(--muted); }
.article-body .letter-privacy { display: flex; gap: 8px; align-items: flex-start; font-size: .85rem; line-height: 1.45; color: var(--muted); }
.letter-privacy .i { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--green-ink); }
.letter-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.letter-actions [hidden] { display: none; }
.article-body .letter-pdf-note { flex-basis: 100%; font-size: .85rem; line-height: 1.5; color: var(--muted); }
.letter-pdf-note a { font-weight: 700; color: var(--red); }
.letter-preview { display: grid; gap: 8px; justify-items: center; align-content: start; }
.letter-preview .hand-note { justify-self: start; font-size: 1.3rem; }
.letter-preview .letter-sheet { width: min(100%, 340px); transform: rotate(-.8deg); }
.letter-sheet { position: relative; width: 100%; aspect-ratio: 210 / 297; overflow: hidden; container-type: inline-size; border-radius: 3px; background: var(--paper, #fff); box-shadow: 0 1px 2px rgba(60, 40, 10, .25), 0 26px 44px -26px rgba(60, 40, 10, .55); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.letter-frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.letter-area { position: absolute; top: var(--t); right: var(--r); bottom: var(--b); left: var(--l); display: flex; flex-direction: column; }
.letter-sheet .letter-heading { margin: 0; padding-bottom: 2cqw; font: 700 8.2cqw/1.1 var(--font-hand); color: var(--ink); }
.letter-body { display: none; flex: 1; min-height: 0; flex-direction: column; }
.letter-sheet[data-layout="linky"] .lay-linky, .letter-sheet[data-layout="obrazek"] .lay-obrazek,
.letter-sheet[data-layout="doplnovacka"] .lay-doplnovacka, .letter-sheet[data-layout="prazdny"] .lay-prazdny { display: flex; }
.letter-sheet .ln { display: block; flex: 1; min-width: 0; padding-left: 1.5cqw; overflow: hidden; white-space: nowrap; border-bottom: max(1px, .28cqw) solid color-mix(in srgb, var(--ink) 38%, transparent); font: 700 5.8cqw/1 var(--font-hand); color: var(--ink); }
.letter-sheet .letter-row { display: flex; align-items: flex-end; gap: 1.6cqw; margin: 0; font: 600 4.7cqw/1.1 var(--font-hand); color: var(--ink); }
.letter-row .ln { align-self: stretch; }
.lay-doplnovacka .letter-row { flex: 1; }
.lay-obrazek .letter-row { padding-bottom: 2cqw; }
.lay-obrazek .letter-draw { flex: 1; margin-bottom: 2.5cqw; border: max(1px, .35cqw) dashed color-mix(in srgb, var(--ink) 40%, transparent); border-radius: 3cqw; }
.lay-obrazek > .ln { flex: 0 0 9cqw; }
.letter-sheet .letter-sign { flex: 0 0 11cqw; justify-content: flex-end; }
.letter-sign .ln { flex: 0 0 48%; }
.letter-sheet.is-trace .letter-heading, .letter-sheet.is-trace .letter-row, .letter-sheet.is-trace .ln { color: color-mix(in srgb, var(--ink) 24%, transparent); }
@media (min-width: 760px) {
  .letter-tool { grid-template-columns: minmax(0, 1fr) 280px; grid-template-areas: "frames preview" "layouts preview" "texts preview" "actions preview"; gap: 24px 26px; padding: 26px; }
  .letter-frames { grid-area: frames; }
  .letter-layouts { grid-area: layouts; }
  .letter-texts { grid-area: texts; }
  .letter-actions { grid-area: actions; }
  .letter-preview { grid-area: preview; position: sticky; top: 96px; align-self: start; }
}
/* Printing the letter: only the cloned sheet, one A4 page (the @page rule is added by kl-letter.js). */
.letter-print { display: none; }
@media print {
  .letter-printing body { margin: 0 !important; padding: 0 !important; background: #fff !important; }
  .letter-printing body > :not(.letter-print) { display: none !important; }
  .letter-printing .letter-print { display: block; }
  .letter-print .letter-sheet { width: 210mm; height: 296mm; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
}
.letter-snap body { margin: 0; padding: 0; background: #fff; }
.letter-snap body > :not(.letter-print) { display: none !important; }
.letter-snap .letter-print { display: block; }
.letter-snap .letter-print .letter-sheet { width: 100vw; height: 100vh; aspect-ratio: auto; border-radius: 0; box-shadow: none; }

/* Calendar: a two-week wall calendar, holidays in gold, public holidays in red. */
.cal { margin: 0; padding: 18px 14px 14px; border-radius: var(--r-lg); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line), 0 18px 32px -28px rgba(60, 40, 10, .6); display: grid; gap: 10px; }
.cal figcaption { font: 700 1rem/1.3 var(--font-display); color: var(--ink); padding: 0 4px; }
.cal-head, .cal-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.cal-head span { text-align: center; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cal-head span:nth-child(n+6) { color: var(--red); }
.cal-days { list-style: none; margin: 0; padding: 0; }
.cal-days li { position: relative; display: grid; align-content: start; justify-items: center; gap: 1px; min-height: 58px; padding: 7px 2px 6px; border-radius: 10px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); text-align: center; }
.cal-days strong { font: 900 1.15rem/1 var(--font-display); color: var(--ink); }
.cal-m { font-size: .68rem; font-weight: 700; color: var(--muted); }
.cal-days em { display: none; font: 600 .95rem/1.05 var(--font-hand); color: inherit; }
.cal-days .cal-pad { background: none; box-shadow: none; }
.cal-days .is-skola { background: var(--page); }
.cal-days .is-skola strong, .cal-days .is-skola .cal-m { color: var(--muted); }
.cal-days .is-prazdniny { background: var(--gold-tint); box-shadow: inset 0 0 0 1.5px rgba(232, 185, 49, .65); color: var(--gold-deep); }
.cal-days .is-vikend { background: var(--gold-tint); box-shadow: none; color: var(--gold-deep); }
.cal-days .is-svatek { background: var(--red); box-shadow: none; color: #fff; }
.cal-days .is-svatek strong, .cal-days .is-svatek .cal-m { color: #fff; }
.cal-legend { list-style: none; margin: 4px 0 0; padding: 0 4px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .82rem; font-weight: 700; color: var(--ink-2); }
.cal-legend li { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend li::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.cal-legend .is-prazdniny::before { background: var(--gold-tint); box-shadow: inset 0 0 0 1.5px rgba(232, 185, 49, .65); }
.cal-legend .is-vikend::before { background: var(--gold-tint); box-shadow: none; }
.cal-legend .is-svatek::before { background: var(--red); box-shadow: none; }
.cal-legend .is-skola::before { background: var(--page); }
@media (min-width: 560px) { .cal { padding: 22px 20px 18px; } .cal-days { gap: 7px; } .cal-days li { min-height: 86px; padding: 9px 4px 8px; } .cal-days em { display: block; margin-top: 4px; } }
/* Chalk: the K+M+B blessing written over a wooden door frame. */
.article-body .chalk { position: relative; margin: 4px 0; padding: 26px 18px; border-radius: 6px; text-align: center; background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .07) 0 2px, transparent 2px 46px), linear-gradient(180deg, #6b4428, #4a2d19); box-shadow: inset 0 0 0 6px #3b2312, inset 0 0 30px rgba(0, 0, 0, .45), 0 18px 32px -24px rgba(40, 20, 5, .8); }
.chalk span { display: inline-block; font: 700 clamp(2rem, 9vw, 3.4rem)/1 var(--font-hand); letter-spacing: .06em; color: rgba(255, 252, 240, .92); text-shadow: 0 0 1px rgba(255, 255, 255, .6), 1px 1px 0 rgba(255, 255, 255, .15); transform: rotate(-1.5deg); }
/* Wishes: ready-made texts on small paper notes with a copy button. */
.wishes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wishes li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 14px 14px 18px; border-radius: var(--r); background: var(--paper); box-shadow: inset 3px 0 0 var(--gold), inset 0 0 0 1px var(--line); }
.article-body .wishes p { font-size: 1.02rem; line-height: 1.6; color: var(--ink); white-space: pre-line; }
.wish-copy { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border: 0; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line-2); font: 700 .8rem/1 var(--font-text); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.wish-copy .i { width: 15px; height: 15px; }
.wish-copy:hover, .wish-copy:focus-visible { box-shadow: inset 0 0 0 1.5px var(--gold); color: var(--ink); }
.wish-copy.is-done { background: var(--gold-tint); box-shadow: inset 0 0 0 1.5px var(--gold); color: var(--gold-deep); }
@media (max-width: 420px) { .wishes li { grid-template-columns: 1fr; } .wish-copy { justify-self: start; } }
/* Download card: one printable file with its preview. */
.download-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px; border-radius: var(--r-lg); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line), 0 18px 30px -26px rgba(60, 40, 10, .55); text-decoration: none; color: inherit; transition: transform .2s var(--ease); }
.download-card:hover { transform: translateY(-2px); }
.download-card img { width: 100%; height: auto; border-radius: 5px; box-shadow: 0 0 0 1px var(--line), 0 8px 16px -12px rgba(60, 40, 10, .5); transform: rotate(-2deg); }
.download-card > span { display: grid; gap: 4px; }
.download-card strong { font: 700 1.05rem/1.3 var(--font-display); color: var(--ink); }
.download-card > span > span { font-size: .92rem; line-height: 1.5; color: var(--ink-2); }
.download-card .download-card-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-weight: 800; color: var(--red); }
.download-card-cta .i { width: 17px; height: 17px; }
/* Card maker: the letter builder's layout without the layout step. */
.card-sheet { width: min(100%, 340px); aspect-ratio: 1024 / 1448; transform: rotate(-.8deg); border-radius: 3px; overflow: hidden; background: var(--paper-2); box-shadow: 0 1px 2px rgba(60, 40, 10, .25), 0 26px 44px -26px rgba(60, 40, 10, .55); }
.card-sheet img, .card-sheet canvas { display: block; width: 100%; height: 100%; }
.card-sheet [hidden] { display: none; }
.card-tool textarea { width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line-2); font: 600 1.3rem/1.3 var(--font-hand); color: var(--ink); resize: vertical; }
.card-tool textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--gold); }
@media (min-width: 760px) {
  .card-tool { grid-template-areas: "frames preview" "texts preview" "actions preview"; }
  .card-texts { grid-area: texts; }
}
.card-gallery { display: grid; gap: 8px; }
.card-gallery ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; }
.card-gallery a { display: grid; gap: 6px; text-decoration: none; color: var(--ink-2); font-size: .82rem; font-weight: 700; }
.card-gallery img { width: 100%; height: auto; border-radius: 4px; box-shadow: 0 0 0 1px var(--line), 0 10px 18px -12px rgba(60, 40, 10, .55); transition: transform .2s var(--ease); }
.card-gallery a:hover img { transform: translateY(-3px) rotate(-1deg); }
.card-gallery a span { display: inline-flex; align-items: center; gap: 5px; }
.card-gallery .i { width: 15px; height: 15px; color: var(--red); }
@media (min-width: 640px) { .card-gallery ul { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.letter-snap .letter-print canvas { display: block; width: 100vw; height: 100vh; }
