@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
  --bg-color: #1a1a1a;
  --text-color: #ffffff;
  --border-color: #3a3a3a;
  --footer-text: #888;
  --accent-color: #0066ff;
}

body.light-mode {
  --bg-color: #fafafa;
  --text-color: #1a1a1a;
  --border-color: #e0e0e0;
  --footer-text: #777;
  --accent-color: #60ba44;
}

body {
  font-family: 'Aptos', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  max-width: 720px;
  margin: 40px auto;
  padding: 0 16px;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}

header h1 {
  margin: 0;
  font-size: 2rem;
  font-family: Georgia, serif;
  color: var(--text-color);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--text-color);
  transition: color 0.2s ease;
  cursor: pointer;
}

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

section {
  margin-bottom: 32px;
  display: none;
}

section.view.active {
  display: block;
}

section h2 {
  margin-bottom: 8px;
  font-size: 1.3rem;
  font-family: Georgia, serif;
  color: var(--text-color);
}

.bio-section {
  margin-bottom: 32px;
}

.bio-section p {
  margin-bottom: 12px;
}

.bio-section p:last-child {
  margin-bottom: 0;
}

.bio-section a {
  color: var(--accent-color);
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.bio-section a:hover {
  opacity: 0.8;
}

.time-section {
  margin-bottom: 32px;
}

.time-section h3 {
  margin-bottom: 12px;
  font-size: 1.1rem;
  font-family: Georgia, serif;
  color: var(--text-color);
}

.time-section ul {
  margin: 0;
  padding-left: 20px;
  list-style-type: disc;
}

.time-section li {
  margin-bottom: 8px;
}

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

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

.time-section a {
  text-decoration: underline;
  color: var(--accent-color);
  transition: color 0.2s ease;
}

.time-section a:hover {
  opacity: 0.8;
}

footer {
  margin-top: 40px;
  font-size: 0.8rem;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-quote {
  margin: 0;
  color: var(--footer-text);
  font-style: italic;
}

footer a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--accent-color);
}

.theme-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  background: var(--border-color);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.3s ease;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--accent-color);
}

.theme-toggle .toggle-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: var(--text-color);
  border-radius: 50%;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.theme-toggle.active .toggle-slider {
  transform: translateX(20px);
}

/* Article page styles */
.article-content {
  margin-bottom: 32px;
}

.article-title {
  font-size: 2rem;
  font-family: Georgia, serif;
  color: var(--text-color);
  margin-bottom: 24px;
  line-height: 1.3;
}

.article-body {
  font-size: 1rem;
  line-height: 1.7;
}

.article-body p {
  margin-bottom: 1.5em;
}

.article-body p:last-child {
  margin-bottom: 0;
}

.article-date {
  margin-top: 32px;
  margin-bottom: 0;
  color: var(--footer-text);
  font-size: 0.9rem;
}

header h1 a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

header h1 a:hover {
  color: var(--accent-color);
}

/* Writing section list */
.article-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-list li {
  margin-bottom: 16px;
}

.article-list a {
  font-size: 1rem;
  color: var(--text-color);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.article-list a:hover {
  color: var(--accent-color);
}
