/* Travel Log - A Free Design by Bryant Smith (bryantsmith.com)
   Palette: warm paper, terracotta, pine green and a dark ink brown.
   Look for the section headings below to find what you want to change. */


/* ---- RESET & BODY: the warm desk the journal sits on ---- */

* {
    margin: 0;
    padding: 0;
}

body {
    background: #ece3d3;
    color: #2b2721;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 16px;
    line-height: 1.75;
    padding: 0 0 48px 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

/* The page is one centred sheet, a little wider than a plain column
   so the alternating photo/text rows have room to breathe. */
#page {
    background: #faf6ee;
    box-shadow: 0 2px 4px rgba(48, 38, 24, 0.06), 0 18px 44px rgba(48, 38, 24, 0.14);
    margin: 28px auto;
    max-width: 900px;
    overflow: hidden;
}


/* ---- TOP NAVIGATION: sticky bar, jump to any destination ---- */

#topnav {
    align-items: center;
    background: rgba(250, 246, 238, 0.96);
    border-bottom: 1px solid #e4dccd;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    justify-content: space-between;
    padding: 15px 34px;
    position: sticky;
    top: 0;
    z-index: 20;
}

#topnav .brand {
    color: #2b2721;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 0.2px;
    text-decoration: none;
    white-space: nowrap;
}

#topnav .brand span {
    color: #c25a2b;
}

.navlinks {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 22px;
}

.navlinks a,
.navlinks a:visited {
    border-bottom: 2px solid transparent;
    color: #5b5347;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 1.5px;
    padding-bottom: 3px;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.navlinks a:hover,
.navlinks a:focus-visible {
    border-bottom-color: #c25a2b;
    color: #c25a2b;
}


/* ---- HERO BAND: a painted postcard at the top of the page ---- */

#hero {
    background:
        radial-gradient(circle at 80% 24%, #fff1c2 0 4%, rgba(255, 241, 194, 0) 5%),
        linear-gradient(#f6c98a 0%, #e9845a 48%, #a85a6b 74%, #4c3a56 100%);
    color: #ffffff;
    overflow: hidden;
    padding: 66px 34px 96px 34px;
    position: relative;
}

/* Layered silhouettes across the bottom of the band */
#hero::after {
    background: linear-gradient(#3a2b3f, #2b2030);
    bottom: 0;
    clip-path: polygon(0 100%, 0 60%, 11% 40%, 23% 66%, 37% 30%, 52% 62%, 66% 38%, 80% 64%, 92% 46%, 100% 66%, 100% 100%);
    content: "";
    height: 74%;
    left: 0;
    opacity: 0.92;
    position: absolute;
    width: 100%;
}

.hero-inner {
    max-width: 560px;
    position: relative;
    z-index: 2;
}

.eyebrow {
    color: #fff2d8;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 3px;
    margin-bottom: 14px;
    text-transform: uppercase;
}

#hero h1 {
    color: #ffffff;
    font-size: 56px;
    font-weight: normal;
    letter-spacing: -1px;
    line-height: 1.05;
    text-shadow: 0 2px 14px rgba(60, 30, 20, 0.35);
}

#hero .tagline {
    color: #ffe9d2;
    font-size: 18px;
    font-style: italic;
    margin-top: 16px;
    max-width: 34ch;
}


/* ---- INTRO: the opening note and the how-to-use box ---- */

.intro {
    border-bottom: 1px solid #e4dccd;
    padding: 52px 48px 44px 48px;
}

.lead {
    color: #4a443b;
    font-size: 20px;
    line-height: 1.7;
    max-width: 68ch;
}

.howto {
    background: #f3ecdd;
    border-left: 4px solid #2f6b62;
    color: #5b5347;
    font-size: 15px;
    margin-top: 28px;
    max-width: 68ch;
    padding: 18px 22px;
}

.howto strong {
    color: #2b2721;
}


/* ---- ENTRIES: full-width rows that alternate sides (zig-zag) ---- */

.entry {
    align-items: center;
    border-bottom: 1px solid #efe8da;
    display: flex;
    gap: 0;
}

.entry:nth-child(even) {
    flex-direction: row-reverse;
}

.entry .text {
    flex: 1 1 52%;
    padding: 56px 44px;
}

.entry .photo {
    flex: 1 1 48%;
}

.day {
    color: #b0502a;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 2.5px;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.entry h2 {
    color: #221f1a;
    font-size: 30px;
    font-weight: normal;
    line-height: 1.2;
    margin-bottom: 16px;
}

.entry .text p {
    color: #4a443b;
    margin-bottom: 16px;
    max-width: 60ch;
}

.entry .text p:last-child {
    margin-bottom: 0;
}


/* ---- PHOTOS: white "prints" with a caption underneath ---- */

.photo {
    background: #fffdf8;
    border: 1px solid #e4dccd;
    box-shadow: 0 14px 28px rgba(48, 38, 24, 0.14), 0 2px 4px rgba(48, 38, 24, 0.08);
    margin: 36px;
    padding: 12px 12px 0 12px;
    transform: rotate(-1.5deg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.entry:nth-child(even) .photo {
    transform: rotate(1.5deg);
}

.photo:hover {
    box-shadow: 0 20px 38px rgba(48, 38, 24, 0.2), 0 2px 4px rgba(48, 38, 24, 0.08);
    transform: rotate(0deg) translateY(-4px);
}

.photo figcaption {
    color: #7a7164;
    font-size: 13px;
    font-style: italic;
    padding: 12px 4px 15px 4px;
    text-align: center;
}

/* The "photograph" itself is a small CSS painting, so the template
   needs no image files. To use a real photo instead, swap the
   <div class="scene"> for <img src="your-photo.jpg" alt="..."> and
   the rule below will size it to fit the frame.
.photo img {
    display: block;
    height: auto;
    width: 100%;
} */

.scene {
    aspect-ratio: 4 / 3;
    background-color: #cfd8da;
    box-shadow: inset 0 0 40px rgba(40, 30, 20, 0.15);
    border-radius: 2px;
    display: block;
    overflow: hidden;
    position: relative;
    width: 100%;
}

/* --- scene 1: sunset over mountains --- */
.scene--sunset {
    background: linear-gradient(#f4c07a 0%, #e88a54 42%, #9c5a72 72%, #5b3b63 100%);
}

.scene--sunset::before {
    background: #fff3c9;
    border-radius: 50%;
    box-shadow: 0 0 40px 8px rgba(255, 236, 178, 0.85);
    content: "";
    height: 54px;
    left: 62%;
    position: absolute;
    top: 24%;
    width: 54px;
}

.scene--sunset::after {
    background: #3a2b3f;
    bottom: 0;
    clip-path: polygon(0 100%, 14% 62%, 30% 82%, 48% 44%, 64% 74%, 82% 54%, 100% 100%);
    content: "";
    height: 52%;
    left: 0;
    position: absolute;
    width: 100%;
}

/* --- scene 2: steam over a geothermal field --- */
.scene--geyser {
    background:
        radial-gradient(ellipse 24% 15% at 28% 86%, #79b3c1 0 58%, rgba(121, 179, 193, 0) 62%),
        radial-gradient(ellipse 18% 11% at 72% 90%, #8ec3cf 0 58%, rgba(142, 195, 207, 0) 62%),
        linear-gradient(#a9c7d1 0%, #dce9ec 55%, #c3b596 100%);
}

.scene--geyser::before {
    background:
        radial-gradient(ellipse 34% 46% at 50% 58%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 68%),
        radial-gradient(ellipse 16% 62% at 50% 38%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 74%);
    content: "";
    height: 92%;
    left: 18%;
    position: absolute;
    top: 0;
    width: 64%;
}

.scene--geyser::after {
    background: linear-gradient(#b3a382, #8f7f5f);
    bottom: 0;
    clip-path: polygon(0 100%, 0 54%, 40% 46%, 50% 26%, 60% 46%, 100% 56%, 100% 100%);
    content: "";
    height: 46%;
    left: 0;
    position: absolute;
    width: 100%;
}

/* --- scene 3: black sand and a basalt sea stack --- */
.scene--coast {
    background: linear-gradient(#dfe8ea 0 46%, #6d9094 46% 68%, #262a2c 68% 100%);
}

.scene--coast::before {
    background: repeating-linear-gradient(rgba(255, 255, 255, 0.75) 0 3px, rgba(255, 255, 255, 0) 3px 12px);
    content: "";
    height: 16%;
    left: 0;
    opacity: 0.5;
    position: absolute;
    top: 48%;
    width: 100%;
}

.scene--coast::after {
    background: linear-gradient(#22262a, #101315);
    bottom: 30%;
    clip-path: polygon(0 100%, 26% 0, 74% 0, 100% 100%);
    content: "";
    height: 46%;
    position: absolute;
    right: 12%;
    width: 22%;
}

/* --- scene 4: icebergs on a glacier lagoon --- */
.scene--glacier {
    background: linear-gradient(#bfe0ea 0%, #8fc2d6 55%, #5d9db4 100%);
}

.scene--glacier::before {
    background: #eaf6fa;
    bottom: 24%;
    clip-path: polygon(0 100%, 16% 40%, 34% 70%, 52% 34%, 70% 66%, 88% 46%, 100% 100%);
    content: "";
    height: 34%;
    left: 0;
    opacity: 0.85;
    position: absolute;
    width: 100%;
}

.scene--glacier::after {
    background: linear-gradient(#ffffff, #cfe9f2);
    bottom: 0;
    clip-path: polygon(0 100%, 20% 30%, 48% 62%, 72% 22%, 100% 100%);
    content: "";
    height: 40%;
    left: 0;
    position: absolute;
    width: 100%;
}


/* ---- TRIP SUMMARY: a dark strip of totals before the footer ---- */

#summary {
    background: #2b2721;
    color: #f3ecdd;
    padding: 48px;
}

.summary-title {
    color: #f3ecdd;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 26px;
    text-transform: uppercase;
}

.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 28px 34px;
}

.stat {
    border-left: 2px solid #c25a2b;
    flex: 1 1 140px;
    padding-left: 16px;
}

.stat .num {
    color: #ffffff;
    font-size: 32px;
    line-height: 1.1;
}

.stat .label {
    color: #b8ab97;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 2px;
    margin-top: 8px;
    text-transform: uppercase;
}


/* ---- FOOTER: the required credit link ---- */

#footer {
    background: #f3ecdd;
    color: #9a8f7d;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 1.5px;
    padding: 24px 34px;
    text-align: center;
    text-transform: uppercase;
}

#footer a,
#footer a:visited {
    color: #7a7164;
    text-decoration: none;
}

#footer a:hover,
#footer a:focus-visible {
    color: #c25a2b;
}


/* ---- SMALL SCREENS: stack the rows and tighten the padding ---- */

@media (max-width: 640px) {
    #topnav {
        padding: 14px 22px;
    }

    #hero {
        padding: 48px 22px 72px 22px;
    }

    #hero h1 {
        font-size: 40px;
    }

    .intro {
        padding: 38px 22px 34px 22px;
    }

    .lead {
        font-size: 18px;
    }

    .entry,
    .entry:nth-child(even) {
        flex-direction: column;
    }

    .entry .text {
        padding: 34px 22px 40px 22px;
    }

    .entry h2 {
        font-size: 25px;
    }

    .photo,
    .entry:nth-child(even) .photo {
        margin: 26px 22px 0 22px;
        transform: rotate(0deg);
    }

    #summary {
        padding: 38px 22px;
    }

    .stat .num {
        font-size: 26px;
    }
}


/* ---- PRINT: drop the paint and the menus for a clean read ---- */

@media print {
    body {
        background: #ffffff;
        padding: 0;
    }

    #page {
        box-shadow: none;
        margin: 0;
        max-width: 100%;
    }

    #topnav,
    #hero::after {
        display: none;
    }

    #hero {
        background: #ffffff;
        color: #000000;
        padding: 0 0 24px 0;
    }

    #hero h1,
    #hero .tagline,
    .eyebrow {
        color: #000000;
        text-shadow: none;
    }

    .photo {
        box-shadow: none;
        transform: none;
    }
}
