/* Shared styles for blog posts. Link it from any post: <link rel="stylesheet" href="/posts/_post.css">
   Fonts: Bricolage Grotesque (headlines) · Inter (body) · Instrument Serif (italic accents) · JetBrains Mono (code) · Caveat (witty asides) */
@font-face { font-family: "Bricolage"; src: url(/posts/fonts/bricolage.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "InterPost"; src: url(/posts/fonts/inter.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument"; src: url(/posts/fonts/instrument.woff2) format("woff2"); font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument"; src: url(/posts/fonts/instrument-italic.woff2) format("woff2"); font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrainsPost"; src: url(/posts/fonts/jetbrains.woff2) format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "CaveatPost"; src: url(/posts/fonts/caveat.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root { --fg: #f4f4f2; --muted: #98989e; --faint: #5d5d64; --line: rgba(255,255,255,.11); --card: rgba(255,255,255,.045); --code: rgba(0,0,0,.45); --accent: #ff5a36; color-scheme: dark; }
:root[data-theme="light"] { --fg: #0b0b0c; --muted: #66666b; --faint: #a3a3a8; --line: rgba(0,0,0,.1); --card: rgba(0,0,0,.035); --code: rgba(0,0,0,.05); --accent: #e8451f; color-scheme: light; }

* { box-sizing: border-box; }
html, body { margin: 0; background: transparent; }
body { font: 400 1.05rem/1.72 "InterPost", system-ui, sans-serif; color: var(--fg); -webkit-font-smoothing: antialiased; padding: clamp(1.4rem, 5vw, 3.6rem); }
article { max-width: 700px; margin: 0 auto; }
.kicker { font: 600 .72rem/1 "InterPost", sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0 0 1rem; display: flex; align-items: center; gap: .7rem; }
.kicker::before { content: ""; width: 22px; height: 1px; background: var(--fg); }
h1 { font: 800 clamp(2.3rem, 7vw, 3.9rem)/.98 "Bricolage", "InterPost", sans-serif; letter-spacing: -.045em; margin: 0 0 1.2rem; }
h1 em, h2 em { font: italic 400 1.1em "Instrument", Georgia, serif; letter-spacing: -.015em; color: var(--fg); }
h2 { font: 700 clamp(1.5rem, 4vw, 2.05rem)/1.06 "Bricolage", "InterPost", sans-serif; letter-spacing: -.04em; margin: 2.6rem 0 .8rem; }
p { margin: 0 0 1.15rem; color: var(--muted); } p b, p strong, li b, td b { color: var(--fg); }
.lead { font: 400 1.4rem/1.4 "Instrument", Georgia, serif; letter-spacing: -.005em; color: var(--fg); }
a { color: var(--fg); text-decoration: underline dotted var(--accent); text-underline-offset: 4px; } a:hover { text-decoration-style: solid; }

.byline { display: flex; align-items: center; gap: .75rem; margin: 0 0 1.4rem; font-size: .9rem; color: var(--muted); padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: url(/logo-96.webp) center / cover no-repeat, #0b0b12; box-shadow: 0 0 0 1.5px var(--line); flex: none; }
.byline b { color: var(--fg); display: inline-flex; align-items: center; gap: 5px; }
.tick { display: inline-grid; cursor: pointer; border: 0; background: none; padding: 0; transition: transform .4s cubic-bezier(.32,.72,0,1); } .tick:hover { transform: scale(1.25); } .tick svg { width: 15px; height: 15px; }

figure { margin: 2rem 0; } figure img, figure svg { width: 100%; height: auto; display: block; border-radius: 22px; border: 1px solid var(--line); background: var(--card); color: var(--fg); }
figcaption { font: 500 1.35rem/1.1 "CaveatPost", cursive; color: var(--accent); margin-top: .5rem; text-align: center; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem 0; } .grid2 figure { margin: 0; } @media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
blockquote { margin: 2rem 0; padding: .2rem 0 .2rem 1.2rem; border-left: 2px solid var(--fg); font: italic 400 1.9rem/1.15 "Instrument", Georgia, serif; letter-spacing: -.01em; color: var(--fg); }
pre, code { font-family: "JetBrainsPost", ui-monospace, monospace; } code { font-size: .84em; padding: .12em .42em; border-radius: 7px; background: var(--code); color: var(--fg); }
pre { background: var(--code); border: 1px solid var(--line); border-radius: 18px; padding: 1rem 1.15rem; overflow: auto; font-size: .8rem; line-height: 1.7; color: var(--fg); margin: 1.5rem 0; } pre code { background: none; padding: 0; }
.callout { margin: 2rem 0; padding: 1.1rem 1.3rem; border-radius: 22px; border: 1px solid var(--line); background: var(--card); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.callout p { margin: 0; color: var(--fg); } .callout .hand { font: 500 1.5rem/1 "CaveatPost", cursive; color: var(--accent); display: block; margin-bottom: .3rem; }
ul, ol { color: var(--muted); padding-left: 1.3rem; margin: 0 0 1.2rem; } li { margin-bottom: .45rem; } li::marker { color: var(--accent); }
table { width: 100%; border-collapse: collapse; margin: 1.6rem 0; font-size: .92rem; } th, td { text-align: left; padding: .7rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); } th { font: 600 .7rem "InterPost", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--fg); border-bottom: 1px solid var(--fg); }
hr { border: 0; height: 9px; background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 8px); margin: 3rem 0 1.2rem; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font: 400 .72rem "JetBrainsPost", monospace; color: var(--faint); }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.8rem; } .tags span { font: 500 .72rem "JetBrainsPost", monospace; padding: .25rem .7rem; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); background: var(--card); }
