body {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 10pt;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    background-color: #fafafa;
    color: #333333;
}

.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 200px;
    background-color: #f0f0f0;
    padding: 30px 20px;
    border-right: 1px solid #e0e0e0;
    box-sizing: border-box;
}

.sidebar h2 {
    font-size: 14pt;
    font-weight: normal;
    margin: 0 0 20px 0;
    color: #333333;
}

.sidebar nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar nav li {
    margin: 8px 0;
}

.sidebar nav a {
    color: #666666;
    text-decoration: none;
    font-size: 10pt;
    display: block;
    padding: 4px 0;
    transition: color 0.2s ease;
}

.sidebar nav a:hover, .sidebar nav a.active {
    color: #333333;
    text-decoration: underline;
}

.main-content {
    flex: 1;
    padding: 30px 40px;
    max-width: 700px;
}

h1 {
    font-size: 20pt;
    font-weight: normal;
    margin: 0 0 25px 0;
    color: #222222;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.h1-sub {
    font-size: 10pt;
    color: #888888;
    font-weight: normal;
    margin-left: 4px;
}

body.dark .h1-sub {
    color: #777777;
}

p {
    margin: 10px 0;
}

ul {
    margin: 5px 0;
    padding-left: 20px;
}

li {
    margin: 2px 0;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

b {
    font-weight: bold;
}

hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 30px 0;
}

.quote-block {
    border-left: 3px solid #ddd;
    padding: 10px 0 10px 20px;
    margin: 35px 0;
}

.quote-text {
    font-size: 11pt;
    line-height: 1.6;
    margin: 0 0 15px 0;
    font-style: normal;
}

.quote-author {
    font-size: 10pt;
    color: #666666;
    font-weight: normal;
    text-align: right;
    margin: 0;
    font-style: italic;
}

.quote-note {
    font-size: 9pt;
    color: #000000;
    background-color: #f9f9f9;
    padding: 10px 15px;
    margin-top: 15px;
    border-radius: 4px;
    border-left: 2px solid #992828;
}

small {
    font-size: 9pt;
}

.profile-photo {
    width: 180px;
    margin-top: 20px;
}

.mobile-header { display: none; }
.drawer-overlay { display: none; }
.drawer-close { display: none; }

@media (max-width: 768px) {
    .mobile-header {
        display: flex;
        align-items: center;
        gap: 12px;
        position: sticky;
        top: 0;
        z-index: 100;
        background-color: #f0f0f0;
        border-bottom: 1px solid #e0e0e0;
        padding: 10px 16px;
    }

    .mobile-header-title {
        font-size: 14pt;
        font-weight: normal;
        color: #333333;
    }

    .hamburger {
        background: none;
        border: none;
        cursor: pointer;
        padding: 4px;
        color: #333333;
        display: flex;
        align-items: center;
    }

    .layout {
        flex-direction: column;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 220px;
        height: 100%;
        z-index: 200;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        border-right: 1px solid #e0e0e0;
        border-bottom: none;
        padding: 30px 20px;
        overflow-y: auto;
    }

    .sidebar.drawer-open {
        transform: translateX(0);
    }

    .sidebar h2 {
        display: block;
        margin: 0 0 20px 0;
    }

    .sidebar nav {
        display: block;
    }

    .sidebar nav ul {
        display: block;
    }

    .sidebar nav li {
        display: block;
        margin: 8px 0;
    }

    .drawer-close {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 4px;
        color: #333333;
        position: absolute;
        top: 12px;
        right: 12px;
    }

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

    .drawer-overlay.active {
        display: block;
    }

    body.drawer-open-body {
        overflow: hidden;
    }

    .main-content {
        padding: 20px;
    }

    .featured-quote {
        position: static;
        left: auto;
        transform: none;
        margin: 0 auto 35px auto;
    }
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 0;
    margin-top: 16px;
    display: block;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.theme-toggle:hover {
    opacity: 1;
}

.theme-toggle svg {
    width: 16px;
    height: 16px;
}

.theme-toggle .theme-icon-sun { display: none; }
body.dark .theme-toggle .theme-icon-moon { display: none; }
body.dark .theme-toggle .theme-icon-sun { display: block; }

body.dark .theme-toggle { color: #ffffff; }

body.dark {
    background-color: #1e1e1e;
    color: #d4d4d4;
}

body.dark .sidebar {
    background-color: #262626;
    border-color: #333333;
}

body.dark .sidebar h2 {
    color: #d4d4d4;
}

body.dark .sidebar nav a {
    color: #999999;
}

body.dark .sidebar nav a:hover, body.dark .sidebar nav a.active {
    color: #d4d4d4;
}

body.dark .mobile-header {
    background-color: #262626;
    border-color: #333333;
}

body.dark .mobile-header-title {
    color: #d4d4d4;
}

body.dark .hamburger {
    color: #d4d4d4;
}

body.dark .drawer-close {
    color: #d4d4d4;
}

body.dark .drawer-overlay.active {
    background: rgba(0, 0, 0, 0.6);
}

body.dark h1 {
    color: #e0e0e0;
    border-bottom-color: #333333;
}

body.dark a {
    color: #5c9aff;
}

body.dark hr {
    border-top-color: #333333;
}

body.dark .quote-block {
    border-left-color: #444;
}

body.dark .quote-author {
    color: #999999;
}

body.dark .quote-note {
    background-color: #2e2e2e;
    color: #d4d4d4;
    border-left-color: #cc4444;
}

.featured-quote {
    text-align: center;
    padding: 25px 50px 25px 50px;
    margin: 0 0 60px 0;
    max-width: 800px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    position: relative;
    left: calc(50vw - 140px);
    transform: translateX(-50%);
    box-shadow: 0 0 0 4px #fafafa, 0 0 0 5px #e0e0e0, 0 0 0 10px #fafafa, 0 0 0 11px #eee;
}

.featured-quote-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-quote-text {
    font-size: 12pt;
    line-height: 1.7;
    margin: 0 0 15px 0;
}

.featured-quote-author {
    font-size: 10pt;
    color: #666666;
    font-style: italic;
    margin: 0 0 20px 0;
}

.featured-quote-note {
    font-size: 9pt;
    color: #888888;
    margin: -10px 0 20px 0;
}

.shuffle-btn {
    background: none;
    border: 1px solid #ccc;
    color: #666;
    padding: 5px 16px;
    font-size: 9pt;
    font-family: Verdana, Geneva, sans-serif;
    cursor: pointer;
    border-radius: 3px;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.shuffle-btn:hover {
    border-color: #999;
    color: #333;
}

.featured-quote-inner.fade-out {
    animation: fadeOut 250ms ease forwards;
}

.featured-quote-inner.fade-in {
    animation: fadeIn 250ms ease forwards;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

body.dark .featured-quote {
    border-color: #444;
    box-shadow: 0 0 0 4px #1e1e1e, 0 0 0 5px #444, 0 0 0 10px #1e1e1e, 0 0 0 11px #333;
}

body.dark .featured-quote-author {
    color: #999999;
}

body.dark .featured-quote-note {
    color: #777777;
}

body.dark .shuffle-btn {
    border-color: #555;
    color: #999;
}

body.dark .shuffle-btn:hover {
    border-color: #888;
    color: #d4d4d4;
}

