/* CSS Variables for theming */
:root {
  --bg-color: #ffffff;
  --text-color: #333333;
  --link-color: #0066cc;
  --link-hover-color: #004499;
  --muted-color: #666666;
}

/* Dark mode - automatically applied based on system preference */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --link-color: #6db3f2;
    --link-hover-color: #9ecbf7;
    --muted-color: #999999;
  }
}

/* Base styles */
* {
  box-sizing: border-box;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica,
    Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  font-size: 16px;
  padding: 0 20px;
  margin: 60px auto;
  max-width: 700px;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

/* Preamble / Header */
#preamble {
  text-align: center;
  margin-bottom: 1.25rem;
}

.title {
  font-size: 2.5rem;
  margin-bottom: 0.2em;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

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

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

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

.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 1.25rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.social-links a:hover {
  text-decoration: none;
}

.social-icon {
  display: block;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Content */
.content {
  margin-top: 1.25rem;
}

.intro {
  text-align: center;
}

h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

p {
  margin: 0.5rem 0 1rem 0;
}

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

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

/* Lists */
ul {
  padding-left: 1.5rem;
  margin: 0.5rem 0;
}

li {
  margin-bottom: 0.5rem;
}

li::marker {
  color: var(--muted-color);
}

/* Date styling */
.date {
  opacity: 0.5;
  white-space: nowrap;
}

/* Table styling */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

thead {
  border-bottom: 2px solid var(--muted-color);
}

th {
  text-align: left;
  padding: 0.75rem 0.5rem;
  font-weight: 600;
  color: var(--text-color);
}

td {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--muted-color);
}

tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background-color: rgba(128, 128, 128, 0.05);
}

/* Mobile responsiveness */
@media (max-width: 600px) {
  body {
    font-size: 14px;
    padding: 0 15px;
    margin: 30px auto;
  }

  .title {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 0.9rem;
  }
}
