/* The hand-written pages (blog/, /faq, /privacy, /terms, 404), dressed like the landing page (night, ivory, gold;
   Instrument Serif for headlines, Inter for text). Shared by every page outside the landing film and the docs. */

@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/instrument-serif-latin.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(/assets/fonts/instrument-serif-italic-latin.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/assets/fonts/inter-latin.woff2) format('woff2'); }

:root {
    --night: #070a1b;
    --deep: #0c1030;
    --ivory: #f5efe4;
    --dim: rgba(245, 239, 228, .76);
    --faint: rgba(245, 239, 228, .52);
    --gold: #f1c88f;
    --line: rgba(245, 239, 228, .12);
    --card: rgba(245, 239, 228, .04);
    --serif: 'Instrument Serif', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
    --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --gut: clamp(16px, 5vw, 64px);
    --measure: 680px;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(120% 60% at 50% 0%, var(--deep), var(--night) 70%) var(--night);
    color: var(--ivory);
    font: 400 17px/1.7 var(--sans);
    -webkit-font-smoothing: antialiased;
    overflow-wrap: break-word;
}

a { color: var(--gold); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ivory); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -999px; top: 8px; padding: 8px 14px; background: var(--ivory); color: var(--night); border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }

/* bar */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px var(--gut); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ivory); text-decoration: none; font: 400 1.35rem/1 var(--serif); }
.brand img { width: 19px; height: 22px; }
.bar nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 28px); font-size: .92rem; }
.bar nav a { color: var(--dim); text-decoration: none; }
.bar nav a:hover, .bar nav a[aria-current] { color: var(--ivory); }
.bar .cta { padding: 8px 16px; border: 1px solid var(--gold); border-radius: 999px; color: var(--gold); white-space: nowrap; }
.bar .cta:hover { background: var(--gold); color: var(--night); }
@media (max-width: 560px) { .bar .docs { display: none; } }

main { padding: clamp(40px, 8vw, 88px) var(--gut) clamp(56px, 10vw, 112px); }

.eyebrow { margin: 0 0 14px; color: var(--gold); font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -.005em; text-wrap: balance; }
h1 { margin: 0 0 20px; font-size: clamp(2.3rem, 6vw, 3.8rem); }
h1 em, h2 em { color: var(--gold); }

/* index */
.blog-head { max-width: 860px; margin: 0 auto 48px; }
.blog-head p { max-width: 640px; margin: 0; color: var(--dim); font-size: 1.08rem; }
.posts { display: grid; gap: 20px; max-width: 860px; margin: 0 auto; padding: 0; list-style: none; }
.post-card { position: relative; padding: 28px clamp(20px, 4vw, 34px); background: var(--card); border: 1px solid var(--line); border-radius: 14px; transition: border-color .3s, background .3s; }
.post-card:hover { border-color: rgba(241, 200, 143, .45); background: rgba(245, 239, 228, .06); }
.post-card h2 { margin: 6px 0 10px; font-size: clamp(1.5rem, 3.4vw, 2rem); }
.post-card h2 a { color: var(--ivory); text-decoration: none; }
.post-card h2 a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; } /* the whole card is the link */
.post-card p { margin: 0; color: var(--dim); }
.meta { color: var(--faint); font-size: .84rem; }

/* article */
.post { max-width: var(--measure); margin: 0 auto; }
.crumbs { margin: 0 0 28px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: .84rem; color: var(--faint); }
.crumbs li + li::before { content: '›'; margin-right: 6px; }
.crumbs a { color: var(--faint); text-decoration: none; }
.crumbs a:hover { color: var(--ivory); }
.post .lede { margin: 0 0 18px; color: var(--dim); font-size: 1.16rem; }
.post .meta { margin: 0 0 40px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.post h2 { margin: 52px 0 14px; font-size: clamp(1.7rem, 4vw, 2.2rem); }
.post h3 { margin: 32px 0 10px; font-size: 1.4rem; }
.post p, .post li { color: rgba(245, 239, 228, .88); }
.post p { margin: 0 0 18px; }
.post ul, .post ol { margin: 0 0 20px; padding-left: 1.3em; }
.post li { margin-bottom: 8px; }
.post li::marker { color: var(--gold); }
.post strong { color: var(--ivory); font-weight: 600; }
.post blockquote { margin: 28px 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--gold); font: italic 400 1.35rem/1.45 var(--serif); color: var(--ivory); }
.post blockquote p { margin: 0; color: inherit; }
.turn { margin: 28px 0; padding: 22px 24px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; font: 400 1.12rem/1.6 var(--serif); }
.turn p { margin: 0 0 10px; color: var(--ivory); }
.turn p:last-child { margin: 0; }
.turn .me { color: var(--gold); }
.turn figcaption { margin-bottom: 10px; font: 600 .74rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }

.next { margin-top: 56px; padding: 30px clamp(20px, 4vw, 34px); background: linear-gradient(135deg, rgba(241, 200, 143, .1), rgba(245, 239, 228, .03)); border: 1px solid rgba(241, 200, 143, .3); border-radius: 14px; }
.next h2 { margin: 0 0 10px; font-size: 1.8rem; }
.next p { margin: 0 0 18px; }
.btn { display: inline-block; padding: 11px 22px; border-radius: 999px; background: var(--gold); color: var(--night); font-weight: 600; text-decoration: none; }
.btn:hover { background: var(--ivory); color: var(--night); }
.next .link { margin-left: 14px; }
@media (max-width: 480px) { .next .link { display: block; margin: 14px 0 0; } }

.more { margin-top: 48px; }
.more h2 { margin: 0 0 14px; font-size: 1.5rem; }
.more ul { padding-left: 1.2em; }

/* foot */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding: 28px var(--gut) 36px; border-top: 1px solid var(--line); color: var(--faint); font-size: .86rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { color: var(--dim); text-decoration: none; }
.foot a:hover { color: var(--ivory); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
