/* Split Screen - A Free Design by Bryant Smith (bryantsmith.com)
   A homepage cut into two equal vertical halves: a dark bio side and a
   light work side. Every colour and space on the page is written below -
   look for the section headings to find what you want to change. */


/* ---- RESET: start every element from the same clean place ---- */

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


/* ---- BODY: the dark backdrop behind the whole page ---- */

body {
    background: #10171e;
    color: #e9e4da;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    padding: 24px 16px;
}


/* ---- PAGE: the centred 50/50 split ---- */

#page {
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    display: flex;
    margin: 0 auto;
    max-width: 960px;
    min-height: 88vh;
    overflow: hidden;
}


/* ---- BIO PANEL: the dark left half - bio and links ---- */

#bio {
    background: linear-gradient(160deg, #1c2a36 0%, #121c25 100%);
    display: flex;
    flex: 1 1 50%;
    flex-direction: column;
    overflow: hidden;
    padding: 64px 48px;
    position: relative;
}

#bio::after {
    background: radial-gradient(circle, rgba(224, 164, 60, 0.22), rgba(224, 164, 60, 0) 70%);
    border-radius: 50%;
    content: "";
    height: 340px;
    position: absolute;
    right: -140px;
    top: -140px;
    width: 340px;
}

#bio > * {
    position: relative;
    z-index: 1;
}

.eyebrow {
    color: #e0a43c;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 3px;
    text-transform: uppercase;
}

#bio h1 {
    color: #f7f3ea;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 44px;
    font-weight: normal;
    letter-spacing: -0.5px;
    line-height: 1.05;
    margin: 10px 0 14px 0;
}

.tagline {
    color: #9fb0bd;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 18px;
    font-style: italic;
    margin-bottom: 28px;
}

.intro {
    color: #c6d0d8;
    margin-bottom: 16px;
}


/* ---- MENU: the row of navigation pills on the dark half ---- */

#menu {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 30px 0 6px 0;
}

#menu a,
#menu a:visited {
    border: 1px solid rgba(224, 164, 60, 0.4);
    border-radius: 999px;
    color: #f0e6d2;
    font-size: 13px;
    letter-spacing: 1px;
    padding: 8px 16px;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

#menu a:hover,
#menu a:focus-visible {
    background: #e0a43c;
    border-color: #e0a43c;
    color: #16222c;
    outline: none;
}


/* ---- LINKS: the stacked list of other places to find me ---- */

#bio h2 {
    color: #e0a43c;
    font-size: 12px;
    letter-spacing: 2.5px;
    margin: 36px 0 12px 0;
    text-transform: uppercase;
}

.links {
    list-style: none;
}

.links li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.links a,
.links a:visited {
    color: #c6d0d8;
    display: block;
    font-size: 15px;
    padding: 10px 2px;
    text-decoration: none;
    transition: color 0.18s ease, padding-left 0.18s ease;
}

.links a::after {
    color: #e0a43c;
    content: "\2192";
    float: right;
}

.links a:hover,
.links a:focus-visible {
    color: #ffffff;
    padding-left: 8px;
}

.panel-note {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #7f8f9c;
    font-size: 12.5px;
    font-style: italic;
    line-height: 1.6;
    margin-top: auto;
    padding-top: 18px;
}


/* ---- WORK PANEL: the light right half - projects and updates ---- */

#work {
    background: #f4f1ea;
    color: #2b3440;
    flex: 1 1 50%;
    padding: 64px 48px 36px 48px;
}

#work .lead {
    color: #3a4653;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 36px;
}

#work a,
#work a:visited {
    border-bottom: 1px solid #e0c79a;
    color: #a35f12;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease;
}

#work a:hover,
#work a:focus-visible {
    border-color: #6f3f06;
    color: #6f3f06;
}

#work a:focus-visible {
    outline: 2px solid #b06f1c;
    outline-offset: 3px;
}


/* ---- BLOCKS: the sections stacked down the light half ---- */

.block {
    margin-bottom: 36px;
}

.block h2 {
    border-bottom: 1px solid #e2ddd0;
    color: #9a6a1c;
    font-size: 12px;
    letter-spacing: 2.5px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    text-transform: uppercase;
}

.block h2::before {
    background: #b06f1c;
    content: "";
    display: inline-block;
    height: 3px;
    margin-right: 10px;
    vertical-align: middle;
    width: 20px;
}


/* ---- PROJECTS: a numbered list of small cards ---- */

.projects {
    list-style: none;
}

.projects li {
    border-bottom: 1px solid #e6e1d4;
    padding: 14px 0;
}

.projects li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.projects a,
.projects a:visited {
    border-bottom: none;
    color: #1c2a36;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 18px;
    text-decoration: none;
}

.projects a:hover,
.projects a:focus-visible {
    color: #b06f1c;
}

.projects span {
    color: #6d7680;
    display: block;
    font-size: 13.5px;
    line-height: 1.6;
    margin-top: 2px;
}


/* ---- UPDATES: the dated list of news ---- */

.updates {
    list-style: none;
}

.updates li {
    border-bottom: 1px solid #e6e1d4;
    padding: 12px 0;
}

.updates li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.updates .date {
    color: #9a948a;
    display: inline-block;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    width: 130px;
}

.updates a,
.updates a:visited {
    font-size: 16.5px;
}


/* ---- TIP: the friendly "how to use" block ---- */

.tip {
    background: #efe9db;
    border: 1px dashed #d3c7a9;
    border-radius: 8px;
    padding: 22px 24px;
}

.tip ol {
    margin: 12px 0 0 20px;
}

.tip li {
    margin-bottom: 6px;
}

.contact-line {
    margin-top: 16px;
}


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

#footer {
    border-top: 1px solid #e2ddd0;
    color: #9a948a;
    font-size: 10px;
    letter-spacing: 1px;
    margin-top: 40px;
    padding-top: 18px;
    text-align: center;
    text-transform: uppercase;
}

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

#footer a:hover {
    color: #b06f1c;
}


/* ---- SMALL SCREENS: stack the two halves into one column ---- */

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

    #page {
        border-radius: 0;
        box-shadow: none;
        flex-direction: column;
        min-height: 0;
    }

    #bio,
    #work {
        padding: 44px 26px;
    }

    #bio h1 {
        font-size: 34px;
    }

    #work .lead {
        font-size: 18px;
    }

    .updates .date {
        display: block;
        margin-bottom: 2px;
        width: auto;
    }
}


/* ---- PRINT: drop the dark backdrop for a clean sheet ---- */

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

    #page {
        box-shadow: none;
        display: block;
        max-width: 100%;
        min-height: 0;
    }

    #bio {
        background: #ffffff;
        border-bottom: 2px solid #b06f1c;
        padding: 0 0 20px 0;
    }

    #bio::after,
    #menu {
        display: none;
    }

    #bio h1,
    .tagline,
    .intro,
    .links a {
        color: #000000;
    }

    #work {
        padding: 24px 0 0 0;
    }
}
