@font-face {
    font-family: 'Derailed';
    src: url('../assets/Derailed.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    padding: 0;
    background-color: #e9e7e0;
    font-family: 'Chaparral Pro', Georgia, serif;
    font-size: 18px;
    line-height: 1.7;
}

/* Header */
header {
    background-color: #fff;
    padding: 20px 5vw;
    text-align: center;
}

header h1 {
    font-family: 'Derailed', serif !important;
    font-size: 10vw;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
    line-height: 1;
}

header p {
    font-size: 2.8vw;
    font-weight: normal;
    margin: 0;
    line-height: 1.1;
    letter-spacing: 1px;
    color: #555;
}

/* Blog Subtitle Banner */
.blog-subtitle {
    background-color: #000;
    color: #fff;
    font-weight: lighter;
    text-indent: 100px;
    text-transform: lowercase;
    font-size: 18px;
    width: 100%;
    min-height: 10px;
    max-height: 100px;
    display: flex;
    align-items: center;
    padding: 5px 0;
}

/* Main Content Layout */
.container {
    display: grid;
    grid-template-columns: 180px 1fr 180px;
    column-gap: 30px;
    max-width: 960px;
    margin: 40px auto;
    padding: 20px 50px 50px;
    background: white;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

/* Horizontal Rule */
.title-rule {
    grid-column: 1 / -2;
    border: none;
    border-bottom: 4px solid black;
    margin: 0;
    padding: 0;
}

/* Date */
.post-date {
    grid-column: 1;
    text-align: right;
    font-weight: bold;
    align-self: start;
    margin: 0;
}

/* Main Content */
.main-content {
    grid-column: 2;
    max-width: 620px;
    margin-top: 0;
    align-self: start;
}

/* Headings */
h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 32px;
    font-weight: bold;
    margin-top: 40px;
}

/* Subtitle */
.subtitle {
    margin-top: -25px;
    text-transform: uppercase;
}

/* Paragraphs */
p {
    margin-bottom: 25px;
    letter-spacing: 0.02em;
}

/* Blockquotes */
blockquote {
    border-left: 4px solid #d3d3d3;
    padding-left: 30px;
    font-style: italic;
    margin: 40px 0;
}

/* Footnotes */
.fn-ref {
    position: relative;
}

.fn-ref sup {
    cursor: pointer;
    padding: 4px;
}

.fn-ref .footnote {
    position: absolute;
    left: 100%;
    top: 0;
    width: 180px;
    font-size: 16px;
    font-style: italic;
    color: green;
    white-space: normal;
    padding-left: 30px;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .container {
        display: block;
        padding: 20px;
        box-sizing: border-box;
    }

    header h1 {
        font-size: 12vw;
    }

    header p {
        font-size: 4vw;
    }

    .blog-subtitle {
        font-size: 16px;
        text-indent: 40px;
        padding: 8px 10px;
    }

    h2 {
        font-size: 24px;
    }

    .post-date,
    .main-content,
    .title-rule {
        width: 100%;
        margin: 0 auto;
        text-align: left;
    }

    .post-date {
        font-size: 14px;
        margin-top: 20px;
    }

    .fn-ref .footnote {
        position: static;
        display: block;
        width: auto;
        padding-left: 0;
        margin-top: 8px;
        font-size: 14px;
        color: green;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 16px;
    }

    header h1 {
        font-size: 14vw;
    }

    header p {
        font-size: 5vw;
    }

    .blog-subtitle {
        font-size: 14px;
        text-indent: 20px;
    }
}