/* main.css - stylesheet for the whole site
   colours: dark blue #1b2230, text #3c4a5e, background #f5f1e8,
   orange #d9822b, teal #1f6f78 */

/* basic reset */
html, body, div, h1, h2, h3, h4, p, ul, ol, li, dl, dt, dd,
table, caption, tr, th, td, form, fieldset, legend, img, object, blockquote {
    margin: 0;
    padding: 0;
    border: 0;
}

html {
    background-color: #f5f1e8;
}

body {
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #3c4a5e;
    background-color: #f5f1e8;
}

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

a {
    color: #1f6f78;
    text-decoration: none;
    border-bottom: 1px solid #b9d6d9;
}

a:hover,
a:focus {
    color: #d9822b;
    border-bottom-color: #d9822b;
}

h1, h2, h3, h4 {
    font-family: Georgia, "Times New Roman", serif;
    color: #1b2230;
    line-height: 1.25;
    font-weight: bold;
}

h1 { font-size: 2.1em; margin-bottom: 0.4em; }
h2 { font-size: 1.45em; margin: 1.4em 0 0.5em 0; }
h3 { font-size: 1.15em; margin: 1.2em 0 0.4em 0; }
h4 { font-size: 1em;    margin: 1em 0 0.3em 0; }

p  { margin-bottom: 1em; }

ul, ol {
    margin: 0 0 1em 1.4em;
}

li { margin-bottom: 0.3em; }

ul.plain {
    list-style: none;
    margin-left: 0;
}

strong { color: #1b2230; }

code {
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.92em;
    background-color: #efe9dc;
    padding: 0 4px;
}

/* page shell (div layout) */
#page {
    min-height: 100%;
}

#header {
    background-color: #1b2230;
    border-bottom: 4px solid #d9822b;
}

.header-inner,
.footer-inner,
#wrapper {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
}

#header a.brand {
    display: flex;
    align-items: center;
    border-bottom: 0;
    color: #ffffff;
}

#header a.brand img {
    display: block;
    margin-right: 14px;
}

.brand-text {
    display: block;
}

.brand-name {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.5em;
    font-weight: bold;
    color: #ffffff;
    line-height: 1.1;
}

.brand-tag {
    display: block;
    font-size: 0.85em;
    color: #c9c2b3;
}

.header-links a {
    color: #e9e4d8;
    border-bottom: 0;
    margin-left: 22px;
    font-size: 0.95em;
}

.header-links a:hover,
.header-links a:focus {
    color: #d9822b;
}

.header-links a.header-cta {
    background-color: #d9822b;
    color: #1b2230;
    padding: 7px 14px;
    font-weight: bold;
}

.header-links a.header-cta:hover,
.header-links a.header-cta:focus {
    background-color: #f0a050;
    color: #1b2230;
}

#wrapper {
    display: flex;
    align-items: flex-start;
    padding-top: 32px;
    padding-bottom: 40px;
}

/* navigation column */
#nav {
    flex: 0 0 230px;
    margin-right: 32px;
    background-color: #fffdf8;
    border: 1px solid #e2dccf;
    padding: 18px 0 8px 0;
}

#nav .nav-title {
    font-size: 0.8em;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8a8373;
    margin: 0 20px 8px 20px;
    font-family: "Segoe UI", Arial, sans-serif;
}

#nav ul {
    list-style: none;
    margin: 0 0 12px 0;
}

#nav li {
    margin: 0;
}

#nav li a {
    display: block;
    padding: 8px 20px;
    color: #1b2230;
    border-bottom: 0;
    border-left: 4px solid transparent;
}

#nav li a:hover,
#nav li a:focus {
    background-color: #f5f1e8;
    border-left-color: #d9822b;
    color: #1b2230;
}






/* content column */
#content {
    flex: 1 1 auto;
    min-width: 0;
    background-color: #fffdf8;
    border: 1px solid #e2dccf;
    padding: 32px 40px 36px 40px;
}

.lead {
    font-size: 1.15em;
    color: #1b2230;
}

.kicker {
    font-size: 0.8em;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #d9822b;
    font-weight: bold;
    margin-bottom: 0.3em;
}

.breadcrumb {
    font-size: 0.85em;
    color: #8a8373;
    margin-bottom: 1.2em;
}

.note {
    background-color: #f5f1e8;
    border-left: 4px solid #1f6f78;
    padding: 12px 16px;
    margin: 1em 0 1.4em 0;
}

.note p {
    margin-bottom: 0;
}

.muted {
    color: #8a8373;
}

/* Home page hero */
.hero {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e2dccf;
    padding-bottom: 24px;
    margin-bottom: 8px;
}

.hero-text {
    flex: 1 1 auto;
}

.hero-art {
    flex: 0 0 260px;
    margin-left: 28px;
}

.hero-art img {
    display: block;
    border: 4px solid #1b2230;
}

.button {
    display: inline-block;
    background-color: #1b2230;
    color: #ffffff;
    border: 2px solid #1b2230;
    padding: 8px 18px;
    margin: 4px 8px 4px 0;
    font-weight: bold;
}

.button:hover,
.button:focus {
    background-color: #d9822b;
    border-color: #d9822b;
    color: #1b2230;
}

.button.secondary {
    background-color: transparent;
    color: #1b2230;
}

.button.secondary:hover,
.button.secondary:focus {
    background-color: #1b2230;
    color: #ffffff;
    border-color: #1b2230;
}

/* Card grid (home, about, sitemap) */
.cards {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -8px;
}

.card {
    flex: 1 1 240px;
    margin: 8px;
    border: 1px solid #e2dccf;
    border-top: 4px solid #1f6f78;
    background-color: #ffffff;
    padding: 16px 18px;
}

.card h3 {
    margin-top: 0;
}

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

.card.accent {
    border-top-color: #d9822b;
}

.stat-row {
    display: flex;
    flex-wrap: wrap;
    margin: 20px -8px 8px -8px;
}

.stat {
    flex: 1 1 140px;
    margin: 8px;
    text-align: center;
    background-color: #1b2230;
    color: #e9e4d8;
    padding: 14px 10px;
}

.stat .stat-num {
    display: block;
    font-family: Georgia, serif;
    font-size: 1.9em;
    font-weight: bold;
    color: #d9822b;
}

.skill-list li {
    display: inline-block;
    background-color: #efe9dc;
    color: #1b2230;
    padding: 2px 10px;
    margin: 0 6px 8px 0;
    font-size: 0.9em;
}

dl.timeline dt {
    font-weight: bold;
    color: #1b2230;
    margin-top: 0.8em;
}

dl.timeline dd {
    margin: 0 0 0.4em 0;
    padding-left: 14px;
    border-left: 3px solid #e2dccf;
}

/* picture gallery */
.gallery-stage {
    background-color: #1b2230;
    padding: 16px;
    text-align: center;
}

.gallery-stage img#gallery-main {
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 960px;
    border: 2px solid #3c4a5e;
}

.gallery-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    color: #e9e4d8;
}

.gallery-caption {
    flex: 1 1 auto;
    text-align: center;
    padding: 0 12px;
}

.gallery-caption strong {
    color: #ffffff;
}

.gallery-counter {
    display: block;
    font-size: 0.85em;
    color: #c9c2b3;
}

.gallery-btn {
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 1em;
    font-weight: bold;
    background-color: #d9822b;
    color: #1b2230;
    border: 0;
    padding: 10px 18px;
    cursor: pointer;
}

.gallery-btn:hover,
.gallery-btn:focus {
    background-color: #f0a050;
}

.thumbs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 16px;
}

.thumbs a {
    display: block;
    margin: 5px;
    border: 3px solid #e2dccf;
    line-height: 0;
}

.thumbs a:hover,
.thumbs a:focus {
    border-color: #1f6f78;
}

.thumbs a.active {
    border-color: #d9822b;
}

.thumbs img {
    display: block;
    width: 120px;
    height: 75px;
}

/* embedded media (video, resume) */
.media-frame {
    background-color: #1b2230;
    padding: 12px;
    margin: 1em 0 1.4em 0;
}

.media-frame object {
    display: block;
    width: 100%;
    background-color: #000000;
}

.media-frame.video object {
    height: 480px;
}

.media-frame.pdf {
    background-color: #e2dccf;
}

.media-frame.pdf object {
    height: 1000px;
    background-color: #ffffff;
}

.media-fallback {
    padding: 24px;
    color: #e9e4d8;
}

.media-frame.pdf .media-fallback {
    color: #1b2230;
}

/* simple data table (database page, sitemap) */
table.data {
    width: 100%;
    border-collapse: collapse;
    margin: 0.6em 0 1.4em 0;
    font-size: 0.95em;
}

table.data caption {
    text-align: left;
    font-weight: bold;
    color: #1b2230;
    padding-bottom: 6px;
}

table.data th,
table.data td {
    border: 1px solid #e2dccf;
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
}

table.data thead th {
    background-color: #1b2230;
    color: #ffffff;
}

table.data tbody tr:nth-child(even) td {
    background-color: #faf7f0;
}








/* alerts (server messages) */
.alert {
    padding: 12px 16px;
    margin: 0 0 1.2em 0;
    border: 1px solid #e2dccf;
    border-left-width: 6px;
}

.alert p {
    margin-bottom: 0;
}

.alert-success {
    background-color: #eef7f0;
    border-color: #2e7d4f;
    color: #1d4d31;
}

.alert-error {
    background-color: #fcefec;
    border-color: #b23b2a;
    color: #7a2417;
}

/* contact page */
.contact-email {
    font-size: 1.3em;
    font-weight: bold;
}

/* footer */
#footer {
    background-color: #1b2230;
    color: #c9c2b3;
    border-top: 4px solid #d9822b;
    font-size: 0.9em;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    padding-bottom: 20px;
}

.footer-text p {
    margin-bottom: 0.3em;
}


.footer-badges a {
    border-bottom: 0;
    margin-left: 10px;
}

.footer-badges img {
    vertical-align: middle;
}

/* responsive */
@media screen and (max-width: 860px) {
    #wrapper {
        flex-direction: column;
        padding-top: 18px;
    }

    #nav {
        flex: 0 0 auto;
        width: 100%;
        margin: 0 0 18px 0;
    }

    #nav ul li {
        display: inline-block;
    }

    #content {
        width: 100%;
        padding: 22px 20px;
    }

    .hero {
        flex-direction: column;
    }

    .hero-art {
        margin: 18px 0 0 0;
    }

    .header-inner,
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-links {
        margin-top: 10px;
    }

    .header-links a {
        margin: 0 16px 0 0;
    }

    .footer-badges {
        margin-top: 12px;
    }

    .media-frame.video object {
        height: 260px;
    }
}

/* site map */
ul.sitemap,
ul.sitemap ul {
    list-style: none;
}

ul.sitemap {
    margin-left: 0;
}

ul.sitemap ul {
    margin: 6px 0 6px 10px;
    padding-left: 18px;
    border-left: 2px solid #e2dccf;
}

ul.sitemap li {
    margin-bottom: 6px;
}

