@charset "UTF-8";
/* Arnesano "Heron" theme, ported from jobs.arnesano.xyz for a reading-first blog.
   Same palette, type and rhythm as the jobs site; article typography, callouts,
   code, tables, figures, Mermaid, breadcrumb and chapter navigation are new. */

/* Geist and Geist Mono v1.8.1, SIL OFL 1.1: /assets/fonts/LICENSE.txt. */
@font-face { font-family: "Geist"; src: url("/assets/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
/* Excalifont (Excalidraw), SIL OFL 1.1: /assets/fonts/LICENSE-Excalifont.txt. Only Mermaid diagrams use it,
   so the browser fetches the subsets on diagram pages only. Subsets and ranges as shipped by Excalidraw. */
@font-face { font-family: "Excalifont"; font-display: swap; src: url("/assets/fonts/Excalifont-Regular-a88b72a24fb54c9f94e3b5fdaa7481c9.woff2") format("woff2"); unicode-range: U+20-7e,U+a0-a3,U+a5-a6,U+a8-ab,U+ad-b1,U+b4,U+b6-b8,U+ba-ff,U+131,U+152-153,U+2bc,U+2c6,U+2da,U+2dc,U+304,U+308,U+2013-2014,U+2018-201a,U+201c-201e,U+2020,U+2022,U+2024-2026,U+2030,U+2039-203a,U+20ac,U+2122,U+2212; }
@font-face { font-family: "Excalifont"; font-display: swap; src: url("/assets/fonts/Excalifont-Regular-be310b9bcd4f1a43f571c46df7809174.woff2") format("woff2"); unicode-range: U+100-130,U+132-137,U+139-149,U+14c-151,U+154-17e,U+192,U+1fc-1ff,U+218-21b,U+237,U+1e80-1e85,U+1ef2-1ef3,U+2113; }
@font-face { font-family: "Excalifont"; font-display: swap; src: url("/assets/fonts/Excalifont-Regular-b9dcf9d2e50a1eaf42fc664b50a3fd0d.woff2") format("woff2"); unicode-range: U+400-45f,U+490-491,U+2116; }
@font-face { font-family: "Excalifont"; font-display: swap; src: url("/assets/fonts/Excalifont-Regular-41b173a47b57366892116a575a43e2b6.woff2") format("woff2"); unicode-range: U+37e,U+384-38a,U+38c,U+38e-393,U+395-3a1,U+3a3-3a8,U+3aa-3cf,U+3d7; }
@font-face { font-family: "Excalifont"; font-display: swap; src: url("/assets/fonts/Excalifont-Regular-3f2c5db56cc93c5a6873b1361d730c16.woff2") format("woff2"); unicode-range: U+2c7,U+2d8-2d9,U+2db,U+2dd,U+302,U+306-307,U+30a-30c,U+326-328,U+212e,U+2211,U+fb01-fb02; }
@font-face { font-family: "Excalifont"; font-display: swap; src: url("/assets/fonts/Excalifont-Regular-349fac6ca4700ffec595a7150a0d1e1d.woff2") format("woff2"); unicode-range: U+462-463,U+472-475,U+4d8-4d9,U+4e2-4e3,U+4e6-4e9,U+4ee-4ef; }
@font-face { font-family: "Excalifont"; font-display: swap; src: url("/assets/fonts/Excalifont-Regular-623ccf21b21ef6b3a0d87738f77eb071.woff2") format("woff2"); unicode-range: U+300-301,U+303; }

:root {
  color-scheme: light;
  --paper: #f4efe6; --panel: #faf9f6; --soft: #eeeae3; --ink: #24211d; --muted: #665f55;
  --line: #d8d1c6; --rule: #8f8574; --accent: #9e5220;
  --warn: #8a5a12; --danger: #93362a;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: clamp(16px, 5vw, 80px); --section: clamp(64px, 9vw, 144px); --gap: clamp(24px, 3vw, 48px);
  --measure: 70ch; --column: 880px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Base */
* { box-sizing: border-box; }
html { scroll-padding-top: 2rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--ink); color: var(--paper); }
img, svg { max-width: 100%; }
.wrap { width: min(1280px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.skip { position: absolute; z-index: 9; left: 1rem; top: -5rem; padding: .75rem 1rem; background: var(--panel); color: var(--ink); }
.skip:focus { top: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Labels share the text typeface, mono only for small meta. */
.eyebrow, .category-label, .section-count, .card-meta, .card-action { font-family: var(--sans); font-size: .8125rem; font-weight: 450; letter-spacing: 0; text-transform: none; }
.meta, time, .breadcrumb, .callout-title, .pager span, .source, .synced { font-family: var(--mono); font-size: .6875rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }

/* Header: quiet text row, no boxes. */
.header { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: var(--gap); }
.brand { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; text-decoration: none; font-size: 1rem; font-weight: 600; letter-spacing: -.01em; text-transform: uppercase; }
.brand-suffix { color: var(--muted); font-size: .8125rem; font-weight: 400; text-transform: none; }
.profile-icon { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.header nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.5rem); }
.header nav a { font-size: .9375rem; text-decoration: none; padding-block: .65rem; border-bottom: 1px solid transparent; transition: color .2s var(--ease), border-color .2s var(--ease); }
.header nav a:hover { color: var(--accent); border-bottom-color: currentColor; }
.header nav a[aria-current] { color: var(--ink); border-bottom-color: var(--accent); }

/* Welcome: calm, generous, one hairline closes it. */
.hero { color: var(--ink); }
.hero-inner { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: clamp(440px, calc(82svh - 96px), 760px); padding-block: var(--section); }
.hero-inner::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: var(--line); }
.hero .eyebrow { margin: 0 0 clamp(24px, 4vw, 48px); color: var(--muted); }
.hero h1 { margin: 0; max-width: 14ch; font-size: clamp(3rem, 9vw, 8.5rem); line-height: .9; font-weight: 600; letter-spacing: -.05em; text-transform: uppercase; hyphens: manual; overflow-wrap: break-word; }
.hero-lead { margin: clamp(32px, 5vw, 64px) 0 0; max-width: 36ch; color: var(--muted); font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.55; }
.hero-links { margin: 24px 0 0; }
.hero-links a { color: var(--accent); }

/* Collection welcome: shorter, with the intro as lead text. */
.hero-collection .hero-inner { min-height: 0; padding-block: clamp(48px, 7vw, 112px) clamp(40px, 5vw, 72px); }
.hero-collection h1 { font-size: clamp(2.5rem, 7vw, 6rem); max-width: 16ch; }
.intro { max-width: 60ch; margin-top: clamp(24px, 4vw, 48px); color: var(--muted); font-size: clamp(1.125rem, 1.6vw, 1.25rem); line-height: 1.55; }
.intro p { margin: 0 0 1em; }
.intro p:last-child { margin-bottom: 0; }
.intro a { color: var(--ink); text-decoration-color: var(--line); }
.intro a:hover { color: var(--accent); text-decoration-color: currentColor; }

/* Section heading: large title, quiet count. */
.collections, .posts, .chapters { padding-block: var(--section); }
.posts { padding-top: 0; }
.section-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: clamp(40px, 6vw, 80px); }
.section-top h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.5rem); line-height: .95; font-weight: 600; letter-spacing: -.04em; text-transform: uppercase; }
.section-count { color: var(--muted); }

/* Collection cards share the jobs cards' soft surface and rounded corners. */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: var(--gap); }
.card { position: relative; display: flex; flex-direction: column; padding: clamp(24px, 2.6vw, 40px); background: var(--panel); border-radius: 20px; box-shadow: 0 8px 28px #52402d08; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.category-label { margin: 0; color: var(--muted); }
.card h3 { margin: clamp(32px, 4vw, 56px) 0 16px; font-size: clamp(1.5rem, 2vw, 1.875rem); line-height: 1; font-weight: 600; letter-spacing: -.035em; text-transform: uppercase; }
.card-title { text-decoration: none; }
.card-title::after { content: ""; position: absolute; inset: 0; border-radius: 20px; }
.card-title:focus-visible { outline: 0; }
.card:has(.card-title:focus-visible) { outline: 2px solid var(--accent); outline-offset: 4px; }
.card p { margin: 0 0 24px; color: var(--muted); }
.card .card-meta { margin-top: auto; margin-bottom: 0; }
.card-action { margin: 0; padding-top: 20px; color: var(--ink); }
.card-action::before { content: "→ "; content: "→ " / ""; color: var(--accent); }
.card:hover, .card:focus-within { box-shadow: 0 16px 40px #52402d14; }
.card:hover .card-action, .card:focus-within .card-action { color: var(--accent); }
.card .coffee { position: relative; z-index: 1; align-self: flex-start; }

/* The one accent button. */
.coffee { display: inline-block; margin-top: 24px; padding: 0 24px; background: var(--accent); color: var(--panel); line-height: 52px; text-decoration: none; font-family: var(--mono); font-size: .8125rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; transition: background-color .2s var(--ease); }
.coffee:hover { background: var(--ink); color: var(--panel); }
.hero .coffee { margin-top: clamp(28px, 4vw, 40px); align-self: flex-start; }

/* Lists of chapters and posts: hairlines and whitespace, no boxes. */
.chapter-group + .chapter-group { margin-top: clamp(48px, 6vw, 96px); }
.chapter-group h2 { margin: 0 0 clamp(20px, 3vw, 32px); font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1; font-weight: 600; letter-spacing: -.035em; text-transform: uppercase; }
.chapter-list, .post-list { list-style: none; margin: 0; padding: 0; max-width: var(--column); }
.chapter-list li, .post-list li { padding: clamp(20px, 3vw, 28px) 0; border-top: 1px solid var(--line); }
.chapter-list li:last-child, .post-list li:last-child { border-bottom: 1px solid var(--line); }
.chapter-list h3, .post-list h3 { margin: 0 0 8px; font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.1; font-weight: 600; letter-spacing: -.03em; text-transform: uppercase; }
.chapter-list h3 a, .post-list h3 a { text-decoration: none; transition: color .2s var(--ease); }
.chapter-list h3 a::before, .post-list h3 a::before { content: "→ "; content: "→ " / ""; color: var(--accent); }
.chapter-list h3 a:hover, .post-list h3 a:hover { color: var(--accent); }
.chapter-list p, .post-list p { margin: 0; max-width: var(--measure); color: var(--muted); }
.post-list time { display: block; margin-bottom: 12px; color: var(--accent); }
.synced { margin: clamp(32px, 4vw, 48px) 0 0; color: var(--muted); }
.empty { margin: 0; color: var(--muted); font-size: 1.125rem; }

/* Article: one calm column, like the offer detail on the jobs site. */
.article { max-width: var(--column); padding-block: clamp(32px, 5vw, 64px) var(--section); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .5rem .75rem; margin: 0 0 clamp(32px, 5vw, 64px); padding: 0; list-style: none; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; content: "/" / ""; margin-right: .75rem; color: var(--line); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.article-head { margin-bottom: clamp(32px, 5vw, 56px); }
.article-head .eyebrow { margin: 0 0 clamp(16px, 2vw, 24px); color: var(--muted); }
.article-head time { color: var(--accent); }
.article-head h1 { margin: 0; font-size: clamp(2rem, 4.4vw, 3.75rem); line-height: .95; font-weight: 600; letter-spacing: -.045em; text-transform: uppercase; hyphens: auto; }

/* Prose: measure for text, full column for diagrams, code and tables. */
.prose { font-size: 1.0625rem; line-height: 1.7; }
.prose > p, .prose > ul, .prose > ol, .prose > dl, .prose > blockquote, .prose > h2, .prose > h3, .prose > h4, .prose .callout { max-width: var(--measure); }
.prose p { margin: 0 0 1.25em; }
.prose a { color: var(--accent); text-decoration-color: var(--line); transition: text-decoration-color .2s var(--ease); }
.prose a:hover { text-decoration-color: currentColor; }
.prose h2, .prose h3, .prose h4 { position: relative; line-height: 1.2; font-weight: 600; letter-spacing: -.025em; margin: 2.4em 0 .8em; scroll-margin-top: 2rem; }
.prose h2 { font-size: 1.625rem; letter-spacing: -.03em; }
.prose h3 { font-size: 1.25rem; }
.prose h4 { font-size: 1.0625rem; text-transform: uppercase; letter-spacing: -.01em; }
.prose h2 + h3 { margin-top: 1.2em; }
.headerlink { margin-left: .4em; color: var(--accent); text-decoration: none; opacity: 0; transition: opacity .2s var(--ease); }
.prose :is(h2, h3, h4):hover .headerlink, .headerlink:focus-visible { opacity: 1; }
.prose ul, .prose ol { margin: 0 0 1.25em; padding-left: 1.4rem; }
.prose li { margin: .35em 0; }
.prose li > p { margin-bottom: .6em; }
.prose strong { font-weight: 600; }
.prose hr { margin: 2.5em 0; border: 0; border-top: 1px solid var(--line); }
.prose blockquote { margin: 1.75em 0; padding: 0 0 0 1.25rem; border-left: 2px solid var(--rule); color: var(--muted); }
.prose blockquote p { margin-bottom: .75em; }
.prose dl dt { font-weight: 600; }
.prose dl dd { margin: 0 0 .75em; }
.prose sup { line-height: 1; }
.footnote { margin-top: 3em; font-size: .9375rem; color: var(--muted); }
.footnote hr { display: none; }

/* Callouts: one accent line, quiet surface. */
.callout { --callout: var(--accent); margin: 1.75em 0; padding: 1rem 1.25rem; background: var(--panel); border-left: 3px solid var(--callout); border-radius: 0 12px 12px 0; }
.callout-warning { --callout: var(--warn); }
.callout-caution { --callout: var(--danger); }
.callout-title { margin: 0 0 .4rem; color: var(--callout); }
.callout p { margin-bottom: .75em; }
.callout > :last-child { margin-bottom: 0; }

/* Code: fenced blocks on the soft surface, inline code small and quiet. */
.prose code { font-family: var(--mono); font-size: .9em; font-variant-ligatures: none; }
.prose :not(pre) > code { padding: .1em .4em; background: var(--soft); border-radius: 4px; }
.prose pre { margin: 1.75em 0; padding: 1rem 1.25rem; background: var(--soft); border-radius: 12px; overflow-x: auto; font-size: .875rem; line-height: 1.6; }
.prose pre code { font-size: inherit; background: none; padding: 0; }

/* Tables: hairlines, scroll sideways when narrow. */
.table-wrap { margin: 1.75em 0; overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.5; }
.prose th, .prose td { padding: .65rem .9rem .65rem 0; vertical-align: top; text-align: left; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; border-bottom-color: var(--rule); }
.prose td code, .prose th code { white-space: nowrap; }

/* Figures and Mermaid diagrams: centred, never wider than the column. */
.prose figure { margin: 2em 0; }
.prose figure img { display: block; max-width: 100%; height: auto; border-radius: 12px; }
.prose figcaption { margin-top: .6rem; color: var(--muted); font-size: .875rem; }
.prose img { max-width: 100%; height: auto; }
.prose pre.mermaid { display: flex; justify-content: center; margin: 2em 0; padding: clamp(16px, 2vw, 28px); max-width: 100%; overflow-x: auto; background: var(--panel); border-radius: 12px; font-family: var(--mono); font-size: .8125rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.mermaid[data-processed] { white-space: normal; }
.mermaid svg { max-width: 100%; height: auto; }

/* Article footer: source line and chapter navigation. */
.article-foot { margin-top: clamp(40px, 6vw, 72px); }
.source { margin: 0; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); text-transform: none; letter-spacing: 0; font-size: .8125rem; }
.source a { color: var(--ink); text-decoration-color: var(--line); }
.source a:hover { color: var(--accent); text-decoration-color: currentColor; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: clamp(32px, 4vw, 48px); }
.pager a { display: flex; flex-direction: column; gap: 10px; padding: 22px 26px; background: var(--panel); border-top: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 28px #52402d0a; text-decoration: none; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; transition: box-shadow .3s var(--ease), color .2s var(--ease); }
.pager a span { color: var(--muted); font-weight: 500; letter-spacing: .06em; }
.pager-next { grid-column: 2; text-align: right; }
.pager a:hover { color: var(--accent); box-shadow: 0 14px 38px #423a2b1c; }

/* Footer: one hairline, generous space. */
.footer { display: flex; justify-content: space-between; gap: 28px; padding-block: clamp(40px, 5vw, 64px) clamp(48px, 6vw, 96px); border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; line-height: 1.7; }
.footer p { margin: 0; }
.footer span { display: inline-block; margin-top: 6px; }
.footer div { display: flex; flex-wrap: wrap; gap: 12px 28px; align-content: flex-start; }
.footer a:hover { color: var(--accent); }

/* Motion: everything is visible by default; cards rise only when the browser supports scroll timelines and the user allows motion. */
@keyframes rise { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  @supports (animation-timeline: view()) {
    .card, .pager a { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
  }
  .card:hover { transform: translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .card, .pager a { animation: none !important; opacity: 1 !important; transform: none !important; } .header nav, .skip, .pager, .coffee { display: none; } }

@media (max-width: 1100px) {
  .header { flex-wrap: wrap; justify-content: flex-start; padding-block: 20px; gap: 12px 24px; }
  .header > nav { order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; }
  .header > nav a { white-space: nowrap; }
}
@media (max-width: 700px) {
  .header > nav { gap: 16px; flex-wrap: nowrap; }
  .header > nav a { font-size: .875rem; }
  .hero-inner { min-height: 0; padding-block: 56px 64px; }
  .hero h1 { font-size: clamp(2.5rem, 12vw, 3.5rem); }
  .hero-collection .hero-inner { padding-block: 40px 48px; }
  .hero-collection h1 { font-size: clamp(2.25rem, 11vw, 3.25rem); }
  .intro { font-size: 1.0625rem; }
  .section-top { flex-direction: column; align-items: flex-start; gap: 12px; }
  .collections, .chapters { padding-block: 56px; }
  .card:hover { transform: none; }
  .article { padding-block: 24px 56px; }
  .article-head h1 { font-size: clamp(1.75rem, 9vw, 2.5rem); }
  .prose { font-size: 1rem; }
  .prose pre { padding: .85rem 1rem; border-radius: 8px; }
  .prose pre.mermaid { padding: 12px; }
  .pager { grid-template-columns: 1fr; }
  .pager-next { grid-column: auto; text-align: left; }
  .footer { flex-direction: column; gap: 24px; }
}
