/* Minimal personal site CSS - inspired by boz.com, nabeelqu.co, danschulz.net, julian.ac */

:root {
  --text-color: #333;
  --text-muted: #666;
  --link-color: #333;
  --link-hover: #0066cc;
  --background: #fff;
  --max-width: 640px;
}

/* Dark mode support - auto (system preference) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --text-color: #e0e0e0;
    --text-muted: #999;
    --link-color: #e0e0e0;
    --link-hover: #6db3f2;
    --background: #1a1a1a;
  }
}

/* Dark mode - manual override */
:root[data-theme="dark"] {
  --text-color: #e0e0e0;
  --text-muted: #999;
  --link-color: #e0e0e0;
  --link-hover: #6db3f2;
  --background: #1a1a1a;
}

/* Theme toggle button */
.theme-toggle {
  position: absolute;
  top: 2rem;
  right: 1.5rem;
  background: none;
  border: 1px solid var(--text-muted);
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  font-size: 1rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.theme-toggle:hover {
  color: var(--link-hover);
  border-color: var(--link-hover);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 18px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--background);
  margin: 0;
  padding: 2rem 1.5rem;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

/* Typography */
h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
}

h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

p {
  margin: 0 0 1rem 0;
}

/* Links */
a {
  color: var(--link-color);
  text-decoration: none;
}

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

/* Navigation */
nav {
  margin-bottom: 2.5rem;
}

nav a {
  color: var(--text-muted);
  margin-right: 1.25rem;
  font-size: 0.9rem;
}

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

/* Header */
header {
  margin-bottom: 2rem;
}

.intro {
  color: var(--text-muted);
  margin-bottom: 0;
}

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

.writing-list li {
  margin-bottom: 0.75rem;
}

.writing-list a {
  font-weight: 500;
}

.writing-list .description {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Archive link */
.archive-link {
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

.archive-link a {
  color: var(--text-muted);
}

/* Footer */
footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e0e0e0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (prefers-color-scheme: dark) {
  footer {
    border-top-color: #333;
  }
}

footer a {
  color: var(--text-muted);
  margin-right: 1rem;
}

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

/* About page specifics */
.bio {
  margin-bottom: 2rem;
}

.contact-list {
  list-style: none;
  padding: 0;
}

.contact-list li {
  margin-bottom: 0.5rem;
}

/* Favorites list */
.favorites-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.favorites-list li {
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

.favorites-list li strong {
  font-weight: 600;
}
