/* JCrete® site styles — single external stylesheet, no duplication. */

:root {
    --color-bg: #f1f1f1;
    --color-surface: #fff;
    --color-text: #333;
    --color-muted: #707070;
    --color-link: #333;
    --color-accent: #0073aa;
    --color-border: #eaeaea;
    /* Font stacks matching the live site (WordPress Twenty Twenty-One theme). */
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --font-heading: var(--font-body);
    --font-mono: Menlo, Consolas, monaco, monospace;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.3;
}

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

/* Header / sidebar */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 2em 7.6923%;
}

.site-title {
    margin: 0;
    font-size: 27px;
}

.site-title a {
    text-decoration: none;
}

.site-description {
    margin: 0.3em 0 0;
    color: var(--color-muted);
    font-family: var(--font-heading);
    font-size: 14px;
}

.site-nav ul {
    list-style: none;
    margin: 1.2em 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.2em 1.4em;
}

.site-nav a {
    font-family: var(--font-heading);
    font-size: 14px;
    text-decoration: none;
}

.site-nav a:hover {
    text-decoration: underline;
}

/* Main content */
.site-content {
    max-width: 60em;
    margin: 2em auto;
    padding: 2.5em 7.6923%;
    background: var(--color-surface);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.15);
}

.entry-title {
    margin-top: 0;
    font-size: 32px;
}

.entry-date {
    color: var(--color-muted);
    font-family: var(--font-heading);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.entry-content blockquote {
    border-left: 4px solid var(--color-border);
    margin-left: 0;
    padding-left: 1em;
    color: var(--color-muted);
    font-style: italic;
}

.entry-content table {
    border-collapse: collapse;
    width: 100%;
}

.entry-content th,
.entry-content td {
    border: 1px solid var(--color-border);
    padding: 0.4em 0.6em;
}

.entry-content pre {
    background: var(--color-bg);
    padding: 1em;
    overflow-x: auto;
}

code, kbd, pre, samp {
    font-family: var(--font-mono);
}

/* Video embeds */
.video-embed {
    margin: 1.5em 0;
}

.video-embed iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

.video-embed figcaption {
    color: var(--color-muted);
    font-family: var(--font-heading);
    font-size: 13px;
    text-align: center;
}

/* Article list */
.article-list {
    list-style: none;
    padding: 0;
}

.article-list li {
    padding: 0.6em 0;
    border-bottom: 1px solid var(--color-border);
}

.article-list .entry-date {
    display: block;
}

/* Footer */
.site-footer {
    padding: 2em 7.6923%;
    color: var(--color-muted);
    font-family: var(--font-heading);
    font-size: 13px;
    text-align: center;
}

@media (max-width: 40em) {
    body {
        font-size: 15px;
    }

    .site-content {
        margin: 1em;
        padding: 1.5em;
    }
}
