/* ================================
   Global styles
   ================================ */

:root {
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: var(--font-body);
  --color-text: #222;
  --color-muted: #555;
  --color-link: #0066cc;
  --color-bg: #f9f9f9;
  --color-border: #ddd;
  --max-width: 800px;
}

/* Dark theme overrides */
@media (prefers-color-scheme: dark) {
  :root {
    --color-text: #eaeaea;
    --color-muted: #aaa;
    --color-link: #66aaff;
    --color-bg: #121212;
    --color-border: #333;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  transition: color 0.3s ease, background 0.3s ease;
}

/* ================================
   Layout
   ================================ */

header,
main,
footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem;
}

header {
  text-align: center;
  margin-top: 1.5rem;
}

h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.tagline {
  color: var(--color-muted);
  font-size: 1rem;
  margin-top: 0;
}

/* ================================
   Section spacing
   ================================ */

section {
  margin: 2rem 0;
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.25rem;
}

/* ================================
   Text and links
   ================================ */

p {
  margin-bottom: 1rem;
}

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

a:hover,
a:focus {
  text-decoration: underline;
  text-shadow: 2px 2px 10px #0066cc;
  filter: dropshadow(color=#0066cc, offx=2, offy=2);
}

/* Dark theme overrides */
@media (prefers-color-scheme: dark) {
	a:hover,
	a:focus {
		text-shadow: 2px 2px 10px #66aaff;
		filter: dropshadow(color=#66aaff, offx=2, offy=2);
	}
}

/* ================================
   Lists
   ================================ */

ul {
  padding-left: 1.25rem;
  margin: 0.5rem 0 1rem;
}

/* ================================
   Project list styling
   ================================ */

.project-list {
  list-style: none;
  padding-left: 0;
  margin: 0.5rem 0 1rem;
}

.project-list li {
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  transition: background 0.2s ease;
}

/*
.project-list li:hover {
  background: rgba(0, 102, 204, 0.1);
}

@media (prefers-color-scheme: dark) {
  .project-list li:hover {
    background: rgba(102, 170, 255, 0.15);
  }
}
*/

/* ================================
   Contact and footer
   ================================ */

.contact a {
  margin: 0 0.5rem;
}

footer {
  text-align: center;
  color: var(--color-muted);
  font-size: 0.875rem;
  border-top: 1px solid var(--color-border);
  margin-top: 3rem;
  padding-top: 1rem;
}

/* ================================
   Responsive adjustments
   ================================ */

@media (max-width: 600px) {
  body {
    font-size: 0.95rem;
  }

  header,
  main,
  footer {
    padding: 1rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.1rem;
  }
}
