/* ==================================================
   FONTS
   ================================================== */

@font-face {
    font-family: "Caslon Antique";
    src: url("fonts/caslon-antique.regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Caslon Antique";
    src: url("fonts/caslon-antique.bold.ttf") format("truetype");
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: "Tw Cen MT";
    src: url("fonts/Tw_Cen_MT_Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

/* ==================================================
   BASIC
   ================================================== */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    background: #ffffff;
    color: #222222;
    font-family: "Tw Cen MT", "Futura", "Century Gothic", sans-serif;
    line-height: 1.7;
}

/* ==================================================
   HEADER
   ================================================== */

.header {
    width: 100%;
    background: #000000;
    color: #ffffff;
    text-align: center;
    padding: 72px 25px 58px;
    border-bottom: 1px solid #333333;
}

.header h1 {
    margin: 0;
    color: #ffffff;
    font-family: "Caslon Antique", Georgia, serif;
    font-size: 52px;
    font-weight: normal;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    line-height: 1.1;
}

.header p {
    margin: 22px 0 0;
    color: #999999;
    font-family: "Caslon Antique", Georgia, serif;
    font-size: 15px;
    font-style: italic;
    letter-spacing: 0.03em;
}

/* ==================================================
   FIXED MARGINAL ILLUSTRATION
   ================================================== */

.illustration {
    position: fixed;
    left: 0;
    top: 0;
    width: 10vw;
    height: 100vh;
    background: #ffffff;
    border-right: 1px solid #cccccc;
    overflow: hidden;
    z-index: 10;
}

.illustration img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* ==================================================
   MAIN LAYOUT
   ================================================== */

.layout {
    width: calc(100% - 10vw);
    margin-left: 10vw;
    display: grid;
    grid-template-columns: 12% 27% 61%;
    align-items: stretch;
    background: #ffffff;
    min-height: 900px;
}

/* ==================================================
   NAVIGATION
   ================================================== */

.sidebar {
    background: #fafafa;
    border-right: 1px solid #dddddd;
    padding: 38px 18px;
    min-width: 0;
}

.sidebar-title {
    margin: 0 10px 20px;
    color: #777777;
    font-family: "Caslon Antique", Georgia, serif;
    font-size: 11px;
    font-weight: normal;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.sidebar a {
    display: block;
    padding: 12px 10px;
    color: #444444;
    text-decoration: none;
    font-family: "Caslon Antique", Georgia, serif;
    font-size: 14px;
    text-transform: uppercase;
    border-bottom: 1px solid #e2e2e2;
    transition:
        background 0.15s ease,
        color 0.15s ease,
        padding-left 0.15s ease;
}

.sidebar a:hover {
    background: #eeeeee;
    color: #000000;
    padding-left: 14px;
}

.sidebar a.current {
    color: #000000;
    font-weight: bold;
}

/* ==================================================
   MAP
   ================================================== */

.map {
    background: #ffffff;
    border-right: 1px solid #dddddd;
    padding: 28px 24px;
    min-width: 0;
}

.map-heading {
    margin: 0 0 16px;
    color: #777777;
    font-family: "Tw Cen MT", "Futura", sans-serif;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.map-view {
    width: 100%;
    overflow: hidden;
    border: 1px solid #cccccc;
    background: #f5f5f5;
    padding: 6px;
}

.map-view img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.map-link {
    display: block;
    margin-top: 13px;
    color: #666666;
    font-family: "Tw Cen MT", "Futura", sans-serif;
    font-size: 12px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
}

.map-link:hover {
    color: #000000;
    text-decoration: underline;
}

/* ==================================================
   POSTS
   ================================================== */

.posts {
    background: #ffffff;
    padding: 30px 65px 50px;
    min-width: 0;
}

.posts-header {
    margin-bottom: 50px;
    padding-bottom: 15px;
    border-bottom: 1px solid #bbbbbb;
}

.posts-header h2 {
    margin: 0;
    color: #111111;
    font-family: "Caslon Antique", Georgia, serif;
    font-size: 28px;
    font-weight: normal;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.posts-header p {
    margin: 7px 0 0;
    color: #888888;
    font-family: "Tw Cen MT", "Futura", sans-serif;
    font-size: 13px;
    font-style: italic;
}

/* ==================================================
   ARTICLE
   ================================================== */

.posts article {
    max-width: 820px;
}

.date {
    margin-bottom: 10px;
    color: #888888;
    font-family: "Tw Cen MT", "Futura", sans-serif;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.posts h3 {
    margin: 0 0 20px;
    color: #111111;
    font-family: "Caslon Antique", Georgia, serif;
    font-size: 34px;
    font-weight: normal;
    line-height: 1.25;
    text-transform: uppercase;
}

.posts p {
    margin: 0 0 18px;
    color: #333333;
    font-family: "Tw Cen MT", "Futura", sans-serif;
    font-size: 17px;
    line-height: 1.5;
}

.posts p:last-child {
    margin-top: 24px;
    color: #111111;
}

/* ==================================================
   BLOCKQUOTES (Flavor Text - Enforced Caslon)
   ================================================== */

blockquote {
    font-family: "Caslon Antique", Georgia, serif !important;
    font-style: italic;
    color: #555;
    border-left: 3px solid #ccc;
    padding-left: 15px;
    margin-left: 0;
    font-size: 17px;
    line-height: 1.6;
}

blockquote p {
    font-family: "Caslon Antique", Georgia, serif !important;
    font-style: italic;
    color: #555;
    font-size: 17px;
    line-height: 1.6;
}

blockquote strong {
    font-weight: bold;
    font-style: normal;
}

/* ==================================================
   LINKS
   ================================================== */

.posts a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.posts a:hover {
    color: #000;
    text-decoration: underline;
}

/* ==================================================
   ORNAMENT
   ================================================== */

.ornament {
    margin: 25px 0;
    color: #999999;
    font-size: 14px;
    letter-spacing: 0.4em;
    text-align: center;
}

/* ==================================================
   TOP BUTTON
   ================================================== */

.top-button {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #000;
    color: #fff;
    padding: 10px;
    border: none;
    cursor: pointer;
    font-family: "Tw Cen MT", "Futura", sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 100;
}

.top-button:hover {
    background: #333;
}

/* ==================================================
   FOOTER
   ================================================== */

footer {
    margin-left: 10vw;
    padding: 28px 20px;
    background: #000000;
    border-top: 1px solid #333333;
    text-align: center;
    color: #666666;
    font-family: "Tw Cen MT", "Futura", sans-serif;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ==================================================
   POST PREVIEW TIGHTENING
   ================================================== */

#posts-preview .date {
    margin-bottom: 5px;
}

#posts-preview h3 {
    font-size: 26px;
    margin-bottom: 12px;
}

#posts-preview p {
    margin-bottom: 14px;
}

#posts-preview .ornament {
    margin: 15px 0;
}

/* ==================================================
   MOBILE
   ================================================== */

@media (max-width: 800px) {
    .illustration {
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        height: 220px;
        border-right: none;
        border-bottom: 1px solid #cccccc;
    }

    .illustration img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        object-position: center;
    }

    .layout {
        width: 100%;
        margin-left: 0;
        grid-template-columns: 1fr;
    }

    .sidebar {
        border-right: none;
        border-bottom: 1px solid #dddddd;
        padding: 25px 18px;
    }

    .map {
        border-right: none;
        border-bottom: 1px solid #dddddd;
        padding: 25px;
    }

    .posts {
        padding: 30px 25px 40px;
    }

    .posts h3 {
        font-size: 28px;
    }

    .posts p {
        font-size: 16px;
        line-height: 1.5;
    }

    .header {
        padding: 48px 20px 40px;
    }

    .header h1 {
        font-size: 32px;
        letter-spacing: 0.09em;
    }

    footer {
        margin-left: 0;
    }

    .top-button {
        bottom: 10px;
        right: 10px;
        padding: 8px;
        font-size: 11px;
    }
}