* Theme Name: Fireside Notes Theme URI: Author: Description: A calm personal blog theme inspired by quiet evenings by the fire. Old-school magazine edition. Version: 1.0 Requires at least: 6.0 Tested up to: 6.7 Requires PHP: 7.4 Text Domain: fireside-notes */

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

html, body { margin: 0; padding: 0; }

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

a { text-decoration: none; color: inherit; }

body {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    line-height: 1.75;
    color: #111;
    padding: 40px;
    background: linear-gradient(
        135deg,
        #5c6e5b 0%,
        #526451 50%,
        #4f5e4e 100%
    );
}

h1, h2, h3, h4 { font-weight: normal; line-height: 1.3; margin: 0 0 18px; }

h1 { font-size: 40px; }
h2 { font-size: 28px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }

p { margin: 0 0 20px; }

a { border-bottom: 1px solid rgba(0,0,0,0.4); transition: opacity 0.2s ease; }

a:hover { opacity: 0.7; }

.site-header { max-width: 1600px; margin: 0 auto 40px auto; text-align: center; }

.site-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 2px solid rgba(255,255,255,0.35);
    box-shadow: 8px 8px 0 rgba(0,0,0,0.25);
    padding: 40px 60px;
}

.site-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 52px;
    font-weight: 600;
    letter-spacing: 1px;
    margin: 0;
    color: #111;
}

.site-description {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 500;
    margin-top: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.75;
}

.issue-header {
    max-width: 1600px;
    margin: 0 auto 60px auto;
    text-align: center;
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 2px solid rgba(255,255,255,0.35);
    box-shadow: 8px 8px 0 rgba(0,0,0,0.25);
    padding: 30px 50px;
}

.issue-number {
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.75;
}

.issue-date {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 20px;
    font-weight: 500;
    margin-top: 10px;
}

.hero-inner {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 420px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0.85),
                                rgba(255,255,255,0.92)
    );
    backdrop-filter: blur(3px);
}

.hero-content { position: relative; padding: 60px 70px; }

.magazine-hero { margin-bottom: 60px; }

.hero-wrapper { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.hero-inner {
    position: relative;
    min-height: 520px;
    border-radius: 18px;
    overflow: hidden;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.18);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.25),
                                rgba(0,0,0,0.35)
    );
}

.hero-glass {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: 10px 60px;
    background: rgba(255,255,255,0.35);
    backdrop-filter: blur(6px);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.6);
}

.hero-glass .featured-title { font-size: 42px; line-height: 1.2; }

@media (max-width: 768px) {
    .hero-inner { min-height: 420px; }
    .hero-glass { padding: 30px; margin: 20px; }
    .hero-glass .featured-title { font-size: 28px; }
}

.magazine-layout {
    position: relative;
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 260px 1fr;
    border: 6px solid #000;
    box-shadow: 8px 8px 0 #000;
}

body.bg-style-paper .magazine-layout {
    background: rgba(245,243,237,0.95);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

body.bg-style-glass .magazine-layout {
    background: rgba(245,243,237,0.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

body.bg-style-blur .magazine-layout { background: rgba(245,243,237,0.92); }

.magazine-layout::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(0,0,0,0.025) 1px, transparent 1px);
    background-size: 4px 4px;
    opacity: 0.5;
    z-index: 0;
}

.magazine-sidebar {
    position: relative;
    z-index: 1;
    background: #ebe8e1;
    padding: 40px 20px;
    border-right: 4px double #000;
}

.magazine-main {
    position: relative;
    z-index: 1;
    padding: 70px;
}

.magazine-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.post-card {
    background: #fff;
    border: 3px solid #000;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover { transform: translateY(-5px); box-shadow: 6px 6px 0 #000; }

.post-card-content { padding: 25px; }

.single-container {
    max-width: 1600px;
    margin: 80px auto;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.single-post { max-width: 1600px; margin: 0 auto; }

.single-header { margin-bottom: 35px; }

.single-title { font-size: 46px; line-height: 1.2; margin-bottom: 10px; }

.post-meta {
    font-size: 14px;
    color: rgba(0,0,0,0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.single-content { font-size: 20px; line-height: 1.9; }

.single-content p { margin-bottom: 24px; }

.single-content h2 { margin-top: 50px; }

.single-content ul,
.single-content ol { margin: 25px 0 25px 30px; }

.single-content blockquote {
    margin: 40px 0;
    padding: 20px 25px;
    background: rgba(0,0,0,0.05);
    border-left: 5px solid #000;
    font-style: italic;
}

.single-content img { margin: 45px auto; }

.single-footer {
    margin-top: 50px;
    padding-top: 25px;
    border-top: 2px solid rgba(0,0,0,0.2);
}

.site-footer {
    max-width: 1600px;
    margin: 100px auto 0 auto;
    padding-top: 30px;
    border-top: 4px double #000;
    text-align: center;
    font-size: 14px;
}

.not-found {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
}

.not-found-inner {
    max-width: 700px;
    width: 100%;
    text-align: center;
    padding: 60px 40px;
    background: rgba(245, 243, 237, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.not-found-code {
    font-size: 96px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 6px;
    margin-bottom: 20px;
    opacity: 0.15;
}

.not-found-title { font-size: 32px; margin-bottom: 20px; }

.not-found-text { font-size: 18px; margin-bottom: 40px; opacity: 0.8; }

.not-found-button {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 999px;
    font-size: 16px;
    background: #111;
    color: #fff;
    transition: all 0.25s ease;
}

.not-found-button:hover { background: #333; transform: translateY(-2px); }

@media (max-width: 1024px) {
    .magazine-layout { grid-template-columns: 1fr; }
    .magazine-main { order: 1; }
    .magazine-sidebar { order: 2; border-right: none; border-bottom: 4px double #000; }
    .magazine-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    body { padding: 0; font-size: 17px; }
    .magazine-main { padding: 30px 20px; }
    .magazine-sidebar { padding: 30px 20px; }
    .magazine-grid { grid-template-columns: 1fr; }
    .single-post { max-width: 100%; }
}
