:root {
    --color-bg: #f7f3ec;
    --color-surface: #ffffff;
    --color-text: #262626;
    --color-muted: #666666;
    --color-border: #e2ddd4;
    --color-accent: #7b4f2c;

    --font-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --max-width: 1100px;
}

* {
    box-sizing: border-box;
}

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

header,
main {
    width: min(100% - 2rem, var(--max-width));
    margin-inline: auto;
}

header {
    padding: 2rem 0 1rem;
}

header h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.hero {
    position: relative;
    margin-bottom: 2rem;
}

.hero img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 1rem;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    background:
            linear-gradient(
                    to top,
                    rgba(0,0,0,.65),
                    rgba(0,0,0,.15),
                    rgba(0,0,0,0)
            );
}

.hero-content {
    position: absolute;
    left: 2rem;
    bottom: 2rem;

    max-width: 600px;

    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,.7);
}

.hero-content h1 {
    margin-bottom: 0.5rem;
}

main {
    padding-bottom: 4rem;
}

a {
    color: var(--color-accent);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

article.entry {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
}

.entry h2,
.entry h3 {
    margin-top: 0;
}

.entry-content {
    max-width: 72ch;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.photo-gallery figure {
    margin: 0;
}

.photo-gallery figcaption {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: var(--color-muted);
    text-align: center;
}

.photo-gallery a {
    display: block;
    cursor: zoom-in;
}

.photo-gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0.75rem;
    transition: opacity 0.2s;
}

.photo-gallery a:hover img {
    opacity: 0.85;
}

.entry-map,
.trip-map {
    height: 320px;
    margin: 1.5rem 0;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.trip-map-calendar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    align-items: stretch;
    margin: 1.5rem 0;
}

.trip-map-calendar .trip-map {
    margin: 0;
    height: 100%;
    min-height: 300px;
}

.trip-map-calendar .trip-calendar {
    margin: 0;
    display: flex;
}

.trip-map-calendar .trip-calendar .cal-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.trip-map-calendar .trip-calendar .cal-grid {
    flex: 1;
    align-content: start;
}

.trip-map-calendar:not(:has(.trip-map)) {
    grid-template-columns: 1fr;
}

@media (max-width: 600px) {
    .trip-map-calendar {
        grid-template-columns: 1fr;
    }

    .trip-map-calendar .trip-map {
        height: 280px;
    }
}

.trip-map {
    height: 400px;
}

.youtube-videos {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

.youtube-videos iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 0.75rem;
}

ul {
    padding-left: 1.25rem;
}

li {
    margin: 0.35rem 0;
}

small,
.entry-meta {
    color: var(--color-muted);
}

.day-entry {
    margin: 2rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--color-border);
}

.day-entry:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.day-entry-header {
    margin-bottom: 1rem;
}

.day-entry-header h3 {
    margin: 0;
    font-size: clamp(1.4rem, 3vw, 2rem);
}

.breadcrumbs {
    margin: 0 0 2rem;
    padding: 0.75rem 1rem;

    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;

    font-size: 0.9rem;
    color: var(--color-muted);
}

.breadcrumbs a {
    color: var(--color-muted);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.breadcrumbs span {
    color: var(--color-text);
    font-weight: 600;
}

.btn {
    display: inline-block;

    padding: 0.65rem 1rem;

    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;

    color: var(--color-text);
    text-decoration: none;
}

.btn:hover {
    background: #f2ede4;
    text-decoration: none;
}

.btn-secondary {
}

.entry-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 2rem 0;
}

.entry-nav-link {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.25rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    text-decoration: none;
    color: var(--color-text);
    transition: background 0.2s;
    max-width: 48%;
}

.entry-nav-link:hover {
    background: #f2ede4;
}

.entry-nav-next {
    text-align: right;
    margin-left: auto;
}

.entry-nav-label {
    font-size: 0.8rem;
    color: var(--color-muted);
    margin-bottom: 0.2rem;
}

.entry-nav-title {
    font-weight: 600;
}

.day-heading {
    margin: 2rem 0 0.75rem;
    font-size: 1.1rem;
}

.day-heading a {
    color: var(--color-text);
}

.entry-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.entry-card {
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    overflow: hidden;
    text-decoration: none;
    color: var(--color-text);
    transition: transform 0.2s, box-shadow 0.2s;
}

.entry-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.entry-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.entry-card-placeholder {
    height: 160px;
    background: var(--color-border);
}

.entry-card-body {
    padding: 0.75rem 1rem;
}

.entry-card-body h5 {
    margin: 0 0 0.15rem;
    font-size: 1rem;
}

.entry-card-location {
    margin: 0;
    font-size: 0.8rem;
    color: var(--color-muted);
}

.trip-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.trip-card {
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    overflow: hidden;
    text-decoration: none;
    color: var(--color-text);
    transition: transform 0.2s, box-shadow 0.2s;
}

.trip-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.trip-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.trip-card-body {
    padding: 1.25rem;
}

.trip-card-body h4 {
    margin: 0 0 0.25rem;
    font-size: 1.25rem;
}

.trip-card-dates {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    color: var(--color-muted);
}

.trip-card-desc {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-muted);
}
/* Trip Calendar */
.trip-calendar {
    margin: 1.5rem 0; /* overridden inside .trip-map-calendar */
}

.cal-inner {
    display: inline-block;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    overflow: hidden;
    min-width: 280px;
}

.cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--color-accent);
    color: #fff;
}

.cal-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.cal-nav {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.25rem;
    opacity: 0.85;
    transition: opacity 0.15s;
}

.cal-nav:hover:not([disabled]) {
    opacity: 1;
}

.cal-nav[disabled] {
    opacity: 0.3;
    cursor: default;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    padding: 0.75rem;
}

.cal-weekday {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-muted);
    padding-bottom: 0.4rem;
    text-transform: uppercase;
}

.cal-day,
.cal-empty {
    text-align: center;
    padding: 0.35rem 0.2rem;
    font-size: 0.85rem;
    border-radius: 0.35rem;
    color: var(--color-text);
}

.cal-day.cal-has-entry {
    background: var(--color-accent);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    display: block;
    transition: opacity 0.15s;
}

.cal-day.cal-has-entry:hover {
    opacity: 0.8;
}

/* Entry Links */
.entry-links {
    margin: 1.5rem 0;
}

.entry-links h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.entry-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.entry-links li {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.entry-links a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
}

.entry-links a::before {
    content: "↗\00a0";
    font-size: 0.85em;
}

.entry-links a:hover {
    text-decoration: underline;
}

.entry-link-note {
    font-size: 0.85rem;
    color: var(--color-muted);
}
