/*
 * leo.ridgwell.family - the whole site's styles, in one file. No framework, no build step.
 * Ridgwell blue: #0f8bff, with the Ridgwell blue gradient #0f8bff -> #0c71c3 (deep #0967a5). Poppins throughout.
 * Copyright (c) 2020-2026 The Ridgwell Family. All Rights Reserved.
 */

/* Self-hosted Poppins (SIL Open Font License, see static/fonts/OFL-poppins.txt), latin subset. */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/poppins-800.woff2") format("woff2"); }

:root {
    --blue: #0f8bff;
    --blue-2: #0c71c3;
    --blue-deep: #0967a5;
    --ridgwell: linear-gradient(90deg, #0f8bff 10%, #0c71c3 90%);
    --ridgwell-diag: linear-gradient(135deg, #0f8bff 0%, #0c71c3 60%, #0967a5 100%);

    /* Light is the default, as on the original site. */
    --bg: #f6f9fd;
    --bg-raised: #edf3fb;
    --surface: #ffffff;
    --surface-2: #f2f7fd;
    --border: #dbe5f1;
    --border-strong: #c3d3e6;
    --text: #0d1b2a;
    --muted: #4a5b6e;
    --faint: #6b7b8d;
    --accent: #0967a5;
    --link: #0a64b8;
    --shadow: 0 18px 44px -26px rgba(9, 50, 100, 0.35);

    --development: #6b3fc4;
    --active: #0f7a55;
    --replaced: #8a5a00;
    --archived: #0a5fb4;
    --defunct: #b42828;

    --radius: 18px;
    --radius-sm: 10px;
    --wrap: 1140px;
    --font: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color-scheme: light;
}

/* Dark theme: the system setting, unless the visitor picked light with the header's switch... */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #07111d;
        --bg-raised: #0b1827;
        --surface: #0f1f31;
        --surface-2: #13263c;
        --border: #1c3149;
        --border-strong: #29445f;
        --text: #eaf3fc;
        --muted: #a7b9cc;
        --faint: #8396aa;
        --accent: #5cb3ff;
        --link: #6dbbff;
        --shadow: 0 18px 44px -24px rgba(0, 0, 0, 0.75);
        --development: #b98cff;
        --active: #3ddc97;
        --replaced: #ffbf47;
        --archived: #7cbcff;
        --defunct: #ff7b72;
        color-scheme: dark;
    }
}
/* ...or the switch set dark. */
:root[data-theme="dark"] {
    --bg: #07111d;
    --bg-raised: #0b1827;
    --surface: #0f1f31;
    --surface-2: #13263c;
    --border: #1c3149;
    --border-strong: #29445f;
    --text: #eaf3fc;
    --muted: #a7b9cc;
    --faint: #8396aa;
    --accent: #5cb3ff;
    --link: #6dbbff;
    --shadow: 0 18px 44px -24px rgba(0, 0, 0, 0.75);
    --development: #b98cff;
    --active: #3ddc97;
    --replaced: #ffbf47;
    --archived: #7cbcff;
    --defunct: #ff7b72;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.7 var(--font); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 0.05em 0.35em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); }
.icon { width: 20px; height: 20px; flex: none; }

/* Banners (dev, debug, holding-page reminders) */
.dev-banner { background: #fff4d6; color: #5a3f00; border-bottom: 1px solid #f0d58a; font-size: 0.85rem; padding: 6px 16px; text-align: center; }
.dev-banner strong { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.75rem; margin-right: 6px; }
.dev-banner code { background: transparent; border-color: #e6c870; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.05rem; }
.brand img { border-radius: 8px; }
.brand:hover { color: var(--text); }
.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.95rem; padding: 8px 12px; border-radius: 999px; }
.site-nav a:hover { color: var(--text); background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: #fff; background: var(--ridgwell); }
.theme-toggle, .nav-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.theme-toggle:hover, .nav-toggle:hover { border-color: var(--blue); color: var(--blue); }
.theme-toggle { margin-left: 6px; }
.icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .icon-sun { display: none; }
    :root:not([data-theme="light"]) .icon-moon { display: block; }
}
.nav-toggle { display: none; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
@media (max-width: 860px) {
    /* With JavaScript the nav folds into a menu; without it, it wraps under the brand. */
    .header-inner { flex-wrap: wrap; padding-block: 10px; }
    .js .nav-toggle { display: inline-grid; }
    .js .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 12px; }
    .js .site-nav.open { display: flex; }
    .js .site-nav a { padding: 10px 14px; }
    .js .theme-toggle { margin: 6px 0 0; }
}

/* Buttons */
.button { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 0.95rem; text-decoration: none; border: 2px solid var(--border-strong); color: var(--text); background: var(--surface); transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; }
.button:hover { transform: translateY(-1px); border-color: var(--blue); color: var(--text); }
.button.primary { color: #fff; background: var(--ridgwell); border-color: transparent; box-shadow: 0 10px 24px -12px rgba(15, 139, 255, 0.8); }
.button.primary:hover { color: #fff; box-shadow: 0 14px 30px -12px rgba(15, 139, 255, 0.9); }
.button.light { background: #fff; color: #0967a5; border-color: #fff; }
.button.light:hover { color: #054f80; }
.button.ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.button.ghost-light:hover { color: #fff; border-color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--ridgwell-diag); color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 360px at 85% 10%, rgba(255, 255, 255, 0.18), transparent 70%), radial-gradient(500px 300px at 0% 100%, rgba(0, 20, 60, 0.25), transparent 70%); pointer-events: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; padding-block: 72px 80px; }
.hero h1 { color: #fff; margin-bottom: 0.2em; }
.hero .motto { font-weight: 600; font-size: clamp(1.05rem, 2vw, 1.25rem); color: rgba(255, 255, 255, 0.92); margin-bottom: 1.2em; }
.hero p { color: rgba(255, 255, 255, 0.9); }
.hero a:not(.button) { color: #fff; }
.hero .button:not(.light) { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.hero .button:not(.light):hover { border-color: #fff; }
.hero .social a { color: #fff; border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.08); }
.hero .social a:hover { background: #fff; color: var(--blue-deep); }
.hero-photo { justify-self: center; position: relative; }
.hero-photo img { width: min(340px, 70vw); aspect-ratio: 3 / 4; object-fit: cover; border-radius: 28px; border: 6px solid rgba(255, 255, 255, 0.9); box-shadow: 0 30px 60px -28px rgba(0, 20, 60, 0.7); }
.hero-photo .badge-open { position: absolute; left: -14px; bottom: 22px; background: #fff; color: #0967a5; font-weight: 600; font-size: 0.85rem; padding: 8px 14px; border-radius: 999px; box-shadow: var(--shadow); display: inline-flex; align-items: center; gap: 8px; }
.badge-open::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #18c27a; box-shadow: 0 0 0 4px rgba(24, 194, 122, 0.2); }
@media (max-width: 860px) { .hero-inner { grid-template-columns: 1fr; padding-block: 48px 56px; } .hero-photo { order: -1; } }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 600; color: var(--accent); margin-bottom: 0.6em; }
.eyebrow.on-blue, .hero .eyebrow { color: rgba(255, 255, 255, 0.85); }

/* Social icon row */
.social { display: flex; flex-wrap: wrap; gap: 10px; }
.social a { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); color: var(--muted); background: var(--surface); }
.social a:hover { color: #fff; background: var(--blue); border-color: var(--blue); }
.social .icon { width: 18px; height: 18px; }

/* Sections */
.section { padding-block: 72px; }
.section.alt { background: var(--bg-raised); border-block: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head .lead, .lead { color: var(--muted); font-size: 1.08rem; }
.section-foot { margin-top: 28px; }
.page-head { padding-block: 56px 20px; }
.page-head .lead { max-width: 720px; }
.crumb { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; font-weight: 500; text-decoration: none; margin-bottom: 18px; }
.crumb .icon { width: 16px; height: 16px; }
.grid { display: grid; gap: 20px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid.two, .grid.three { grid-template-columns: 1fr; } .section { padding-block: 52px; } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 0.4em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--ridgwell); color: #fff; margin-bottom: 14px; }
.card-icon .icon { width: 22px; height: 22px; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 6px; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 10px; height: 6px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }

/* Highlights (numbers) */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.stat strong { display: block; font-size: 1.9rem; font-weight: 800; background: var(--ridgwell); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Timeline (work experience) */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--blue), var(--blue-deep)); border-radius: 2px; }
.timeline > li { position: relative; padding-left: 44px; margin-bottom: 22px; }
.timeline > li::before { content: ""; position: absolute; left: 3px; top: 26px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 4px solid var(--blue); }
.job-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.job-head h3 { margin: 0; }
.job-when { font-size: 0.88rem; font-weight: 600; color: var(--accent); white-space: nowrap; }
.job-where { color: var(--muted); font-weight: 500; margin: 2px 0 10px; }
.job-where span { color: var(--faint); font-weight: 400; }

/* Education */
.edu-years { display: inline-block; font-size: 0.8rem; font-weight: 600; color: #fff; background: var(--ridgwell); border-radius: 999px; padding: 2px 10px; margin-bottom: 10px; }
.edu-place { color: var(--muted); font-size: 0.92rem; margin-bottom: 12px; }
.grades { list-style: none; margin: 0; padding: 0; }
.grades li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px dashed var(--border); font-size: 0.93rem; }
.grades li:first-child { border-top: 0; }
.grades li span:last-child { font-weight: 600; text-align: right; }

/* Steps (About) */
.steps { counter-reset: step; }
.step-num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ridgwell); color: #fff; font-weight: 700; margin-bottom: 12px; }

/* Portfolio */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filters a { text-decoration: none; font-weight: 500; font-size: 0.9rem; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); background: var(--surface); }
.filters + .filters { margin-top: -14px; }
.filters a:hover { border-color: var(--blue); color: var(--text); }
.filters a[aria-current="true"] { background: var(--ridgwell); color: #fff; border-color: transparent; }
.project { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.project-shot { position: relative; aspect-ratio: 800 / 402; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.project-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.project-shot .project-icon-panel { width: 100%; height: 100%; display: grid; place-items: center; background: var(--ridgwell-diag); }
.project-shot .project-icon-panel img { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 16px 34px -16px rgba(0, 20, 60, 0.7); }
.project-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.project-body h3 a { color: var(--text); text-decoration: none; }
.project-body h3 a::after { content: ""; position: absolute; inset: 0; }
.project { position: relative; transition: transform 0.15s ease, border-color 0.15s ease; }
.project:hover { transform: translateY(-2px); border-color: var(--blue); }
.project-tagline { font-weight: 500; margin-bottom: 0.4em; }
.project-replaced { position: relative; z-index: 1; font-size: 0.88rem; font-weight: 500; color: var(--muted); margin: -0.4em 0 0.6em; }
.project-desc { color: var(--muted); font-size: 0.93rem; }
.project-meta { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.82rem; color: var(--faint); }
.project-meta a { position: relative; z-index: 1; }
.status { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--surface); color: var(--text); box-shadow: 0 4px 14px -6px rgba(0, 0, 0, 0.4); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-development { color: var(--development); }
.status-active { color: var(--active); }
.status-replaced { color: var(--replaced); }
.status-archived { color: var(--archived); }
.status-defunct { color: var(--defunct); }

/* Reports */
.report-list { display: grid; gap: 16px; }
.report-item { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; position: relative; }
.report-item h3 a { color: var(--text); text-decoration: none; }
.report-item h3 a::after { content: ""; position: absolute; inset: 0; }
.report-item:hover { border-color: var(--blue); }
.report-thumb { width: 64px; height: 64px; border-radius: 14px; display: grid; place-items: center; background: var(--ridgwell); color: #fff; overflow: hidden; }
.report-thumb img { width: 100%; height: 100%; object-fit: cover; }
.report-meta { font-size: 0.85rem; color: var(--faint); margin-bottom: 4px; }
.report-meta a { position: relative; z-index: 1; }

/* Prose (legal, changelog, reports) */
.prose { font-size: 1.02rem; }
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose .updated { color: var(--faint); font-size: 0.9rem; margin-top: 2em; }
.prose figure { margin: 0 0 1em; }
.prose figcaption { font-size: 0.82rem; color: var(--faint); margin-top: 6px; text-align: center; }
.prose figure img { border-radius: var(--radius-sm); border: 1px solid var(--border); background: #fff; }
.prose .figure-right { float: right; margin: 0 0 1em 1.5em; max-width: 160px; }
.prose .figure-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-end; justify-content: center; margin: 1.2em 0 1.6em; clear: both; }
.prose .figure-row figure { margin: 0; flex: 0 1 auto; }
.prose .references { font-size: 0.9rem; color: var(--muted); overflow-wrap: anywhere; }
.prose h2 { clear: both; }
@media (max-width: 560px) { .prose .figure-right { float: none; margin: 0 auto 1em; } }
.legal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 1.6em; }
.legal-grid a { display: block; text-decoration: none; padding: 18px 20px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); }
.legal-grid a:hover { border-color: var(--blue); }
.legal-grid strong { display: block; color: var(--text); }
.legal-grid span { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 560px) { .legal-grid { grid-template-columns: 1fr; } }
.cl-badge { display: inline-block; font-size: 0.78rem; font-weight: 700; color: #fff; padding: 3px 12px; border-radius: 999px; background: #8a8a94; }
.cl-badge.cl-added { background: #2ecc71; }
.cl-badge.cl-changed { background: #3ba7ff; }
.cl-badge.cl-fixed { background: #ffa64d; }
.cl-badge.cl-removed { background: #ff4d4d; }
.cl-badge.cl-security { background: #b06bff; }
.cl-badge.cl-deprecated { background: #8a8a94; }
.cl-badge.cl-added, .cl-badge.cl-changed, .cl-badge.cl-fixed { color: #0d1b2a; }

/* Contact */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list .card-icon { margin: 0; }
.contact-list small { display: block; color: var(--faint); font-size: 0.82rem; }
.contact-list a { font-weight: 600; overflow-wrap: anywhere; }

/* Blue "Get in touch" band */
.band { background: var(--ridgwell-diag); color: #fff; }
.band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: 52px; }
.band h2 { color: #fff; margin-bottom: 0.2em; }
.band p { color: rgba(255, 255, 255, 0.9); margin: 0; }
.band-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
.site-footer { background: var(--bg-raised); border-top: 1px solid var(--border); padding-block: 48px 28px; font-size: 0.93rem; }
.footer-top { display: grid; grid-template-columns: 1.2fr 2fr; gap: 32px; }
.footer-brand p { color: var(--muted); margin: 10px 0 16px; }
.footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.footer-links h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); margin-bottom: 10px; }
.footer-links a { display: block; color: var(--muted); text-decoration: none; padding: 3px 0; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--faint); }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--muted); }
.family-mark { display: inline-flex; align-items: center; gap: 10px; color: var(--faint); text-decoration: none; }
.family-mark img { height: 28px; width: auto; filter: grayscale(1); opacity: 0.75; transition: filter 0.2s ease, opacity 0.2s ease; }
.family-mark:hover img, .family-mark:focus-visible img { filter: none; opacity: 1; }
.heart { color: #ff4d6d; vertical-align: -1px; }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .footer-links { grid-template-columns: 1fr 1fr; } }

/* Error and holding pages */
.error-page { padding-block: 96px; text-align: center; }
.error-page .lead { margin-inline: auto; }
.error-page .actions { justify-content: center; }
body.holding { min-height: 100vh; display: grid; background: var(--ridgwell-diag); color: #fff; }
.holding-main { display: grid; place-items: center; padding: 32px 16px; }
.holding-card { text-align: center; max-width: 560px; }
.holding-card img.holding-photo { width: 132px; height: 132px; object-fit: cover; object-position: top; border-radius: 50%; border: 5px solid rgba(255, 255, 255, 0.9); margin: 0 auto 22px; }
.holding-card h1 { color: #fff; }
.holding-card p { color: rgba(255, 255, 255, 0.92); }
.holding-card a { color: #fff; font-weight: 600; }
.holding-card .social { justify-content: center; margin: 22px 0; }
.holding-card .social a { color: #fff; background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.4); }
.holding-card .social a:hover { background: #fff; color: var(--blue-deep); }
.holding-foot { font-size: 0.85rem; opacity: 0.85; }
