:root {
  --bg: #2b2b2b;
  --text: #e0e0e0;
  --text-muted: #999;
  --link: #8cb4ff;
  --link-hover: #b0cfff;
  --border: #333;
  --focus: #8cb4ff;
  --font: "Inter", sans-serif;
}

[data-theme="light"] {
  --bg: #fff;
  --text: #222;
  --text-muted: #666;
  --link: #1c71d8;
  --link-hover: #1a5fb4;
  --border: #ddd;
  --focus: #1c71d8;
}

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

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--link);
  color: var(--bg);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

html {
  font-size: 19px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

.container {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* === Nav === */
.site-nav {
  padding: 1rem 0 0;
}

.site-nav .container {
  display: flex;
  justify-content: flex-end;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.8125rem;
  padding: 0.2rem 0.6rem;
  cursor: pointer;
  border-radius: 3px;
}

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

/* === Main === */
main {
  padding: 2rem 0;
}

section + section {
  margin-top: 2.5rem;
}

/* === Typography === */
h1 {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
}

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

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

strong {
  font-weight: 700;
}

/* === External links === */
.external-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.external-links a {
  font-size: 0.875rem;
}

/* === Interests === */
.interests-list {
  list-style: none;
  padding-left: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.interests-list li {
  display: inline;
}

.interests-list li + li::before {
  content: " / ";
}

/* === Projects === */
.project-list {
  list-style: none;
  padding-left: 1.25rem;
}

.project-list li {
  padding: 0.2rem 0;
}

.project-list li::before {
  content: ">";
  color: var(--text-muted);
  margin-right: 0.5rem;
  margin-left: -1.25rem;
}

/* === Footer === */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.land-acknowledgement {
  margin-bottom: 0.75rem;
}

/* === Responsive === */
@media (max-width: 600px) {
  h1 {
    font-size: 1.5rem;
  }

  .container {
    padding: 0 1rem;
  }

  main {
    padding: 1.5rem 0;
  }
}
