/* Beuk — the Beuk Blog (/blog, /blog/<slug>; src/blog/render.ts) in the
   public site's own look: loaded after /site/site.css, whose tokens, top
   bar and footer it uses, as /school with school.css and /privacy with
   legal.css. The articles are content/blog/en/*, as written; this sheet
   only sets them: the index as tiles, an article as a sheet of paper on
   the site's cream, with the articles' own devices (the drop cap, the
   labels, the check lists, the example boxes, the pull quote, the Beuk
   mark between sections) drawn in the site's colours. Light only, as the
   site. No new colours: every one is a site.css token. */

.blog-page main{padding:40px 0 8px}
@media(max-width:560px){.blog-page main{padding-top:20px}}

/* ---------------------------------------------------------------- the index */
.blog-head{max-width:760px;margin:0 0 30px}
.blog-head::before{content:"";display:block;width:46px;height:2px;background:var(--amber);margin:0 0 18px}
.blog-head h1{font-size:clamp(34px,5vw,52px);letter-spacing:-.015em}
.blog-deck{font-family:var(--book);font-style:italic;color:var(--muted);font-size:clamp(17px,2vw,19px);line-height:1.55;margin:12px 0 0;max-width:40em}

.blog-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px}
@media(max-width:980px){.blog-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.blog-list{grid-template-columns:1fr;gap:20px}}
.tile a{display:flex;flex-direction:column;height:100%;background:var(--card);border:1px solid var(--line);border-radius:16px;overflow:hidden;color:var(--ink);text-decoration:none;transition:transform .25s,box-shadow .25s}
.tile a:hover{transform:translateY(-2px);box-shadow:0 22px 40px -28px rgba(13,74,95,.45)}
.tile a:focus-visible{outline-offset:3px}
.t-pic{width:100%;aspect-ratio:11/6;object-fit:cover;background:var(--bg2);border-bottom:1px solid var(--line)}
.t-text{display:flex;flex-direction:column;gap:8px;padding:18px 20px 20px;flex:1}
.t-kick{font-size:11.5px;font-weight:800;letter-spacing:.22em;text-transform:uppercase;color:var(--accent)}
.t-new{margin-inline-start:8px;color:var(--amber2)}
.t-title{font-size:21px;line-height:1.2}
.t-stand{font-family:var(--book);color:var(--muted);font-size:15.5px;line-height:1.55}
.t-meta{margin-top:auto;padding-top:6px;font-size:13px;color:var(--muted)}

.tile.newest{grid-column:1/-1}
.tile.newest a{flex-direction:row}
.tile.newest .t-pic{width:58%;flex:none;aspect-ratio:auto;min-height:300px;border-bottom:0;border-inline-end:1px solid var(--line)}
.tile.newest .t-text{padding:30px 34px;justify-content:center}
.tile.newest .t-title{font-size:clamp(26px,3vw,34px)}
.tile.newest .t-stand{font-size:17px}
.tile.newest .t-meta{margin-top:6px}
@media(max-width:760px){
  .tile.newest a{flex-direction:column}
  .tile.newest .t-pic{width:100%;aspect-ratio:11/6;min-height:0;border-inline-end:0;border-bottom:1px solid var(--line)}
  .tile.newest .t-text{padding:20px}
}

/* ---------------------------------------------------------------- an article */
.crumbs{max-width:780px;margin:0 auto 14px;font-size:14px;font-weight:700}
.crumbs a{color:var(--accent2);text-decoration:none}
.crumbs a::before{content:"\2190\00a0"}
.crumbs a:hover{text-decoration:underline}

.post{max-width:780px;margin:0 auto;background:var(--card);border:1px solid var(--line);border-radius:16px;padding:52px 60px 44px;box-shadow:0 24px 48px -28px rgba(13,74,95,.35);color:var(--ink);font-family:var(--book);font-size:18px;line-height:1.7;overflow-wrap:break-word}
@media(max-width:700px){.post{padding:30px 22px 26px;border-radius:14px;font-size:17px}}
.post-head::before{content:"";display:block;width:46px;height:2px;background:var(--amber);margin:0 0 20px}
.post-kick{font-family:var(--ui);font-size:11.5px;font-weight:800;letter-spacing:.24em;text-transform:uppercase;color:var(--accent);margin:0 0 12px}
.post h1{font-size:clamp(30px,4.6vw,44px);letter-spacing:-.015em;margin:0 0 14px}
.post-stand{font-style:italic;color:var(--muted);font-size:clamp(18px,2.2vw,21px);line-height:1.5;margin:0 0 14px}
.post-meta{font-family:var(--ui);font-size:13.5px;color:var(--muted);margin:0 0 26px;padding-bottom:18px;border-bottom:1px solid var(--line)}
.post-meta:has(+ .post-note){margin-bottom:6px;padding-bottom:0;border-bottom:0}
.post-note{font-family:var(--ui);font-size:12.5px;font-style:italic;color:var(--muted);margin:0 0 26px;padding-bottom:18px;border-bottom:1px solid var(--line)}
.post-pic{margin:0 0 30px}
.post-pic img{width:100%;border-radius:10px;border:1px solid var(--line)}
.post-pic.tall img{width:auto;max-width:100%;max-height:560px;margin:0 auto}
/* a picture inside the article (import_post.py, pictures.txt): the lead picture's frame, between paragraphs */
.post-body figure.pic{margin:24px 0 26px}
.post-body figure.pic img{width:100%;border-radius:10px;border:1px solid var(--line)}
.post-body figure.pic.tall img{width:auto;max-width:100%;max-height:560px;margin:0 auto}
/* a row naming the group of rows under it (import_post.py: tr.grp, one cell across the table) */
.post-body tr.grp td{font-size:11.5px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--accent2);padding-top:16px}

.post-body h2{font-size:clamp(23px,2.8vw,28px);margin:6px 0 14px;scroll-margin-top:84px}
.post-body h3{font-size:20px;margin:26px 0 10px}
.post-body p{margin:0 0 16px}
.post-body a{color:var(--accent2);text-decoration-thickness:1px;text-underline-offset:2px;overflow-wrap:anywhere}
.post-body a:hover{color:var(--accent)}
.post-body strong,.post-body b{font-weight:650}
.post-body code{font-family:var(--mono);font-size:.84em;background:var(--bg2);border:1px solid var(--line);border-radius:6px;padding:1px 6px}
.post-body ul,.post-body ol{margin:0 0 18px;padding-inline-start:24px}
.post-body li{margin:6px 0}
.post-body li::marker{color:var(--amber2)}
.post sup{font-family:var(--ui);font-size:.62em;font-weight:700;line-height:0;margin-inline-start:1px}
.post sup a{color:var(--accent);text-decoration:none}
.post sup a:hover{text-decoration:underline}

.post-body p.lede::first-letter{float:left;font-weight:650;font-size:3.6em;line-height:.8;margin:.08em .1em 0 0;color:var(--accent2)}
.post-body p.label{font-family:var(--ui);font-size:12px;font-weight:800;letter-spacing:.2em;text-transform:uppercase;color:var(--amber2);margin:22px 0 6px}
.post-body .example{background:var(--bg2);border:1px solid var(--line);border-inline-start:3px solid var(--amber);border-radius:10px;padding:14px 20px 4px;margin:0 0 20px;font-size:.94em}
.post-body .example p.label{margin-top:4px}
.post-body ul.check,.post-body ol.check{list-style:none;padding:0}
.post-body ul.check li,.post-body ol.check li{position:relative;padding-inline-start:30px}
.post-body ul.check li::before{content:"";position:absolute;inset-inline-start:2px;top:.42em;width:14px;height:14px;border:1.5px solid var(--accent);border-radius:4px}
.post-body ol.check{counter-reset:check}
.post-body ol.check li{counter-increment:check}
.post-body ol.check li::before{content:counter(check);position:absolute;inset-inline-start:0;top:.12em;width:21px;height:21px;border:1.5px solid var(--accent);border-radius:50%;font-family:var(--ui);font-size:12px;font-weight:800;line-height:18px;text-align:center;color:var(--accent2)}

.post-body blockquote{margin:22px 0;padding:4px 0 4px 22px;border-inline-start:3px solid var(--accent);font-style:italic;font-size:1.08em}
.post-body blockquote p{margin:0 0 8px}
.post-body cite{display:block;font-family:var(--ui);font-style:normal;font-size:13px;font-weight:700;letter-spacing:.04em;color:var(--muted);margin-top:6px}
.post-body blockquote.excerpt{font-style:normal;font-size:.95em;background:var(--bg2);border:1px solid var(--line);border-inline-start:3px solid var(--accent);border-radius:10px;padding:14px 20px}
.post-body aside.pull{margin:28px 0;padding:18px 0;border-top:2px solid var(--amber);border-bottom:1px solid var(--line);text-align:center}
.post-body aside.pull p{font-size:clamp(20px,2.6vw,24px);font-style:italic;line-height:1.4;margin:0 0 8px;color:var(--accent2)}

.post-body .tablewrap{overflow-x:auto;margin:0 0 20px;border:1px solid var(--line);border-radius:10px}
.post-body table{width:100%;border-collapse:collapse;font-family:var(--ui);font-size:14.5px;line-height:1.45}
.post-body caption{caption-side:top;text-align:start;font-family:var(--book);font-style:italic;color:var(--muted);padding:10px 14px 4px}
.post-body th,.post-body td{text-align:start;vertical-align:top;padding:9px 14px;border-top:1px solid var(--line)}
.post-body thead th{background:var(--bg2);font-weight:800;border-top:0}
.post-body tbody th{font-weight:700}

.brk{display:flex;align-items:center;gap:14px;margin:30px 0 24px;color:var(--amber2)}
.brk span{flex:1;height:1px;background:var(--line)}
.brk .mark{flex:none}

.post-made{display:flex;align-items:center;gap:20px;margin:34px 0 8px;padding:18px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.post-made img{width:82px;height:auto;flex:none;transform:rotate(-3deg)}
.post-stamp{margin:0;flex:none;width:118px;text-align:center}
.post-stamp img{display:block;margin:0 auto}
.post-stamp figcaption{margin-top:10px;font-family:var(--ui);font-size:11.5px;line-height:1.35;color:var(--muted)}
.post-made p{margin:0;font-style:italic;color:var(--muted);font-size:15.5px;line-height:1.55}
@media(max-width:480px){.post-made{flex-direction:column;align-items:flex-start}}

/* site.css gives every <section> 64px of padding and .sources (the compare pages') a top rule: the stamp's rule is this one's */
.post .sources{margin-top:24px;padding:0;border-top:0;font-family:var(--ui);font-size:13.5px;line-height:1.55;color:var(--muted)}
.post .sources h2{font-family:var(--book);font-size:20px;color:var(--ink);margin:0 0 10px}
.post .sources ol{margin:0;padding-inline-start:26px}
.post .sources li{margin:0 0 9px;scroll-margin-top:84px}
.post .sources li::marker{color:var(--amber2);font-weight:700}
.post .sources li:target{background:var(--bg2);outline:1px solid var(--line);border-radius:6px}
.post .sources a{color:var(--accent2);overflow-wrap:anywhere}
.post .src-title{font-weight:700;color:var(--ink)}
/* every source the same way (2026-12-05): the title is the link, underlined in the link colour; no address is printed */
.post .src-title a{color:inherit;text-decoration:underline;text-decoration-color:var(--accent2);text-underline-offset:3px}
.post .src-title a:hover{color:var(--accent2)}
.post .src-pub{font-style:italic}

.post-more{max-width:780px;margin:22px auto 0;display:flex;justify-content:space-between;gap:16px}
.post-more a{flex:1;max-width:48%;display:flex;flex-direction:column;gap:3px;background:var(--card);border:1px solid var(--line);border-radius:12px;padding:12px 16px;color:var(--ink);text-decoration:none;font-family:var(--book);font-weight:600;line-height:1.3}
.post-more a span{font-family:var(--ui);font-size:11.5px;font-weight:800;letter-spacing:.2em;text-transform:uppercase;color:var(--accent)}
.post-more a.older span::before{content:"\2190\00a0"}
.post-more a.newer{text-align:end;margin-inline-start:auto}
.post-more a.newer span::after{content:"\00a0\2192"}
.post-more a:hover{border-color:var(--accent)}
@media(max-width:560px){.post-more{flex-direction:column}.post-more a{max-width:none}}
