/* Supporting pages (privacy, thank you, 404). Loads after styles.css and reuses its tokens. */

/* Dark blocks use a light focus ring. */
.masthead, .message { --focus: var(--paper); }

/* ---------- Masthead (privacy) ---------- */
.masthead { background: var(--ink); color: var(--text-on-ink); }
.masthead__inner { padding-top: clamp(3rem, 8vw, 6rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.masthead__title { margin-top: 1rem; font-size: var(--h2); max-width: 16ch; }
.masthead__lede { max-width: 36rem; margin-top: 1.25rem; font-size: var(--text-lg); color: rgba(243, 238, 228, 0.9); }
.masthead__meta { margin-top: 1.5rem; font-size: var(--text-sm); color: var(--text-on-ink-muted); }

/* ---------- Long-form prose ---------- */
.prose { max-width: 38rem; padding-block: clamp(3rem, 7vw, 5.5rem); font-size: 1.0625rem; line-height: 1.7; }
.prose h2 { margin-top: 2.75rem; padding-top: 1.75rem; border-top: 1px solid var(--line); font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem); line-height: 1.2; letter-spacing: -0.01em; }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose p, .prose ul { margin: 1rem 0 0; }
.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.5rem; }
.prose li::marker { color: var(--accent); }
.prose a:not(.btn) { text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:not(.btn):hover { color: var(--text-muted); }
.prose__note { margin-top: 3rem !important; padding: 1.1rem 1.25rem; background: var(--sage); border-radius: var(--radius); font-size: var(--text-base); color: var(--text); }
.prose__cta { margin-top: 2rem !important; }

/* ---------- Full-height message (thank you, 404) ---------- */
.message { display: flex; align-items: center; min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); background: var(--ink); color: var(--text-on-ink); overflow: hidden; }
.message__inner { padding-top: 3rem; padding-bottom: clamp(3rem, 8vh, 6rem); }
.message__mark { display: inline-grid; place-items: center; width: 3.25rem; height: 3.25rem; margin-bottom: 1.75rem; background: var(--accent); color: var(--ink); border-radius: 50%; }
.message__code { display: block; margin-bottom: 0.5rem; font-family: var(--font-display); font-style: italic; font-size: clamp(4rem, 3rem + 5vw, 7.5rem); line-height: 1; color: var(--accent); }
.message__title { font-size: var(--closing); line-height: 1.05; max-width: 14ch; }
.message__lede { max-width: 34rem; margin-top: 1.5rem; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.55; color: rgba(243, 238, 228, 0.9); }
.message__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }
.message__inner > * { animation: rise 0.9s var(--ease) both; }
.message__inner > *:nth-child(2) { animation-delay: 0.08s; }
.message__inner > *:nth-child(3) { animation-delay: 0.16s; }
.message__inner > *:nth-child(4) { animation-delay: 0.24s; }

main:focus { outline: none; }
.message__preview { max-width: 34rem; margin-top: 1.25rem; padding: 0.75rem 1rem; border: 1px dashed rgba(243, 238, 228, 0.45); border-radius: var(--radius); font-size: var(--text-sm); line-height: 1.5; color: var(--text-on-ink-muted); }
.message__inner > *:nth-child(5) { animation-delay: 0.32s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
