/* Shared styles for the About / Privacy / Contact pages (same look as the planner on the homepage). */
:root {
    --bg: #060913; --card: #0d1424; --line: rgba(255, 255, 255, 0.08);
    --text: #f8fafc; --muted: #94a3b8; --cyan: #00f0ff; --link: #67e8f9;
    color-scheme: dark;
}
html.light {
    --bg: #f1f5f9; --card: #ffffff; --line: rgba(15, 23, 42, 0.1);
    --text: #0f172a; --muted: #475569; --cyan: #0284c7; --link: #0369a1;
    color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Outfit, system-ui, sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; display: flex; flex-direction: column; }
button { font-family: inherit; }
header {
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center;
    padding: 22px 28px; border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 20;
    background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px);
}
.logo { line-height: 0; margin-left: -6px; display: block; }
.logo img { height: 88px; width: auto; max-width: 100%; display: block; }
.logo-light { display: none !important; }
html.light .logo-light { display: block !important; }
html.light .logo-dark { display: none !important; }
.controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    background: #1e293b; color: var(--text); border: 1px solid var(--line); border-radius: 12px;
    padding: 10px 16px; font-weight: 600; font-size: 0.95rem; cursor: pointer; text-decoration: none;
}
html.light .btn { background: #fff; }
.btn:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
.btn.primary, html.light .btn.primary { background: #0284c7; color: #fff; border-color: #0284c7; }
.btn.primary:hover { background: #0369a1; }
.btn svg { width: 16px; height: 16px; flex: none; }
.lbl-short { display: none; }
.theme-switch { position: relative; display: flex; }
.theme-switch__btn svg { width: 18px; height: 18px; }
.theme-switch__icon--dark { display: none; }
html.dark .theme-switch__icon--light { display: none; }
html.dark .theme-switch__icon--dark { display: block; }
.theme-switch__menu {
    position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 220px;
    display: grid; gap: 2px; padding: 6px;
    background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.theme-switch__menu[hidden] { display: none; }
.theme-switch__option {
    display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: center;
    width: 100%; min-height: 44px; padding: 6px 10px; border: 0; border-radius: 8px;
    background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.theme-switch__option:hover { background: color-mix(in srgb, var(--cyan) 10%, transparent); }
.theme-switch__option:focus-visible { outline: 3px solid var(--text); outline-offset: 1px; }
.theme-switch__option[aria-checked="true"] { background: color-mix(in srgb, var(--cyan) 14%, transparent); }
.theme-switch__check { width: 16px; height: 16px; visibility: hidden; color: var(--cyan); }
.theme-switch__option[aria-checked="true"] .theme-switch__check { visibility: visible; }
.theme-switch__name { display: block; font-size: 0.92rem; font-weight: 600; line-height: 1.2; }
.theme-switch__hint { display: block; font-size: 0.75rem; color: var(--muted); line-height: 1.3; }

main.page { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 40px 28px 64px; }
/* Readable long-form text: shared by these pages and the homepage explainer. */
.prose { line-height: 1.65; font-size: 1.05rem; }
.prose h1 { font-size: 2rem; line-height: 1.2; letter-spacing: 0.01em; margin-bottom: 12px; }
.prose h2 { font-size: 1.3rem; line-height: 1.3; margin: 32px 0 10px; }
.prose p, .prose ul, .prose ol { margin-bottom: 14px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--link); text-underline-offset: 3px; }
.prose a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 3px; }
.prose .lead { color: var(--muted); font-size: 1.15rem; }
.prose .updated { color: var(--muted); font-size: 0.9rem; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; background: color-mix(in srgb, var(--text) 8%, transparent); padding: 1px 5px; border-radius: 5px; }
.callout { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin: 18px 0; }
.callout p:last-child { margin-bottom: 0; }

.site-footer {
    border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem;
    padding: 22px 28px 28px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer a { color: inherit; text-underline-offset: 3px; }
.site-footer nav a { color: var(--text); text-decoration: none; font-weight: 600; }
.site-footer nav a:hover, .site-footer nav a[aria-current="page"] { text-decoration: underline; }
.site-footer a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 3px; }

@media (max-width: 600px) {
    header { position: static; padding: 16px; gap: 12px; backdrop-filter: none; }
    .logo img { height: 64px; }
    .lbl-long { display: none; }
    .lbl-short { display: inline; }
    main.page { padding: 28px 18px 48px; }
    .prose { font-size: 1rem; }
    .prose h1 { font-size: 1.6rem; }
    .site-footer { padding: 20px 18px 24px; }
}
