@font-face {
    font-family: 'Newsreader';
    src: url('fonts/Newsreader-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Newsreader';
    src: url('fonts/Newsreader-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Newsreader';
    src: url('fonts/Newsreader-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Newsreader';
    src: url('fonts/Newsreader-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

body {
    line-height: 1.5;
    font-size: 20px;
    margin: 0;
    padding: 0;
    font-family: "Newsreader", serif;
    color: #000000;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-synthesis: none;
}

.main-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

#menu {
    width: 200px;
    padding-right: 40px;
    text-align: left;
    font-size: 16px;
}

.title {
    font-size: 18px;
    font-weight: 600;
    display: block;
    margin-bottom: 20px;
}

#menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#menu li {
    margin-bottom: 12px;
}

#content {
    max-width: 650px;
    flex-grow: 1;
}

a {
    color: #000000;
    text-decoration: underline;
}

a:hover {
    text-decoration: underline;
}

p {
    margin: 16px 0;
}

h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 1em;
    margin-top: 0;
}

.post-date {
    color: #586069;
    margin-bottom: 2em;
    display: block;
}

.post-content p {
    margin: 1em 0;
}

.post-image {
    margin: 2em 0;
    text-align: center;
}

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

blockquote {
    margin: 1.5em 0;
    padding-left: 2em;
    border-left: 3px solid #e1e4e8;
    color: #24292e;
}

.blog-list {
    margin-top: 2em;
}

.blog-entry {
    display: flex;
    margin-bottom: 1.5em;
    align-items: baseline;
}

.blog-date {
    width: 180px;
    flex-shrink: 0;
    color: #24292e;
}

.blog-title {
    flex-grow: 1;
}

.intro {
    margin-bottom: 2em;
}

.booklist ul {
    list-style-type: disc;
    padding-left: 1.5em;
    margin-top: 0;
}

.booklist li {
    margin: 0.5em 0;
}

i, em {
    font-style: italic;
    font-weight: inherit;
}

/* Dark mode toggle button */
.dark-mode-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: inherit;
    padding: 0;
    margin-left: 8px;
    vertical-align: middle;
    font-family: "Newsreader", serif;
    display: inline-flex;
    align-items: center;
    color: #d4af37;
    transform: translateY(2px);
}

.dark-mode-toggle:hover {
    opacity: 0.7;
}

.dark-mode-toggle svg {
    display: block;
}

html.dark-mode .dark-mode-toggle,
body.dark-mode .dark-mode-toggle {
    color: #ffd700;
}

.title-container {
    display: flex;
    align-items: baseline;
}

/* Dark mode styles */
html.dark-mode,
body.dark-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

html.dark-mode a,
body.dark-mode a {
    color: #7DD3C0;
}

html.dark-mode .post-date,
body.dark-mode .post-date {
    color: #a0a0a0;
}

html.dark-mode blockquote,
body.dark-mode blockquote {
    border-left-color: #444;
    color: #d0d0d0;
}

html.dark-mode .blog-date,
body.dark-mode .blog-date {
    color: #d0d0d0;
}

