/* Plain text pages: About, Privacy, Terms, Contact */
.page { max-width: 740px; margin: 0 auto; padding: 44px 0 24px; }
.page .kicker { margin: 0 0 6px; }
.page h1 { margin: 0 0 14px; font-size: clamp(2rem, 4.5vw, 3rem); }
.page h2 { margin: 36px 0 8px; font-size: 1.35rem; }
.page p, .page li { color: var(--text); }
.page ul { padding-left: 1.25em; }
.page li { margin: 6px 0; }
.page-lead { margin: 0 0 8px; color: var(--muted); font-size: 1.15rem; line-height: 1.6; }
.page-date { margin: 0 0 8px; color: var(--muted); font-size: .88rem; }
.page-cta { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); }

/* 404 page */
.notfound { max-width: 760px; margin: 0 auto; padding: 56px 0 24px; text-align: center; }
.nf-code { display: inline-flex; align-items: center; justify-content: center; gap: .02em; margin: 0; font-family: var(--serif); font-weight: 700; font-variation-settings: "opsz" 48; font-size: clamp(5rem, 18vw, 9.5rem); line-height: 1; letter-spacing: -.04em; color: var(--accent); }
.nf-code > span { color: var(--accent); background: linear-gradient(135deg, var(--accent), var(--brand)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nf-compass { width: .74em; height: .74em; flex: none; color: var(--brand); filter: drop-shadow(0 6px 14px color-mix(in srgb, var(--accent) 28%, transparent)); }
.nf-needle { transform-origin: 50px 50px; animation: nf-sway 4.5s ease-in-out infinite alternate; }
@keyframes nf-sway { from { transform: rotate(-28deg); } to { transform: rotate(34deg); } }
@keyframes nf-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .notfound > * { animation: nf-rise .55s ease both; }
  .notfound > *:nth-child(2) { animation-delay: .06s; } .notfound > *:nth-child(3) { animation-delay: .12s; }
  .notfound > *:nth-child(4) { animation-delay: .18s; } .notfound > *:nth-child(5) { animation-delay: .24s; }
  .notfound > *:nth-child(6) { animation-delay: .3s; } .notfound > *:nth-child(7) { animation-delay: .36s; }
}
@media (prefers-reduced-motion: reduce) { .nf-needle { animation: none; transform: rotate(18deg); } }
.notfound .kicker { margin: 10px 0 4px; }
.notfound h1 { margin: 0 0 14px; font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
.nf-lead { max-width: 560px; margin: 0 auto 26px; color: var(--muted); font-size: 1.1rem; line-height: 1.65; }
.nf-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.nf-sub { margin: 44px 0 14px; font-size: 1.15rem; }
.nf-subjects { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; text-align: left; }
.nf-subjects a { display: block; height: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); text-decoration: none; color: var(--ink); transition: transform .15s, border-color .15s, box-shadow .15s; }
.nf-subjects a:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow); }
.nf-subjects a:hover strong { color: var(--accent-strong); }
.nf-subjects strong { display: block; font-family: var(--serif); font-size: 1.05rem; }
.nf-subjects span { display: block; margin-top: 4px; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.nf-note { margin: 36px 0 0; color: var(--muted); font-size: .88rem; overflow-wrap: anywhere; }
.nf-note code { padding: 1px 6px; border-radius: 6px; background: var(--surface-2); color: var(--text); }
@media (max-width: 520px) { .notfound { padding-top: 36px; } .nf-actions .btn { width: 100%; justify-content: center; } }

/* Contact page */
.contact-card { margin: 26px 0 8px; padding: 22px 24px; background: var(--surface-2); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); }
.contact-card h2 { margin: 0 0 6px; font-size: 1.1rem; }
.contact-address { margin: 0 0 14px; font-size: clamp(1.25rem, 3.5vw, 1.7rem); font-weight: 700; overflow-wrap: anywhere; }
.contact-address a { color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--accent); }
.contact-address a:hover { color: var(--accent-strong); }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.contact-actions [hidden] { display: none; }
.contact-copied { color: var(--accent-strong); font-weight: 600; font-size: .9rem; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 12px; }
.contact-topic { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .15s, transform .15s; }
.contact-topic:hover, .contact-topic:focus-visible { border-color: var(--accent); transform: translateY(-2px); }
.contact-topic strong { color: var(--ink); font-size: 1.02rem; }
.contact-topic span { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.contact-topic em { margin-top: auto; padding-top: 6px; font-style: normal; font-weight: 600; font-size: .9rem; color: var(--accent-strong); }
.contact-note { margin-top: 18px; padding: 10px 14px; font-size: .92rem; color: var(--muted); background: var(--surface-2); border-radius: var(--radius-sm); }
@media (prefers-reduced-motion: reduce) { .contact-topic { transition: none; } .contact-topic:hover { transform: none; } }

