/* Slow Light — travel journal styles.
   Layout breakpoints: 560px (two-column gallery), 768px (wider type, card grid),
   1024px (persistent sidebar replaces the mobile drawer), 1400px (three-column gallery). */

:root {
    --paper: #f3eee6;
    --paper-deep: #e8e0d3;
    --ink: #1e1a16;
    --ink-soft: #4a4239;
    --ink-muted: #675e52;      /* 5.5:1 on --paper */
    --accent: #9c3f1c;         /* terracotta, 5.8:1 on --paper */
    --line: rgb(30 26 22 / 0.14);
    --night: #13110f;

    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "URW Palladio L", P052, "Book Antiqua", Georgia, serif;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --sidebar-width: 18rem;
    --gutter: clamp(1.25rem, 4vw, 3.5rem);
    --measure: 38rem;
    --radius: 3px;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scrollbar-gutter: stable;
}

html.is-locked {
    overflow: hidden;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

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

/* Visible box and readable alt text if an image fails to load. */
img[alt] {
    background: var(--paper-deep);
    color: var(--ink-muted);
    font-size: 0.8125rem;
    font-style: italic;
}

[hidden] {
    display: none !important;
}

h1, h2, h3, p, ol, ul, figure {
    margin: 0;
}

ol, ul {
    padding: 0;
    list-style: none;
}

a {
    color: inherit;
}

button {
    font: inherit;
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

main:focus {
    outline: none;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    padding: 0.6rem 1rem;
    background: var(--ink);
    color: var(--paper);
    text-decoration: none;
    border-radius: var(--radius);
}

.skip-link:focus {
    top: 1rem;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* ---------- Type ---------- */

.wordmark {
    font-family: var(--serif);
    font-size: 1.375rem;
    font-style: italic;
    letter-spacing: -0.01em;
    text-decoration: none;
    color: var(--ink);
}

.eyebrow,
.section-label,
.day-number,
.nav-journey-label,
.pager-direction {
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow,
.day-number {
    color: var(--accent);
}

.section-label {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    color: var(--ink-muted);
    padding-bottom: 0.9rem;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
    border-bottom: 1px solid var(--line);
}

.section-count {
    font-weight: 400;
    letter-spacing: 0.04em;
}

.page-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4.5rem);
    line-height: 1.04;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

.meta {
    color: var(--ink-muted);
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
}

.lede {
    font-family: var(--serif);
    font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
    line-height: 1.5;
    color: var(--ink-soft);
    max-width: var(--measure);
}

.prose {
    max-width: var(--measure);
    font-family: var(--serif);
    font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
    line-height: 1.7;
    color: var(--ink-soft);
}

.prose p + p {
    margin-top: 1em;
}

.prose p:first-child::first-letter {
    float: left;
    font-size: 3.4em;
    line-height: 0.85;
    padding: 0.06em 0.04em 0 0;
    color: var(--ink);
}

.text-link {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
}

.text-link .arrow {
    transition: transform 0.3s var(--ease);
}

.button-link {
    display: inline-block;
    padding: 0.8rem 1.4rem;
    background: var(--ink);
    color: var(--paper);
    text-decoration: none;
    border-radius: 999px;
    font-size: 0.9375rem;
    font-weight: 600;
}

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

.icon-button {
    display: inline-grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
}

.icon-button:hover {
    background: rgb(30 26 22 / 0.07);
}

/* ---------- Masthead & footer (home, 404, credits) ---------- */

.masthead {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 1.5rem var(--gutter);
}

.masthead-note {
    font-size: 0.8125rem;
    color: var(--ink-muted);
}

.site-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem 2rem;
    margin-top: clamp(4rem, 8vw, 7rem);
    padding: 2rem var(--gutter) 2.5rem;
    border-top: 1px solid var(--line);
    font-size: 0.8125rem;
    color: var(--ink-muted);
}

.site-footer p:first-child {
    max-width: 44rem;
}

.site-footer a {
    color: var(--ink);
}

/* ---------- Home ---------- */

.home-header {
    display: grid;
    gap: 1.25rem;
    padding: clamp(2.5rem, 7vw, 6rem) var(--gutter) clamp(2.5rem, 6vw, 5rem);
}

.home-title {
    font-family: var(--serif);
    font-weight: 400;
    font-style: italic;
    font-size: clamp(3.5rem, 1.5rem + 9vw, 9.5rem);
    line-height: 0.92;
    letter-spacing: -0.03em;
    margin-top: 0.5rem;
}

.home-lede {
    font-family: var(--serif);
    font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
    line-height: 1.45;
    color: var(--ink-soft);
    max-width: 30rem;
}

/* The journeys follow the header directly; its bottom padding is the gap. */
.collection {
    padding: 0 var(--gutter);
}

.journey-card-media img,
.day-teaser-photos img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s var(--ease);
}

.journey-grid {
    display: grid;
    gap: 3.5rem 2rem;
}

.journey-card {
    display: block;
    text-decoration: none;
}

.journey-card-media {
    overflow: hidden;
    background: var(--paper-deep);
    aspect-ratio: 4 / 5;
    margin-bottom: 1.1rem;
}

.journey-card-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
    line-height: 1.15;
    margin: 0.35rem 0 0.5rem;
    text-wrap: balance;
}

.journey-card-count {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: var(--ink-muted);
}

/* Shared hover / focus treatment for whole-card links. */
.journey-card:hover img,
.day-teaser:hover img {
    transform: scale(1.025);
}

.day-teaser:hover .arrow {
    transform: translateX(4px);
}

.journey-card:hover .journey-card-title,
.day-teaser:hover .day-teaser-title {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15em;
}

.journey-card:focus-visible,
.day-teaser:focus-visible {
    outline-offset: 8px;
}

@media (min-width: 640px) {
    .journey-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .home-header {
        grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
        align-items: end;
        gap: 3rem;
    }

    .home-lede {
        padding-bottom: 1rem;
    }
}

@media (min-width: 1024px) {
    .journey-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2.5rem;
    }

    /* A staggered rhythm instead of a rigid card row. */
    .journey-grid > li:nth-child(3n + 2) {
        margin-top: 4rem;
    }

    .journey-grid > li:nth-child(3n + 3) {
        margin-top: 1.5rem;
    }
}

/* Home before anything is published: a setting sun over the horizon, and a short note. */
.empty-journal {
    padding: 0 var(--gutter);
    margin-bottom: clamp(2rem, 6vw, 4rem);
}

.empty-journal-title {
    max-width: 18ch;
    margin-top: clamp(1.5rem, 4vw, 3rem);
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(1.875rem, 1.2rem + 2.8vw, 3.5rem);
    line-height: 1.12;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

.empty-journal-title::before {
    content: "";
    display: block;
    width: 4rem;
    height: 2rem;
    margin-bottom: 1.75rem;
    border-radius: 4rem 4rem 0 0;
    background: var(--accent);
    box-shadow: 0 1px 0 0 var(--ink);
}

.empty-journal-text {
    max-width: 32rem;
    margin-top: 1.25rem;
    font-family: var(--serif);
    font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
    line-height: 1.6;
    color: var(--ink-soft);
}

/* ---------- Journey shell: sidebar on desktop, drawer on small screens ---------- */

.mobile-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    min-height: 3.75rem;
    padding: 0.5rem var(--gutter);
    background: rgb(243 238 230 / 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.menu-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0 1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.menu-button:hover {
    border-color: var(--ink);
}

.sidebar {
    display: none;
}

.journey-nav {
    display: grid;
    gap: 1.5rem;
}

.nav-all {
    font-size: 0.875rem;
    color: var(--ink-muted);
    text-decoration: none;
}

.nav-all:hover {
    color: var(--ink);
}

.nav-journey,
.nav-day {
    display: grid;
    text-decoration: none;
    border-left: 2px solid transparent;
    padding: 0.55rem 0 0.55rem 0.9rem;
    margin-left: -0.9rem;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.nav-journey-label {
    color: var(--ink-muted);
}

.nav-journey-title {
    font-family: var(--serif);
    font-size: 1.375rem;
    line-height: 1.2;
    margin: 0.3rem 0 0.15rem;
}

.nav-journey-dates,
.nav-day-date {
    font-size: 0.8125rem;
    color: var(--ink-muted);
}

.nav-days {
    display: grid;
    gap: 0.15rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.nav-day {
    grid-template-columns: auto 1fr;
    column-gap: 0.75rem;
}

.nav-day-number {
    grid-row: span 2;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-muted);
    padding-top: 0.2rem;
    min-width: 3.4rem;
}

.nav-day-title {
    font-weight: 500;
    line-height: 1.35;
}

.nav-journey:hover,
.nav-day:hover {
    background: rgb(30 26 22 / 0.045);
}

.nav-journey[aria-current="page"],
.nav-day[aria-current="page"] {
    border-left-color: var(--accent);
    background: rgb(156 63 28 / 0.07);
}

.nav-day[aria-current="page"] .nav-day-number,
.nav-journey[aria-current="page"] .nav-journey-label {
    color: var(--accent);
}

.sidebar-foot {
    margin-top: auto;
    padding-top: 2rem;
    font-size: 0.8125rem;
    color: var(--ink-muted);
}

/* Drawer: a native modal <dialog>, so focus containment and Escape come for free. */
.drawer[open] {
    display: flex;
    flex-direction: column;
    margin: 0;
    inset: 0 auto 0 0;
    width: min(88vw, 22rem);
    max-width: none;
    height: 100%;
    max-height: none;
    padding: 0 1.5rem 2rem 2.4rem;
    border: 0;
    background: var(--paper);
    color: var(--ink);
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: 0 0 40px rgb(0 0 0 / 0.18);
    animation: drawer-in 0.32s var(--ease);
}

.drawer::backdrop {
    background: rgb(19 17 15 / 0.5);
    animation: fade-in 0.32s var(--ease);
}

.drawer-head {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 3.75rem;
    margin: 0 -0.75rem 1rem 0;
    background: var(--paper);
}

@keyframes drawer-in {
    from { transform: translateX(-100%); }
}

@keyframes fade-in {
    from { opacity: 0; }
}

@media (min-width: 1024px) {
    .shell {
        display: grid;
        grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    }

    .mobile-bar,
    .drawer {
        display: none !important;
    }

    .sidebar {
        position: sticky;
        top: 0;
        display: flex;
        flex-direction: column;
        gap: 2.5rem;
        height: 100vh;
        height: 100dvh;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 2rem 1.75rem 2rem 2.4rem;
        border-right: 1px solid var(--line);
    }
}

/* ---------- Journey overview ---------- */

/* Text only: destination, title, dates and counts; the cover is shown on the home page's journey card. */
.journey-header {
    display: grid;
    gap: 0.9rem;
    padding: clamp(3rem, 8vw, 6rem) var(--gutter) 0;
}

/* Below the header: about 20 px on phones, 32 px on desktop; a little more after the owner's introduction. */
.journey-intro,
.days {
    margin: clamp(1.25rem, 3vw, 2rem) var(--gutter) 0;
}

.journey-intro + .days {
    margin-top: clamp(2rem, 5vw, 3rem);
}

.day-list {
    display: grid;
    gap: clamp(3.5rem, 7vw, 6rem);
}

.day-teaser {
    display: grid;
    gap: 1.5rem;
    text-decoration: none;
}

.day-teaser-photos {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0.5rem;
    aspect-ratio: 3 / 2;
}

.day-teaser-photos img {
    min-height: 0;
    background: var(--paper-deep);
}

.day-teaser-photos img:first-child {
    grid-row: span 2;
}

.day-teaser-photos[data-count="1"] {
    grid-template-columns: 1fr;
}

.day-teaser-photos[data-count="2"] img:nth-child(2) {
    grid-row: span 2;
}

.day-teaser-text {
    display: grid;
    gap: 0.55rem;
    align-content: start;
}

.day-teaser-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

@media (min-width: 900px) {
    .day-teaser {
        grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
        align-items: center;
        gap: clamp(2rem, 4vw, 3.5rem);
    }

    .day-list > li:nth-child(even) .day-teaser {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
    }

    .day-list > li:nth-child(even) .day-teaser-photos {
        order: 2;
    }
}

/* ---------- Day page ---------- */

.day-header {
    display: grid;
    gap: 0.9rem;
    justify-items: start;
    padding: clamp(2rem, 5vw, 4.5rem) var(--gutter) 0;
}

.back-link {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
    min-height: 2.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink-soft);
    text-decoration: none;
}

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

/* Same rhythm as the journey overview: the gallery follows the header closely, a little later after an entry. */
.day-entry,
.gallery {
    margin: clamp(1.25rem, 3vw, 2rem) var(--gutter) 0;
}

.day-entry + .gallery {
    margin-top: clamp(2rem, 5vw, 3rem);
}

/* On desktop a day's entry runs wider than other prose (the shared --measure), closer to the gallery below it. */
@media (min-width: 1024px) {
    .day-entry {
        max-width: 48rem;
    }
}

/* Gallery grid: photos run in the owner's order left to right, then row by row, matching keyboard and lightbox
   order (the DOM). Items in a row start at the same top; every photo keeps its exact aspect ratio, so a shorter
   photo leaves space below it rather than being cropped or stretched. */
.masonry {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(0.75rem, 1.6vw, 1.5rem);
    align-items: start;
}

.photo-link {
    display: block;
    overflow: hidden;
    background: var(--paper-deep);
    cursor: zoom-in;
}

.photo-link img {
    width: 100%;
    transition: transform 0.9s var(--ease), opacity 0.3s;
}

.photo-link:hover img {
    transform: scale(1.02);
    opacity: 0.94;
}

.photo-link:focus-visible {
    outline-offset: 4px;
}

.masonry figcaption {
    padding: 0.6rem 0 0.4rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--ink-muted);
}

@media (min-width: 560px) {
    .masonry {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1400px) {
    .masonry {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.day-pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: clamp(3.5rem, 7vw, 5rem) var(--gutter) 0;
    padding-top: 1.75rem;
    border-top: 1px solid var(--line);
}

.pager-link {
    display: grid;
    gap: 0.35rem;
    align-content: start;
    padding: 0.5rem 0;
    text-decoration: none;
}

.pager-next {
    text-align: right;
    justify-items: end;
}

.pager-direction {
    color: var(--accent);
}

.pager-title {
    font-family: var(--serif);
    font-size: clamp(1.0625rem, 0.9rem + 0.8vw, 1.5rem);
    line-height: 1.25;
    text-wrap: balance;
}

.pager-link:hover .pager-title {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15em;
}

/* ---------- Lightbox ---------- */

.lightbox[open] {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    /* Viewport units also cover the scrollbar gutter reserved by `scrollbar-gutter: stable`. */
    width: 100vw;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: var(--night);
    color: #efe9df;
    animation: fade-in 0.25s var(--ease);
}

.lightbox::backdrop {
    background: var(--night);
}

/* The canvas paints the reserved scrollbar gutter; keep it dark behind the full-screen viewer. */
html:has(.lightbox[open]) {
    background: var(--night);
}

.lightbox-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem 0.5rem var(--gutter);
}

.lightbox-count {
    font-size: 0.8125rem;
    letter-spacing: 0.12em;
    font-variant-numeric: tabular-nums;
    color: #bdb3a5;
}

.lightbox .icon-button:hover {
    background: rgb(255 255 255 / 0.1);
}

.lightbox :focus-visible {
    outline-color: #e9a17f;
}

.lightbox-stage {
    position: relative;
    display: grid;
    /* Definite tracks, so the image's percentage max-width/max-height resolve against the stage. */
    grid-template: minmax(0, 1fr) / minmax(0, 1fr);
    place-items: center;
    min-height: 0;
    padding: 0 clamp(0.5rem, 5vw, 5.5rem);
    touch-action: pan-y pinch-zoom;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    background: transparent;
    user-select: none;
    -webkit-user-select: none;
    transition: opacity 0.2s;
}

.lightbox-image.is-loading {
    opacity: 0.35;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    translate: 0 -50%;
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgb(19 17 15 / 0.55);
    color: #f6f1e9;
    cursor: pointer;
}

.lightbox-nav:hover {
    background: rgb(19 17 15 / 0.85);
}

.lightbox-prev {
    left: clamp(0.5rem, 1.5vw, 1.5rem);
}

.lightbox-next {
    right: clamp(0.5rem, 1.5vw, 1.5rem);
}

.lightbox-info {
    display: grid;
    gap: 0.25rem;
    justify-items: center;
    min-height: 4.5rem;
    padding: 0.9rem var(--gutter) max(1.1rem, env(safe-area-inset-bottom));
    text-align: center;
}

.lightbox-caption {
    font-family: var(--serif);
    font-size: clamp(1rem, 0.9rem + 0.4vw, 1.1875rem);
    max-width: 44rem;
}

.lightbox-credit {
    font-size: 0.75rem;
    color: #a89e90;
}

/* ---------- Plain pages: 404 and credits ---------- */

.not-found,
.credits {
    display: grid;
    gap: 1.25rem;
    justify-items: start;
    padding: clamp(3rem, 9vw, 7rem) var(--gutter) 0;
    max-width: 64rem;
}

.not-found .section-label,
.credits .section-label {
    width: 100%;
    margin: 2rem 0 0.25rem;
}

.not-found .page-title {
    max-width: 14ch;
}

.plain-list {
    display: grid;
    gap: 0.9rem;
}

.plain-list a {
    font-family: var(--serif);
    font-size: 1.25rem;
    margin-right: 0.5rem;
}

.credits-journey {
    width: 100%;
    margin-top: 2.5rem;
}

.credits-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 1.75rem;
}

.credits-title a,
.credits .section-label a {
    text-decoration: none;
}

.credits-list {
    display: grid;
    gap: 1.25rem 2rem;
}

.credits-list li {
    display: grid;
    grid-template-columns: 4.5rem 1fr;
    gap: 1rem;
    align-items: start;
    font-size: 0.875rem;
}

.credits-list img {
    width: 4.5rem;
    height: 4.5rem;
    object-fit: cover;
}

.credits-list a {
    overflow-wrap: anywhere;
}

@media (min-width: 768px) {
    .credits-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---------- Motion preferences ---------- */

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

    .journey-card:hover img,
    .day-teaser:hover img,
    .photo-link:hover img {
        transform: none;
    }
}

/* ---------- Journeys without a cover and days without photos ---------- */

/* Where a cover would be: the journal's setting sun over a horizon, and the destination in large italic type. */
.media-plain {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 1.25rem;
    padding: clamp(1.25rem, 4vw, 2.5rem);
    background: var(--paper-deep);
    border-bottom: 1px solid var(--ink);
}

.media-plain-sun {
    display: block;
    width: 4rem;
    height: 2rem;
    border-radius: 4rem 4rem 0 0;
    background: var(--accent);
}

.media-plain-text {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(1.5rem, 1rem + 2vw, 2.75rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--ink-soft);
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.journey-card-media.media-plain .media-plain-text {
    font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
}

.day-teaser-plain {
    padding-left: clamp(1rem, 3vw, 2rem);
    border-left: 2px solid var(--accent);
}

@media (min-width: 900px) {
    .day-teaser.day-teaser-plain,
    .day-list > li:nth-child(even) .day-teaser.day-teaser-plain {
        grid-template-columns: minmax(0, 1fr);
        max-width: 42rem;
    }
}

.days-empty {
    color: var(--ink-muted);
}

/* Line breaks inside a paragraph of the owner's text are kept. */
.prose p {
    white-space: pre-line;
}

/* ---------- Private previews (only the signed-in owner sees these) ---------- */

.preview-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1.25rem;
    padding: 0.6rem var(--gutter);
    background: var(--night);
    color: #f3eee6;
    font-family: var(--sans);
    font-size: 0.875rem;
    line-height: 1.4;
}

.preview-banner-text {
    margin: 0;
}

.preview-banner-link {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    color: #f3eee6;
    font-weight: 600;
}

.photo-pending-box {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    padding: 1rem;
    background: var(--paper-deep);
    border: 1px dashed var(--ink-muted);
    color: var(--ink-soft);
    font-family: var(--sans);
    font-size: 0.875rem;
    text-align: center;
}

.photo-owner-notice {
    margin: 0.4rem 0 0;
    font-family: var(--sans);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent);
}
