/* Hallmark · shape: Long Document (kept) · genre: editorial · theme: Rim (by request) · redesign: restyle · copy: verbatim
 * hero: Banner (/, /category/*, /posts/*), kept · nav: edge-aligned, shared with amintaheri23.github.io · footer: social row over the colophon line · imagery: the owner's photographs and the post images in true colour, each in a frame · signature: the blog's own title set as a masthead over a ruled, numbered index of every post · rim: night
 * axes: dark/grotesk-sans/warm · posture: committed · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S3 R5 V3 · weakest: S, a blog index and a reading column could belong to any writer; kept it the owner's by setting his own odd title as the masthead, numbering his posts as the old site did and keeping his » meta lines, and V is low on purpose: the blog shares the main site's locked Rim system */
/* Hallmark · finish-review: in-thread (no subagent tool in this harness) · 2 findings · 2 resolved · gap: none; the » and date in the post index now stay together on a phone, and the search field shows its label on desktop as the old sidebar showed a hint */
/* Hallmark · waive 49b · reference links in the posts are the owner's full paper and page titles · on a 320px phone a title like the Molmo or arXiv paper names cannot shorten without rewriting his copy */
/* Hallmark · dismissed 76 · the Colab logo (Wikimedia Commons) and the Unsplash running photo are images the owner placed in his own posts, linked as he wrote them; this sandbox cannot reach those hosts, so they do not paint in the shots */
/* Hallmark · dismissed F1 · the straight apostrophe is in the owner's post title (Garmin's), which Zola prints as written */
/* Hallmark · dismissed F21 · the skipped heading levels are in the owner's post bodies, kept verbatim */
/* Hallmark · dismissed F23 · the pages without a description are redirect pages for old addresses, marked noindex */
/* Hallmark · dismissed render · api.fontshare.com is unreachable from this sandbox; Switzer is installed locally for the checks, so the shots show the real face */
/* Hallmark · note photo · natural, untreated: the owner's photographs show in true colour in a frame, so Rim's sat=-20 con=10 treatment is not applied */
/* Hallmark · note spelling · the posts were checked for spelling and none needed fixing; the only post text changes are the em dash replacements recorded below, at the owner's request */
/* Hallmark · reworded "Powered by Jekyll." to "Powered by Zola." · the footer names the new generator */
/* Hallmark · dropped the share buttons, _includes/share-page.html, twitter.com/share, fb-root · the Tweet row under every post is gone with the old theme */
/* Hallmark · dropped Super Search, super-search.js, super-search.css, js-search, tag-filter · replaced by the nav search (#search-input) over Zola's search index; the RSS sitemap.xml it read is relinked below */
/* Hallmark · dropped jQuery 1.11, /jquery/1.11.0/jquery.min.js, jquery-migrate-1.2.1.min.js · site.js is plain JavaScript with no dependencies */
/* Hallmark · dropped Bootstrap 3, bootstrap.min.js, bootstrap.min.css · the layout is tokens.css, base.css, site.css and blog.css */
/* Hallmark · dropped Thickbox, thickbox-compressed.js, thickbox.css, loadingAnimation.gif, macFFBgHack.png · no post opens an image in a lightbox */
/* Hallmark · dropped Font Awesome 4 (css, map and fonts) · the five social icons are inline SVG from Font Awesome Free 6.7.2 */
/* Hallmark · dropped compress_html · minify_html is off, so the HTML ships as written */
/* Hallmark · dropped the GitHub star and fork iframes · the footer links the GitHub profile in its own line */
/* Hallmark · dropped Google Fonts Roboto Condensed and the local Roboto files · Switzer from Fontshare is the one face, as on the main site */
/* Hallmark · dropped main.css, syntax.css, projects.css, fonts.css, projects.js, dark_dotted2.png, subtle_dots.png · the old theme's sheets, script and dotted backgrounds */
/* Hallmark · dropped the Projects page, projects, /blog/projects/ · the nav link is gone at the owner's request; /blog/projects/ itself redirects to the main site's #projects */
/* Hallmark · dropped CLAUDE.html, CLAUDE.md, README.md, LICENSE, assets/css/style.css, blog project notes, blog-project-notes, post conventions, post-conventions, writing style, writing-style, images, git · repo files the legacy Pages builder published by accident, with their headings */
/* Hallmark · relinked each old post URL /blog/<categories>/<y>/<m>/<d>/<slug>.html to /blog/posts/<slug>/ · Zola alias page: location.replace keeping the hash, a noscript refresh and a canonical link */
/* Hallmark · relinked /blog/blog/<…>.html to the same canonical post · the old feed's broken links and GUIDs now land on the post */
/* Hallmark · relinked /blog/sitemap.xml from the RSS clone to Zola's real sitemap */
/* Hallmark · relinked prev, next, related and home post links to the canonical permalinks · the old ones pointed at the domain root, /blog/blog//… and \blog\/… */
/* Hallmark · relinked the 21 /blog/category/<name>.html to /blog/category/<name>/ · the 11 empty ones (bash, codefights, django, jekyll, nginx, raspberry, ruby, security, server, ssl, ubuntu) go to /blog/category/ */
/* Hallmark · relinked /blog/projects/ to https://amintaheri23.github.io/#projects · static redirect page */
/* Hallmark · dropped /2024/, /2025/, /2026/, /, /blog, /blog/about/, /blog/feed.xml, /blog/category/ · not dropped but relinked as listed above: every old post, home, About, feed and category link now uses its absolute Zola URL (get_url), so the old relative strings are gone while each target still resolves */
/* Hallmark · dropped articles by category:, 2024, 2025, 2026, $3 · the old category pages at /category/<name>.html are redirect pages now; the same heads and year heads live on /category/<name>/ */
/* Hallmark · dropped googletagmanager.com/gtag/js · only on the old post addresses, which are redirect pages now; the post each one forwards to loads the same Google tag */
/* Hallmark · dropped amin taheri, home · the old sidebar's name heading and #home anchor; the name is now the nav brand, linking the main site */
/* Hallmark · note the pain post · the pain post, never published by Jekyll (the file lacked .md), is now published */
/* Hallmark · note 63 · the » in the post meta and list lines is the owner's own punctuation from the old site; the pager's « and » sit outside the links as direction marks */
/* Hallmark · note 58 · copy: verbatim; the posts are long reads in the owner's words, so the screen budget is a note */
/* Hallmark · relinked category other to others · the ESG post's category other is merged into others at the owner's request; /blog/category/other and other.html redirect to /blog/category/others/ */
/* Hallmark · reworded the displayed post dates from the UTC day to the local (Newfoundland, -02:30) day · at the owner's request; e.g. a post written 7 Dec 22:34 now shows 07 Dec 2025, not 08 Dec; the old URLs keep their UTC dates */
/* Hallmark · reworded "I see a line — an axis, or even a vector — connecting" to "I see a line (an axis, or even a vector) connecting", "bound by codes — not genetic codes" to "bound by codes: not genetic codes", "sometimes collapse — much like" to "sometimes collapse, much like", "something greater — into global" to "something greater, into global", "new “code” — DNA for organisms, laws for societies — that enables" to "new “code” (DNA for organisms, laws for societies) that enables" · 2025-12-06-A-Continuum-of-Complexity.md: em dashes replaced with a comma, colon, semicolon, full stop or parentheses, per CLAUDE.md, at the owner's request */
/* Hallmark · reworded "focused product — a blind-typing" to "focused product: a blind-typing", "output they want — a blog post" to "output they want: a blog post", "space—a massive growth" to "space, a massive growth", "feature immediately—showing" to "feature immediately, showing" · 2025-12-06-blind-typing-editor.md: em dashes replaced with a comma, colon, semicolon, full stop or parentheses, per CLAUDE.md, at the owner's request */
/* Hallmark · reworded "rule for myself — don’t correct" to "rule for myself: don’t correct", "type faster — not for speed’s sake" to "type faster, not for speed’s sake", "record ideas — it pressures" to "record ideas; it pressures", "produced clarity — a clearer sense" to "produced clarity: a clearer sense" · 2025-12-06-blind-typing.md: em dashes replaced with a comma, colon, semicolon, full stop or parentheses, per CLAUDE.md, at the owner's request */
/* Hallmark · reworded "lives in your home—one that" to "lives in your home, one that", "PC or laptop—no cloud required." to "PC or laptop (no cloud required).", "just a feature—it’s essential" to "just a feature; it’s essential", "open question—one that" to "open question, one that", "corporate middleware—just you" to "corporate middleware: just you", "and personality—but one" to "and personality, but one", "challenges remain—from efficient local AI processing to determining practical household actions—the core" to "challenges remain (from efficient local AI processing to determining practical household actions), the core" · 2025-12-06-offline-robot-pet.md: em dashes replaced with a comma, colon, semicolon, full stop or parentheses, per CLAUDE.md, at the owner's request */
/* Hallmark · reworded "departments—for example, the specific curriculum within the Faculty of Business or the foundational concepts within the Faculty of Arts." to "departments (for example, the specific curriculum within the Faculty of Business or the foundational concepts within the Faculty of Arts).", "has been done—and is currently being done—in fields" to "has been done (and is currently being done) in fields", "top down—starting with" to "top down, starting with" · 2025-12-06-top-down-model-education.md: em dashes replaced with a comma, colon, semicolon, full stop or parentheses, per CLAUDE.md, at the owner's request */
/* Hallmark · reworded "surplus of synapses—far more" to "surplus of synapses, far more", "layers mid-training—starting" to "layers mid-training, starting", "language datasets—basic sentence" to "language datasets: basic sentence", "linguistic phenomena—nuanced syntax" to "linguistic phenomena: nuanced syntax", "strategy—combining architectural refinement with progressive learning—has proven" to "strategy (combining architectural refinement with progressive learning) has proven", "three elements—abundant" to "three elements (abundant", "increasing difficulty—that could" to "increasing difficulty) that could", "industry problem—companies" to "industry problem; companies", "Cannot evaluate—this requires" to "Cannot evaluate; this requires", "Cannot evaluate—requires" to "Cannot evaluate; requires" · 2025-12-07-Biological-Learning-Meets-LLM-Training-A-Case-for-Curriculum-Learning-with-Dynamic-Architecture.md: em dashes replaced with a comma, colon, semicolon, full stop or parentheses, per CLAUDE.md, at the owner's request */
/* Hallmark · reworded "between 0 and 1—no additional text" to "between 0 and 1, no additional text", "hadn’t considered—it can identify" to "hadn’t considered: it can identify", "million images—a fraction" to "million images, a fraction", "proper solution—one that’s" to "proper solution, one that’s", "technical achievement—it’s a foundation" to "technical achievement; it’s a foundation", "22/30 — Incubate" to "22/30: Incubate", "Execute now—this is ready" to "Execute now; this is ready", "Incubate — Publish if" to "Incubate. Publish if" · 2025-12-07-vlm-spatial-blog.md: em dashes replaced with a comma, colon, semicolon, full stop or parentheses, per CLAUDE.md, at the owner's request */
/* Hallmark · reworded "universal language—one that crosses" to "universal language, one that crosses", "teaching—formal or informal—is the act" to "teaching (formal or informal) is the act", "learning—and helping others learn—lies" to "learning (and helping others learn) lies" · 2025-12-11-pain-learning-craft-of-teacher.md: em dashes replaced with a comma, colon, semicolon, full stop or parentheses, per CLAUDE.md, at the owner's request */

/* Shared components only, as on amintaheri23.github.io (the main site's site.css, without the hero,
   gallery, lightbox, filters, panels and contact rules the blog has no markup for).
   Load order: tokens.css, base.css, site.css, then blog.css. */

:root {
  --nav-h: 64px;
  --radius-chip: 0;
  --icon-size: 1.25rem;
}

/* ---------- Document ---------- */
html, body { overflow-x: clip; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
[id] { scroll-margin-top: calc(var(--nav-h) + var(--space-md)); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

a { color: var(--color-ink); text-decoration-color: var(--color-muted-2); transition: color var(--dur-short) var(--ease-out), text-decoration-color var(--dur-short) var(--ease-out); }
a:hover { color: var(--color-accent); text-decoration-color: currentColor; }
a:active { color: var(--color-focus); }
a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: 0; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.icon { width: var(--icon-size); height: var(--icon-size); flex-shrink: 0; fill: currentColor; }

/* Skip link: off screen until focused, then on top of the nav. */
.skip-link { position: absolute; top: var(--space-xs); left: var(--space-xs); z-index: var(--z-modal); padding: var(--space-xs) var(--space-md); background: var(--color-paper-2); color: var(--color-ink); border: var(--rule-hair) solid var(--color-rule); font-weight: 500; text-decoration: none; transform: translateY(calc(-100% - var(--space-md))); }
.skip-link:focus, .skip-link:focus-visible { transform: none; outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--color-muted); }

/* Rim heads: Switzer 500, the masthead at --tracking-display, section heads at -0.03em, line-height 1.02. */
h1, h2 { line-height: 1.02; }
h2 { letter-spacing: -0.03em; }
h3 { letter-spacing: -0.02em; }

/* ---------- Buttons (the Rim pair: square orange primary, square outlined secondary) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  min-height: 44px; padding: 0 var(--space-md);
  border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill);
  background: var(--color-paper-2); color: var(--color-ink);
  font: 500 var(--text-md)/1 var(--font-body); letter-spacing: 0;
  white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.btn:hover { background: var(--color-rule); border-color: var(--color-muted); color: var(--color-ink); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.btn--primary { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: color-mix(in oklab, var(--color-accent) 85%, var(--color-ink)); border-color: color-mix(in oklab, var(--color-accent) 85%, var(--color-ink)); color: var(--color-accent-ink); }
.btn--primary:active { background: color-mix(in oklab, var(--color-accent) 88%, var(--color-accent-ink)); border-color: color-mix(in oklab, var(--color-accent) 88%, var(--color-accent-ink)); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* ---------- Chips (the current state = orange edge on a dark orange fill) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin: 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: var(--space-2xs); min-height: 44px; padding: 0 var(--space-sm);
  border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-chip);
  background: var(--color-paper); color: var(--color-ink-2);
  font: 500 var(--text-sm)/1 var(--font-body); letter-spacing: 0; white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out);
}
.chip:hover { border-color: var(--color-muted-2); background: var(--color-paper-2); color: var(--color-ink); }
.chip:active { background: var(--color-rule); }
.chip:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.chip[aria-pressed="true"], .chip[aria-current="page"] { background: var(--color-accent-soft); border-color: var(--color-accent); color: var(--color-ink); }
.chip[aria-pressed="true"]:hover, .chip[aria-current="page"]:hover { border-color: var(--color-accent); background: var(--color-accent-soft); color: var(--color-ink); }
.chip:disabled, .chip[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { .chip { transition: none; } }

/* ---------- Figures and photographs ---------- */
figure { margin: 0; }
figcaption { margin-top: var(--space-xs); font-size: var(--text-sm); line-height: 1.45; color: var(--color-muted); }
picture { display: block; }
/* Every picture sits in a .frame: true colour on a paper-3 ground, so an image that has not painted yet (or a letterboxed one) shows the deepest step. */
.frame { display: block; background: var(--color-paper-3); border-radius: var(--radius-card); outline: var(--rule-hair) solid var(--color-rule); outline-offset: -1px; overflow: hidden; }

/* ---------- Social links ---------- */
.social { display: flex; flex-wrap: wrap; gap: var(--space-2xs); margin: 0; padding: 0; list-style: none; }
.social__link { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius-pill); color: var(--color-muted); transition: color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.social__link:hover { color: var(--color-ink); background: var(--color-paper-2); }
.social__link:active { background: var(--color-rule); }
.social__link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-paper); border-bottom: var(--rule-hair) solid var(--color-rule); }
.nav__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: var(--space-lg); min-height: calc(var(--nav-h) - var(--rule-hair)); }
.nav__brand { font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); letter-spacing: -0.01em; color: var(--color-ink); text-decoration: none; white-space: nowrap; padding-block: var(--space-xs); }
.nav__brand:hover { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-muted-2); }
.nav__links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2xs) var(--space-md); margin: 0; padding: 0; list-style: none; font-size: var(--text-sm); }
.nav__links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; color: var(--color-muted); text-decoration: none; white-space: nowrap; }
.nav__links a:hover { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-muted-2); }
.nav__links a[aria-current="page"] { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 0.4em; }
.nav__toggle { display: none; align-items: center; gap: var(--space-xs); min-height: 44px; padding: 0 var(--space-sm); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill); background: var(--color-paper-2); color: var(--color-ink); font: 500 var(--text-sm)/1 var(--font-body); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.nav__toggle:hover { background: var(--color-rule); }
.nav__toggle:active { background: var(--color-paper-3); }
.nav__toggle:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.nav__toggle:disabled { opacity: 0.55; cursor: not-allowed; }
.nav__toggle[aria-expanded="true"] { background: var(--color-accent-soft); border-color: var(--color-accent); }
@media (max-width: 60rem) {
  .nav__links { padding-bottom: var(--space-xs); column-gap: var(--space-md); }
  /* With JS the toggle is revealed and collapses the links; without JS the links simply wrap. */
  .js .nav__toggle:not([hidden]) { display: inline-flex; }
  .js .nav__toggle:not([hidden]) ~ .nav__links { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; border-top: var(--rule-hair) solid var(--color-rule); padding-block: var(--space-xs); }
  .js .nav__toggle:not([hidden]) ~ .nav__links a { width: 100%; font-size: var(--text-md); }
  .js .nav__toggle[aria-expanded="false"]:not([hidden]) ~ .nav__links { display: none; }
}

/* ---------- Footer ---------- */
.footer { margin-top: var(--section-gap-s); padding-block: var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule); }

@media (prefers-reduced-motion: reduce) { .nav__toggle, .social__link, a { transition: none; } }
