/* ALESIN.LT — core stylesheet.
   Approved visual identity: warm off-white, near-black ink, cobalt accent.
   Deliberately distinct from LŽTBKA (separate teal/clay palette, separate
   CSS file, never shared). Fonts declared with strong system fallbacks so
   rendering never depends on the Google Fonts request succeeding. */

:root {
    --ink: #161513;
    --bg: #F7F5F1;
    --accent: #1B3A6B;
    --gold: #A9822E;
    --muted: #8B8880;
    --border: #E3DED5;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
}

a {
    color: var(--accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
.site-nav-toggle-label:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
    }
}

.site-header {
    border-bottom: 1px solid var(--border);
}

.site-header__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.site-logo {
    font-weight: 700;
    font-size: 1.3rem;
    text-decoration: none;
    color: var(--ink);
    letter-spacing: 0.01em;
    flex-shrink: 0;
}

.site-nav {
    display: flex;
    gap: 1.25rem;
    flex: 1;
    /* Separates the wordmark from the nav without altering the shared
       .site-header__inner gap (which also spaces LT/EN and Family Space).
       Inert below 1000px, where .site-nav is display:none. */
    margin-left: 1rem;
}

.site-nav a {
    text-decoration: none;
    /* Tint of --ink (approx. 72%), not a new palette colour: demotes the
       eight nav items below the wordmark so ALESIN.LT is the only element
       at full ink strength. 8.6:1 on --bg. --muted would be 3.1:1. */
    color: #4A4844;
    font-size: 0.92rem;
    padding: 0.2rem 0;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.site-nav a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* Mobile nav toggle — CSS only, no JavaScript, same pattern as LŽTBKA
   (proven, accessible: no aria-hidden on the interactive control). */
.site-nav-toggle-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.site-nav-toggle-label {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    margin-left: auto;
}

.site-nav-toggle-label span {
    display: block;
    height: 2px;
    background: var(--ink);
    border-radius: 1px;
}

.lang-switcher a {
    margin-left: 0.5rem;
    text-decoration: none;
    color: var(--muted);
    font-size: 0.85rem;
}

.lang-switcher a.is-active {
    font-weight: 700;
    color: var(--ink);
}

.site-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    min-height: 50vh;
}

.hero h1 {
    font-size: 2.4rem;
    margin-bottom: 0.75rem;
}

.hero p {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 640px;
}

.page-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.site-footer {
    border-top: 1px solid var(--border);
    margin-top: 3rem;
}

.site-footer__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem;
    font-size: 0.85rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.margin-mark--footer {
    margin: 0;
}

/* Login forms (admin / private) */
.auth-form {
    max-width: 380px;
    margin: 3rem auto;
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: 6px;
}

.auth-form h1 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.auth-form input[type="text"],
.auth-form input[type="password"],
.auth-form input[type="email"] {
    width: 100%;
    padding: 0.6rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
}

.auth-form button {
    width: 100%;
    padding: 0.7rem;
    background: var(--ink);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

.auth-form button:hover {
    background: var(--accent);
}

.auth-error {
    background: #fdecea;
    color: #7a1c1c;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* =========================================================================
   HOMEPAGE — editorial design system
   "A public record of one person's work and life, kept with an editor's
   discipline." New classes only, below — nothing above this line was
   removed, so About/Media/Human Rights/Projects/Articles/Contact and the
   admin/private login screens keep working unchanged.
   ========================================================================= */

/* Margin mark — the one recurring motif. A short cobalt annotation mark,
   never a logo, never a repeated decorative stripe. Sized up for the hero
   and footer closing use; default size stays for section numbers. */
.margin-mark {
    display: inline-block;
    width: 18px;
    height: 3px;
    background: var(--accent);
    margin-right: 0.6rem;
    vertical-align: middle;
    flex-shrink: 0;
}

.margin-mark--hero {
    width: 26px;
    height: 4px;
    margin-right: 0.75rem;
}

.margin-mark--footer {
    width: 28px;
    height: 4px;
    margin: 0 0.75rem 0 0;
}

/* ---- Hero — A+ direction: personal entrance (identity + portrait),
   then a hairline divider, then the manifesto as a quieter second beat.
   Height is intentionally NOT capped to a fixed vh value — it's sized by
   its own content (kicker + name + portrait height on row 1, four
   manifesto lines + statement on row 2) so it stays "substantial but not
   full-screen" without an arbitrary ceiling. ------------------------- */

.home-hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.4rem 1.5rem 0.75rem;
}

.home-hero__row--top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.home-hero__intro-col {
    flex: 1 1 320px;
    min-width: 0;
    padding-top: 0.2rem;
}

.home-hero__kicker {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 0.35rem;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--muted);
    text-transform: uppercase;
}

.home-hero__kicker-rule {
    width: 22px;
    height: 1.5px;
    background: var(--gold);
    display: inline-block;
    flex-shrink: 0;
}

.home-hero__name {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: clamp(2.1rem, 2.8vw + 1rem, 3.2rem);
    line-height: 1.12;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin: 0;
}

.home-hero__portrait-col {
    flex-shrink: 0;
}

.home-hero__portrait-frame {
    position: relative;
    width: clamp(140px, 16vw, 210px);
    aspect-ratio: 6 / 7;
}

.home-hero__portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 30%;
    display: block;
    border: 1px solid var(--ink);
}

.home-hero__portrait-corner {
    position: absolute;
    width: 14px;
    height: 14px;
}

.home-hero__portrait-corner--br {
    bottom: -1px;
    right: -1px;
    border-bottom: 1.5px solid var(--gold);
    border-right: 1.5px solid var(--gold);
}

.home-hero__divider {
    border-top: 1px solid var(--border);
    margin: 0.55rem 0 0.55rem;
}

.home-hero__lines {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    margin-bottom: 0.45rem;
}

.home-hero__line {
    font-family: var(--font-sans);
    line-height: 1.08;
}

.home-hero__line--1 {
    font-weight: 700;
    font-size: clamp(1.9rem, 2.6vw + 1rem, 3rem);
    color: var(--ink);
    letter-spacing: -0.01em;
}

.home-hero__line--2 {
    font-weight: 600;
    font-size: clamp(1.5rem, 2vw + 1rem, 2.4rem);
    color: var(--ink);
    margin-left: 0.4rem;
}

.home-hero__line--3 {
    font-weight: 500;
    font-size: clamp(1.2rem, 1.6vw + 1rem, 1.9rem);
    color: var(--accent);
    margin-left: 0.85rem;
}

.home-hero__line--4 {
    font-weight: 400;
    font-size: clamp(1rem, 1.2vw + 1rem, 1.5rem);
    color: var(--muted);
    margin-left: 1.2rem;
}

.home-hero__statement {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--ink);
    max-width: 46ch;
    margin: 0;
    padding-left: 1rem;
    border-left: 2px solid var(--gold);
}

/* ---- Shared section skeleton, 01-08 ------------------------------------- */

.home-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.25rem 1.5rem;
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1.5rem;
    border-top: 1px solid var(--border);
}

.home-section__number {
    display: flex;
    align-items: center;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.home-section__body h2 {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.35rem;
    color: var(--ink);
    margin: 0 0 0.9rem;
}

.home-section__body p {
    max-width: 62ch;
    margin: 0 0 0.75rem;
    color: var(--ink);
}

.section-intro {
    color: var(--muted);
}

.section-link a {
    font-weight: 600;
}

/* ---- 01 Introduction — calm, offset two-column, reduced padding so it
   performs its gateway role efficiently ---------------------------------- */

.home-section--intro {
    padding-top: 1.4rem;
    padding-bottom: 1.4rem;
}

.home-section--intro .home-section__body {
    max-width: 56ch;
}

.home-section--intro .home-section__body p {
    line-height: 1.8;
    font-size: 1.02rem;
}

/* ---- Gateway — compact editorial index between Section 01 and 02.
   Not a nav menu, not buttons: plain text links of equal weight,
   separated by literal middle-dot characters (same convention as the
   hero kicker), with one small gold mark opening the row. All four
   destinations render identically — none is visually promoted. -------- */

.home-gateway {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.4rem 1.5rem 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.6rem 0.9rem;
}

.home-gateway__mark {
    width: 18px;
    height: 3px;
    background: var(--gold);
    display: inline-block;
    margin-right: 0.3rem;
    flex-shrink: 0;
}

.home-gateway a {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.96rem;
    color: var(--ink);
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.home-gateway a:hover,
.home-gateway a:focus-visible {
    color: var(--accent);
    border-bottom-color: var(--gold);
}

.home-gateway__sep {
    color: var(--muted);
    font-size: 0.9rem;
}

/* ---- 02 Current focus — editorial banded rows, NOT a bullet list ------- */

.focus-bands {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
    max-width: 72ch;
    border-top: 1px solid var(--border);
}

.focus-band {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.4rem 0;
    border-bottom: 1px solid var(--border);
}

.focus-band__index {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--accent);
    letter-spacing: 0.04em;
    padding-top: 0.35rem;
    min-width: 2rem;
    flex-shrink: 0;
}

.focus-band__body {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
    min-width: 0;
}

.focus-band__kicker {
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-size: 0.7rem;
    color: var(--muted);
    font-weight: 600;
}

.focus-band__theme {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--ink);
    line-height: 1.25;
}

.focus-band__desc {
    color: var(--muted);
    font-size: 0.94rem;
    max-width: 54ch;
}

.focus-band__date {
    font-variant-numeric: tabular-nums;
    color: var(--muted);
    font-size: 0.8rem;
    padding-top: 0.4rem;
    flex-shrink: 0;
}

/* ---- 03 Media & public interest — the dramatic pull-statement moment --- */

.home-section--statement {
    padding: 3.5rem 1.5rem;
}

.home-section--statement .pull-statement {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.5rem, 2vw + 1rem, 2.2rem);
    line-height: 1.5;
    color: var(--ink);
    max-width: 48ch;
    border-left: 3px solid var(--accent);
    padding-left: 1.4rem;
    margin: 0;
}

/* ---- 04 Selected projects — numbered archive register ------------------ */

.editorial-register {
    list-style: none;
    margin: 0.75rem 0 1.25rem;
    padding: 0;
    max-width: 72ch;
    border-top: 1px solid var(--border);
}

.editorial-register li {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: baseline;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border);
}

.editorial-register__number {
    font-variant-numeric: tabular-nums;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
    min-width: 1.8rem;
}

.editorial-register__label {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ink);
}

.editorial-register__line {
    color: var(--muted);
    font-size: 0.94rem;
    flex-basis: 100%;
}

/* ---- 05 Writing — bibliography-style shell, styled even though empty --- */

.home-section--writing .section-intro {
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.05rem;
    max-width: 56ch;
}

/* ---- 06 Stories — warmer register, structured image-frame placeholder -- */

.home-section--stories {
    background: #F1ECE3;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 3rem 1.5rem;
}

.stories-feature {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 2rem;
    align-items: start;
    max-width: 72ch;
}

.stories-feature__frame {
    position: relative;
    aspect-ratio: 4 / 5;
    background: #E9E2D5;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.crop-mark {
    position: absolute;
    width: 14px;
    height: 14px;
    pointer-events: none;
}

.crop-mark--tl {
    top: 8px;
    left: 8px;
    border-top: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
}

.crop-mark--tr {
    top: 8px;
    right: 8px;
    border-top: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
}

.crop-mark--bl {
    bottom: 8px;
    left: 8px;
    border-bottom: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
}

.crop-mark--br {
    bottom: 8px;
    right: 8px;
    border-bottom: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
}

.stories-feature__caption-slot {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.stories-feature__text p {
    max-width: 46ch;
}

.stories-feature__note {
    color: var(--muted);
    font-size: 0.88rem;
    font-style: italic;
}

/* ---- 07 Institutional / LŽTBKA — restrained but a real destination ----- */

.home-section--institutional {
    border-top: 1px solid var(--accent);
}

.home-section--institutional h2 {
    font-size: 1.6rem;
}

/* ---- 08 Contact / closing — compact, confident, ends fast -------------- */

.home-section--closing {
    padding-bottom: 3rem;
}

.home-section--closing h2 {
    font-size: 1.2rem;
}

/* ---------------------------------------------------------------------- */
/* Responsive                                                              */
/* ---------------------------------------------------------------------- */

@media (max-width: 900px) {
    .home-hero__row--top {
        flex-direction: column;
        gap: 1.25rem;
    }

    .home-hero__intro-col {
        flex-basis: auto;
    }

    .home-hero__portrait-col {
        align-self: flex-start;
    }

    .home-hero__portrait-frame {
        width: clamp(120px, 34vw, 170px);
    }

    .home-hero__divider {
        margin: 1.25rem 0 1rem;
    }

    .home-hero__line--2 { margin-left: 0.3rem; }
    .home-hero__line--3 { margin-left: 0.8rem; }
    .home-hero__line--4 { margin-left: 1.2rem; }
}

@media (max-width: 720px) {
    .home-section {
        grid-template-columns: 48px 1fr;
        gap: 1rem;
    }

    .focus-band {
        flex-wrap: wrap;
    }

    .stories-feature {
        grid-template-columns: 1fr;
    }

    .stories-feature__frame {
        aspect-ratio: 3 / 2;
    }
}

/* =========================================================================
   NEW SECTIONS — CV / Experience, Gallery, Stories, Family Space link,
   Projects register additions, Contact additions. Additive only —
   nothing above this point was removed or renamed.
   ========================================================================= */

/* Family Space — discreet, visually separate from the main editorial nav */
.family-space-link {
    font-size: 0.78rem;
    color: var(--muted);
    text-decoration: none;
    padding-left: 0.85rem;
    margin-left: 0.35rem;
    border-left: 1px solid var(--border);
    white-space: nowrap;
}

.family-space-link:hover {
    color: var(--accent);
}

/* ---- CV / Experience page ------------------------------------------------ */

.cv-page .section-intro {
    max-width: 62ch;
    font-size: 1.05rem;
}

.cv-block {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.cv-block h2 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink);
    margin: 0 0 1rem;
}

.cv-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 68ch;
}

.cv-list li {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
}

.cv-list__title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--ink);
    margin: 0;
}

.cv-list__year {
    font-weight: 500;
    color: var(--accent);
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
}

.cv-list__detail {
    color: var(--muted);
    font-size: 0.92rem;
    margin: 0.3rem 0 0;
}

.cv-tags-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0;
    margin: 0;
    padding: 0;
    max-width: 68ch;
}

.cv-tags-list li {
    font-size: 0.92rem;
    color: var(--ink);
}

.cv-tags-list li:not(:last-child)::after {
    content: "\00b7";
    color: var(--muted);
    margin: 0 0.6rem;
}

.cv-languages {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.5rem 1.5rem;
    margin: 0;
    max-width: 50ch;
}

.cv-languages dt {
    font-weight: 600;
    color: var(--ink);
}

.cv-languages dd {
    margin: 0;
    color: var(--muted);
}

/* ---- Projects register additions (status tag, linked labels) ----------- */

.editorial-register__status {
    display: inline-block;
    margin-left: 0.6rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 0.1rem 0.4rem;
}

.editorial-register__label a {
    color: var(--ink);
}

.editorial-register__label a:hover {
    color: var(--accent);
}

/* ---- Contact additions --------------------------------------------------- */

.contact-email a {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 0.15rem;
    overflow-wrap: break-word;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.contact-email a:hover,
.contact-email a:focus-visible {
    color: var(--accent);
    border-bottom-color: var(--gold);
}

.contact-social-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.25rem;
}

.contact-social-links a {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 0.1rem;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.contact-social-links a:hover,
.contact-social-links a:focus-visible {
    color: var(--accent);
    border-bottom-color: var(--gold);
}

/* ---- Gallery page --------------------------------------------------------- */

.gallery-page__mark {
    width: 44px;
    height: 3px;
    background: var(--accent);
    display: block;
    margin-bottom: 1.25rem;
}

.gallery-page__kicker {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 0.5rem;
}

.page-content.gallery-page h1 {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: clamp(2.2rem, 3vw + 1rem, 3rem);
    line-height: 1.15;
    color: var(--ink);
    margin: 0 0 1rem;
}

.gallery-page__lead {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.15rem, 1.3vw + 1rem, 1.35rem);
    line-height: 1.5;
    color: var(--ink);
    max-width: 62ch;
    margin: 0 0 1.5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem 2rem;
    margin-top: 2rem;
}

.gallery-item {
    margin: 0;
}

/* No fixed aspect-ratio here — real photographs render at their natural
   proportions (see ".gallery-item__frame img" below). Portrait images
   stay portrait, landscape images stay landscape; rows may contain
   whitespace where two images differ in height, which is intentional. */
.gallery-item__frame {
    display: block;
}

.gallery-item__frame img {
    width: 100%;
    height: auto;
    display: block;
}

/* The pending (not-yet-uploaded) state has no real photograph to derive
   proportions from, so it keeps a sensible placeholder box shape — this
   is a fallback box for missing files, not a crop applied to real
   photography, and never applies once a real image exists. */
.gallery-item__frame--pending {
    aspect-ratio: 4 / 5;
    border: 1px solid var(--border);
    background: #EFEBE3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item__pending-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--muted);
}

.gallery-item__caption {
    margin-top: 0.85rem;
}

.gallery-item__cap {
    font-weight: 600;
    font-size: 0.96rem;
    color: var(--ink);
    margin: 0;
}

.gallery-item__det {
    color: var(--muted);
    font-size: 0.86rem;
    margin: 0.2rem 0 0;
    max-width: 50ch;
}

.gallery-pending-note {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.88rem;
    font-style: italic;
    max-width: 62ch;
}

/* ---- Stories page ---------------------------------------------------------- */

.stories-page__mark {
    width: 44px;
    height: 3px;
    background: var(--accent);
    display: block;
    margin-bottom: 1.25rem;
}

.stories-page__kicker {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 0.5rem;
}

.page-content.stories-page h1 {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: clamp(2.2rem, 3vw + 1rem, 3rem);
    line-height: 1.15;
    color: var(--ink);
    margin: 0 0 1rem;
}

.stories-page__lead {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.15rem, 1.3vw + 1rem, 1.35rem);
    line-height: 1.6;
    color: var(--ink);
    max-width: 62ch;
    margin: 0 0 1.5rem;
}

.story-register {
    list-style: none;
    margin: 1.75rem 0 0;
    padding: 0;
    max-width: 70ch;
    border-top: 1px solid var(--border);
}

.story-entry {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}

.story-entry__date {
    font-family: var(--font-sans);
    font-variant-numeric: tabular-nums;
    color: var(--muted);
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}

.story-entry__title {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: clamp(1.25rem, 1.1vw + 1rem, 1.4rem);
    line-height: 1.3;
    color: var(--ink);
}

.story-entry__excerpt {
    font-family: var(--font-serif);
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 60ch;
}

.story-empty {
    margin-top: 2rem;
    padding: 2.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    max-width: 62ch;
}

.story-empty__note {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--muted);
    font-size: 1.05rem;
    margin: 0;
}

/* ---------------------------------------------------------------------- */
/* Responsive additions                                                    */
/* ---------------------------------------------------------------------- */

@media (max-width: 720px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Header/nav switches to the hamburger layout well before the 8-item
   desktop nav gets crowded — logo + 8 nav items + LT/EN + Family Space
   need roughly 1000px+ to stay comfortably on one line. Placed here,
   after every base rule (including .family-space-link above), so this
   override reliably wins the cascade at matching viewport widths. */
@media (max-width: 1000px) {
    .site-nav-toggle-label {
        display: flex;
    }

    .site-nav {
        display: none;
        flex-direction: column;
        gap: 0;
        flex-basis: 100%;
        width: 100%;
        order: 3;
        border-top: 1px solid var(--border);
        margin-top: 0.75rem;
        padding-top: 0.5rem;
    }

    .site-nav a {
        padding: 0.6rem 0;
        border-bottom: 1px solid var(--border);
    }

    .site-nav-toggle-input:checked ~ .site-nav,
    .site-header__inner:has(.site-nav-toggle-input:checked) .site-nav {
        display: flex;
    }

    .site-header__inner {
        flex-wrap: wrap;
    }

    .family-space-link {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        margin-top: 0.5rem;
        order: 4;
        flex-basis: 100%;
    }
}

/* Writing entry detail — responsive YouTube embed wrapper only.
   Same aspect-ratio technique already used for Gallery's image frames;
   nothing existing changed. */
.entry-video-embed {
    position: relative;
    aspect-ratio: 16 / 9;
    max-width: 720px;
    margin: 1rem 0;
    background: var(--border);
}

.entry-video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* =========================================================================
   ABOUT PAGE PILOT — opt-in internal-page editorial system.
   Additive only: does not modify .page-content, .page-content h1, or
   .section-link (all three are shared with other internal pages and/or
   the locked homepage). .about-page h1 wins over .page-content h1 via
   source order at equal specificity, scoped to this page only.
   The left-rule marker reuses the exact visual device already
   established on the homepage (.pull-statement, .home-hero__statement
   both use a left border-rule) — same language, not a new identity.
   ========================================================================= */

.about-page__body {
    border-left: 3px solid var(--accent);
    padding-left: 1.75rem;
    max-width: 62ch;
}

.about-page__kicker {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 0.5rem;
}

.about-page h1 {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: clamp(2.2rem, 3vw + 1rem, 3rem);
    line-height: 1.15;
    color: var(--ink);
    margin: 0 0 1rem;
}

.about-page__lead {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.15rem, 1.3vw + 1rem, 1.35rem);
    line-height: 1.5;
    color: var(--ink);
    margin: 0 0 1.25rem;
}

.about-page__rule {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1.25rem 0 1.5rem;
    width: 100%;
}

.about-page__body p {
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--ink);
    margin: 0 0 1rem;
}

.about-page__cta {
    margin-top: 1.5rem;
}

.about-page__cta a {
    display: inline-block;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    padding: 0.4rem 0;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.about-page__cta a:hover,
.about-page__cta a:focus-visible {
    color: var(--ink);
    border-bottom-color: var(--gold);
}

@media (max-width: 900px) {
    .about-page__body {
        border-left: none;
        padding-left: 0;
    }

    .about-page__body::before {
        content: "";
        display: block;
        width: 44px;
        height: 3px;
        background: var(--accent);
        margin-bottom: 1.25rem;
    }

    .about-page h1 {
        font-size: clamp(1.8rem, 5vw + 1rem, 2.4rem);
    }
}

/* =========================================================================
   CV PAGE V11 — opt-in internal-page editorial system, second page after
   About. Additive only where new: does not modify .page-content,
   .page-content h1, .section-intro, or .section-link. The h1 override
   uses genuinely higher specificity (.page-content.cv-page h1, two
   classes + element = 0,2,1) rather than a source-order tiebreak, per
   the corrected technique agreed for this page.
   ========================================================================= */

.cv-page__mark {
    width: 44px;
    height: 3px;
    background: var(--accent);
    display: block;
    margin-bottom: 1.25rem;
}

.cv-page__kicker {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 0.5rem;
}

.page-content.cv-page h1 {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: clamp(2.2rem, 3vw + 1rem, 3rem);
    line-height: 1.15;
    color: var(--ink);
    margin: 0 0 1rem;
}

.cv-page__lead {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.15rem, 1.3vw + 1rem, 1.35rem);
    line-height: 1.5;
    color: var(--ink);
    max-width: 62ch;
    margin: 0 0 1.5rem;
}

.cv-block h2.cv-section-label--current {
    color: var(--accent);
}

.cv-block h2.cv-section-label--historical {
    color: var(--muted);
}

@media (max-width: 480px) {
    .cv-languages {
        grid-template-columns: 1fr;
        gap: 0.15rem 0;
    }

    .cv-languages dd {
        margin-bottom: 0.6rem;
    }
}

/* =========================================================================
   PROJECTS PAGE V13 — opt-in internal-page editorial system, third page
   after About/CV. Fully isolated from .editorial-register* (shared with
   the FINAL-LOCK homepage's own Projects teaser) — this page uses its
   own .project-register/.project-entry* names throughout, zero overlap.
   .section-intro and .page-content/.page-content h1 base rules likewise
   untouched; the h1 override uses the same genuinely-higher-specificity
   technique already proven on CV (.page-content.projects-page h1).
   ========================================================================= */

.projects-page__mark {
    width: 44px;
    height: 3px;
    background: var(--accent);
    display: block;
    margin-bottom: 1.25rem;
}

.projects-page__kicker {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 0.5rem;
}

.page-content.projects-page h1 {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: clamp(2.2rem, 3vw + 1rem, 3rem);
    line-height: 1.15;
    color: var(--ink);
    margin: 0 0 1rem;
}

.projects-page__lead {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.15rem, 1.3vw + 1rem, 1.35rem);
    line-height: 1.5;
    color: var(--ink);
    max-width: 62ch;
    margin: 0 0 1.5rem;
}

.project-register {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    max-width: 72ch;
    border-top: 1px solid var(--border);
}

.project-entry {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 0.9rem;
    align-items: baseline;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--border);
}

.project-entry__number {
    font-variant-numeric: tabular-nums;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
    min-width: 1.8rem;
}

.project-entry__label {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--ink);
}

.project-entry__line {
    color: var(--muted);
    font-size: 0.94rem;
    flex-basis: 100%;
}

.project-entry__status {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    flex-basis: 100%;
}

.project-entry__link {
    display: inline-block;
    width: fit-content;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    flex-basis: 100%;
    padding: 0.2rem 0;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.project-entry__link:hover,
.project-entry__link:focus-visible {
    color: var(--ink);
    border-bottom-color: var(--gold);
}

/* =========================================================================
   WRITING PAGE V14 — opt-in internal-page editorial system, fourth page
   after About/CV/Projects. Fully isolated from .stories-page,
   .stories-list*, .stories-empty-archive* (all shared with /stories/)
   and .editorial-register* (shared with the FINAL-LOCK homepage) —
   this page and its entry view use only new .writing-* names throughout.
   .section-intro and .page-content/.page-content h1 base rules likewise
   untouched. .entry-video-embed is unchanged, already isolated.
   ========================================================================= */

.writing-page__mark {
    width: 44px;
    height: 3px;
    background: var(--accent);
    display: block;
    margin-bottom: 1.25rem;
}

.writing-page__kicker {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 0.5rem;
}

.page-content.writing-page h1 {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: clamp(2.2rem, 3vw + 1rem, 3rem);
    line-height: 1.15;
    color: var(--ink);
    margin: 0 0 1rem;
}

.writing-page__lead {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.15rem, 1.3vw + 1rem, 1.35rem);
    line-height: 1.5;
    color: var(--ink);
    max-width: 62ch;
    margin: 0 0 1.5rem;
}

.writing-register {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    max-width: 72ch;
    border-top: 1px solid var(--border);
}

.writing-entry {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.9rem;
    align-items: baseline;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--border);
}

.writing-entry__meta {
    display: flex;
    gap: 0.75rem;
    align-items: baseline;
}

.writing-entry__date {
    font-variant-numeric: tabular-nums;
    color: var(--muted);
    font-size: 0.85rem;
}

.writing-entry__type {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
}

.writing-entry__title {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--ink);
    flex-basis: 100%;
}

.writing-entry__byline {
    color: var(--muted);
    font-size: 0.9rem;
    flex-basis: 100%;
}

.writing-entry__excerpt {
    color: var(--muted);
    font-size: 0.94rem;
    flex-basis: 100%;
}

.writing-entry__link {
    display: inline-block;
    width: fit-content;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    flex-basis: 100%;
    padding: 0.2rem 0;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.writing-entry__link:hover,
.writing-entry__link:focus-visible {
    color: var(--ink);
    border-bottom-color: var(--gold);
}

.writing-empty {
    margin-top: 1.5rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.writing-empty__note {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--muted);
    font-size: 1.05rem;
    margin: 0;
}

.writing-detail__meta {
    display: flex;
    gap: 0.75rem;
    align-items: baseline;
    margin: 0 0 0.75rem;
}

.writing-detail__date {
    font-variant-numeric: tabular-nums;
    color: var(--muted);
    font-size: 0.85rem;
}

.writing-detail__type {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
}

.page-content.writing-detail h1 {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: clamp(2rem, 2.8vw + 1rem, 2.8rem);
    line-height: 1.2;
    color: var(--ink);
    margin: 0 0 0.75rem;
}

.writing-detail__byline {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0 0 1rem;
}

.writing-detail__excerpt {
    color: var(--ink);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 0 1.5rem;
    max-width: 62ch;
}

.writing-detail__action {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    padding: 0.2rem 0;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.writing-detail__action:hover,
.writing-detail__action:focus-visible {
    color: var(--ink);
    border-bottom-color: var(--gold);
}

.writing-detail__back {
    margin-top: 2rem;
}

/* =========================================================================
   CONTACT PAGE V17 — opt-in internal-page editorial system, final page in
   this series. Deliberately the shortest/simplest: identity block, one
   lead, one supporting paragraph, a thin rule, then the single primary
   action (email) with secondary links beneath. No register/list pattern
   is needed here — there's nothing to register. Never used the shared
   .section-intro (confirmed by audit), so nothing to isolate away from
   there. .contact-email / .contact-social-links were already confirmed
   Contact-only and are restyled in place, not renamed.
   ========================================================================= */

.contact-page__mark {
    width: 44px;
    height: 3px;
    background: var(--accent);
    display: block;
    margin-bottom: 1.25rem;
}

.contact-page__kicker {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 0.5rem;
}

.page-content.contact-page h1 {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: clamp(2.2rem, 3vw + 1rem, 3rem);
    line-height: 1.15;
    color: var(--ink);
    margin: 0 0 1rem;
}

.contact-page__lead {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.15rem, 1.3vw + 1rem, 1.35rem);
    line-height: 1.5;
    color: var(--ink);
    max-width: 62ch;
    margin: 0 0 1rem;
}

.contact-page__body {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 60ch;
    margin: 0 0 1.5rem;
}

.contact-page__action {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.contact-page__action .contact-email {
    margin: 0 0 1rem;
}
