/* Shared presentation. No framework or external font requests. */
:root {
    color-scheme: dark;
    --bg: #101820;
    --surface: #16212b;
    --surface-raised: #1b2833;
    --text: #eef0f2;
    --muted: #adb7c1;
    --subtle: #95a4b1;
    --accent: #d1ac78;
    --accent-strong: #e5c698;
    --accent-soft: #d1ac7812;
    --border: #2a3743;
    --focus: #e9bc7e;
    --header-bg: #101820;
    --shadow: 0 10px 26px #00000014;
    --radius: 12px;
}
:root[data-theme="light"] {
    color-scheme: light;
    --bg: #f3f5f7;
    --surface: #ffffff;
    --surface-raised: #eaf0f4;
    --text: #202d38;
    --muted: #52616e;
    --subtle: #5d6b78;
    --accent: #85551f;
    --accent-strong: #6b4113;
    --accent-soft: #85551f0c;
    --border: #d4dce2;
    --focus: #7e4f18;
    --header-bg: #ffffff;
    --shadow: 0 10px 26px #25344109;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 1rem/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
main { flex: 1; }
main:focus { outline: none; }
[hidden] { display: none !important; }
img, video { display: block; max-width: 100%; height: auto; }
svg { flex: none; }
a { color: var(--accent); text-underline-offset: .25em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-strong); }
button { font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, video:focus-visible { outline: 2px solid var(--focus); outline-offset: 5px; }
button:focus:not(:focus-visible) { outline: none; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.23; font-weight: 600; text-wrap: balance; }
h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(2.5rem, 5vw, 3.9rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.6rem, 2.5vw, 2rem); letter-spacing: -.025em; }
h3 { font-size: 1.2rem; letter-spacing: -.015em; }
.container { width: min(100% - 5rem, 1200px); margin-inline: auto; }
.icon { width: 24px; height: 24px; }
.eyebrow { font-size: .75rem; line-height: 1.5; text-transform: uppercase; letter-spacing: .16em; font-weight: 650; color: var(--accent); margin-bottom: .65rem; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 100; padding: .7rem 1rem; border-radius: 6px; background: var(--surface); color: var(--text); }
.skip-link:focus { top: 1rem; }
.site-header { background: var(--header-bg); border-bottom: 1px solid var(--border); }
.header-inner { min-height: 92px; display: flex; align-items: center; gap: 2rem; position: relative; }
.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; color: var(--text); white-space: nowrap; font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; line-height: 1.1; }
.brand:hover { color: var(--text); }
.brand strong, .footer-brand strong { font-weight: 400; color: var(--accent); }
.brand small { display: block; margin-top: .5rem; font: .75rem/1.4 system-ui, sans-serif; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.brand-mark { width: 43px; height: 43px; border: 1px solid var(--accent); border-radius: 50%; display: grid; place-items: center; color: var(--accent); }
.brand-mark .icon { width: 22px; height: 22px; }
.primary-nav { margin-left: auto; display: flex; align-items: center; gap: clamp(1rem, 1.7vw, 1.6rem); }
.primary-nav a { font-size: .875rem; white-space: nowrap; color: var(--muted); text-decoration: none; padding: 1rem 0; position: relative; }
.primary-nav a:hover, .primary-nav a[aria-current] { color: var(--text); }
.primary-nav a[aria-current]::after { content: ""; position: absolute; height: 2px; background: var(--accent); bottom: .6rem; left: 0; right: 0; }
.header-controls { display: flex; gap: .5rem; align-items: center; }
.icon-button { width: 42px; height: 42px; display: grid; place-items: center; background: transparent; color: var(--muted); border: 1px solid var(--border); border-radius: 8px; padding: 0; }
.icon-button span { display: flex; }
.icon-button:hover { background: var(--surface-raised); color: var(--accent); }
.icon-button .icon { width: 19px; height: 19px; }
.theme-moon, [data-theme="light"] .theme-sun, .menu-close-icon { display: none !important; }
[data-theme="light"] .theme-moon { display: flex !important; }
.menu-toggle[aria-expanded="true"] .menu-open-icon { display: none; }
.menu-toggle[aria-expanded="true"] .menu-close-icon { display: flex !important; }
.hero { margin-top: 1.75rem; min-height: 465px; padding: 4rem 3.6rem 4.5rem; border-radius: 16px; position: relative; isolation: isolate; overflow: hidden; background: #24384d; color: #fff; }
.hero-image { position: absolute; z-index: -2; width: 100%; height: 100%; inset: 0; object-fit: cover; object-position: center 68%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #0b1625f0 0%, #102033d6 35%, #13263a5e 73%, #14263a1a), linear-gradient(0deg, #0b1625b3, transparent 40%); }
.hero-content { max-width: 610px; }
.hero .eyebrow { color: #dfc299; margin-bottom: 1.2rem; }
.hero h1 { font-size: clamp(2.8rem, 4.5vw, 4.15rem); line-height: 1.12; }
.hero h1 span { color: #f2d4aa; }
.hero-description { font-size: 1.1rem; line-height: 1.7; color: #e1e6ed; max-width: 440px; margin-top: 1.4rem; }
.button-group { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.9rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .65rem 1.25rem; font-size: .875rem; font-weight: 600; line-height: 1.5; border: 1px solid transparent; border-radius: 6px; text-decoration: none; transition: background .18s, border-color .18s, box-shadow .18s; }
.button-primary { background: #d1ac78; color: #18212a; border-color: #d1ac78; }
.button-primary:hover { color: #18212a; background: #e4c493; border-color: #e4c493; box-shadow: 0 3px 14px #0002; }
.button-glass { color: #fff; background: #0b17256e; border-color: #9ba5af7d; }
.button-glass:hover { background: #152438; color: #fff; border-color: #dfc299; }
.hero a:focus-visible { outline-color: #ffe1b6; }
.button-secondary { border-color: var(--border); color: var(--text); background: var(--surface); }
.button-secondary:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.hero-bottom { position: absolute; bottom: 1.15rem; left: 3.6rem; right: 1.3rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: #e0e5ec; font-size: .75rem; }
.hero-bottom a { color: #e0e5ec; background: #101d2bb3; border-radius: 3px; padding: .15rem .4rem; font-size: .6875rem; }
.section { padding-top: 3.2rem; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 1.5rem; }
.section-heading > p { color: var(--muted); font-size: .875rem; }
.section-heading .eyebrow { margin-bottom: .4rem; }
.explore-grid, .interest-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.explore-card { display: flex; flex-direction: column; align-items: flex-start; padding: 1.55rem 1.6rem 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: border-color .18s, background .18s, transform .18s; }
.explore-card:hover { color: var(--text); border-color: var(--accent); background: var(--surface-raised); transform: translateY(-2px); }
.card-icon { display: inline-flex; color: var(--accent); margin-bottom: 1rem; }
.card-icon .icon { width: 28px; height: 28px; }
.explore-card p { color: var(--muted); font-size: 1rem; margin-top: .65rem; max-width: 33ch; }
.card-label { display: block; margin-top: auto; padding-top: 1rem; font-size: .875rem; color: var(--accent); }
.updates-grid { display: grid; gap: 2.5rem; padding-top: 3.2rem; }
.featured-preview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.project-card-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.project-card-top .card-icon { margin: 0; }
.compact h2 { font-size: 1.65rem; }
.compact .text-link { font-size: .8125rem; }
.text-link { display: inline-block; font-size: .875rem; font-weight: 550; text-decoration: none; border-bottom: 1px solid var(--border); padding-bottom: .15rem; }
.text-link:hover { border-color: var(--accent); }
.empty-state { display: flex; align-items: flex-start; gap: 1.25rem; padding: 2rem; border: 1px dashed var(--border); border-radius: var(--radius); background: var(--accent-soft); }
.empty-icon { color: var(--accent); padding-top: .15rem; display: flex; }
.empty-state h2, .empty-state h3 { font-size: 1.05rem; }
.empty-state p { color: var(--muted); font-size: 1rem; margin-top: .6rem; max-width: 65ch; }
.gallery-preview, .gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.media-card { overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; min-width: 0; }
.media-image-link { display: block; }
.media-image-link:focus-visible { outline-offset: -4px; }
.media-card img, .media-card video { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--surface-raised); }
.media-card video { object-fit: contain; }
.media-card img { transition: filter .2s; }
.media-image-link:hover img { filter: brightness(1.1); }
.media-card figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem .8rem; padding: .8rem 1rem; font-size: .8125rem; overflow-wrap: anywhere; }
.media-category { color: var(--subtle); font-size: .75rem; }
.personal-note { display: flex; align-items: center; gap: 1.7rem; border-top: 1px solid var(--border); padding-block: 2.5rem; margin-top: 3rem; }
.note-emblem { display: grid; place-items: center; flex: none; width: 65px; height: 65px; border: 1px solid var(--border); border-radius: 50%; color: var(--accent); }
.note-emblem .icon { width: 30px; height: 30px; }
.personal-note > div:nth-child(2) { max-width: 675px; }
.personal-note h2 { font: 400 1.55rem/1.3 Georgia, serif; }
.personal-note p { font-size: 1rem; color: var(--muted); margin-top: .5rem; }
.personal-note .sign-off { margin: 0 0 0 auto; flex: none; color: var(--muted); font-size: .875rem; }
.sign-off span { font: italic 1.6rem/1.6 Georgia, serif; color: var(--accent); }
.site-footer { border-top: 1px solid var(--border); background: var(--header-bg); }
.footer-main { display: grid; grid-template-columns: 1.2fr 1.3fr 1.1fr 1.1fr; gap: 2rem; padding-block: 2.2rem; }
.footer-brand { font: 1.45rem/1.3 Georgia, serif; color: var(--text); text-decoration: none; }
.footer-identity p, .donation > p:not(.footer-label) { font-size: .8125rem; color: var(--muted); margin-top: .7rem; }
.footer-label { font-size: .75rem; font-weight: 650; margin-bottom: .75rem; color: var(--text); }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem 1rem; }
.footer-links a, .elsewhere-links a { font-size: .8125rem; text-decoration: none; color: var(--muted); }
.footer-links a:hover, .elsewhere-links a:hover { color: var(--accent); }
.elsewhere-links { display: flex; flex-direction: column; gap: .35rem; }
.donation > p:not(.footer-label) { margin-top: 0; }
.donate-button { margin-top: .75rem; color: var(--accent); border: 1px solid var(--border); border-radius: 5px; background: transparent; padding: .45rem .85rem; font-size: .8125rem; min-height: 38px; }
.donate-button:hover { border-color: var(--accent); background: var(--accent-soft); }
.paypal-pixel { display: inline; }
.footer-bottom { border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 1rem; padding-block: 1rem; color: var(--subtle); font-size: .75rem; }
.page-content { padding-top: 3rem; padding-bottom: 3.5rem; }
.page-intro { padding-bottom: 2.3rem; max-width: 800px; }
.page-description { margin-top: 1rem; color: var(--muted); font-size: 1.1rem; line-height: 1.8; max-width: 65ch; }
.about-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.5rem; }
.portrait { display: grid; justify-items: center; align-content: center; gap: .8rem; padding: 1.5rem; background: var(--accent-soft); border: 1px solid var(--border); border-radius: var(--radius); }
.portrait img { width: min(100%, 210px); border-radius: 8px; }
.portrait figcaption { color: var(--subtle); font-size: .75rem; text-align: center; }
.panel { padding: 2.2rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.prose { line-height: 1.85; }
.prose h2 { font-size: 1.65rem; }
.prose p:not(.eyebrow) + p, .prose h2 + p { margin-top: 1rem; }
.prose p:not(.eyebrow) { color: var(--muted); }
.prose .text-link, .prose .button { margin-top: 1.2rem; }
.photo-placeholder { padding: 2rem; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px dashed var(--border); border-radius: var(--radius); background: var(--accent-soft); text-align: center; min-height: 260px; }
.large-icon { color: var(--accent); margin-bottom: 1rem; }
.large-icon .icon { height: 38px; width: 38px; }
.photo-placeholder > span:last-child { font-size: .8125rem; color: var(--muted); margin-top: .5rem; max-width: 27ch; }
.original-note { max-width: 760px; padding-top: 3rem; }
blockquote { margin: 1.5rem 0 0; padding-left: 1.5rem; border-left: 2px solid var(--accent); }
.interest-card { padding: 1.7rem; border-top: 1px solid var(--border); }
.interest-card h2 { font-size: 1.2rem; }
.interest-card p { font-size: 1rem; color: var(--muted); margin-top: .65rem; }
.interest-card .text-link, .awaiting-label { margin-top: 1rem; }
.awaiting-label { display: inline-block; color: var(--subtle); font-size: .75rem; }
.small-note { margin-top: 2.5rem; border-top: 1px solid var(--border); padding-top: 1.5rem; display: flex; align-items: center; gap: 1rem; color: var(--muted); font-size: .875rem; }
.small-note > span { display: flex; color: var(--accent); }
.supporting-note { color: var(--muted); font-size: .875rem; margin-top: 1.5rem; max-width: 80ch; }
.logbook-layout { display: grid; grid-template-columns: minmax(0, 2.5fr) minmax(0, 1fr); gap: 2.5rem; }
.logbook-aside { border-left: 1px solid var(--border); padding-left: 1.5rem; }
.logbook-aside > p:not(.eyebrow) { font-size: 1rem; color: var(--muted); }
.logbook-aside .text-link { margin-top: 1.2rem; }
.content-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.entry-list { display: grid; gap: 1.25rem; }
.content-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.content-card-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 1.5rem; }
.content-image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.content-card h2, .content-card h3 { margin-top: .65rem; font-size: 1.2rem; }
.content-card h2 a, .content-card h3 a { color: var(--text); text-decoration: none; }
.content-card h2 a:hover, .content-card h3 a:hover { color: var(--accent); }
.content-card p { font-size: 1rem; color: var(--muted); margin-block: .8rem 1rem; }
.content-card .text-link { margin-top: auto; }
.metadata { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .8125rem; color: var(--subtle); }
.metadata span { color: var(--accent); }
.status-label { font-size: .75rem; display: inline-block; padding: .15rem .6rem; border-radius: 4px; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--border); }
.reading-layout { width: min(100%, 760px); margin: 0 auto; }
.detail-heading { margin-block: 2rem; }
.detail-date { display: block; margin-top: 1rem; color: var(--subtle); font-size: .875rem; }
.detail-image { width: 100%; height: auto; border-radius: var(--radius); margin-bottom: 2rem; }
.gallery-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.gallery-filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-button { padding: .45rem 1rem; min-height: 42px; background: var(--surface); color: var(--muted); border: 1px solid var(--border); border-radius: 6px; font-size: .875rem; }
.filter-button:hover, .filter-button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.gallery-count { color: var(--subtle); font-size: .8125rem; }
.flight-intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.5rem; align-items: center; }
.flight-photo img { width: 100%; border-radius: var(--radius); }
.flight-photo figcaption { color: var(--subtle); font-size: .75rem; margin-top: .6rem; }
@media (max-width: 67.99rem) {
    .header-inner { gap: 1rem; flex-wrap: wrap; min-height: 82px; padding-block: 1rem; }
    .header-controls { margin-left: auto; }
    .primary-nav { order: 3; width: 100%; margin-left: 0; justify-content: flex-start; flex-wrap: wrap; gap: .25rem 1.5rem; }
    .js .primary-nav { display: none; }
    .js .primary-nav.is-open { display: flex; border-top: 1px solid var(--border); padding-top: .5rem; }
    .primary-nav a { padding: .65rem 0; }
    .primary-nav a[aria-current]::after { bottom: .25rem; }
    .hero { padding-inline: 2.5rem; }
    .hero-bottom { left: 2.5rem; }
    .compact { gap: .65rem; }
    .footer-main { grid-template-columns: 1fr 1fr; gap: 2rem 3rem; }
    .flight-intro { grid-template-columns: 1fr 1fr; }
    .flight-intro .panel { padding: 1.5rem; }
}
@media (max-width: 52rem) {
    .container { width: calc(100% - 3rem); }
    .explore-grid, .interest-grid, .gallery-grid, .content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .featured-preview { grid-template-columns: 1fr; }
    .hero { min-height: 450px; }
    .hero-bottom > span { display: none; }
    .hero-bottom { justify-content: flex-end; }
    .hero::before { background: linear-gradient(90deg, #0b1625ed, #102033a8 60%, #13263a45), linear-gradient(0deg, #0b162599, transparent 40%); }
    .updates-grid { gap: 1.5rem; }
    .empty-state { padding: 1.5rem; gap: 1rem; }
    .gallery-preview { gap: .8rem; }
    .gallery-preview .media-card figcaption { display: block; }
    .gallery-preview .media-category { display: block; }
    .personal-note { display: grid; grid-template-columns: 65px minmax(0, 1fr); align-items: start; }
    .personal-note .sign-off { grid-column: 2; margin: 0; }
    .about-layout, .flight-intro { grid-template-columns: 1fr; }
    .photo-placeholder { min-height: 240px; }
    .logbook-layout { grid-template-columns: 1fr; }
    .logbook-aside { border-left: none; border-top: 1px solid var(--border); padding-left: 0; padding-top: 1.5rem; }
}
@media (max-width: 35rem) {
    .container { width: calc(100% - 2rem); }
    .header-inner { min-height: 76px; gap: .6rem; }
    .brand { gap: .6rem; font-size: 1.25rem; }
    .brand-mark { width: 34px; height: 34px; }
    .brand-mark .icon { width: 18px; height: 18px; }
    .brand small { display: none; }
    .icon-button { width: 38px; height: 38px; }
    .header-controls { gap: .4rem; }
    .primary-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
    .js .primary-nav.is-open { display: grid; }
    .primary-nav a { width: fit-content; padding-block: .7rem; }
    .hero { margin-top: 1rem; min-height: 470px; padding: 2.5rem 1.5rem 4rem; border-radius: 10px; }
    .hero h1 { font-size: clamp(2.4rem, 9.5vw, 3.25rem); }
    .hero-description { font-size: 1rem; }
    .hero-image { object-position: 37% 65%; }
    .hero::before { background: linear-gradient(90deg, #0b1625ed, #102033bf 70%, #13263a70), linear-gradient(0deg, #0b162599, transparent 40%); }
    .hero .eyebrow { font-size: .6875rem; letter-spacing: .13em; }
    .button-group { gap: .65rem; margin-top: 1.6rem; }
    .button { padding-inline: 1rem; }
    .hero-bottom { right: 1rem; bottom: .9rem; left: 1rem; }
    .hero-bottom a { font-size: .625rem; }
    .section, .updates-grid { padding-top: 2.5rem; }
    .section-heading { flex-wrap: wrap; gap: .8rem; }
    .section-heading > p { display: none; }
    .explore-grid, .interest-grid, .gallery-grid, .content-grid, .gallery-preview { grid-template-columns: 1fr; }
    .explore-card { padding: 1.35rem 1.4rem; position: relative; }
    .explore-card .card-icon { position: absolute; top: 1.3rem; right: 1.35rem; }
    .explore-card .icon { width: 25px; height: 25px; }
    .explore-card h3 { padding-right: 2rem; }
    .explore-card p { max-width: 36ch; }
    .card-label { padding-top: .75rem; }
    .updates-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .compact { flex-direction: row; align-items: end; gap: .7rem; }
    .compact h2 { font-size: 1.5rem; }
    .compact .text-link { font-size: .75rem; white-space: nowrap; }
    .compact .eyebrow { font-size: .6875rem; }
    .updates-section .empty-state { display: flex; }
    .updates-section .empty-icon { margin: 0; }
    .gallery-preview .media-card figcaption { display: flex; }
    .personal-note { margin-top: 2.5rem; padding-block: 2rem; gap: 1rem; grid-template-columns: 42px minmax(0, 1fr); }
    .note-emblem { width: 42px; height: 42px; align-self: start; }
    .note-emblem .icon { width: 22px; height: 22px; }
    .personal-note h2 { font-size: 1.4rem; }
    .footer-main { gap: 1.7rem 1.2rem; padding-top: 2rem; }
    .footer-identity { grid-column: 1 / -1; }
    .footer-main nav:first-of-type { grid-column: 1 / -1; }
    .footer-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .donation br { display: none; }
    .footer-bottom { flex-direction: column; gap: .4rem; }
    .page-content { padding-top: 2rem; padding-bottom: 2.5rem; }
    .panel { padding: 1.5rem; }
    .page-description { font-size: 1rem; }
    .page-intro { padding-bottom: 1.8rem; }
    .empty-state { padding: 1.4rem; }
    .gallery-toolbar { gap: .75rem; }
    .filter-button { padding-inline: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
