/*
   Art Fair History — Static Site Stylesheet
   Adapted from Hardy Theme by Theme Trust
   ==========================================
   00 - Fonts & Variables
   01 - Reset
   02 - Global
   03 - Layout
   04 - Header & Nav
   05 - Page Head (Hero Banner)
   06 - Home Page
   07 - Content
   08 - Timeline
   09 - Sidebar & Widgets
   10 - Buttons
   11 - Forms
   12 - Footer
   13 - Media Queries
*/

/* =====================================================
   00 - Fonts & Variables
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;800&family=Bitter:ital,wght@0,300;0,400;1,300;1,400&display=swap');

:root {
    --color-red:       #cc0000;
    --color-gray-btn:  #757575;
    --color-body:      #333333;
    --color-heading:   #333333;
    --color-link:      #667799;
    --color-link-hover:#4290ae;
    --color-bg-outer:  #333333;
    --color-bg-main:   #ffffff;
    --color-bg-footer: #f7f7f7;
    --color-border:    #e3e0db;
    --color-beige:     #fbf6e3;
    --font-heading:    'Raleway', Helvetica, Arial, sans-serif;
    --font-body:       'Bitter', Georgia, 'Times New Roman', serif;
    --max-width:       62.5em;
}

/* =====================================================
   01 - Reset
   ===================================================== */

html, body, div, span, article, aside, canvas, details, figcaption,
figure, footer, header, hgroup, menu, nav, section, summary,
h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, img, abbr,
address, code, del, em, ins, mark, small, strong, sub, sup,
dl, dt, dd, ol, ul, li, fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
    margin: 0;
    padding: 0;
    border: 0;
    font-weight: inherit;
    font-style: inherit;
    font-size: 100%;
    font-family: inherit;
    vertical-align: baseline;
    background: transparent;
}

html {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-y: scroll;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

article, aside, canvas, details, figcaption, figure,
footer, header, hgroup, menu, nav, section, summary, img {
    display: block;
}

ol, ul { list-style: none; }

blockquote, q { quotes: none; }

table {
    border-collapse: collapse;
    border-spacing: 0;
}

strong { font-weight: bold; }
em     { font-style: italic; }

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

/* =====================================================
   02 - Global
   ===================================================== */

body {
    font-size: 100%;
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--color-body);
    background-color: var(--color-bg-outer);
    margin: 0;
}

p {
    line-height: 1.5;
    font-size: 1.1em;
    margin: 0 0 20px 0;
}

a {
    color: var(--color-link);
    text-decoration: none;
    outline: none;
}

a:hover {
    color: var(--color-link-hover);
}

a img { border: none; }

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 15px 0;
    color: var(--color-heading);
    font-family: var(--font-heading);
    font-weight: 300;
}

h1 { font-size: 1.5em; }
h2 { font-size: 1.3em; }
h3 { font-size: 1.1em; }

blockquote, address {
    margin: 0 0 30px 0;
    padding: 0 30px;
    font-size: 1em;
    font-family: Georgia, Times, serif;
    border-left: 5px solid var(--color-body);
    color: var(--color-body);
}

.meta { color: #b0b0ad; }
.meta a { color: #7d7d7b !important; }
.meta a:hover { color: #b0b0ad !important; }

.hidden { display: none; }

/* Clearfix */
.clearfix::before,
.clearfix::after {
    content: "";
    display: table;
}
.clearfix::after { clear: both; }

.clearboth {
    clear: both;
    display: block;
    font-size: 0;
    height: 0;
    line-height: 0;
    width: 100%;
}

/* Image alignment */
img.alignleft  { float: left; margin: 4px 15px 15px 0; }
img.alignright { float: right; margin: 4px 0 15px 15px; }
img.aligncenter { display: block; margin: 0 auto 15px; }

/* =====================================================
   03 - Layout
   ===================================================== */

#container {
    width: 100%;
    margin: 0 auto;
    max-width: 1300px;
}

.wrap {
    background: var(--color-bg-main);
    padding-top: 1px;
}

#main {
    background: var(--color-bg-main);
    margin: 0 auto;
}

#main .wrap {
    padding: 50px 20px 40px;
}

.middle {
    max-width: var(--max-width);
    margin: 0 auto;
}

#content {
    float: left;
    width: 68%;
    margin: 0 0 40px 0;
    padding: 0;
    position: relative;
}

#content.full {
    width: 100%;
    float: none;
    margin: 0 0 40px 0;
}

#sidebar {
    float: right;
    width: 26.5%;
    margin: 0;
    padding: 0;
}

/* Column shortcodes */
.one_half   { width: 48%; }
.one_third  { width: 31%; }
.two_third  { width: 65.33%; }

.one_half,
.one_third,
.two_third {
    position: relative;
    margin-right: 3%;
    float: left;
}

.last { margin-right: 0 !important; }

/* =====================================================
   04 - Header & Nav
   ===================================================== */

#header {
    width: 100%;
    background-color: var(--color-bg-main);
    /* panoramic B&W strip — 1300×35px image stretched to full width */
    background-image: url('images/hdr-backgd.jpg');
    background-repeat: no-repeat;
    background-position: left top;
    background-size: 100% 36px;
}

/* Flexbox container — eliminates float-escape issues */
#header .inside {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 30px 0 0;
    display: flex;
    align-items: center;
    min-height: 150px;
}

/* Logo sits at the top-left, overlapping the panoramic strip */
#logo {
    flex: 0 0 auto;
    align-self: flex-start;
    line-height: 0;
    margin-right: 30px;
}

#logo img {
    height: 150px;
    width: 150px;
    display: block;
}

/* Nav pushed to far right; margin-top clears the panoramic strip
   and centres the links in the white zone below it */
#mainNav {
    margin-left: auto;
    margin-top: 45px;
}

#mainNav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

#mainNav li {
    display: inline-block;
    margin: 0 0 0 15px;
    padding: 0 13px 0 0;
    border-right: 1px solid #ccc;
}

#mainNav li:last-child {
    border-right: none;
    padding-right: 0;
}

#mainNav a {
    line-height: 25px;
    color: #333;
    font-size: 0.75em;
    font-family: var(--font-heading);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
}

#mainNav a:hover,
#mainNav li.current a {
    color: #000;
    border-bottom: 1px solid #000;
    text-decoration: none;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    margin-top: 45px;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #555;
    margin: 5px 0;
    transition: 0.3s;
}

/* =====================================================
   05 - Page Head (Hero Banner)
   ===================================================== */

#pageHead {
    background: url('images/hdr-backgd.jpg') center / cover no-repeat;
    color: #ffffff;
    height: 240px;
    padding: 30px;
    margin: 0;
    display: flex;
    align-items: flex-end;
}

#pageHead.about     { background: url('images/hdr-book-v2.jpg') center no-repeat; }
#pageHead.timeline  { background: url('images/hdr-timeline.jpg') center no-repeat; }
#pageHead.resources { background: url('images/hdr-resources.jpg') center no-repeat; }
#pageHead.extras    { background: url('images/hdr-extras.jpg') center no-repeat; }
#pageHead.contact   { background: url('images/hdr-extras.jpg') center no-repeat; }

#pageHead .inside {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
}

#pageHead h1 {
    font-size: 3.75rem;
    font-weight: 200;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 0;
    font-family: var(--font-heading);
}

/* =====================================================
   06 - Home Page
   ===================================================== */

.home #main {
    background-color: #fff;
}

.home .wrap {
    background: url('images/home-backgd.jpg') top repeat-x !important;
    padding-top: 20px !important;
}

/* Two-column intro: text left, book cover right */
.homeSection {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding: 20px 0 30px;
}

.homeSection-text {
    flex: 1;
    min-width: 0;
}

.homeSection-book {
    flex: 0 0 250px;
    text-align: center;
}

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

.homeIntro {
    font-size: 1.2em;
    line-height: 1.6;
    color: #555555;
    margin-top: 10px;
    margin-bottom: 20px;
}

.homeIntro em { color: #000; }

/* Three feature boxes */
.homeFeatureRow {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.homeFeature {
    flex: 1;
    background-color: var(--color-beige);
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.homeFeature h3 {
    letter-spacing: 1.5px;
    margin: 0 0 5px 0;
    font-weight: 300;
    text-transform: uppercase;
    font-size: 0.95em;
    color: var(--color-heading);
}

.homeFeature p {
    font-size: 1em;
    font-style: italic;
    margin-bottom: 0;
    flex: 1;
}

.homeFeature a.button {
    float: none;
    align-self: flex-end;
    margin: 10px 0 0 0;
    padding: 4px 8px !important;
    font-size: 0.7em;
}

/* =====================================================
   07 - Content
   ===================================================== */

#content .post {
    margin: 0 0 30px 0;
    position: relative;
    padding-bottom: 10px;
    min-height: 250px;
    width: 100%;
}

#content .post h2.title {
    font-size: 1.4em;
    font-weight: bold;
}

.page #content .post {
    margin: 0;
    border: none;
    min-height: 0;
}

#content h1 a,
#content h2 a,
#content h3 a { color: #555555; }

#content h1 a:hover,
#content h2 a:hover,
#content h3 a:hover { color: #a7a7a3; }

#content .postThumb {
    margin: 0 0 20px 0 !important;
    max-width: 100%;
}

/* Lists in content */
#content ul {
    margin: 0 0 25px 20px;
    list-style-type: disc;
}

#content ul li {
    margin: 0 0 10px 0;
    line-height: 1.4em;
    font-size: 0.95em;
}

#content ol {
    margin: 0 0 20px 20px;
    list-style-type: decimal;
}

#content ol li {
    margin: 0 0 10px 0;
    line-height: 1.4em;
}

/* Read More link */
.moreLink {
    display: block;
    font-family: var(--font-heading);
    font-weight: 800;
}

.moreLink a::after { content: " \00bb"; }

/* =====================================================
   08 - Timeline
   ===================================================== */

#timeline .year {
    display: inline-block;
    float: left;
    width: 55px;
    text-align: center;
    margin: 0 10px 5px 0;
    background-color: #999;
    padding: 5px;
}

#timeline .year strong {
    font-family: var(--font-heading);
    font-weight: 800;
    color: #fff;
    font-size: 0.85em;
}

#timeline .info {
    display: inline-block;
    max-width: 75%;
    padding-top: 5px;
    font-size: 1em;
}

#timeline .info em {
    display: block;
    font-size: 0.9em;
    color: #888;
    margin-top: 2px;
}

#timeline .clear {
    height: 12px;
    clear: both;
    display: block;
}

/* =====================================================
   Resources
   ===================================================== */

#resources strong {
    font-family: var(--font-heading);
    font-weight: 800;
}

#resources em {
    display: block;
    font-size: 1.05em;
    font-style: italic;
    font-weight: bold;
    color: var(--color-heading);
    margin: 25px 0 10px 0;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 5px;
}

#resources p {
    margin-bottom: 18px;
    font-size: 1em;
}

/* =====================================================
   Extras / Posts
   ===================================================== */

.extrasListing .post {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 20px;
    margin-bottom: 30px;
    overflow: hidden;
}

.extrasListing .post:last-child {
    border-bottom: none;
}

.extrasListing .postThumb {
    float: left;
    margin: 0 20px 10px 0;
    max-width: 200px;
}

.extrasListing h2.title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 8px;
}

.extrasListing h2.title a {
    color: var(--color-heading);
}

.extrasListing h2.title a:hover {
    color: var(--color-link);
}

/* Single post / extras detail pages */
.post-content p { margin-bottom: 18px; }

.post-content .profile {
    overflow: hidden;
    margin-bottom: 30px;
}

.post-content .profile img {
    float: left;
    margin: 0 20px 15px 0;
    width: 100px;
    height: auto;
}

/* Glossary */
.glossary-term {
    margin-bottom: 14px;
    line-height: 1.5;
    font-size: 1em;
}

/* =====================================================
   09 - Sidebar & Widgets
   ===================================================== */

.sidebarBox {
    position: relative;
    margin: 0 0 30px 0;
}

.sidebarBox img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
}

#sidebar p { margin-bottom: 12px; }

#sidebar li { font-size: 0.85em; }

#sidebar ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#sidebar ul li {
    margin: 0 0 10px 0;
    line-height: 1.4em;
}

.widgetBox { margin-bottom: 30px; }

.widgetBox h3 {
    font-size: 0.9em;
    font-weight: bold;
    margin-bottom: 12px;
    color: var(--color-heading);
}

/* =====================================================
   10 - Buttons
   ===================================================== */

.button,
a.button,
input[type="submit"] {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    font-weight: 300;
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 3px;
    float: right;
    line-height: normal;
    font-size: 13px;
    background: var(--color-gray-btn);
    padding: 13px 25px;
    margin: 0 0 10px 0;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    -webkit-appearance: none;
    transition: background 0.2s ease;
}

.button:hover,
a.button:hover,
input[type="submit"]:hover {
    background: #5a5a5a;
    color: #fff;
}

/* Red variant */
a.button-red,
.button-red {
    background: var(--color-red);
}

a.button-red:hover,
.button-red:hover {
    background: #aa0000;
    color: #fff;
}

/* Left-aligned button container */
.leftBTN .button,
.leftBTN a.button {
    float: left;
}

/* Full-width button */
.button-block {
    float: none;
    display: block;
    text-align: center;
    width: 100%;
}

/* =====================================================
   11 - Forms
   ===================================================== */

input[type="text"],
input[type="email"],
textarea {
    background: #f7f7f7;
    padding: 8px 10px;
    font-family: Helvetica, Arial, sans-serif;
    border-radius: 5px;
    color: var(--color-body);
    border: 1px solid rgba(0,0,0,.05);
    border-bottom: 2px solid rgba(0,0,0,.1);
    font-size: 0.9em;
    -webkit-appearance: none;
    width: 100%;
    margin-bottom: 12px;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    background: #fff;
    border-color: rgba(0,0,0,.2);
}

textarea {
    line-height: 1.6em;
    resize: vertical;
    min-height: 140px;
}

label {
    display: block;
    font-size: 0.9em;
    margin-bottom: 4px;
    color: var(--color-heading);
    font-family: var(--font-heading);
}

.form-group { margin-bottom: 16px; }

.contact-form input[type="submit"] {
    float: none;
    margin-top: 8px;
}

/* =====================================================
   12 - Footer
   ===================================================== */

#footer {
    background: var(--color-bg-footer);
    width: 100%;
}

#footer .inside {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0;
}

#footer .secondary {
    margin: 0 30px 0 0;
    padding: 30px 0 20px;
    border-top: none;
    overflow: hidden;
}

#footer .secondary p {
    font-size: 0.9em;
    margin: 0;
}

#footer .secondary .left  { float: left; }
#footer .secondary .right { float: right; }

#footer a { color: #6a6a6a; }
#footer a:hover { color: #47474b; }

.footer-dark {
    background: #333;
    height: 40px;
}

/* =====================================================
   13 - Media Queries
   ===================================================== */

/* Tablet landscape */
@media only screen and (max-width: 975px) {
    #mainNav li { margin-left: 10px; }
}

/* Tablet / small desktop */
@media only screen and (max-width: 870px) {
    .homeSection { flex-direction: column; }
    .homeSection-book { flex: none; align-self: center; }
    .homeFeatureRow { flex-direction: column; }

    /* Show hamburger, hide desktop nav */
    .menu-toggle { display: flex; flex-direction: column; }

    #mainNav {
        display: none;
        width: 100%;
        margin-top: 0;
        background: #333;
        padding: 20px;
    }

    #mainNav.open { display: block; }

    /* When mobile nav is open, stack below header */
    #header .inside { flex-wrap: wrap; }

    #mainNav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    #mainNav li {
        display: block;
        margin: 0;
        padding: 8px 0;
        border-right: none;
        border-bottom: 1px solid #555;
        width: 100%;
    }

    #mainNav li:last-child { border-bottom: none; }

    #mainNav a { color: rgba(255,255,255,.7); font-size: 0.85em; }
    #mainNav a:hover,
    #mainNav li.current a { color: #fff; }

    .one_half  { width: 100%; margin-right: 0; float: none; }
    .one_third { width: 100%; margin-right: 0; float: none; }
    .two_third { width: 100%; margin-right: 0; float: none; }
}

/* Tablet portrait */
@media only screen and (max-width: 768px) {
    #content {
        width: 100%;
        float: none;
    }

    #sidebar {
        float: none;
        width: 100%;
        padding: 10px 0 30px 0;
    }

    .sidebarBox {
        float: left;
        width: 45%;
        margin: 0 3% 30px 0;
    }

    #pageHead { height: 160px; margin-bottom: 30px; }
    #pageHead h1 { font-size: 2.5rem; }
}

/* Mobile */
@media only screen and (max-width: 480px) {
    h1 { font-size: 1.2em; }
    h2 { font-size: 1.1em; }
    h3 { font-size: 1em; }

    p { font-size: 0.95em; line-height: 1.6em; }

    #pageHead { height: 100px; margin-bottom: 20px; }
    #pageHead h1 { font-size: 1.8rem; }

    #timeline .year { float: none; display: block; margin-top: 10px; }

    #sidebar { width: 100%; }

    .sidebarBox { float: none; width: 100%; }

    #footer .secondary .left,
    #footer .secondary .right { float: none; }

    .button, a.button { float: none; display: inline-block; }
    .leftBTN .button, .leftBTN a.button { float: none; }
}
