/* Flight Notes - A Free Design by Bryant Smith (bryantsmith.com)
   Every colour, font and space the page uses is gathered here.
   Use the section headings below to find the part you want to change. */


/* ---- RESET & BODY: the cool runway-coloured backdrop ---- */

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

body {
    background: #e8edf3;
    background-image: linear-gradient(180deg, #eef2f7 0%, #e2e8f0 100%);
    color: #2c3a47;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 17px;
    line-height: 1.7;
    padding: 48px 16px;
    text-align: center;
}

/* ---- COLOUR KEYS (used again and again below)
   ink    #10273f   deep navy, headings and dark panels
   amber  #d88324   the single warm accent
   paper  #fbfaf7   the page itself
   line   #e4e0d6   warm hairlines
   ---- */


/* ---- PAGE: the sheet, with a split colour bar across the top ---- */

#page {
    background: #fbfaf7;
    border-top: 6px solid #10273f;
    box-shadow: 0 2px 4px rgba(16, 39, 63, 0.06), 0 18px 42px rgba(16, 39, 63, 0.13);
    margin: 0 auto;
    max-width: 920px;
    text-align: left;
}


/* ---- MASTHEAD: the two-part header (flex gives each half its share) ---- */

#masthead {
    display: flex;
    flex-wrap: wrap;
}

#brand {
    background: linear-gradient(135deg, #14304d 0%, #10273f 60%, #0c1f33 100%);
    color: #ffffff;
    flex: 1 1 360px;
    padding: 48px 44px 44px 44px;
    position: relative;
}

#brand h1 {
    color: #ffffff;
    font-size: 48px;
    font-weight: normal;
    letter-spacing: -0.5px;
    line-height: 1.05;
}

/* The small letterspaced word above the title. */
.eyebrow {
    color: #f0b35c;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 3px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

/* The dashed line nods to a runway, drawn with a repeating gradient. */
#brand::after {
    background: repeating-linear-gradient(90deg, #f0b35c 0, #f0b35c 20px, transparent 20px, transparent 36px);
    bottom: 22px;
    content: "";
    height: 2px;
    left: 44px;
    position: absolute;
    right: 44px;
}

#brand .tagline {
    color: #b9c8d6;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    margin-top: 14px;
    text-transform: uppercase;
}

/* ---- TRIP PANEL: the light, second half of the header ---- */

#trip {
    background: linear-gradient(180deg, #f7f3ea 0%, #f1ecdf 100%);
    border-left: 4px solid #d88324;
    flex: 1 1 280px;
    padding: 44px 40px 40px 40px;
}

.trip-label {
    border-bottom: 1px solid #e0d8c6;
    color: #b56612;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 2px;
    padding-bottom: 8px;
    text-transform: uppercase;
}

.trip-place {
    color: #10273f;
    font-size: 27px;
    line-height: 1.2;
    margin-top: 16px;
}

.trip-dates {
    color: #66727f;
    font-size: 15px;
    margin-top: 4px;
}

.trip-facts {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 14px;
    margin-top: 20px;
    row-gap: 6px;
}

.trip-facts dt {
    color: #7c8996;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 1px;
    padding-top: 4px;
    text-transform: uppercase;
}

.trip-facts dd {
    color: #10273f;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 13px;
}


/* ---- MENU: the dark bar of links below the header ---- */

#menu {
    background: #10273f;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    padding: 0 36px;
    text-transform: uppercase;
}

#menu a,
#menu a:visited {
    border-bottom: 3px solid transparent;
    color: #c7d3df;
    display: inline-block;
    margin-right: 26px;
    padding: 15px 0 12px 0;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}

#menu a:hover,
#menu a:focus {
    border-bottom-color: #d88324;
    color: #ffffff;
}


/* ---- CONTENT: the general text column ---- */

#content {
    padding: 48px 44px 8px 44px;
}

#content p {
    margin-bottom: 20px;
}

#content a,
#content a:visited {
    border-bottom: 1px solid #e7bb85;
    color: #b56612;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}

#content a:hover,
#content a:focus {
    border-bottom-color: #7e4407;
    color: #7e4407;
}

.lead {
    color: #45535f;
    font-size: 20px;
    line-height: 1.65;
    margin-bottom: 44px;
}

h2 {
    border-bottom: 2px solid #10273f;
    color: #10273f;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
    margin: 0 0 6px 0;
    padding-bottom: 10px;
    text-transform: uppercase;
}

h2::before {
    background: #d88324;
    content: "";
    display: inline-block;
    height: 12px;
    margin-right: 10px;
    vertical-align: -1px;
    width: 4px;
}

.section-note {
    color: #7c8996;
    font-size: 14px;
    margin: 10px 0 24px 0;
}


/* ---- LEG CARDS: outbound and return, side by side ---- */

#legs {
    display: grid;
    gap: 22px;
    grid-template-columns: 1fr 1fr;
}

.leg {
    border: 1px solid #e4e0d6;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(16, 39, 63, 0.05), 0 10px 24px rgba(16, 39, 63, 0.07);
    min-width: 0;
    overflow: hidden;
}

.leg.outbound {
    border-top: 4px solid #10273f;
}

.leg.return {
    border-top: 4px solid #d88324;
}

.leg-head {
    align-items: center;
    background: #f5f2ea;
    border-bottom: 1px solid #e4e0d6;
    display: flex;
    justify-content: space-between;
    padding: 14px 22px;
}

.leg-label {
    background: #10273f;
    border-radius: 3px;
    color: #ffffff;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 2px;
    padding: 5px 10px;
    text-transform: uppercase;
}

.leg.return .leg-label {
    background: #d88324;
}

.leg-date {
    color: #66727f;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 1px;
}

.leg-body {
    padding: 22px;
}

/* The route line: two airport codes joined by a dashed flight path. */
.route {
    align-items: center;
    display: flex;
    margin: 4px 0 22px 0;
}

.route .code {
    color: #10273f;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 30px;
    font-weight: bold;
    letter-spacing: 1px;
    line-height: 1;
}

.route .code small {
    color: #7c8996;
    display: block;
    font-size: 9px;
    font-weight: normal;
    letter-spacing: 1px;
    margin-top: 5px;
    text-transform: uppercase;
}

.route .path {
    border-top: 2px dashed #c3cedb;
    flex: 1;
    height: 0;
    margin: 0 14px;
    position: relative;
}

/* A small plane shape made from a rotated triangle, no image needed. */
.route .path::after {
    background: #fbfaf7;
    border-left: 2px solid #d88324;
    border-top: 2px solid #d88324;
    content: "";
    height: 10px;
    left: 50%;
    position: absolute;
    top: -7px;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
}

/* The flight facts, a definition list in a tidy two-column grid. */
.leg-facts {
    border-top: 1px dashed #e4e0d6;
    display: grid;
    grid-template-columns: auto 1fr;
    padding-top: 16px;
}

.leg-facts dt {
    color: #7c8996;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 1px;
    padding: 7px 18px 7px 0;
    text-transform: uppercase;
}

.leg-facts dd {
    border-bottom: 1px dashed #eeeae1;
    color: #2c3a47;
    font-size: 15px;
    padding: 6px 0;
}

.leg-facts dd:last-of-type {
    border-bottom: none;
}


/* ---- QUOTE: the pulled-out packing line ---- */

blockquote {
    border-left: 3px solid #d88324;
    color: #5b6773;
    font-size: 20px;
    font-style: italic;
    line-height: 1.6;
    margin: 44px 0;
    padding: 4px 0 4px 26px;
}

blockquote p {
    margin: 0;
}


/* ---- TWO COLUMNS: packing list and reservation notes ---- */

#columns {
    display: grid;
    gap: 44px;
    grid-template-columns: 1.05fr 1fr;
    margin-bottom: 44px;
}

#packing,
#reservations {
    min-width: 0;
}


/* ---- CHECKLIST: a two-column list with hand-drawn check boxes ---- */

.checklist {
    columns: 2;
    column-gap: 28px;
    list-style: none;
    margin-top: 16px;
}

.checklist li {
    break-inside: avoid;
    border-bottom: 1px dashed #e9e5dc;
    color: #3c4a56;
    padding: 9px 0 9px 28px;
    position: relative;
}

.checklist li::before {
    background: #fffdf9;
    border: 2px solid #b9c4cf;
    border-radius: 3px;
    content: "";
    height: 15px;
    left: 0;
    position: absolute;
    top: 12px;
    transition: border-color 0.15s ease, background 0.15s ease;
    width: 15px;
}

/* A tick that appears when you hover, as a small reward. */
.checklist li::after {
    color: #d88324;
    content: "\2713";
    font-size: 15px;
    font-weight: bold;
    left: 4px;
    opacity: 0;
    position: absolute;
    top: 8px;
    transition: opacity 0.15s ease;
}

.checklist li:hover::after {
    opacity: 1;
}

.checklist li:hover::before {
    border-color: #d88324;
}


/* ---- NOTES: the reservation details, a definition list ---- */

.notes {
    margin-top: 16px;
}

.notes dt {
    color: #b56612;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 1.5px;
    padding-top: 16px;
    text-transform: uppercase;
}

.notes dt:first-of-type {
    padding-top: 0;
}

.notes dd {
    border-bottom: 1px solid #eeeae1;
    color: #4a5763;
    font-size: 15px;
    padding: 5px 0 16px 0;
}

.notes dd:last-of-type {
    border-bottom: none;
}


/* ---- HOW TO USE: the friendly note box ---- */

.note {
    background: #f5f2ea;
    border-left: 4px solid #d88324;
    margin-bottom: 8px;
    padding: 24px 26px 8px 26px;
}

.note h2 {
    border-bottom: none;
    font-size: 11px;
    margin-bottom: 12px;
    padding-bottom: 0;
}

.note p {
    color: #55636f;
    font-size: 15px;
    line-height: 1.65;
}


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

#footer {
    border-top: 1px solid #e4e0d6;
    color: #98a2ad;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 1px;
    margin-top: 40px;
    padding: 20px 44px;
    text-align: center;
    text-transform: uppercase;
}

#footer a,
#footer a:visited {
    border-bottom: none;
    color: #66727f;
    text-decoration: none;
}

#footer a:hover,
#footer a:focus {
    color: #b56612;
}


/* ---- SMALL SCREENS: stack the header, cards and columns ---- */

@media (max-width: 640px) {
    body {
        padding: 20px 10px;
    }

    #brand {
        padding: 36px 28px 40px 28px;
    }

    #brand h1 {
        font-size: 36px;
    }

    #brand::after {
        left: 28px;
        right: 28px;
    }

    #trip {
        border-left: none;
        border-top: 4px solid #d88324;
        padding: 30px 28px 30px 28px;
    }

    #menu {
        padding: 0 28px;
    }

    #menu a {
        margin-right: 20px;
    }

    #content {
        padding: 36px 28px 8px 28px;
    }

    .lead {
        font-size: 18px;
    }

    /* Smaller airport codes so the route line stays comfortable. */
    .route .code {
        font-size: 25px;
    }

    .leg-facts dt {
        padding-right: 12px;
    }

    /* One leg per row, and the packing list back to a single column. */
    #legs,
    #columns {
        gap: 26px;
        grid-template-columns: 1fr;
    }

    .checklist {
        columns: 1;
    }

    .note {
        padding: 22px 22px 6px 22px;
    }

    #footer {
        padding: 18px 28px;
    }
}


/* ---- PRINT: a clean, flat sheet to take with you ---- */

@media print {
    body {
        background: #ffffff;
        color: #000000;
        font-size: 12pt;
        padding: 0;
    }

    #page {
        border-top: none;
        box-shadow: none;
        max-width: 100%;
    }

    /* Hide the things that are no use on paper. */
    #menu,
    .note {
        display: none;
    }

    #brand {
        background: none;
        color: #000000;
        padding: 0 0 12px 0;
    }

    #brand h1 {
        color: #000000;
        font-size: 24pt;
    }

    #brand::after,
    .eyebrow {
        display: none;
    }

    #brand .tagline {
        color: #333333;
    }

    #trip {
        background: none;
        border-left: none;
        padding: 0 0 12px 0;
    }

    #content {
        padding: 0;
    }

    /* Keep each flight card whole on the page. */
    .leg,
    .notes dt,
    .notes dd,
    .checklist li {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .leg {
        box-shadow: none;
    }

    blockquote {
        color: #000000;
    }

    #footer {
        color: #333333;
        margin-top: 20px;
        padding: 12px 0 0 0;
    }
}
