/* Self-hosted OFL fonts — no Google Fonts / CDN. Licenses: assets/fonts/*/OFL.txt */
@font-face {
    font-family: "Syne";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("assets/fonts/syne/Syne-Variable.woff2") format("woff2");
}

@font-face {
    font-family: "Outfit";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("assets/fonts/outfit/Outfit-Variable.woff2") format("woff2");
}

@font-face {
    font-family: "Instrument Serif";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("assets/fonts/instrument-serif/InstrumentSerif-Regular.woff2") format("woff2");
}

@font-face {
    font-family: "Instrument Serif";
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url("assets/fonts/instrument-serif/InstrumentSerif-Italic.woff2") format("woff2");
}

:root {
    --neon: #e1ff00;
    --neon-soft: color-mix(in srgb, var(--neon) 14%, transparent);
    --bg: #0a0a0c;
    --bg-elevated: #121216;
    --bg-card: #16161b;
    --ink: #f4f1ea;
    --ink-soft: #c8c4bb;
    --muted: #8a8794;
    --line: rgba(244, 241, 234, 0.1);
    --danger: #ff6b6b;
    --radius: 22px;
    --nav-h: 72px;
    --font-sans: "Outfit", system-ui, sans-serif;
    --font-display: "Syne", "Outfit", sans-serif;
    --font-serif: "Instrument Serif", Georgia, serif;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.65;
    min-height: 100vh;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
}

::selection {
    background: var(--neon);
    color: #111;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -48px;
    z-index: 200;
    background: var(--neon);
    color: #111;
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
}

.skip-link:focus {
    top: 16px;
}

.eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--neon);
    font-weight: 500;
}

.nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(20px, 4vw, 48px);
    transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
    border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
    background: rgba(10, 10, 12, 0.72);
    backdrop-filter: blur(18px) saturate(1.4);
    border-bottom-color: var(--line);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: 0.04em;
    font-size: 0.95rem;
}

.nav-mark {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--neon);
    box-shadow: 0 0 16px color-mix(in srgb, var(--neon) 70%, transparent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--neon);
}

.share-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--ink-soft);
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.share-btn:hover {
    color: var(--neon);
    border-color: var(--neon);
    background: color-mix(in srgb, var(--neon) 8%, transparent);
}

.entry-kicker .share-btn {
    margin-left: auto;
}

.hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    place-items: end center;
    overflow: hidden;
    isolation: isolate;
}

.hero-photo,
.hero-shade,
.hero-grain {
    position: absolute;
    inset: 0;
}

.hero-photo {
    background-size: cover;
    background-position: center 35%;
    transform: scale(1.06);
    animation: hero-drift 28s ease-in-out infinite alternate;
    z-index: -3;
}

.hero-shade {
    z-index: -2;
    background:
        linear-gradient(180deg, rgba(10, 10, 12, 0.28) 0%, rgba(10, 10, 12, 0.42) 38%, rgba(10, 10, 12, 0.92) 78%, var(--bg) 100%),
        radial-gradient(ellipse at 50% 20%, color-mix(in srgb, var(--neon) 8%, transparent), transparent 48%);
}

.hero-grain {
    z-index: -1;
    opacity: 0.18;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

.hero-inner {
    width: min(1080px, calc(100% - 40px));
    padding: 0 0 72px;
    text-align: center;
}

.hero h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(3.4rem, 12vw, 9.2rem);
    line-height: 0.88;
    letter-spacing: -0.045em;
    margin: 18px 0 18px;
}

.hero h1 span {
    color: var(--neon);
    text-shadow: 0 0 48px color-mix(in srgb, var(--neon) 28%, transparent);
}

.lede {
    color: var(--ink-soft);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    font-weight: 300;
    max-width: 28ch;
    margin: 0 auto 36px;
}

.stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 0 auto 40px;
}

.stats > div {
    min-width: 108px;
    padding: 16px 18px 14px;
    border: 1px solid var(--line);
    background: rgba(10, 10, 12, 0.45);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    text-align: left;
}

.stats dt {
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

.stats dd {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    color: var(--ink);
    margin-top: 4px;
}

.stats-wide {
    min-width: 180px;
}

.scroll-cue {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: color 0.2s;
}

.scroll-cue:hover {
    color: var(--neon);
}

.scroll-cue svg {
    animation: bob 1.8s ease-in-out infinite;
}

.journal {
    width: min(920px, calc(100% - 40px));
    margin: 0 auto;
    padding: 24px 0 40px;
}

.section-head {
    margin-bottom: 56px;
}

.section-head h2 {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 6vw, 4.4rem);
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1;
    margin: 10px 0 14px;
}

.section-head p {
    color: var(--muted);
    max-width: 42ch;
}

.timeline {
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 11px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--line) 8%, var(--neon) 50%, var(--line) 92%, transparent);
}

.entry {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 22px;
    margin-bottom: 56px;
    align-items: stretch;
    scroll-margin-top: calc(var(--nav-h) + 16px);
}

.entry-rail {
    position: relative;
}

.entry-dot {
    position: sticky;
    top: 108px;
    display: block;
    width: 11px;
    height: 11px;
    margin-left: 6px;
    border-radius: 50%;
    background: var(--neon);
    box-shadow: 0 0 0 6px var(--neon-soft);
}

.entry-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: border-color 0.3s ease, transform 0.4s ease;
}

.entry-card:hover {
    border-color: color-mix(in srgb, var(--neon) 28%, transparent);
}

.entry-cover {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: #000;
    overflow: hidden;
}

.entry-cover .photo-hit {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: #000;
    cursor: zoom-in;
}

.entry-cover img {
    width: 100%;
    height: min(58vw, 460px);
    object-fit: cover;
    transition: transform 0.8s ease;
}

.entry-card:hover .entry-cover img {
    transform: scale(1.035);
}

.entry-body {
    padding: 28px 28px 32px;
}

.entry-kicker {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 14px;
}

.copy-toast {
    position: fixed;
    z-index: 80;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%) translateY(8px);
    margin: 0;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: 0.88rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.copy-toast.is-on {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.badge-day {
    display: inline-flex;
    align-items: center;
    background: var(--neon);
    color: #111;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: 999px;
}

.entry-date {
    color: var(--muted);
    font-size: 0.88rem;
}

.entry-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 10px;
}

.entry-place {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--ink-soft);
    font-size: 0.92rem;
    margin-bottom: 18px;
}

.entry-place svg {
    flex-shrink: 0;
    color: var(--neon);
}

.entry-text {
    color: var(--ink-soft);
    white-space: pre-line;
    font-size: 1.05rem;
    max-width: 62ch;
}

.reactions {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.reactions-label {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

.reaction-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.reaction-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px 7px 10px;
    border: 1px solid var(--line);
    background: rgba(10, 10, 12, 0.55);
    color: var(--ink-soft);
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.88rem;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.reaction-btn:hover {
    border-color: color-mix(in srgb, var(--neon) 40%, transparent);
    transform: translateY(-1px);
}

.reaction-btn.is-on {
    border-color: var(--neon);
    background: var(--neon-soft);
    color: var(--ink);
}

.reaction-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.reaction-emoji {
    font-size: 1.05rem;
    line-height: 1;
}

.reaction-count {
    font-variant-numeric: tabular-nums;
    min-width: 0.8em;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 24px;
}

.gallery .photo-hit,
.photo-hit {
    padding: 0;
    border: 0;
    background: #000;
    overflow: hidden;
    cursor: zoom-in;
}

.gallery img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.gallery .photo-hit:hover img {
    transform: scale(1.04);
    filter: saturate(1.08);
}

.photo-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.photo-split .photo-hit {
    display: block;
    min-height: 0;
}

.photo-split img {
    width: 100%;
    height: min(42vw, 340px);
    object-fit: cover;
}

.photo-mosaic {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2px;
    min-height: min(52vw, 420px);
}

.photo-mosaic .photo-hit {
    display: block;
    min-height: 0;
    height: 100%;
}

.photo-mosaic .photo-hit:first-child {
    grid-row: 1 / span 2;
}

.photo-mosaic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-stack {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.photo-stack .photo-hit {
    display: block;
    border-radius: 12px;
}

.photo-stack img {
    width: 100%;
    max-height: min(70vw, 540px);
    object-fit: cover;
}

.empty-state {
    margin-left: 46px;
    padding: 48px 36px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: var(--bg-elevated);
}

.empty-state h3 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    margin: 10px 0 8px;
}

.empty-state p:last-child {
    color: var(--muted);
}

.site-footer {
    margin-top: 40px;
    border-top: 1px solid var(--line);
    padding: 64px 20px 80px;
    text-align: center;
}

.footer-brand {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.footer-copy {
    color: var(--muted);
    margin-bottom: 22px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin-bottom: 28px;
}

.footer-links a {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--neon);
}

.copyright {
    color: #5c5a64;
    font-size: 0.78rem;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    z-index: 80;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.modal:target {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--line);
    max-width: 560px;
    width: 100%;
    padding: 40px 36px 34px;
    border-radius: var(--radius);
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow);
}

.modal-content h2 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.modal-content p {
    color: var(--ink-soft);
    margin-bottom: 14px;
}

.modal-content h3 {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink);
    margin: 22px 0 8px;
}

.modal-content h3:first-of-type {
    margin-top: 12px;
}

.modal-content a {
    color: var(--neon);
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    color: var(--muted);
    text-decoration: none;
    font-size: 1.8rem;
    line-height: 1;
}

.lightbox {
    border: 0;
    padding: 0;
    background: rgba(4, 4, 6, 0.94);
    max-width: 100vw;
    max-height: 100vh;
    width: 100vw;
    height: 100vh;
    color: var(--ink);
}

.lightbox::backdrop {
    background: #000;
}

.lightbox[open] {
    display: grid;
    place-items: center;
}

.lightbox img {
    max-width: min(92vw, 1400px);
    max-height: 82vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    background: transparent;
    border: 0;
    color: var(--ink);
    cursor: pointer;
}

.lightbox-close {
    top: 18px;
    right: 24px;
    font-size: 2.4rem;
    line-height: 1;
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    padding: 12px 18px;
    color: var(--ink-soft);
}

.lightbox-nav.prev { left: 8px; }
.lightbox-nav.next { right: 8px; }

.lightbox-caption {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

html.js [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
}

html.js [data-reveal].is-in {
    animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.page-admin {
    min-height: 100vh;
    background:
        radial-gradient(ellipse at top, color-mix(in srgb, var(--neon) 7%, transparent), transparent 42%),
        var(--bg);
}

.admin-shell {
    width: min(760px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 80px;
}

.admin-login {
    width: min(400px, 100%);
    margin: 0 auto;
    min-height: calc(100vh - 96px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.admin-login .lede {
    max-width: none;
    margin: 0 0 28px;
    font-size: 1rem;
}

.lang-switch {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    margin: 0 0 18px;
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.14em;
}

.lang-switch a {
    color: var(--muted);
    text-decoration: none;
    padding: 2px 0;
}

.lang-switch a + a::before {
    content: "|";
    display: inline-block;
    margin: 0 8px;
    color: var(--line);
    font-weight: 400;
    letter-spacing: 0;
}

.lang-switch a.is-on {
    color: var(--ink);
    pointer-events: none;
}

.lang-switch a:not(.is-on):hover {
    color: var(--ink);
}

.lang-radios {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
}

.admin-login h1,
.admin-top h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 400;
    letter-spacing: -0.03em;
    margin: 8px 0 6px;
}

.admin-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 32px;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-toolbar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    white-space: nowrap;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 9px 16px;
    border-radius: 10px;
    border: 1px solid var(--line);
    color: var(--ink);
    background: rgba(255, 255, 255, 0.04);
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.btn-toolbar:hover {
    border-color: var(--neon);
    color: var(--neon);
    background: color-mix(in srgb, var(--neon) 8%, transparent);
}

.btn-toolbar.danger {
    color: #ffb4b4;
    border-color: rgba(255, 120, 120, 0.38);
    background: rgba(58, 20, 20, 0.5);
}

.btn-toolbar.danger:hover {
    color: #fff;
    border-color: var(--danger);
    background: rgba(180, 40, 40, 0.42);
}

.admin-switch {
    display: flex;
    gap: 8px;
    margin: 14px 0 10px;
}

.admin-switch-link {
    text-decoration: none;
    color: var(--muted);
    border: 1px solid var(--line);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
}

.admin-switch-link.is-active {
    color: #111;
    background: var(--neon);
    border-color: var(--neon);
}

.admin-shell-wide {
    width: min(820px, calc(100% - 40px));
}

.layout-picks {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.layout-pick {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(180px, 42%);
    gap: 12px 20px;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    text-transform: none;
    letter-spacing: 0;
    color: var(--ink-soft);
    cursor: pointer;
}

.layout-pick:has(input:checked) {
    border-color: color-mix(in srgb, var(--neon) 55%, transparent);
    background: var(--neon-soft);
}

.layout-pick:has(input:checked) .lp-block,
.layout-pick:has(input:checked) .lp-cell {
    border-color: color-mix(in srgb, var(--neon) 45%, transparent);
}

.layout-standard {
    display: block;
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--neon);
    margin-bottom: 3px;
}

.layout-pick-copy strong {
    display: block;
    color: var(--ink);
    font-size: 0.95rem;
    margin-bottom: 3px;
}

.layout-count {
    display: block;
    color: var(--neon);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 3px;
}

.layout-pick-copy em {
    font-style: normal;
    font-size: 0.78rem;
    color: var(--muted);
}

.admin-card .layout-pick input,
.admin-card .image-tools input,
.admin-card .image-tools select {
    width: auto;
    margin: 4px 0 0;
    padding: 0;
    box-shadow: none;
}

.layout-preview {
    display: block;
    width: 100%;
    max-width: 220px;
    justify-self: end;
    align-self: center;
}

.lp-block {
    display: block;
    border: 1px solid rgba(244, 241, 234, 0.28);
    border-radius: 6px;
    padding: 8px;
    background: transparent;
}

.lp-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(244, 241, 234, 0.42);
    border-radius: 2px;
    font-style: normal;
    font-size: 0.62rem;
    font-weight: 600;
    line-height: 1;
    color: rgba(244, 241, 234, 0.72);
    letter-spacing: 0;
}

.lp-hero {
    height: 42px;
    margin-bottom: 6px;
}

.lp-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin-top: 6px;
}

.lp-row .lp-cell {
    height: 18px;
}

.lp-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-bottom: 6px;
}

.lp-split .lp-cell {
    height: 36px;
}

.lp-mosaic {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    grid-template-rows: 20px 20px;
    gap: 4px;
    margin-bottom: 6px;
}

.lp-mosaic .lp-hero {
    grid-row: 1 / span 2;
    height: auto;
    margin: 0;
}

.lp-stack {
    display: grid;
    gap: 4px;
    margin-top: 6px;
}

.lp-bar {
    height: 14px;
}

.lp-text {
    display: grid;
    gap: 4px;
    margin: 6px 0 2px;
}

.lp-text span {
    display: block;
    height: 3px;
    border-radius: 99px;
    background: rgba(244, 241, 234, 0.22);
}

.lp-text span:last-child {
    width: 62%;
}

.img-move {
    background: #0a0a0c;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    cursor: pointer;
}

.check-row,
.color-row {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.check-inline {
    display: flex !important;
    align-items: center;
    gap: 8px;
    text-transform: none;
    letter-spacing: 0;
    color: var(--ink-soft);
    margin-bottom: 12px;
}

.check-inline input {
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

.color-row input[type="color"] {
    width: 52px;
    height: 40px;
    padding: 4px;
    margin: 0;
}

.cover-live {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 0.82rem;
}

.cover-live img {
    width: 72px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
}

.cover-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin: 8px 0 16px;
}

.cover-option {
    display: grid !important;
    position: relative;
    gap: 6px;
    margin: 0;
    text-transform: none;
    letter-spacing: 0;
    color: var(--muted);
    font-size: 0.72rem;
    cursor: pointer;
}

.cover-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cover-option img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid var(--line);
    background: #0a0a0c;
}

.cover-option:has(input:checked) img {
    border-color: var(--neon);
}

.emoji-editor {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.emoji-row {
    display: grid;
    grid-template-columns: auto 72px 1fr;
    gap: 8px;
    align-items: center;
}

.emoji-row input[type="text"]:first-of-type {
    text-align: center;
    font-size: 1.2rem;
}

.settings-form .btn-admin {
    margin-bottom: 40px;
}

.settings-form select {
    width: 100%;
    padding: 12px 14px;
    background: #0a0a0c;
    border: 1px solid var(--line);
    color: var(--ink);
    border-radius: 12px;
    margin-bottom: 16px;
    font: inherit;
}

.text-link {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.text-link:hover { color: var(--neon); }
.text-link.danger:hover { color: var(--danger); }

.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 24px;
}

.admin-card h2 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 18px;
}

.admin-form label,
.admin-card label {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-form label.layout-pick,
.admin-card label.layout-pick {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(180px, 42%);
    align-items: center;
    gap: 12px 20px;
    margin-bottom: 0;
    text-transform: none;
    letter-spacing: 0;
    font-size: inherit;
    color: var(--ink-soft);
}

.admin-card label.cover-option {
    display: grid;
    gap: 6px;
    margin-bottom: 0;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.72rem;
    color: var(--muted);
}

.admin-form input,
.admin-form textarea,
.admin-card input,
.admin-card textarea {
    width: 100%;
    padding: 12px 14px;
    background: #0a0a0c;
    border: 1px solid var(--line);
    color: var(--ink);
    border-radius: 12px;
    margin-bottom: 16px;
    font: inherit;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-card input:focus,
.admin-card textarea:focus {
    outline: none;
    border-color: var(--neon);
    box-shadow: 0 0 0 4px var(--neon-soft);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-hint,
.muted {
    color: var(--muted);
    font-size: 0.85rem;
    margin: -8px 0 18px;
}

.btn-admin {
    background: var(--neon);
    color: #111;
    font-weight: 700;
    border: 0;
    padding: 14px 20px;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    font-family: inherit;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-admin:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.msg {
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 18px;
    text-align: center;
}

.error { background: #3a1414; color: #ffb4b4; }
.success { background: #143a1c; color: #b6f5c4; }

.msg-list {
    list-style: disc;
    text-align: left;
    margin: 10px 0 0;
    padding-left: 22px;
}

.msg-list li {
    margin-bottom: 6px;
    line-height: 1.45;
}

.msg-list li:last-child { margin-bottom: 0; }

.draft-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--neon-soft);
    border: 1px solid var(--neon);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 22px;
}

.draft-bar p {
    margin: 0;
    color: var(--ink);
    font-size: 0.9rem;
    max-width: 46ch;
}

.draft-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.upload-status {
    margin: 4px 0 16px;
    color: var(--neon);
    font-size: 0.88rem;
    font-weight: 600;
}

.upload-status:empty { display: none; }

@media (max-width: 520px) {
    .draft-bar { flex-direction: column; align-items: stretch; }
    .draft-actions .btn-toolbar { flex: 1; }
}

.entry-list {
    list-style: none;
}

.entry-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.entry-item:last-child { border-bottom: 0; }

.session-meta {
    color: var(--muted);
    font-size: 0.82rem;
    margin-top: 8px;
    max-width: 42ch;
}

.field-label {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.image-manager {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 18px;
}

.image-manager li {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.image-manager img {
    width: 100%;
    height: 100%;
    min-height: 96px;
    object-fit: cover;
}

.image-tools {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
}

.slot-label {
    color: var(--neon);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.slot-select-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 0;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.admin-card .image-tools select {
    width: 100%;
    margin: 0;
    padding: 8px 10px;
    background: #0a0a0c;
    border: 1px solid var(--line);
    color: var(--ink);
    border-radius: 8px;
    font: inherit;
    font-size: 0.85rem;
}

.slot-move {
    display: flex;
    gap: 6px;
}

.image-manager label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 8px 10px 10px;
    font-size: 0.75rem;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink-soft);
}

.admin-form .image-manager input {
    width: auto;
    margin: 0;
    padding: 0;
    box-shadow: none;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.form-actions .btn-admin {
    width: auto;
    min-width: 220px;
}

.entry-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-edit {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 0.82rem;
    border: 1px solid var(--line);
    padding: 6px 12px;
    border-radius: 999px;
}

.btn-edit:hover {
    color: #111;
    background: var(--neon);
    border-color: var(--neon);
}

.btn-del {
    color: var(--danger);
    background: transparent;
    font-size: 0.82rem;
    border: 1px solid var(--danger);
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
}

.btn-del:hover {
    background: var(--danger);
    color: #111;
}

.upload-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

.upload-thumb {
    position: relative;
    margin: 0;
}

.upload-preview img,
.upload-thumb img {
    height: 88px;
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.upload-thumb-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 999px;
    background: rgba(10, 10, 12, 0.72);
    color: #fff;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.upload-thumb-remove:hover {
    background: rgba(10, 10, 12, 0.92);
}

@keyframes hero-drift {
    from { transform: scale(1.06) translate3d(0, 0, 0); }
    to { transform: scale(1.12) translate3d(0, -2%, 0); }
}

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

@keyframes rise {
    to {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 900px) {
    .hero h1 {
        font-size: clamp(2.8rem, 11vw, 6rem);
    }

    .journal {
        width: min(920px, calc(100% - 28px));
    }
}

@media (max-width: 720px) {
    .timeline::before,
    .entry-rail { display: none; }

    .entry {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 36px;
    }

    .entry-body { padding: 22px 20px 24px; }
    .form-row { grid-template-columns: 1fr; }
    .admin-top { flex-direction: column; align-items: flex-start; }
    .photo-split,
    .photo-mosaic { grid-template-columns: 1fr; }
    .photo-mosaic .photo-hit:first-child { grid-row: auto; }
    .photo-split img,
    .photo-mosaic img { height: min(58vw, 280px); }
    .stats > div { min-width: calc(50% - 8px); }
    .hero-inner { padding-bottom: 48px; }
    .admin-form label.layout-pick,
    .admin-card label.layout-pick,
    .layout-pick {
        grid-template-columns: auto minmax(0, 1fr) minmax(150px, 40%);
    }
    .layout-preview {
        width: 100%;
        max-width: 180px;
        justify-self: end;
        grid-column: auto;
    }
    .emoji-row {
        grid-template-columns: auto 64px 1fr;
    }
    .form-actions .btn-admin {
        width: 100%;
        min-width: 0;
    }
    .nav-links { gap: 16px; }
}

@media (max-width: 520px) {
    .admin-form label.layout-pick,
    .admin-card label.layout-pick,
    .layout-pick {
        grid-template-columns: auto minmax(0, 1fr);
    }
    .layout-preview {
        grid-column: 1 / -1;
        width: 100%;
        max-width: 220px;
        justify-self: start;
    }
    .image-manager li {
        grid-template-columns: 84px minmax(0, 1fr);
    }
    .emoji-row {
        grid-template-columns: 1fr;
    }
    .stats > div { min-width: 100%; }
    .footer-links { flex-wrap: wrap; }
    .admin-card { padding: 20px 16px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-photo,
    .scroll-cue svg,
    .entry-cover img,
    .gallery img,
    [data-reveal] {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}
