/*
Theme Name: Forgotten Rooms
Theme URI: https://example.com/forgotten-rooms
Author: Your Name
Author URI: https://example.com
Description: A dark, atmospheric WordPress theme with elegant typography and mysterious ambiance. Perfect for storytelling, creative writing, portfolios, and blogs with a literary or artistic focus.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: forgotten-rooms
Tags: dark, blog, portfolio, one-column, custom-menu, featured-images, threaded-comments, translation-ready, custom-background, custom-logo

Forgotten Rooms WordPress Theme
A dark, atmospheric theme inspired by environmental storytelling.
*/

/* ==========================================================================
   CSS Variables
   ========================================================================== */

:root {
    --bg-deep: #0a0908;
    --bg-surface: #141210;
    --bg-elevated: #1c1a17;
    --text-primary: #e8e4dc;
    --text-secondary: #8a847a;
    --text-muted: #5a5650;
    --accent: #c9a227;
    --accent-dim: #8a7020;
    --reveal: #d4a574;
    --danger: #8b3a3a;
    --success: #4a7c59;
    --info: #5a7a8a;
}

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

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    background: var(--bg-deep);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.7;
    overflow-x: hidden;
}

/* Atmospheric background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(201, 162, 39, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(139, 58, 58, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Grain overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1000;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: font-size 0.3s ease, margin 0.3s ease;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

h5 {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

h6 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

strong, b {
    font-weight: 600;
    color: var(--text-primary);
}

em, i {
    font-style: italic;
}

blockquote {
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background: rgba(201, 162, 39, 0.08);
    border-left: 3px solid var(--accent);
    font-style: italic;
    color: var(--text-secondary);
}

blockquote cite {
    display: block;
    margin-top: 1rem;
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    font-size: 0.8rem;
    font-style: normal;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

blockquote cite::before {
    content: '— ';
}

code, pre {
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    background: var(--bg-elevated);
    color: var(--reveal);
}

code {
    padding: 0.2em 0.4em;
    font-size: 0.9em;
    border-radius: 2px;
}

pre {
    padding: 1.5rem;
    margin: 2rem 0;
    overflow-x: auto;
    border: 1px solid var(--bg-elevated);
}

pre code {
    padding: 0;
    background: none;
}

hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-dim), transparent);
    margin: 3rem 0;
}

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

.site {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.wide-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.content-area {
    padding: 3rem 0;
}

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

.site-header {
    text-align: center;
    padding: 2rem;
    border-bottom: 1px solid var(--bg-elevated);
    position: sticky;
    top: 0;
    background: var(--bg-deep);
    z-index: 50;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    padding: 1rem 2rem;
    background: rgba(10, 9, 8, 0.95);
    backdrop-filter: blur(10px);
}

.site-branding {
    margin-bottom: 1.5rem;
}

.site-header.scrolled .site-branding {
    margin-bottom: 0.75rem;
}

.site-title {
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    transition: font-size 0.3s ease;
}

.site-title a {
    color: var(--text-primary);
}

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

.site-header.scrolled .site-title {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.site-description {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    color: var(--text-muted);
    text-transform: uppercase;
    transition: font-size 0.3s ease;
}

.site-header.scrolled .site-description {
    font-size: 0.6rem;
}

/* Custom Logo */
.custom-logo-link {
    display: inline-block;
    margin-bottom: 1rem;
}

.custom-logo {
    max-height: 80px;
    width: auto;
    transition: max-height 0.3s ease;
}

.site-header.scrolled .custom-logo {
    max-height: 40px;
}

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

.main-navigation {
    margin-top: 1.5rem;
}

.site-header.scrolled .main-navigation {
    margin-top: 0.75rem;
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-secondary);
    padding: 0.5rem 0;
    display: block;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
    color: var(--accent);
}

.nav-menu a:hover::after,
.nav-menu .current-menu-item > a::after,
.nav-menu .current_page_item > a::after {
    width: 100%;
}

/* Dropdown menus */
.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-surface);
    border: 1px solid var(--bg-elevated);
    min-width: 200px;
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 100;
}

.nav-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
}

.nav-menu .sub-menu a {
    padding: 0.5rem 1.5rem;
    white-space: nowrap;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--text-muted);
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        margin: 1rem auto 0;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        gap: 0;
        margin-top: 1rem;
        padding: 1rem 0;
        border-top: 1px solid var(--bg-elevated);
    }

    .nav-menu.toggled {
        display: flex;
    }

    .nav-menu a {
        padding: 0.75rem 0;
    }

    .nav-menu .sub-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        border: none;
        padding-left: 1rem;
        min-width: 0;
    }
}

/* ==========================================================================
   Posts & Content
   ========================================================================== */

.post,
.page,
article {
    background: var(--bg-surface);
    border: 1px solid var(--bg-elevated);
    padding: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.post::before,
.page::before,
article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-dim), transparent);
    opacity: 0.5;
}

.entry-meta {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.entry-meta a {
    color: var(--text-muted);
}

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

.entry-meta span {
    margin-right: 1.5rem;
}

.entry-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.entry-title a {
    color: var(--text-primary);
}

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

.entry-content {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.9;
}

.entry-content p:last-child {
    margin-bottom: 0;
}

/* Featured Image */
.post-thumbnail {
    margin: -2.5rem -2.5rem 2rem;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(20%);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.post:hover .post-thumbnail img {
    filter: grayscale(0%);
    transform: scale(1.02);
}

/* Entry Footer */
.entry-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--bg-elevated);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.entry-footer a {
    color: var(--text-muted);
}

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

.cat-links,
.tags-links {
    display: block;
    margin-bottom: 0.5rem;
}

/* Read More Link */
.read-more,
.more-link {
    display: inline-block;
    margin-top: 1.5rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--text-muted);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.read-more:hover,
.more-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(201, 162, 39, 0.05);
}

/* ==========================================================================
   Single Post
   ========================================================================== */

.single .post {
    padding: 3rem;
}

.single .entry-title {
    font-size: 2.2rem;
}

.single .entry-content {
    font-size: 1.15rem;
}

/* Post Navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.post-navigation .nav-links {
    display: contents;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    background: var(--bg-surface);
    border: 1px solid var(--bg-elevated);
    padding: 1.5rem;
    transition: border-color 0.3s ease;
}

.post-navigation .nav-next {
    text-align: right;
}

.post-navigation a {
    color: var(--text-secondary);
}

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

.post-navigation .nav-previous:hover,
.post-navigation .nav-next:hover {
    border-color: var(--accent-dim);
}

.post-navigation .meta-nav {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.post-navigation .post-title {
    font-size: 1rem;
    font-weight: 600;
}

/* ==========================================================================
   Archive & Search
   ========================================================================== */

.archive-header,
.search-header {
    background: var(--bg-surface);
    border: 1px solid var(--bg-elevated);
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.archive-title,
.search-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.archive-description {
    color: var(--text-secondary);
    font-style: italic;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination,
.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
    font-family: 'IBM Plex Mono', monospace;
}

.pagination .page-numbers,
.nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    background: var(--bg-surface);
    border: 1px solid var(--bg-elevated);
    color: var(--text-secondary);
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.nav-links .page-numbers:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pagination .page-numbers.current,
.nav-links .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-deep);
}

/* ==========================================================================
   Comments
   ========================================================================== */

.comments-area {
    background: var(--bg-surface);
    border: 1px solid var(--bg-elevated);
    padding: 2.5rem;
    margin-top: 2rem;
}

.comments-title {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--bg-elevated);
}

.comment-list {
    list-style: none;
}

.comment {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--bg-elevated);
}

.comment:last-child {
    border-bottom: none;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-author .avatar {
    border-radius: 50%;
    filter: grayscale(30%);
}

.comment-author .fn {
    font-weight: 600;
    color: var(--text-primary);
}

.comment-metadata {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.comment-metadata a {
    color: var(--text-muted);
}

.comment-content {
    color: var(--text-secondary);
    font-size: 1rem;
}

.reply a {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

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

/* Nested comments */
.children {
    list-style: none;
    margin-left: 2rem;
    padding-left: 2rem;
    border-left: 1px solid var(--bg-elevated);
}

/* Comment Form */
.comment-respond {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--bg-elevated);
}

.comment-reply-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.comment-form label {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-elevated);
    border: 1px solid transparent;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent-dim);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.form-submit input[type="submit"] {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 1rem 2rem;
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit input[type="submit"]:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(201, 162, 39, 0.05);
}

/* ==========================================================================
   Sidebar & Widgets
   ========================================================================== */

.widget-area {
    margin-top: 2rem;
}

.widget {
    background: var(--bg-surface);
    border: 1px solid var(--bg-elevated);
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-dim), transparent);
    opacity: 0.5;
}

.widget-title {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--bg-elevated);
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--bg-elevated);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.widget ul li a:hover {
    color: var(--accent);
}

/* Search Widget */
.widget_search .search-form {
    display: flex;
}

.widget_search .search-field {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid transparent;
    border-right: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
}

.widget_search .search-field:focus {
    outline: none;
    border-color: var(--accent-dim);
}

.widget_search .search-submit {
    padding: 0.75rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.widget_search .search-submit:hover {
    color: var(--accent);
    border-color: var(--accent-dim);
}

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

.site-footer {
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 3rem;
    border-top: 1px solid var(--bg-elevated);
}

.footer-widgets {
    max-width: 1200px;
    margin: 0 auto 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-widgets .widget {
    background: transparent;
    border: none;
    padding: 0;
}

.footer-widgets .widget::before {
    display: none;
}

.site-info {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.site-info a {
    color: var(--text-muted);
}

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

/* ==========================================================================
   Forms & Buttons
   ========================================================================== */

button,
input[type="button"],
input[type="submit"],
.button,
.wp-block-button__link {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 1rem 2rem;
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
.button:hover,
.wp-block-button__link:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(201, 162, 39, 0.05);
}

/* Primary button style */
.button-primary,
.wp-block-button.is-style-fill .wp-block-button__link {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-deep);
}

.button-primary:hover,
.wp-block-button.is-style-fill .wp-block-button__link:hover {
    background: var(--reveal);
    border-color: var(--reveal);
    color: var(--bg-deep);
}

/* Input fields */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 1rem;
    background: var(--bg-elevated);
    border: 1px solid transparent;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent-dim);
}

::placeholder {
    color: var(--text-muted);
}

/* ==========================================================================
   Images & Media
   ========================================================================== */

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

figure {
    margin: 2rem 0;
}

figcaption {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.75rem;
    font-style: italic;
}

.wp-block-image {
    margin: 2rem 0;
}

.wp-block-image img {
    filter: grayscale(10%);
    transition: filter 0.5s ease;
}

.wp-block-image:hover img {
    filter: grayscale(0%);
}

/* Galleries */
.wp-block-gallery {
    gap: 1rem;
}

.wp-block-gallery .wp-block-image {
    margin: 0;
}

/* ==========================================================================
   Tables
   ========================================================================== */

table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--bg-elevated);
}

th {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--bg-surface);
}

tr:hover td {
    background: rgba(201, 162, 39, 0.03);
}

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

.entry-content ul,
.entry-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
    color: var(--text-secondary);
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-content ul li::marker {
    color: var(--accent-dim);
}

.entry-content ol li::marker {
    color: var(--accent);
    font-family: 'IBM Plex Mono', monospace;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--bg-surface);
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: var(--text-primary);
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

.alignleft {
    float: left;
    margin-right: 2rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

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

/* ==========================================================================
   404 Page
   ========================================================================== */

.error-404 {
    text-align: center;
    padding: 4rem 2rem;
}

.error-404 .page-title {
    font-size: 6rem;
    color: var(--accent-dim);
    margin-bottom: 1rem;
}

.error-404 .page-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* ==========================================================================
   Scrollbar
   ========================================================================== */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-dim);
}

/* ==========================================================================
   Selection
   ========================================================================== */

::selection {
    background: var(--accent);
    color: var(--bg-deep);
}

::-moz-selection {
    background: var(--accent);
    color: var(--bg-deep);
}

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

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .container {
        padding: 0 1.5rem;
    }

    .post,
    .page,
    article {
        padding: 1.5rem;
    }

    .post-thumbnail {
        margin: -1.5rem -1.5rem 1.5rem;
    }

    .entry-title {
        font-size: 1.5rem;
    }

    .single .entry-title {
        font-size: 1.8rem;
    }

    .post-navigation {
        grid-template-columns: 1fr;
    }

    .children {
        margin-left: 1rem;
        padding-left: 1rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .site-title {
        font-size: 1.8rem;
    }

    .site-header.scrolled .site-title {
        font-size: 1rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}
