* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f5f1e8;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --link: #1a4ed8;
  --link-hover: #0a2db8;
}

[data-theme="dark"] {
  --bg: #1a1a1a;
  --text: #e8e8e8;
  --muted: #999999;
  --link: #7aa7ff;
  --link-hover: #a3c1ff;
}

html,
body {
  background: var(--bg);
  color: var(--text);
  transition: background 0.2s ease, color 0.2s ease;
}

body {
  font-family: 'Roboto Mono', monospace;
  font-size: 16px;
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  position: relative;
}

h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
}

h2 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 16px;
}

p {
  margin-bottom: 16px;
}

a {
  color: var(--link);
  text-decoration: underline;
}

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

strong {
  font-weight: 700;
}

em {
  font-style: italic;
  color: var(--muted);
}

.project {
  margin-bottom: 16px;
}

.research-entry {
  margin-bottom: 12px;
}

.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: var(--text);
  padding: 8px;
  font-family: inherit;
  line-height: 1;
}

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

@media (max-width: 600px) {
  body {
    font-size: 15px;
    padding: 40px 20px 60px;
  }

  h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 18px;
  }
}
