/*
Theme Name: The World According to Derrick
Theme URI: https://sitecraft-studio.com/the-world-according-to-derrick
Author: Derrick D Patton (SiteCraft Studio, LLC)
Author URI: https://sitecraft-studio.com
Description: A classical retro newspaper-style WordPress theme with a vintage broadsheet aesthetic.
Version: 1.3
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: world-according-to-derrick
*/

:root {
    --paper-bg: #f5f0e6;
    --ink: #111111;
    --ink-muted: #444444;
    --accent: #8b5a2b;
    --rule: #222222;
    --link: #222222;
    --link-hover: #8b0000;
    --masthead-font: "Playfair Display", "Times New Roman", serif;
    --body-font: "Libre Baskerville", Georgia, "Times New Roman", serif;
}

/* Global reset & base */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--paper-bg);
    color: var(--ink);
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Subtle paper texture using gradients (no external images) */

body {
    background-image:
        radial-gradient(circle at 0 0, rgba(0, 0, 0, 0.04), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(0, 0, 0, 0.04), transparent 55%);
}

/* Layout wrappers */

.site {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
    border-left: 1px solid rgba(0, 0, 0, 0.15);
    border-right: 1px solid rgba(0, 0, 0, 0.15);
    background-color: rgba(245, 240, 230, 0.98);
}

.site-inner {
    margin-top: 1.5rem;
}

/* Masthead / header */

.site-header {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 3px double var(--rule);
    margin-bottom: 1.5rem;
}

.site-branding {
    margin-bottom: 0.75rem;
}

.site-title2 {
    font-family: var(--blackletter-font);
    font-size: 3rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.1;
}

.site-title {
    font-family: var(--masthead-font);
    font-size: 3rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.1;
}

.site-title a {
    text-decoration: none;
    color: var(--ink);
}

.site-description {
    font-size: 0.95rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-top: 0.4rem;
    color: var(--ink-muted);
}

/* Volume / issue line */

.blackletter-meta {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-top: 0.75rem;
    color: var(--ink-muted);
}

.blackletter-meta span {
    margin: 0 0.5rem;
}

.masthead-meta {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-top: 0.75rem;
    color: var(--ink-muted);
}

.masthead-meta span {
    margin: 0 0.5rem;
}

/* Decorative rules */

.rule-thick {
    border-top: 3px double var(--rule);
    margin: 1.5rem 0;
}

.rule-thin {
    border-top: 1px solid var(--rule);
    margin: 1rem 0;
}

/* Navigation */

.site-navigation {
    margin-top: 1rem;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 0.4rem 0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.main-navigation a {
    text-decoration: none;
    color: var(--link);
}

.main-navigation a:hover,
.main-navigation a:focus {
    color: var(--link-hover);
}

/* Content area */

.content-area {
    width: 100%;
}

.site-main {
    margin-top: 1.5rem;
}

/* Newspaper-style home grid */

.home .post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 960px) {
    .home .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .home .post-grid {
        grid-template-columns: 1fr;
    }
}

.post-card {
    border-top: 3px double var(--rule);
    padding-top: 0.75rem;
}

.post-card-title {
    font-family: var(--masthead-font);
    font-size: 1.3rem;
    margin: 0 0 0.4rem;
}

.post-card-title a {
    text-decoration: none;
    color: var(--ink);
}

.post-card-title a:hover {
    color: var(--link-hover);
}

.post-card-meta {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--ink-muted);
    margin-bottom: 0.5rem;
}

.post-card-excerpt {
    font-size: 0.9rem;
}

/* Single post & pages */

article {
    margin-bottom: 2.5rem;
}

.entry-header {
    border-bottom: 1px solid var(--rule);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
}

.entry-title {
    font-family: var(--masthead-font);
    font-size: 2rem;
    margin: 0 0 0.4rem;
}

.entry-meta {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--ink-muted);
}

.entry-meta span {
    margin-right: 0.75rem;
}

/* Newspaper byline style */

.byline {
    font-style: italic;
}

/* Drop cap on first paragraph of content */

.entry-content p:first-of-type::first-letter {
    float: left;
    font-size: 3.2rem;
    line-height: 0.8;
    padding-right: 0.2rem;
    padding-top: 0.1rem;
    font-family: var(--masthead-font);
    color: var(--ink);
}

/* General typography */

p {
    margin: 0 0 1rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--masthead-font);
    margin: 1.5rem 0 0.5rem;
    line-height: 1.2;
}

a {
    color: var(--link);
}

a:hover,
a:focus {
    color: var(--link-hover);
}

/* Blockquotes */

blockquote {
    border-left: 3px solid var(--rule);
    padding-left: 1rem;
    margin-left: 0;
    font-style: italic;
    color: var(--ink-muted);
}

/* Lists */

ul,
ol {
    margin: 0 0 1rem 1.5rem;
}

/* Images */

img {
    max-width: 100%;
    height: auto;
}

/* Footer */

.site-footer {
    border-top: 3px double var(--rule);
    padding-top: 1.5rem;
    margin-top: 2rem;
    font-size: 0.85rem;
    text-align: center;
}

.footer-social {
    margin-bottom: 0.75rem;
}

.footer-social a {
    text-decoration: none;
    color: var(--link);
    margin: 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.75rem;
}

.footer-social a:hover {
    color: var(--link-hover);
}

.site-info {
    color: var(--ink-muted);
}

/* Widgets (optional sidebar or footer widgets) */

.widget-area {
    margin-top: 2rem;
    border-top: 1px solid var(--rule);
    padding-top: 1rem;
}

.widget {
    margin-bottom: 1.5rem;
}

.widget-title {
    font-family: var(--masthead-font);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 0.25rem;
    margin-bottom: 0.75rem;
}

/* Pagination */

.pagination,
.nav-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.pagination a,
.nav-links a {
    text-decoration: none;
    color: var(--link);
}

.pagination a:hover,
.nav-links a:hover {
    color: var(--link-hover);
}

/* Contact form (simple, theme-native) */

.contact-form {
    max-width: 600px;
    margin: 0 auto 2rem;
    border-top: 3px double var(--rule);
    padding-top: 1rem;
}

.contact-form label {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 0.25rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--rule);
    background-color: rgba(245, 240, 230, 0.9);
    font-family: var(--body-font);
    font-size: 0.95rem;
    color: var(--ink);
    margin-bottom: 0.75rem;
}

.contact-form textarea {
    min-height: 150px;
}

.contact-form button,
.contact-form input[type="submit"] {
    background-color: transparent;
    border: 1px solid var(--rule);
    padding: 0.4rem 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.8rem;
    cursor: pointer;
    color: var(--ink);
}

.contact-form button:hover,
.contact-form input[type="submit"]:hover {
    background-color: var(--ink);
    color: var(--paper-bg);
}

/* About page subtle styling */

.page-about .entry-content {
    max-width: 720px;
    margin: 0 auto;
}

/* Contact page subtle styling */

.page-contact .entry-content {
    max-width: 720px;
    margin: 0 auto;
}

/* Screen-reader text */

.screen-reader-text {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
