@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Instrument+Serif:ital@0;1&display=swap');

:root {
    color-scheme: dark;
    --bg: #09070d;
    --panel: rgba(19, 15, 25, .86);
    --panel-solid: #130f19;
    --panel-hover: #1b1424;
    --text: #f5f1f8;
    --muted: #958c9f;
    --line: rgba(255, 255, 255, .09);
    --line-strong: rgba(255, 255, 255, .16);
    --purple: #a86cff;
    --purple-deep: #6f2fe8;
    --purple-soft: rgba(151, 85, 255, .13);
    --shadow: 0 24px 80px rgba(0, 0, 0, .36);
    --serif: "Instrument Serif", Georgia, serif;
    --sans: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="light"] {
    color-scheme: light;
    --bg: #f4f0f8;
    --panel: rgba(255, 255, 255, .78);
    --panel-solid: #fff;
    --panel-hover: #f6effd;
    --text: #17111d;
    --muted: #736a7d;
    --line: rgba(41, 20, 57, .11);
    --line-strong: rgba(41, 20, 57, .2);
    --purple: #7f35db;
    --purple-deep: #6b25c6;
    --purple-soft: rgba(127, 53, 219, .1);
    --shadow: 0 24px 80px rgba(72, 44, 92, .12);
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--bg) 86%, #3f136c) 0%, var(--bg) 44%, color-mix(in srgb, var(--bg) 89%, #290d49) 100%);
    font-family: var(--sans);
    transition: color .25s ease, background .25s ease;
}

button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.skip-link {
    position: fixed;
    left: 1rem;
    top: -5rem;
    z-index: 100;
    padding: .7rem 1rem;
    border-radius: .5rem;
    color: white;
    background: var(--purple-deep);
    text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.ambient {
    position: fixed;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(3px);
}
.ambient-one {
    width: 42vw;
    height: 42vw;
    right: -16vw;
    top: -18vw;
    background: radial-gradient(circle, rgba(120, 47, 205, .2), transparent 68%);
}
.ambient-two {
    width: 36vw;
    height: 36vw;
    left: 12vw;
    bottom: -26vw;
    background: radial-gradient(circle, rgba(90, 30, 170, .16), transparent 68%);
}

.app-shell {
    display: grid;
    grid-template: 180px minmax(0, 1fr) / 300px minmax(0, 1fr);
    grid-template-areas: "brand main" "rail main";
    min-height: 100vh;
}

.brand-bar {
    grid-area: brand;
    display: flex;
    align-items: flex-start;
    padding: 28px 24px 12px;
    border-right: 1px solid var(--line);
}
.brand {
    display: block;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #000;
    box-shadow: 0 14px 36px rgba(0, 0, 0, .2);
    transition: transform .25s ease, border-color .25s ease;
}
.brand:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.brand-image { display: block; width: 100%; height: auto; }
.brand-light { display: none; }
:root[data-theme="light"] .brand-light { display: block; }
:root[data-theme="light"] .brand-dark { display: none; }

.rail {
    grid-area: rail;
    display: flex;
    min-height: 0;
    flex-direction: column;
    padding: 10px 18px 24px;
    border-right: 1px solid var(--line);
}
.nav-list { display: grid; gap: 8px; }
.nav-link {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 12px;
    min-height: 67px;
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 13px;
    color: var(--muted);
    text-decoration: none;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.nav-link:hover, .nav-link:focus-visible {
    color: var(--text);
    border-color: var(--line);
    background: var(--purple-soft);
    transform: translateX(3px);
    outline: none;
}
.nav-link.is-active { color: var(--text); border-color: var(--line); background: var(--purple-soft); }
.nav-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 11px;
    color: var(--text);
    background: color-mix(in srgb, var(--panel-solid) 84%, transparent);
}
.nav-icon svg { width: 22px; height: 22px; }
.nav-copy { display: grid; gap: 2px; min-width: 0; }
.nav-copy strong { overflow: hidden; color: inherit; font-size: .87rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.nav-copy small { overflow: hidden; color: var(--muted); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.nav-arrow { width: 18px; opacity: .45; transition: transform .2s ease, opacity .2s ease; }
.nav-link:hover .nav-arrow { transform: translateX(2px); opacity: 1; }

.rail-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding: 18px 8px 0;
    border-top: 1px solid var(--line);
}
.rail-status { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .7rem; white-space: nowrap; }
.rail-status i { width: 6px; height: 6px; border-radius: 50%; background: #9a62ea; box-shadow: 0 0 12px #9a62ea; }

.theme-toggle {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0;
    border: 0;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
}
.theme-toggle:focus-visible { border-radius: 7px; outline: 2px solid var(--purple); outline-offset: 4px; }
.moon-icon { width: 16px; }
.theme-label { min-width: 29px; font-size: .7rem; }
.toggle-track {
    position: relative;
    display: block;
    width: 34px;
    height: 19px;
    border: 1px solid var(--line-strong);
    border-radius: 99px;
    background: var(--purple-soft);
}
.toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--muted);
    transition: transform .25s ease, background .25s ease;
}
:root[data-theme="dark"] .toggle-thumb { transform: translateX(15px); background: var(--purple); }
.theme-toggle-mobile { display: none; }

.main-content {
    grid-area: main;
    display: flex;
    min-width: 0;
    min-height: 100vh;
    flex-direction: column;
    padding: clamp(28px, 5vw, 76px);
}

.hero {
    width: min(760px, 100%);
    margin: auto;
    padding: 40px 0 70px;
    animation: reveal .7s cubic-bezier(.2, .8, .2, 1) both;
}
.hero-kicker, .eyebrow {
    margin: 0 0 24px;
    color: var(--purple);
    font-size: .69rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.hero-kicker { display: flex; align-items: center; gap: 10px; }
.hero-kicker span { width: 30px; height: 1px; background: var(--purple); }
.hero h1, .page-heading h1 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(4.5rem, 8.5vw, 8.2rem);
    font-weight: 400;
    letter-spacing: -.055em;
    line-height: .78;
}
.hero h1 em { color: var(--purple); font-weight: 400; }
.hero-intro {
    max-width: 480px;
    margin: 34px 0 30px;
    color: var(--muted);
    font-size: clamp(.95rem, 1.4vw, 1.08rem);
    line-height: 1.7;
}
.search-form {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto 46px;
    align-items: center;
    gap: 12px;
    min-height: 70px;
    padding: 9px 10px 9px 20px;
    border: 1px solid var(--line-strong);
    border-radius: 17px;
    background: color-mix(in srgb, var(--panel-solid) 88%, transparent);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.search-form:focus-within {
    border-color: color-mix(in srgb, var(--purple) 60%, transparent);
    box-shadow: 0 24px 80px rgba(54, 14, 92, .34), 0 0 0 3px var(--purple-soft);
    transform: translateY(-2px);
}
.search-icon { width: 23px; color: var(--muted); }
.search-form input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
    font-size: 1rem;
}
.search-form input::placeholder { color: var(--muted); opacity: .72; }
.search-form kbd {
    padding: 3px 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--muted);
    background: var(--purple-soft);
    font-family: var(--sans);
    font-size: .7rem;
}
.search-form button {
    display: grid;
    width: 46px;
    height: 46px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 12px;
    color: white;
    background: linear-gradient(135deg, var(--purple), var(--purple-deep));
    box-shadow: 0 8px 24px rgba(114, 44, 207, .3);
    cursor: pointer;
    transition: transform .2s ease, filter .2s ease;
}
.search-form button:hover { transform: scale(1.04); filter: brightness(1.12); }
.search-form button svg { width: 20px; }
.search-note { display: flex; gap: 10px; margin: 15px 2px 0; color: var(--muted); font-size: .67rem; }
.home-footer { display: flex; justify-content: space-between; color: var(--muted); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; }

.page-heading { width: min(920px, 100%); margin: 0 auto 55px; animation: reveal .6s ease both; }
.back-home { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 56px; color: var(--muted); font-size: .75rem; text-decoration: none; }
.back-home:hover { color: var(--text); }
.back-home svg { width: 17px; }
.page-heading h1 { font-size: clamp(4rem, 7vw, 7rem); line-height: .9; }
.page-intro { max-width: 540px; margin: 22px 0 0; color: var(--muted); line-height: 1.7; }

.card-grid, .utility-grid, .bookmark-grid { display: grid; width: min(920px, 100%); margin: 0 auto; gap: 16px; }
.card-grid { grid-template-columns: repeat(2, 1fr); }
.content-card, .utility-card, .empty-state {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: color-mix(in srgb, var(--panel-solid) 82%, transparent);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}
.content-card { display: flex; min-height: 310px; flex-direction: column; padding: 24px; }
.featured-card { background: linear-gradient(145deg, var(--purple-soft), color-mix(in srgb, var(--panel-solid) 88%, transparent)); }
.card-index { color: var(--muted); font-size: .68rem; }
.card-body { margin: auto 0; }
.card-tag { color: var(--purple); font-size: .65rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.content-card h2, .utility-card h2, .empty-state h2 { margin: 10px 0 8px; font-family: var(--serif); font-size: 2rem; font-weight: 400; }
.content-card p, .empty-state p { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.65; }
.card-meta { padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; }

.empty-state { display: grid; grid-template-columns: 100px 1fr; align-items: center; width: min(920px, 100%); min-height: 240px; margin: 0 auto; padding: 36px; }
.empty-number { color: var(--purple); font-family: var(--serif); font-size: 4rem; }
.empty-state h2 { font-size: 2.5rem; }
.empty-state p { max-width: 520px; }

.bookmark-grid { grid-template-columns: repeat(3, 1fr); }
.bookmark-card { display: grid; grid-template-columns: 45px 1fr auto; align-items: center; gap: 13px; min-height: 105px; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); text-decoration: none; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.bookmark-card:hover { transform: translateY(-3px); border-color: var(--line-strong); background: var(--panel-hover); }
.bookmark-letter { display: grid; width: 45px; height: 45px; place-items: center; border-radius: 12px; color: white; background: linear-gradient(145deg, var(--purple), var(--purple-deep)); font-family: var(--serif); font-size: 1.3rem; }
.bookmark-card > span:nth-child(2) { display: grid; gap: 4px; min-width: 0; }
.bookmark-card strong { overflow: hidden; font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.bookmark-card small { overflow: hidden; color: var(--muted); font-size: .67rem; text-overflow: ellipsis; white-space: nowrap; }
.external { align-self: start; color: var(--muted); }

.utility-picker {
    width: min(700px, 100%);
    margin: 0 auto 14px;
}
.utility-picker label {
    display: block;
    margin: 0 0 8px 2px;
    color: var(--muted);
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.select-wrap { position: relative; }
.select-wrap select {
    width: 100%;
    min-height: 54px;
    appearance: none;
    padding: 0 48px 0 16px;
    border: 1px solid var(--line-strong);
    border-radius: 13px;
    outline: none;
    color: var(--text);
    background: var(--panel-solid);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .15);
    cursor: pointer;
}
.select-wrap select:focus { border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-soft); }
.select-wrap svg {
    position: absolute;
    top: 50%;
    right: 16px;
    width: 20px;
    color: var(--purple);
    pointer-events: none;
    transform: translateY(-50%);
}
.utility-grid { width: min(700px, 100%); grid-template-columns: 1fr; }
.utility-card { min-height: 0; padding: 25px; animation: reveal .3s ease both; }
.utility-card-wide { grid-column: 1 / -1; }
.utility-empty {
    margin: 0;
    padding: 34px 20px;
    border: 1px dashed var(--line-strong);
    border-radius: 14px;
    color: var(--muted);
    text-align: center;
    font-size: .78rem;
}
.utility-card textarea { width: 100%; min-height: 105px; margin: 14px 0 10px; resize: vertical; border: 1px solid var(--line); border-radius: 10px; outline: none; padding: 12px; color: var(--text); background: var(--bg); font-size: .8rem; }
.utility-card textarea:focus { border-color: var(--purple); }
.button-row { display: flex; flex-wrap: wrap; gap: 7px; }
.button-row button, .output-row button, .primary-button { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: var(--purple-soft); font-size: .68rem; cursor: pointer; }
.button-row button:hover, .output-row button:hover { border-color: var(--purple); }
.output-row { display: flex; align-items: center; gap: 8px; min-height: 52px; margin: 28px 0 12px; padding: 8px 8px 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.output-row output { min-width: 0; flex: 1; overflow: hidden; color: var(--muted); font: .69rem ui-monospace, SFMono-Regular, Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.primary-button { border: 0; color: white; background: linear-gradient(135deg, var(--purple), var(--purple-deep)); }
.utility-card .primary-button { margin-top: 10px; padding: 10px 13px; }
.utility-card .tool-input-short { min-height: 70px; }
.tool-text-field {
    width: 100%;
    min-height: 44px;
    margin: 16px 0 4px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    outline: none;
    color: var(--text);
    background: var(--bg);
    font-size: .8rem;
}
.tool-text-field:focus { border-color: var(--purple); }
.tool-result-line {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 50px;
    margin: 3px 0 2px;
    padding: 8px 8px 8px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg);
}
.tool-result-line output { min-width: 0; flex: 1; overflow-wrap: anywhere; color: var(--muted); font: .69rem ui-monospace, SFMono-Regular, Consolas, monospace; }
.tool-result-line button { padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--text); background: var(--purple-soft); font-size: .67rem; cursor: pointer; }
.tool-output {
    min-height: 80px;
    margin: 14px 0 0;
    overflow: auto;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--muted);
    background: var(--bg);
    font: .7rem/1.6 ui-monospace, SFMono-Regular, Consolas, monospace;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.tool-output-tall { min-height: 145px; max-height: 340px; }
.tool-status { min-height: 1em; margin: 10px 0 0; color: var(--purple); font-size: .67rem; }
.tool-status.is-error { color: #f07891; }
.tool-note { margin: 9px 0 0; color: var(--muted); font-size: .66rem; }
.split-editor { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.split-editor .tool-input { min-height: 190px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }

.photo-collection { width: min(1100px, 100%); margin: 0 auto; }
.photo-collection-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: .66rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.photo-grid { columns: 3 250px; column-gap: 16px; }
.photo-card {
    position: relative;
    display: block;
    overflow: hidden;
    margin: 0 0 16px;
    break-inside: avoid;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--panel);
    box-shadow: 0 16px 44px rgba(0, 0, 0, .18);
}
.photo-card img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform .45s cubic-bezier(.2, .8, .2, 1), filter .3s ease;
}
.photo-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 4, 10, .76), transparent 42%);
    opacity: 0;
    transition: opacity .3s ease;
}
.photo-card:hover img { transform: scale(1.025); filter: saturate(1.08); }
.photo-card:hover::after, .photo-card:focus-visible::after { opacity: 1; }
.photo-caption {
    position: absolute;
    z-index: 1;
    right: 16px;
    bottom: 14px;
    left: 16px;
    overflow: hidden;
    color: white;
    font-size: .72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .3s ease, transform .3s ease;
}
.photo-card:hover .photo-caption, .photo-card:focus-visible .photo-caption { opacity: 1; transform: translateY(0); }
.photo-card:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }

.photo-lightbox {
    width: min(1200px, calc(100vw - 48px));
    max-width: none;
    height: min(880px, calc(100vh - 48px));
    max-height: none;
    margin: auto;
    padding: 48px 22px 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 18px;
    color: #f5f1f8;
    background: rgba(8, 5, 11, .96);
    box-shadow: 0 32px 100px rgba(0, 0, 0, .7);
}
.photo-lightbox::backdrop { background: rgba(4, 2, 7, .82); backdrop-filter: blur(10px); }
.photo-lightbox[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 14px; }
.photo-lightbox > img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.lightbox-close {
    position: absolute;
    top: 10px;
    right: 13px;
    display: grid;
    width: 34px;
    height: 34px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 50%;
    color: white;
    background: rgba(255, 255, 255, .07);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}
.lightbox-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-width: 0; }
.lightbox-caption { overflow: hidden; font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.lightbox-original { flex: none; color: #c79dff; font-size: .7rem; text-decoration: none; }

@keyframes reveal { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 800px) {
    .app-shell {
        display: grid;
        grid-template: auto auto auto / minmax(0, 1fr);
        grid-template-areas: "brand" "main" "rail";
    }
    .brand-bar {
        position: relative;
        justify-content: center;
        padding: 24px 20px 10px;
        border-right: 0;
    }
    .brand { width: min(310px, 76vw); }
    .theme-toggle-mobile { position: absolute; top: 23px; right: 19px; display: flex; padding: 8px; border-radius: 99px; background: var(--panel); }
    .main-content { min-height: auto; padding: 22px 20px 18px; }
    .hero { width: min(540px, 100%); padding: 34px 0 12px; text-align: center; }
    .hero-kicker { justify-content: center; margin-bottom: 20px; }
    .hero h1 { font-size: clamp(3.6rem, 17vw, 6rem); line-height: .83; }
    .hero-intro { margin: 26px auto 23px; }
    .search-form { min-height: 64px; padding-left: 16px; text-align: left; }
    .search-note { justify-content: center; }
    .home-footer { display: none; }
    .rail { width: min(540px, calc(100% - 40px)); margin: 0 auto; padding: 16px 0 32px; border-right: 0; }
    .nav-list { gap: 9px; }
    .nav-link { min-height: 65px; border-color: var(--line); background: var(--panel); }
    .nav-link:hover { transform: translateY(-2px); }
    .rail-footer { justify-content: center; margin-top: 16px; padding-top: 18px; }
    .rail-footer .theme-toggle { display: none; }
    .page-heading { margin-bottom: 36px; text-align: center; }
    .back-home { margin-bottom: 38px; }
    .page-heading h1 { font-size: clamp(3.8rem, 17vw, 6rem); }
    .page-intro { margin-left: auto; margin-right: auto; }
    .card-grid, .utility-grid, .bookmark-grid { grid-template-columns: 1fr; }
    .utility-card-wide { grid-column: auto; }
    .split-editor { grid-template-columns: 1fr; }
    .split-editor .tool-input { min-height: 140px; }
    .content-card { min-height: 260px; }
    .empty-state { grid-template-columns: 1fr; gap: 8px; text-align: center; }
    .photo-collection-meta { justify-content: center; }
    .photo-collection-meta span:last-child { display: none; }
    .photo-grid { columns: 2 180px; }
}

@media (max-width: 480px) {
    .brand-bar { padding-top: 54px; }
    .theme-toggle-mobile { top: 17px; right: 12px; }
    .theme-toggle-mobile .toggle-track { width: 31px; }
    .theme-toggle-mobile .toggle-thumb { width: 10px; height: 10px; }
    :root[data-theme="dark"] .theme-toggle-mobile .toggle-thumb { transform: translateX(13px); }
    .hero { padding-top: 24px; }
    .hero-intro { max-width: 310px; font-size: .88rem; }
    .search-form { grid-template-columns: 21px minmax(0, 1fr) 43px; gap: 9px; min-height: 60px; border-radius: 15px; padding: 8px 8px 8px 14px; }
    .search-form kbd { display: none; }
    .search-form button { width: 43px; height: 43px; }
    .search-note { flex-wrap: wrap; gap: 5px 8px; font-size: .61rem; }
    .rail { width: calc(100% - 28px); }
    .nav-link { grid-template-columns: 40px minmax(0, 1fr) 18px; }
    .page-heading h1 { font-size: 4rem; }
    .empty-state { padding: 25px; }
    .empty-number { font-size: 3rem; }
    .empty-state h2 { font-size: 2rem; }
    .photo-grid { columns: 1; }
    .photo-lightbox { width: calc(100vw - 20px); height: calc(100vh - 20px); padding: 45px 10px 13px; border-radius: 13px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
