:root { --bg-color: #ffffff; --text-color: #333333; --accent-color: #0056b3; --border-color: #e0e0e0; --hover-color: #003d82; --theme-bg: #f5f5f5; --theme-border: #ddd; --theme-hover: #e0e0e0; --date-color: #555555; } /* Dark theme variables when system prefers dark mode (auto setting) */ @media (prefers-color-scheme: dark) { :root { --bg-color: #1a1a1a; --text-color: #e0e0e0; --accent-color: #5fa9ff; --border-color: #404040; --hover-color: #8ac2ff; --theme-bg: #2d2d2d; --theme-border: #404040; --theme-hover: #3d3d3d; --date-color: #a0a0a0; } } /* Light theme variables when manually selected */ html[data-theme='light'] { --bg-color: #ffffff; --text-color: #333333; --accent-color: #0056b3; --border-color: #e0e0e0; --hover-color: #003d82; --theme-bg: #f5f5f5; --theme-border: #ddd; --theme-hover: #e0e0e0; --date-color: #555555; } /* Dark theme variables when manually selected */ html[data-theme='dark'] { --bg-color: #1a1a1a; --text-color: #e0e0e0; --accent-color: #5fa9ff; --border-color: #404040; --hover-color: #8ac2ff; --theme-bg: #2d2d2d; --theme-border: #404040; --theme-hover: #3d3d3d; --date-color: #a0a0a0; } body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; line-height: 1.6; color: var(--text-color); background-color: var(--bg-color); margin: 0; padding: 20px; max-width: 800px; margin: 0 auto; } h1, h2, h3 { color: var(--text-color); margin-top: 1.5em; margin-bottom: 0.5em; } h1 { font-size: 2.5em; border-bottom: 2px solid var(--accent-color); padding-bottom: 0.3em; } h2 { font-size: 2em; color: var(--accent-color); } h3 { font-size: 1.5em; } a { color: var(--accent-color); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; font-weight: 500; transition: all 0.3s ease; } a:hover, a:focus { color: var(--hover-color); text-decoration-thickness: 2px; outline: none; } a:focus { outline: 2px solid var(--accent-color); outline-offset: 2px; } .section { margin-bottom: 2em; padding: 1em; border: 1px solid var(--border-color); border-radius: 5px; } .entry { margin-bottom: 1.5em; } .date { color: var(--date-color); font-style: italic; margin: 0.5em 0; } .overview { font-weight: 500; margin: 0.5em 0; } ul { margin: 0.5em 0; padding-left: 1.5em; } li { margin: 0.3em 0; } hr { border: none; border-top: 1px solid var(--border-color); margin: 2em 0; } .theme-switch { position: fixed; top: 20px; right: 20px; z-index: 100; } #themeToggle { padding: 8px 16px; background-color: var(--theme-bg); border: 1px solid var(--theme-border); border-radius: 4px; cursor: pointer; font-size: 14px; color: var(--text-color); transition: all 0.3s ease; } #themeToggle:hover { background-color: var(--theme-hover); } #themeToggle:focus { outline: 2px solid var(--accent-color); outline-offset: 2px; } @media (max-width: 600px) { body { padding: 10px; } h1 { font-size: 2em; } h2 { font-size: 1.5em; } h3 { font-size: 1.2em; } }