/* ============================================
   Venice Travel Journal — Warm Editorial Theme
   Font: Lora (headings) + Source Sans 3 (body)
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-warm: #FAF8F4;
    --bg-white: #FFFFFF;
    --bg-hover: #F5F2EC;
    --terracotta: #B85C38;
    --terracotta-light: #D4764E;
    --terracotta-dark: #9A4A2C;
    --navy: #1B4965;
    --navy-light: #2A6A8E;
    --text-dark: #2D2926;
    --text-body: #3D3632;
    --text-muted: #8B8378;
    --border-warm: #E8E2D9;
    --max-content: 720px;
    --max-wide: 1060px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
    background-color: var(--bg-warm);
    color: var(--text-body);
    line-height: 1.8;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--terracotta);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--terracotta-dark);
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: 'Lora', serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
}

h1 { font-size: 2.6rem; margin-bottom: 0.5em; }
h2 { font-size: 1.75rem; margin-top: 2.2em; margin-bottom: 0.5em; }
h3 { font-size: 1.35rem; margin-top: 1.6em; margin-bottom: 0.4em; }
h4 { font-size: 1.1rem; margin-top: 1.3em; margin-bottom: 0.3em; }

p {
    margin-bottom: 1.3em;
    color: var(--text-body);
}

ul, ol {
    margin-bottom: 1.3em;
    padding-left: 1.4em;
}

li {
    margin-bottom: 0.5em;
}

blockquote {
    border-left: 3px solid var(--terracotta);
    padding: 1em 1.5em;
    margin: 1.8em 0;
    background: var(--bg-white);
    font-style: italic;
    color: var(--text-muted);
    border-radius: 0 3px 3px 0;
}

strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* --- Navigation (page-top) --- */
.page-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    padding: 0 2rem;
    transition: background 0.3s, box-shadow 0.3s;
}

.page-top.pinned {
    position: fixed;
    background: rgba(250, 248, 244, 0.97);
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

/* Nav over splash: white text for readability */
.page-top.over-splash .brand a {
    color: #fff;
}

.page-top.over-splash .menu-items a {
    color: rgba(255,255,255,0.85);
}

.page-top.over-splash .menu-items a:hover,
.page-top.over-splash .menu-items a.current {
    color: #fff;
}

.page-top.over-splash .menu-btn span {
    background: #fff;
}

.menu-bar {
    max-width: var(--max-wide);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.brand {
    font-family: 'Lora', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
}

.brand a {
    color: var(--text-dark);
}

.brand a:hover {
    color: var(--terracotta);
}

.menu-items {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-items a {
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: color 0.2s;
}

.menu-items a:hover,
.menu-items a.current {
    color: var(--terracotta);
}

/* Mobile menu toggle */
.menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-dark);
    margin: 5px 0;
    transition: 0.3s;
}

/* --- Splash (Hero) --- */
.splash {
    position: relative;
    height: 80vh;
    min-height: 480px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: linear-gradient(180deg, #D4CFC4 0%, #C8BFB0 50%, #B8AFA0 100%);
}

.splash-photo {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center 40%;
}

.splash-photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(rgba(45, 41, 38, 0.45), transparent);
    z-index: 1;
}

.splash-photo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55%;
    background: linear-gradient(transparent, rgba(45, 41, 38, 0.75));
}

.splash-text {
    position: relative;
    z-index: 2;
    max-width: var(--max-wide);
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem 3.5rem;
    color: #fff;
}

.splash-tag {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.8rem;
}

.splash-text h1 {
    font-size: 3.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
    max-width: 620px;
}

.splash-sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
    max-width: 480px;
}

/* --- Article Hero (article pages) --- */
.post-hero {
    max-width: var(--max-content);
    margin: 0 auto;
    padding: 5.5rem 2rem 2rem;
}

.post-hero .tile-tag {
    font-size: 0.78rem;
    color: var(--terracotta);
    margin-bottom: 0.8rem;
}

.post-hero h1 {
    font-size: 2.4rem;
    color: var(--text-dark);
    margin-bottom: 0.7rem;
    max-width: 640px;
}

.post-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.post-meta a {
    color: var(--terracotta);
}

/* --- Story Tiles (horizontal cards) --- */
.stories-heading {
    max-width: var(--max-wide);
    margin: 0 auto;
    padding: 3.5rem 2rem 1.5rem;
}

.stories-heading h2 {
    font-size: 1.9rem;
    color: var(--text-dark);
    margin: 0;
}

.stories-heading p {
    color: var(--text-muted);
    margin-top: 0.3em;
    font-size: 1rem;
}

.stories-feed {
    max-width: var(--max-wide);
    margin: 0 auto;
    padding: 0 2rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.story-tile {
    display: flex;
    background: var(--bg-white);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
    border: 1px solid var(--border-warm);
}

.story-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.07);
}

.tile-image {
    width: 280px;
    min-height: 200px;
    flex-shrink: 0;
    background-color: #D4CFC4;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.tile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tile-body {
    padding: 1.5rem 1.8rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.tile-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--terracotta);
    margin-bottom: 0.5rem;
}

.tile-body h3 {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.tile-body h3 a {
    color: var(--text-dark);
    transition: color 0.2s;
}

.tile-body h3 a:hover {
    color: var(--terracotta);
}

.tile-summary {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.tile-info {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Article Body (post-body) --- */
.post-body {
    max-width: var(--max-content);
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

.post-body h2 {
    position: relative;
    padding-bottom: 0.35em;
    border-bottom: 2px solid var(--border-warm);
}

.post-body img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1.5em 0;
}

.post-body figure {
    margin: 2em 0;
}

.post-body figcaption {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.5em;
    font-style: italic;
}

/* --- Tip Block (info-box equivalent) --- */
.tip-block {
    background: var(--bg-white);
    border-left: 3px solid var(--terracotta);
    padding: 1.2em 1.5em;
    margin: 1.8em 0;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.tip-block strong {
    color: var(--terracotta);
}

/* --- Editor Pick (author-note equivalent) --- */
.editor-pick {
    background: linear-gradient(135deg, var(--bg-white), #F7F4EE);
    border-radius: 4px;
    padding: 1.2em 1.5em;
    margin: 2em 0;
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
    border-left: 3px solid var(--navy);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.editor-pick strong {
    color: var(--navy);
    font-style: normal;
}

/* --- Pull Quote --- */
.pull-quote {
    font-family: 'Lora', serif;
    font-size: 1.4rem;
    font-style: italic;
    line-height: 1.5;
    color: var(--navy);
    text-align: center;
    padding: 2em 2rem;
    margin: 2.5em 0;
    border-top: 2px solid var(--border-warm);
    border-bottom: 2px solid var(--border-warm);
}

/* --- Compare Table (price-table equivalent) --- */
.compare-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.8em 0;
}

.compare-table th {
    background: var(--navy);
    color: #fff;
    font-family: 'Lora', serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
    padding: 0.8em 1em;
}

.compare-table td {
    padding: 0.7em 1em;
    border-bottom: 1px solid var(--border-warm);
    color: var(--text-body);
    font-size: 0.95rem;
}

.compare-table tr:hover td {
    background: rgba(184, 92, 56, 0.04);
}

/* --- Contents (TOC equivalent) --- */
.contents {
    background: var(--bg-white);
    border: 1px solid var(--border-warm);
    border-radius: 4px;
    padding: 1.5em 2em;
    margin: 2em 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.contents-label {
    font-family: 'Lora', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.8em;
    letter-spacing: 0.02em;
}

.contents ol {
    padding-left: 1.2em;
    margin: 0;
}

.contents li {
    margin-bottom: 0.35em;
    font-size: 0.93rem;
}

.contents a {
    color: var(--text-muted);
    border-bottom: 1px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.contents a:hover {
    color: var(--terracotta);
    border-bottom-color: var(--terracotta);
}

/* --- Breadcrumbs --- */
.crumbs {
    max-width: var(--max-content);
    margin: 0 auto;
    padding: 1rem 2rem 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.crumbs a {
    color: var(--text-muted);
}

.crumbs a:hover {
    color: var(--terracotta);
}

.crumbs span {
    margin: 0 0.4em;
    color: var(--border-warm);
}

/* --- About Page --- */
.about-wrap {
    max-width: var(--max-content);
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
}

.about-top {
    text-align: center;
    margin-bottom: 2.5rem;
}

.about-pic {
    width: 110px;
    height: 110px;
    border-radius: 6px;
    background: var(--navy);
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Lora', serif;
    font-size: 2.2rem;
    color: #fff;
    font-weight: 700;
    border: 3px solid var(--border-warm);
}

/* --- More Stories (related-articles equivalent) --- */
.more-stories {
    max-width: var(--max-content);
    margin: 0 auto;
    padding: 0 2rem 3rem;
    border-top: 2px solid var(--border-warm);
}

.more-stories h2 {
    font-size: 1.3rem;
    color: var(--navy);
    margin-top: 1.8rem;
    margin-bottom: 1rem;
    text-align: center;
}

.stories-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.more-tile {
    display: block;
    background: var(--bg-white);
    border: 1px solid var(--border-warm);
    border-radius: 4px;
    padding: 1.2em;
    transition: border-color 0.2s, transform 0.2s;
    text-decoration: none;
}

.more-tile:hover {
    border-color: var(--terracotta);
    transform: translateY(-2px);
}

.more-tag {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--terracotta);
    margin-bottom: 0.5em;
}

.more-title {
    display: block;
    font-family: 'Lora', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.35;
}

/* --- Footer --- */
.page-bottom {
    border-top: 1px solid var(--border-warm);
    padding: 2.5rem 2rem;
    background: var(--bg-white);
}

.footer-wrap {
    max-width: var(--max-wide);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.footer-col {
    flex: 1;
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    margin-top: 0;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 0.4rem;
}

.footer-col a:hover {
    color: var(--terracotta);
}

.footer-copy {
    text-align: center;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--border-warm);
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* --- Responsive --- */
@media (max-width: 800px) {
    .splash-text h1 {
        font-size: 2.3rem;
    }

    .post-hero h1 {
        font-size: 2rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .story-tile {
        flex-direction: column;
    }

    .tile-image {
        width: 100%;
        min-height: 180px;
        max-height: 220px;
    }

    .stories-feed {
        padding: 0 1rem 3rem;
    }

    .menu-items {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(250, 248, 244, 0.98);
        flex-direction: column;
        padding: 1rem 2rem;
        gap: 0;
        border-bottom: 1px solid var(--border-warm);
        box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    }

    .menu-items.open {
        display: flex;
    }

    .menu-items li {
        padding: 0.7rem 0;
        border-bottom: 1px solid var(--border-warm);
    }

    .menu-items li:last-child {
        border-bottom: none;
    }

    .menu-btn {
        display: block;
    }

    .footer-wrap {
        flex-direction: column;
        gap: 1.5rem;
    }

    .pull-quote {
        font-size: 1.15rem;
        padding: 1.5em 1rem;
    }

    .about-wrap {
        padding-top: 5rem;
    }
}

@media (max-width: 500px) {
    .splash-text h1 {
        font-size: 1.8rem;
    }

    .splash-sub {
        font-size: 0.95rem;
    }

    .post-hero h1 {
        font-size: 1.5rem;
    }

    .tile-body {
        padding: 1rem 1.2rem;
    }

    body {
        font-size: 16px;
    }
}
