
:root {
  --background: 210 16% 97%; --foreground: 216 24% 12%;
  --card: 210 20% 99%; --muted: 214 16% 92%; --muted-foreground: 216 14% 32%;
  --primary: 216 20% 15%; --primary-foreground: 210 18% 96%;
  --accent: 38 95% 55%; --accent-foreground: 216 26% 10%;
  --border: 214 14% 84%; --ring: 38 92% 45%; --radius: 6px;
  --font-sans: 'Hanken Grotesk', sans-serif; --font-mono: 'IBM Plex Mono', monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: hsl(var(--background)); color: hsl(var(--foreground)); font: 16px/1.7 var(--font-sans); overflow-wrap: anywhere; }
a { color: inherit; text-underline-offset: .22em; transition: color 150ms, background-color 150ms, border-color 150ms; }
a:hover { text-decoration-thickness: 2px; }
a:active { opacity: .8; }
a:focus-visible, summary:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 4px; border-radius: var(--radius); }
img { display: block; max-width: 100%; height: auto; }
.container { width: min(100%, 1152px); margin-inline: auto; padding-inline: 20px; }
.site-header { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.offer-announcement { display:flex; min-height:44px; align-items:center; justify-content:center; position:relative; padding:0 48px 0 12px; background:hsl(var(--accent)); color:hsl(var(--accent-foreground)); font-size:13px; }
.offer-announcement a { min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; padding-block:11px; }
.offer-announcement button { position:absolute; right:0; top:0; width:44px; height:44px; border:0; cursor:pointer; background:transparent; color:inherit; font:inherit; font-size:22px; }
.offer-announcement button:hover { background:hsl(var(--foreground) / .08); }
.offer-announcement button:active { transform:scale(.97); }
.offer-announcement button:focus-visible { outline:2px solid hsl(var(--ring)); outline-offset:-4px; }
.header-row { min-height: 80px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.motif { position: relative; display: inline-block; width: 14px; height: 14px; border: 1.5px solid currentColor; flex-shrink: 0; }
.motif::after { content: ''; position: absolute; right: -5px; top: -5px; width: 8px; height: 8px; background: hsl(var(--accent)); }
.desktop-nav { display: none; align-items: center; gap: 28px; font-size: 14px; }
.desktop-nav a, .mobile-menu a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.desktop-nav a:hover, .mobile-menu a:hover { text-decoration: underline; }
.mobile-menu { margin-left: auto; }
.mobile-menu summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; padding: 0 12px; border: 1px solid hsl(var(--primary-foreground) / .4); border-radius: var(--radius); }
.mobile-menu[open] { width: 100%; }
.mobile-menu nav { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-block: 12px; }
.skip { position: absolute; left: 20px; top: -100px; background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); padding: 10px 16px; z-index: 5; }
.skip:focus { top: 10px; }
main { min-height: 55vh; padding-block: 48px 80px; }
.eyebrow { display: inline-block; margin: 0 0 20px; padding: 4px 10px; border: 1px solid hsl(var(--border)); font: 11px/1.7 var(--font-mono); text-transform: uppercase; letter-spacing: .16em; }
h1, h2, h3, h4, h5, h6 { line-height: 1.15; letter-spacing: -.025em; font-weight: 600; }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); margin: 0 0 20px; }
.intro { color: hsl(var(--muted-foreground)); font-size: 20px; max-width: 64ch; }
.index-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 40px; }
.index-heading .intro { margin-bottom: 0; }
.utility-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.post-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.post-card { display: flex; flex-direction: column; min-width: 0; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); overflow: hidden; }
.card-cover { border-bottom: 1px solid hsl(var(--border)); background: hsl(var(--muted)); }
.card-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { padding: 24px; display: flex; flex: 1; flex-direction: column; align-items: flex-start; }
.post-card h2 { font-size: 24px; margin: 16px 0 12px; }
.post-card h2 a { text-decoration: none; }
.post-card h2 a:hover { text-decoration: underline; }
.post-card p { color: hsl(var(--muted-foreground)); margin: 0 0 20px; }
.post-card .utility-link { margin-top: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 12px; }
.chip { max-width: 100%; border: 1px solid hsl(var(--border)); background: hsl(var(--muted)); padding: 2px 9px; border-radius: 999px; font: 11px/1.8 var(--font-mono); }
.category { background: hsl(var(--accent) / .15); border-color: hsl(var(--accent)); }
.dates { color: hsl(var(--muted-foreground)); font-size: 13px; font-variant-numeric: tabular-nums; }
.article { max-width: 70ch; margin-inline: auto; }
.breadcrumb { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 20px; color: hsl(var(--muted-foreground)); font-size: 14px; }
.article-header { padding-bottom: 28px; border-bottom: 1px solid hsl(var(--border)); margin-bottom: 32px; }
.article-cover { width: 100%; margin: 28px 0 0; border-radius: var(--radius); }
.prose { line-height: 1.7; font-size: 18px; }
.prose h1 { font-size: 2.2em; }
.prose h2 { font-size: 1.65em; }
.prose h3 { font-size: 1.3em; }
.prose h4, .prose h5, .prose h6 { font-size: 1.05em; }
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 { margin: 1.8em 0 .65em; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose pre, .prose .table-scroll { margin: 0 0 1.3em; }
.prose li { margin-block: .4em; }
.prose ul, .prose ol { padding-left: 1.5em; }
.prose a { text-decoration-color: hsl(var(--ring)); text-decoration-thickness: 2px; }
.prose a:hover { background: hsl(var(--accent) / .18); }
.prose blockquote { border-left: 3px solid hsl(var(--accent)); padding: .7em 1em; background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code, .prose kbd { font: .82em/1.7 var(--font-mono); background: hsl(var(--muted)); border-radius: var(--radius); padding: .15em .35em; overflow-wrap: anywhere; }
.prose pre { max-width: 100%; overflow-x: auto; padding: 20px; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border-radius: var(--radius); }
.prose pre code { background: transparent; padding: 0; overflow-wrap: normal; }
.prose .table-scroll { width: 100%; overflow-x: auto; }
.prose table { border-collapse: collapse; width: 100%; font-size: .9em; }
.prose th, .prose td { text-align: left; border: 1px solid hsl(var(--border)); padding: 10px 14px; min-width: 100px; }
.prose th { background: hsl(var(--muted)); }
.prose hr { border: 0; border-top: 1px solid hsl(var(--border)); margin-block: 32px; }
.prose img { border-radius: var(--radius); margin-block: 24px; }
.prose input[type=checkbox] { accent-color: hsl(var(--primary)); }
.article-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid hsl(var(--border)); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.empty { border: 1px solid hsl(var(--border)); background: hsl(var(--card)); padding: 40px 24px; border-radius: var(--radius); max-width: 70ch; }
.empty h2 { font-size: 24px; margin-top: 0; }
.empty p { color: hsl(var(--muted-foreground)); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border-radius: var(--radius); background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); text-decoration: none; font-weight: 500; }
.button:hover { background: hsl(var(--foreground)); }
.site-footer { background: hsl(var(--foreground)); color: hsl(var(--background)); padding-block: 64px 24px; }
.footer-grid { display: grid; gap: 40px; }
.footer-intro { max-width: 38ch; color: hsl(var(--background) / .8); font-size: 14px; }
.footer-label { margin: 0 0 16px; color: hsl(var(--background) / .7); font: 11px/1.7 var(--font-mono); text-transform: uppercase; letter-spacing: .16em; }
.site-footer ul { padding: 0; margin: 0; list-style: none; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; text-decoration: none; }
.site-footer li a:hover { text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 56px; border-top: 1px solid hsl(var(--background) / .15); padding-top: 24px; font-size: 12px; color: hsl(var(--background) / .75); }
.powered { display: inline-flex; gap: 10px; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: var(--radius); border: 1px solid hsl(var(--background) / .25); background: hsl(var(--background) / .1); color: hsl(var(--background)); text-decoration: none; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; }
.powered svg { width: 14px; height: 14px; flex-shrink: 0; }
.powered:hover { background: hsl(var(--background) / .2); }
@media (min-width: 640px) { .container { padding-inline: 32px; } main { padding-block: 64px 96px; } .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 800px) { .desktop-nav { display: flex; } .mobile-menu { display: none; } .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1050px) { .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } a { transition: none; } }
