/* ================================
 *  Base / Reset
 = *=============================== */

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

:root {

    --color-text: #333;
    --color-heading: #2c2c2c;
    --color-muted: #777;

    --color-background: #f7f7f7;
    --color-surface: #ffffff;
    --color-accent: #c9a227;
    --color-footer: #e0e0e0;

    --font-body: "Inter", "Helvetica", sans-serif;
    --font-heading: "Georgia", "Merriweather", serif;

}

html, body {
    height: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--color-background);
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    font-size: 16px;
    line-height: 1.6;
}

/* ================================
 *  Responsive Typography
 = *=============================== */

@media (max-width: 700px) {

    body {
        font-size: 17px;
    }

}

/* ================================
 *  Typography
 = *=============================== */

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--color-heading);
}

h1 {
    font-size: 2.5rem;
    margin: 2rem 0 1rem;
    border-bottom: 3px solid var(--color-accent);
    padding-bottom: .3rem;
}

h2 {
    font-size: 1.8rem;
    margin: 1.8rem 0 .8rem;
    position: relative;
    padding-left: .6rem;
}

h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: .25em;
    height: 70%;
    width: 4px;
    background: var(--color-accent);
    border-radius: 2px;
}

h3 {
    font-size: 1.3rem;
    margin: 1.4rem 0 .6rem;
}

/* Mobile headings */

@media (max-width: 700px) {

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

}

/* Paragraphs */

p {
    line-height: 1.7;
    margin-bottom: 1.2rem;
    color: #4a4a4a;
}

/* Improve reading on phones */

@media (max-width: 700px) {

    p {
        margin-bottom: 1.4rem;
    }

}

/* Links */

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

a:hover {
    text-decoration: underline;
}

/* ================================
 *  Lists
 = *=============================== */

ul {
    list-style: none;
    margin: 1.2rem 0;
    padding-left: 1.2rem;
}

ul li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: .5rem;
}

ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
    font-size: 1.2rem;
}

ol {
    margin: 1.2rem 0;
    padding-left: 1.5rem;
}

ol li {
    margin-bottom: .5rem;
}

ol li::marker {
    color: var(--color-accent);
    font-weight: bold;
}

/* ================================
 *  Header
 = *=============================== */

header {
    padding: 1rem;
    background: var(--color-surface);
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.logo {
    max-width: 100%;
    height: auto;
    max-height: 180px;
}

/* ================================
 *  Navigation
 = *=============================== */

nav {
    margin-top: .5rem;
}

nav a {
    margin: 0 1rem;
    font-weight: 600;
}

/* Mobile navigation */

@media (max-width: 700px) {

    nav {
        display: flex;
        flex-direction: column;
        gap: .5rem;
        margin-top: 1rem;
    }

    nav a {
        margin: 0;
    }

}

/* ================================
 *  Layout
 = *=============================== */

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.4rem;
}

.center-content {
    max-width: 650px;
    width: 100%;
    padding: 0 1.4rem;
}

/* Responsive images */

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

@media (max-width: 700px) {

    .container,
    .center-content,
    .featured-article {
        padding-left: 1.4rem;
        padding-right: 1.4rem;
    }

}

/* ================================
 *  Blog
 = *=============================== */

.blog-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: .5rem;
    letter-spacing: -0.5px;
}

.blog-title::after {
    content: "";
    display: block;
    width: 70px;
    height: 4px;
    margin-top: 10px;
    background: var(--color-accent);
    border-radius: 2px;
}

/* Mobile blog title */

@media (max-width: 700px) {

    .blog-title {
        font-size: 2rem;
    }

}

/* ================================
 *  Blog List
 = *=============================== */

.blog-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Desktop layout */

@media (min-width: 900px) {

    .blog-list {
        grid-template-columns: 1fr 1fr;
    }

}

/* ================================
 *  Featured Article
 = *=============================== */

.featured-article {

    max-width: 900px;
    margin: 3rem auto;
    padding: 2rem;

    background: var(--color-surface);
    border-radius: 10px;
    border-top: 4px solid var(--color-accent);

    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.featured-title {

    font-size: 2.2rem;
    margin: .5rem 0 1rem;
}

.featured-title a {

    color: var(--color-heading);
    text-decoration: none;
}

.featured-title a:hover {

    color: var(--color-accent);
}

.featured-button {

    display: inline-block;
    margin-top: 1rem;

    padding: .6rem 1.2rem;

    background: var(--color-accent);
    color: white;

    border-radius: 6px;

    font-weight: 600;
    text-decoration: none;

    transition: background .2s ease;
}

.featured-button:hover {

    background: #b5901d;
}

/* ================================
 *  Blog Card
 = *=============================== */

.blog-card {
    background: var(--color-surface);
    padding: 1.6rem;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    transition: transform .2s ease, box-shadow .2s ease;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.blog-card-title {
    font-size: 1.5rem;
    margin-bottom: .4rem;
}

.blog-card-title a {
    color: var(--color-heading);
}

.blog-card-title a:hover {
    color: var(--color-accent);
}

.blog-meta {
    font-size: .8rem;
    color: var(--color-muted);
    margin-bottom: .8rem;
}

.blog-excerpt {
    margin-bottom: 1rem;
}

.read-more {
    font-weight: 600;
}

/* ================================
 *  Blockquotes
 = *=============================== */

blockquote {
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.6;
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    border-left: 5px solid var(--color-accent);
    background: #faf9f5;
    border-radius: 4px;
    position: relative;
}

blockquote::before {
    content: "“";
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 3rem;
    color: var(--color-accent);
    opacity: .3;
}

blockquote cite {
    display: block;
    margin-top: .5rem;
    font-size: .9rem;
    font-style: normal;
    color: var(--color-muted);
}

/* ================================
 *  Footer
 = *=============================== */

footer {
    font-size: .75rem;
    padding: 1rem;
    text-align: center;
    background: var(--color-footer);
    margin-top: 2rem;
}
