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

:root {
  --bg-primary: #fafafa;
  --text-primary: #333;
  --text-secondary: #666;
  --text-tertiary: #444;
  --heading: #111;
  --border: #ddd;
  --link: #0066cc;
  --link-hover: #0052a3;
  --tag-bg: #e8e8e8;
  --tag-text: #555;
  --tag-border: transparent;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #0a0a0a;
    --text-primary: #e4e4e7;
    --text-secondary: #a1a1aa;
    --text-tertiary: #d4d4d8;
    --heading: #fafafa;
    --border: #27272a;
    --link: #60a5fa;
    --link-hover: #93c5fd;
    --tag-bg: #18181b;
    --tag-text: #a1a1aa;
    --tag-border: #27272a;
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 1.1em;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

header {
  margin-bottom: 2rem;
}

h1 {
  line-height: 1;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.links a {
  color: var(--link);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

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

#about {
  margin-bottom: 2rem;
}

.two-column-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.section:last-child {
  padding-bottom: 0;
}

@media (min-width: 901px) {
  section:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
  }
}

@media (min-width: 601px) {
  header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .header-left {
    flex: 1;
  }

  .links {
    flex-shrink: 0;
  }
}

@media (max-width: 900px) {
  .two-column-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .column-right section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
  }
}

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

  .item-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

h2 {
  line-height: 1;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--heading);
}

.item {
  margin-bottom: 1.5rem;
}

.item:last-child {
  margin-bottom: 0;
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
}

.item-title {
  font-weight: 600;
  color: var(--heading);
}

.item-date {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.item-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.item-description {
  color: var(--text-tertiary);
  margin-top: 0.5rem;
}

.item-description ul {
  margin-left: 1.25rem;
  margin-top: 0.25rem;
}

.item-description li {
  margin-bottom: 0.25rem;
}

.item-description p {
  margin-bottom: 0.5rem;
}

.item-description strong {
  color: var(--text-primary);
}

.tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.tag {
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-size: 0.85rem;
  color: var(--tag-text);
}

footer {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  margin-top: 2rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
