:root {
  --text: #fff;
  --text-muted: #fff;
  --bg: #0a0a0a;
  --link: #5b8cff;
  --border: #1f2937;
  --muted: #9ca3af;
  --font: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

:root[data-theme="light"] {
  --text: #111827;
  --text-muted: #111827;
  --bg: #ffffff;
  --link: #2563eb;
  --border: #e5e7eb;
  --muted: #6b7280;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

/* Single style: everything inherits font, weight, size, line-height from body */
h1, h2, h3, h4, h5, h6, p, span, a, div {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  max-width: 48rem;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.name {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
}

.name a:hover {
  color: var(--text-muted);
}

/* Nav */
.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1;
}

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

.nav a:hover,
.nav a.active {
  color: var(--text);
}

/* Main */
.main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Tagline */
.tagline {
  margin: 0;
}

.tagline a {
  text-decoration: underline;
}

.tagline a:hover {
  color: var(--text);
}

/* Sections */
.section {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.section h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  line-height: 28px;
}

/* Blog post */
.blog-post h2 {
  margin: 0 0 1rem;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  line-height: 28px;
}

.blog-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 0 1.5rem;
}

.blog-post p {
  margin: 0 0 1rem;
  text-align: justify;
}

/* Work entries */
.work-entry {
  margin-bottom: 1.25rem;
}

.work-entry p {
  margin: 0;
}

.work-entry .company-link {
  text-decoration: underline;
}

.work-entry .company-link:hover {
  color: var(--text);
}

.work-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.work-dates,
.edu-date {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

/* Education */
.edu-entry {
  margin-bottom: 1rem;
}

.edu-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.edu-sub {
  color: var(--text);
}

.edu-school .company-link {
  text-decoration: underline;
}

.edu-school .company-link:hover {
  color: var(--text);
}

.edu-sub {
  margin-top: 0.1rem;
}

/* Footer links */
.links {
  padding-top: 1rem;
}

.links p {
  margin: 0.15rem 0;
}

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

.links a:hover {
  color: var(--text);
}
