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

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

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

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

html {
    background-color: #fffff8;
}

body {
    line-height: 1.6;
    font-size: 17px;
    margin: 0;
    padding: 0;
    font-family: "Edgar", serif;
    color: #333;
    background-color: #fffff8;
    -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: 500;
    display: block;
    margin-bottom: 20px;
}

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

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

#menu a::after {
    content: none;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: background 0.2s;
    border-radius: 4px;
}

a::after {
    content: "\FEFF°";
    margin-left: 0.10em;
    font-size: 90%;
    position: relative;
    top: -0.10em;
    color: #2a9d8f;
}

a:hover {
    background: #e8f5f3;
}

a:active {
    color: #777;
}

p {
    margin: 16px 0;
}

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

.post-date {
    color: #666;
    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: 1.5em;
    border-left: 3px solid #ccc;
    color: #555;
    font-style: italic;
}

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

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

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

.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;
}

b, strong {
    font-weight: 500;
}

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

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

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

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


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

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

html.dark-mode a,
body.dark-mode a {
    color: inherit;
}

html.dark-mode a::after,
body.dark-mode a::after {
    color: #5ec4b6;
}

html.dark-mode a:hover,
body.dark-mode a:hover {
    background: #2a3a38;
}

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

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

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

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

