:root {
    --bg-color: #23120b;
    --card-bg: rgba(61, 37, 25, 0.85);
    --accent-color: #d97706;
    --text-color: #fef3c7;
    --muted-text: #f59e0b;
    --sidebar-bg: #32190f;
    --celebrate-color: #f97316;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #2c1a11 0%, #170a05 100%);
    color: var(--text-color);
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    position: relative;
    overflow-y: auto;
}

/* Hero Section - Full Screen Height */
.hero-section {
    width: 100%;
    min-height: calc(100vh - 7rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Autumnal Village Silhouette */
.village-silhouette {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65vh;
    pointer-events: none;
    z-index: -2;
    overflow: hidden;
}

.village-svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .village-silhouette {
        height: 55vh;
    }
}

/* Falling Fall Items Animation */
.ambient-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.ambient-item {
    position: absolute;
    display: block;
    cursor: default;
    user-select: none;
    top: -50px;
    font-size: 24px;
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }
    5% {
        opacity: 0.75;
    }
    10% {
        transform: translateY(5vh) translateX(20px) rotate(45deg);
    }
    25% {
        transform: translateY(25vh) translateX(-40px) rotate(135deg);
    }
    50% {
        transform: translateY(50vh) translateX(60px) rotate(270deg);
        opacity: 0.75;
    }
    75% {
        transform: translateY(75vh) translateX(-30px) rotate(450deg);
    }
    95% {
        opacity: 0.75;
    }
    100% {
        transform: translateY(110vh) translateX(20px) rotate(720deg);
        opacity: 0;
    }
}

@keyframes sway {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(40px);
    }
    50% {
        transform: translateX(0);
    }
    75% {
        transform: translateX(-40px);
    }
}

/* Main Container */
.container {
    text-align: center;
    padding: 2.5rem;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(217, 119, 6, 0.3);
    max-width: 650px;
    width: 85%;
    backdrop-filter: blur(8px);
    z-index: 2;
    transition: all 0.3s ease;
    position: relative;
    margin-top: 20px;
    box-sizing: border-box;
}

/* Main Content Area for Blog/Article Pages */
main {
    text-align: left;
    padding: 2.5rem;
    background: var(--card-bg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    max-width: 1200px;
    width: 90%;
    backdrop-filter: blur(8px);
    z-index: 2;
    position: relative;
    margin: 3rem auto;
    box-sizing: border-box;
}

/* Cozy Cats Row */
.cat-box {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: -10px;
    margin-top: -10px;
}

.cat {
    width: 45px;
    height: 45px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.cat:hover {
    transform: translateY(-4px) scale(1.05);
}

h1 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-size: clamp(1.4rem, 6vw, 2.8rem);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-top: 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.subtitle {
    color: var(--muted-text);
    margin-top: 0;
    font-style: italic;
    font-size: 1.1rem;
}

/* Countdown Grid */
.countdown-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 2.5rem 0 1rem 0;
}

.time-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.2rem 0.5rem;
    border-radius: 12px;
    border-bottom: 4px solid var(--accent-color);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.time-box span {
    display: block;
    font-size: 2.8rem;
    font-weight: bold;
    font-variant-numeric: tabular-nums;
}

.time-box .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #f59e0b;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Active Fall Celebration Banner */
#celebration-box {
    margin: 2.5rem 0;
    padding: 2rem;
    background: rgba(249, 115, 22, 0.15);
    border: 2px dashed var(--celebrate-color);
    border-radius: 15px;
    animation: pulse 2s infinite alternate;
}

#celebration-box h2 {
    font-size: 2.5rem;
    color: var(--celebrate-color);
    margin: 0 0 0.5rem 0;
    text-shadow: 0 0 10px rgba(249, 115, 22, 0.3);
}

#celebration-box p {
    font-size: 1.2rem;
    margin: 0;
    color: #fef3c7;
}

/* Top Navigation Bar */
.top-nav {
    width: 100%;
    background: linear-gradient(180deg, rgba(61, 37, 25, 0.95) 0%, rgba(50, 25, 15, 0.9) 100%);
    border-bottom: 2px solid rgba(217, 119, 6, 0.4);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.nav-logo a {
    color: var(--accent-color);
    font-size: 1.6rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo a:hover {
    text-shadow: 0 0 12px rgba(217, 119, 6, 0.6);
    transform: scale(1.05);
}

/* Desktop Navigation */
.desktop-nav {
    display: none;
}

.nav-items {
    display: flex;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.75rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
    font-family: inherit;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 2px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.dropdown {
    position: relative;
}

.dropdown-arrow {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 0.25rem;
    position: relative;
    transition: transform 0.3s ease;
}

.dropdown-arrow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translate(-50%, -60%) rotate(45deg);
}

.dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: linear-gradient(135deg, rgba(50, 25, 15, 0.95) 0%, rgba(35, 18, 11, 0.95) 100%);
    border: 1px solid rgba(217, 119, 6, 0.5);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(217, 119, 6, 0.2);
    list-style: none;
    padding: 0.75rem 0;
    margin: 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 101;
}

/* Show menu only when dropdown is open (click) */
.dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.85rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.dropdown-menu a:hover {
    background: rgba(217, 119, 6, 0.15);
    color: var(--accent-color);
    border-left-color: var(--accent-color);
    padding-left: 1.8rem;
}

/* Mobile Hamburger Button - Shows on Mobile */
.hamburger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border: 1px solid var(--accent-color);
    color: var(--text-color);
    font-size: 1.5rem;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.hamburger-btn:hover {
    background: var(--accent-color);
}

/* Mobile Sidebar Menu */
.sidebar {
    position: fixed;
    top: 0;
    right: -340px;
    width: 300px;
    height: 100%;
    background: var(--sidebar-bg);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.7);
    z-index: 105;
    transition: right 0.3s ease-in-out;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-left: 1px solid rgba(217, 119, 6, 0.2);
    box-sizing: border-box;
    overflow-y: auto;
}

.sidebar.open {
    right: 0;
}

.sidebar-close {
    align-self: flex-end;
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    margin-bottom: 1rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-nav a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.75rem;
    border-radius: 6px;
    background: rgba(217, 119, 6, 0.1);
    border: 1px solid rgba(217, 119, 6, 0.2);
    transition: all 0.2s ease;
    font-weight: 500;
    display: block;
}

.sidebar-nav a:hover {
    background: rgba(217, 119, 6, 0.3);
    border-color: var(--accent-color);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 98;
    display: none;
}

.menu-overlay.show {
    display: block;
}

/* Floating Timer Settings Button */
.floating-settings-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 95;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-settings-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(217, 119, 6, 0.6);
}

.floating-settings-btn:active {
    transform: scale(0.95);
}

/* Timer Settings Panel */
.timer-settings-panel {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 300px;
    background: var(--card-bg);
    border: 1px solid rgba(217, 119, 6, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 96;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    transform: scale(0.95) translateY(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.timer-settings-panel.open {
    transform: scale(1) translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.timer-settings-panel h3 {
    color: var(--accent-color);
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.settings-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
}

.settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 94;
    display: none;
}

.settings-overlay.show {
    display: block;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    font-weight: 600;
    color: var(--muted-text);
    font-size: 0.9rem;
}

select {
    background: #1e0f09;
    color: var(--text-color);
    border: 1px solid var(--accent-color);
    padding: 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    outline: none;
    font-size: 0.95rem;
    max-width: 100%;
}

select optgroup {
    background: #2c1a11;
    color: #f59e0b;
    font-style: normal;
    font-weight: bold;
}

select option {
    color: var(--text-color);
    background: #1e0f09;
}

select:focus {
    box-shadow: 0 0 5px var(--accent-color);
}

.hidden {
    display: none !important;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 8;
    display: none;
}

.menu-overlay.show {
    display: block;
}

/* Scrollbar Styling */
main::-webkit-scrollbar {
    width: 8px;
}

main::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

main::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

main::-webkit-scrollbar-thumb:hover {
    background: var(--muted-text);
}

/* Link Styling */
a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

a:hover {
    color: var(--muted-text);
}

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

/* Site Title Link */
.site-title a {
    color: inherit;
    text-decoration: none;
    transition: text-shadow 0.2s ease;
}

.site-title a:visited {
    color: inherit;
}

.site-title a:hover {
    text-shadow: 0 0 10px rgba(217, 119, 6, 0.5);
    text-decoration: none;
}

.site-title a:active {
    color: inherit;
}

/* Blog CTA on Homepage */
.blog-link-wrapper {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(217, 119, 6, 0.2);
}

.blog-cta {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: rgba(217, 119, 6, 0.1);
    border: 1px solid var(--accent-color);
    border-radius: 30px;
    color: var(--accent-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.blog-cta:hover {
    background: var(--accent-color);
    color: var(--bg-color) !important;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

/* Scroll Hint */
.scroll-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 3;
    white-space: nowrap;
}

.scroll-arrow {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.scroll-arrow span {
    display: block;
    font-size: 1rem;
    line-height: 1;
    animation: float 1.5s infinite;
    filter: drop-shadow(0 1px 2px rgba(217, 119, 6, 0.4));
}

.scroll-arrow span:nth-child(2) {
    animation-delay: 0.2s;
}

.scroll-arrow span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes float {
    0% {
        transform: translateY(0);
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateY(10px);
        opacity: 0.4;
    }
}

/* Latest Reads Section */
.latest-reads-section {
    width: 100%;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(44, 26, 17, 0.6) 0%, rgba(23, 10, 5, 0.6) 100%);
    position: relative;
    box-sizing: border-box;
}

.latest-reads-container {
    max-width: 1200px;
    margin: 0 auto;
}

.latest-reads-section h2 {
    color: var(--accent-color);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-card {
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid rgba(217, 119, 6, 0.3);
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    align-items: flex-start;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(217, 119, 6, 0.2);
    border-color: var(--accent-color);
}

.post-card-image-wrapper {
    width: 220px;
    height: 180px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
}

.post-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.post-card-image {
    width: 220px;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    flex-shrink: 0;
}

.post-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.5rem;
}

.post-card-title {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin: 0;
    line-height: 1.4;
}

.post-card-date {
    color: var(--muted-text);
    font-size: 0.85rem;
}

.post-card-excerpt {
    color: #fef3c7;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0.5rem 0 0 0;
    flex-grow: 1;
}

.post-card-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
    margin-top: 0.5rem;
    width: fit-content;
}

.post-card-link:hover {
    color: var(--muted-text);
    text-decoration: underline;
}

/* Post Hero Image */
.post-hero {
    margin: 0 0 2rem 0;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.post-hero img {
    width: 100%;
    height: auto;
    display: block;
}

.post-hero figcaption {
    padding: 0.75rem 1rem;
    background: rgba(217, 119, 6, 0.1);
    color: var(--muted-text);
    font-size: 0.85rem;
    font-style: italic;
}

.view-all-blog {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(217, 119, 6, 0.2);
}

/* Article Table Styling */
article table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2rem 0;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(217, 119, 6, 0.3);
}

article table caption {
    color: var(--muted-text);
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 0.75rem;
    text-align: left;
}

article thead {
    background: linear-gradient(180deg, rgba(217, 119, 6, 0.25) 0%, rgba(217, 119, 6, 0.15) 100%);
}

article th {
    color: var(--accent-color);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    text-align: left;
    padding: 0.9rem 1.2rem;
    border-bottom: 2px solid var(--accent-color);
    white-space: nowrap;
}

article td {
    padding: 0.85rem 1.2rem;
    color: var(--text-color);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(217, 119, 6, 0.15);
    vertical-align: top;
}

article tbody tr {
    transition: background 0.2s ease;
}

article tbody tr:nth-child(even) {
    background: rgba(217, 119, 6, 0.04);
}

article tbody tr:hover {
    background: rgba(217, 119, 6, 0.12);
}

article tbody tr:last-child td {
    border-bottom: none;
}

/* Optional: numeric column alignment */
article td.numeric,
article th.numeric {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Scrollable wrapper for wide tables on small screens */
.table-scroll {
    width: 100%;
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    -webkit-overflow-scrolling: touch;
}

.table-scroll table {
    margin: 0;
    box-shadow: none;
    min-width: 480px;
}


/* Desktop Navigation - Shows on Larger Screens */
@media (min-width: 1024px) {
    .desktop-nav {
        display: block;
    }

    .hamburger-btn {
        display: none;
    }

    .top-nav {
        position: sticky;
        top: 0;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .nav-container {
        padding: 0.75rem 1rem;
    }

    .nav-logo a {
        font-size: 1.2rem;
    }

    .container {
        padding: 1.5rem;
        width: 90%;
    }

    main {
        padding: 1.5rem;
        width: 95%;
    }

    h1 {
        font-size: 2rem;
        margin-bottom: 0.3rem;
    }

    .subtitle {
        font-size: 0.95rem;
        margin-top: 0;
    }

    .cat {
        width: 35px;
        height: 35px;
    }

    .countdown-container {
        gap: 0.75rem;
        margin: 1.5rem 0 1rem 0;
    }

    .time-box {
        padding: 0.8rem 0.4rem;
    }

    .time-box span {
        font-size: 2rem;
    }

    .time-box .label {
        font-size: 0.7rem;
        margin-top: 3px;
    }

    #celebration-box {
        margin: 1.5rem 0;
        padding: 1.5rem;
    }

    #celebration-box h2 {
        font-size: 1.8rem;
        margin: 0 0 0.3rem 0;
    }

    #celebration-box p {
        font-size: 1rem;
    }

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

    .site-title a {
        font-size: 1.5rem;
    }

    .blog-cta {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .scroll-hint {
        position: static;
        transform: none;
        margin: 1.5rem auto 0;
        padding-bottom: 1.5rem;
    }

    .latest-reads-section {
        padding: 2.5rem 1.25rem;
    }

    .latest-reads-section h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .post-card {
        padding: 1.2rem;
        backdrop-filter: blur(8px);
        flex-direction: column;
    }

    .post-card-image-wrapper {
        width: 100%;
        height: 150px;
    }

    .post-card-image {
        width: 100%;
        height: 150px;
    }

    .post-card-content {
        gap: 0.4rem;
    }

    .post-card-title {
        margin: 0;
        font-size: 1.1rem;
    }

    .post-card-date {}

    .post-card-excerpt {}

    .post-card-link {}

    .floating-settings-btn {
        width: 55px;
        height: 55px;
        bottom: 25px;
        right: 25px;
        font-size: 1.3rem;
    }

    .timer-settings-panel {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.9);
        width: 90%;
        max-width: 350px;
        max-height: 60vh;
        background: var(--card-bg);
        border: 1px solid rgba(217, 119, 6, 0.3);
        border-radius: 15px;
        padding: 1.5rem 1.5rem 1.5rem 1.5rem;
        padding-top: 2.5rem;
        overflow-y: auto;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
        z-index: 96;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        pointer-events: none;
    }

    .timer-settings-panel.open {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .settings-close {
        position: absolute;
        top: 8px;
        right: 8px;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        background: rgba(217, 119, 6, 0.2);
        border: 1px solid rgba(217, 119, 6, 0.3);
        border-radius: 6px;
        padding: 0;
    }

    .settings-close:hover {
        background: rgba(217, 119, 6, 0.4);
    }

    .settings-overlay.show {
        display: block;
    }

    article th,
    article td {
        padding: 0.65rem 0.85rem;
        font-size: 0.85rem;
    }

    article table {
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
        width: 95%;
        margin-top: 10px;
    }

    main {
        padding: 1rem;
        width: 98%;
        margin: 10px auto;
    }

    h1 {
        font-size: 1.6rem;
        margin-bottom: 0.2rem;
    }

    .subtitle {
        font-size: 0.85rem;
    }

    .cat-box {
        gap: 6px;
        margin-bottom: -8px;
        margin-top: -8px;
    }

    .cat {
        width: 30px;
        height: 30px;
    }

    .countdown-container {
        gap: 0.5rem;
        margin: 1rem 0 0.75rem 0;
    }

    .time-box {
        padding: 0.6rem 0.3rem;
    }

    .time-box span {
        font-size: 1.6rem;
    }

    .time-box .label {
        font-size: 0.65rem;
        margin-top: 2px;
    }

    #celebration-box {
        margin: 1rem 0;
        padding: 1rem;
    }

    #celebration-box h2 {
        font-size: 1.4rem;
        margin: 0 0 0.2rem 0;
    }

    #celebration-box p {
        font-size: 0.9rem;
    }

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

    .site-title a {
        font-size: 1.2rem;
    }

    .hamburger-btn {
        top: 12px;
        right: 12px;
        font-size: 1.5rem;
        padding: 0.4rem 0.6rem;
    }

    .blog-link-wrapper {
        margin-top: 1.5rem;
        padding-top: 0.75rem;
    }

    .blog-cta {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .scroll-hint {
        position: static;
        transform: none;
        margin: 1rem auto 0;
        padding-bottom: 1rem;
    }

    .latest-reads-section {
        padding: 2rem 1rem;
    }

    .latest-reads-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .post-card {
        padding: 1rem;
        backdrop-filter: blur(8px);
        flex-direction: column;
    }

    .post-card-image-wrapper {
        width: 100%;
        height: 200px;
    }

    .post-card-image {
        width: 100%;
        height: 200px;
    }

    .post-card-content {
        gap: 0.4rem;
    }

    .post-card-title {
        font-size: 1.1rem;
    }

    .post-card-excerpt {
        font-size: 0.9rem;
    }

    .floating-settings-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 1.2rem;
    }

    .timer-settings-panel {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.9);
        width: 90%;
        max-width: 320px;
        max-height: 55vh;
        background: var(--card-bg);
        border: 1px solid rgba(217, 119, 6, 0.3);
        border-radius: 15px;
        padding: 1.5rem 1.5rem 1.5rem 1.5rem;
        padding-top: 2.5rem;
        overflow-y: auto;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
        z-index: 96;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        pointer-events: none;
    }

    .timer-settings-panel.open {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .settings-close {
        position: absolute;
        top: 8px;
        right: 8px;
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        background: rgba(217, 119, 6, 0.2);
        border: 1px solid rgba(217, 119, 6, 0.3);
        border-radius: 6px;
        padding: 0;
    }

    .settings-close:hover {
        background: rgba(217, 119, 6, 0.4);
    }

    article th,
    article td {
        padding: 0.55rem 0.65rem;
        font-size: 0.8rem;
    }
}

/* Author Card Styles */
.author-card {
    display: block;
    overflow: auto;
}

.author-left {
    float: left;
    width: 70px;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.author-avatar {
    width: 70px;
    height: 70px;
    background-color: rgba(217, 119, 6, 0.15);
    border: 2px solid rgba(217, 119, 6, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.author-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.author-meta {
    display: block;
}

.author-right {
    display: block;
}

.author-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-text);
    margin-bottom: 0.2rem;
    font-weight: 600;
    display: block;
}

.author-name {
    font-size: 1.35rem;
    color: var(--accent-color);
    margin: 0;
    font-family: inherit;
    display: block;
}

.author-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    text-align: left;
}

.section-divider {
    border: none;
    border-top: 1px solid var(--text-color);
    margin: 2rem 0;
    opacity: 0.3;
}

/* Responsive adjustment for small mobile screens */
@media (max-width: 550px) {
    .author-left {
        float: left;
        width: 70px;
        margin-right: 1.5rem;
        margin-bottom: 1rem;
        text-align: center;
    }
}

/* Breadcrumb Navigation */
.breadcrumbs {
    margin-bottom: 1.5rem;
}

.breadcrumb-list {
    flex-wrap: wrap;
    align-items: center;
    row-gap: 0.5rem;
}

.breadcrumb-list li {
    white-space: nowrap;
}

.breadcrumb-list a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-list a:hover {
    color: var(--muted-text);
    text-decoration: underline;
}

.breadcrumb-list .separator {
    color: var(--muted-text);
    margin: 0 0.5rem;
    opacity: 0.6;
}

.breadcrumb-list .current-post {
    color: var(--text-color);
    font-weight: 500;
}

/* Mobile: Hide current post title and preceding separator */
@media (max-width: 768px) {

    .breadcrumb-list .current-post,
    .breadcrumb-list .current-post.previous+.separator {
        display: none;
    }

    /* Hide the last separator that would appear before hidden current-post */
    .breadcrumb-list li:nth-last-child(2).separator {
        display: none;
    }
}

/* Post Hero Figure Wrapper */
.post-hero-figure {
    margin: 0 0 2rem 0;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    max-height: 400px;
}

.post-hero-figure img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    max-height: 400px;
    object-fit: cover;
}

/* Hero Image Styling */
.hero-image {
    width: 100%;
    height: auto;
    margin: 0 0 2rem 0;
    padding: 0;
    display: block;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    overflow: hidden;
    max-height: 400px;
}

/* Hero Image - Tablet */
@media (max-width: 768px) {
    .post-hero-figure {
        border-radius: 10px;
        max-height: 300px;
    }

    .post-hero-figure img {
        border-radius: 10px;
        max-height: 300px;
    }

    .hero-image {
        max-height: 300px;
        border-radius: 10px;
    }
}

/* Hero Image - Mobile */
@media (max-width: 480px) {
    .post-hero-figure {
        margin-bottom: 1.5rem;
        border-radius: 8px;
        max-height: 220px;
    }

    .post-hero-figure img {
        border-radius: 8px;
        max-height: 220px;
    }

    .hero-image {
        max-height: 220px;
        margin-bottom: 1.5rem;
        border-radius: 8px;
    }
}

/* Site Footer */
.site-footer {
    width: 100%;
    background: linear-gradient(135deg, rgba(44, 26, 17, 0.8) 0%, rgba(23, 10, 5, 0.9) 100%);
    border-top: 1px solid rgba(217, 119, 6, 0.2);
    margin-top: 4rem;
    padding: 3rem 2rem 1.5rem 2rem;
    box-sizing: border-box;
    flex-shrink: 0;
    min-height: 350px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-column {
    text-align: left;
}

.footer-column h4 {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column h5 {
    color: var(--muted-text);
    font-size: 0.9rem;
    margin: 1.5rem 0 0.75rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-description {
    color: #fef3c7;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    opacity: 0.9;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0;
}

.footer-nav a,
.footer-category-links a {
    color: #fef3c7;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    padding: 0.4rem 0;
    display: inline-block;
}

.footer-nav a:hover,
.footer-category-links a:hover {
    color: var(--accent-color);
    padding-left: 0.5rem;
}

.footer-category-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-category-links a {
    font-size: 0.9rem;
}

.footer-bottom {
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.footer-credit {
    color: #fef3c7;
    font-size: 0.9rem;
    margin: 0;
}

.footer-tagline {
    color: var(--muted-text);
    font-size: 0.85rem;
    margin: 0;
    font-style: italic;
}

.footer-divider {
    display: none;
}

/* Footer Responsive */
@media (max-width: 768px) {
    .site-footer {
        padding: 2rem 1.5rem 1rem 1.5rem;
        margin-top: 3rem;
    }

    .footer-content {
        gap: 2rem;
    }

    .footer-column h4 {
        font-size: 1rem;
    }

    .footer-nav a,
    .footer-category-links a {
        font-size: 0.9rem;
    }

    .footer-category-links a {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 1.5rem 1rem 0.75rem 1rem;
        margin-top: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-column h4 {
        font-size: 0.95rem;
    }

    .footer-column h5 {
        margin: 1rem 0 0.5rem 0;
        font-size: 0.85rem;
    }

    .footer-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .footer-nav a,
    .footer-category-links a {
        font-size: 0.85rem;
    }

    .footer-credit {
        font-size: 0.8rem;
    }

    .footer-tagline {
        font-size: 0.75rem;
    }
}