/* Plan Like You Give a Damn — site styles.
   Values come from design-system/tokens.json at the top of the repository; keep them in step. */
:root {
  --paper: #ffffff; --surface: #f4f4f1; --ink: #16181b; --ink-muted: #4a4f55;
  --on-ink: #ffffff; --line: #c9cdd1; --lit: #f2c230;
  --font-sans: Jost, "Century Gothic", Futura, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-size: 17px; line-height: 26px; }
img { max-width: 100%; height: auto; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }
.label { font-size: 13px; line-height: 16px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }
.brand { display: block; line-height: 0; }
.brand img { width: 218px; }
nav { display: flex; gap: 28px; }
nav a { font-size: 13px; line-height: 16px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; padding: 14px 0; }
nav a:hover { text-decoration: underline; }

/* Home */
.hero { padding: 72px 0 80px; text-align: center; }
.hero h1 { max-width: 520px; margin: 0 auto; line-height: 0; }
.hero h1 img { width: 100%; }
.lead { font-size: 20px; line-height: 30px; margin-top: 40px; }
.band { padding: 64px 0; border-top: 1px solid var(--line); }
.band h2 { font-size: 28px; line-height: 34px; font-weight: 600; margin-bottom: 24px; }
.posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; }
.posts h3 { font-size: 28px; line-height: 34px; font-weight: 600; margin: 8px 0; }
.posts h3 a { text-decoration: none; }
.posts h3 a:hover { text-decoration: underline; }
.posts p:last-child { color: var(--ink-muted); }

/* Pages and posts */
.page, .post { padding-top: 64px; padding-bottom: 80px; }
.page h1, .post h1 { font-size: clamp(34px, 6vw, 48px); line-height: 1.1; font-weight: 700; letter-spacing: -0.01em; margin: 12px 0 24px; }
.origin { color: var(--ink-muted); font-size: 14px; line-height: 20px; margin-bottom: 32px; }
.prose { font-size: 20px; line-height: 32px; }
.prose > * + * { margin-top: 24px; }
.prose h2 { font-size: 28px; line-height: 34px; font-weight: 600; margin-top: 48px; }
.prose h3 { font-size: 22px; line-height: 28px; font-weight: 600; margin-top: 40px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 8px; }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 24px; background: var(--surface); }
.prose blockquote > * + * { margin-top: 16px; }
.prose img { display: block; }
.prose figure { margin-left: 0; margin-right: 0; }
.prose figcaption, .prose img + em { display: block; font-size: 14px; line-height: 20px; color: var(--ink-muted); margin-top: 8px; font-style: normal; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
.back { margin-top: 56px; font-size: 13px; line-height: 16px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 56px; }
.site-footer p { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
