/* 
  Desiderantes Site Styles
  Matching the clean typography and minimalism of desiderantes.com
*/

:root {
  --bg-color: #ffffff;
  --text-color: #1e1f21;
  --muted-color: #666666;
  --border-color: #e5e7eb;
  --primary-color: #db0042; /* Desiderantes red accent */
  --link-hover: #000000;
  
  --font-title: 'IBM Plex Mono', monospace;
  --font-heading: 'Libre Franklin', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --max-width: 780px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #1e1f21;
    --text-color: #f3f4f6;
    --muted-color: #9ca3af;
    --border-color: #374151;
    --primary-color: #ff4d7d;
    --link-hover: #ffffff;
  }
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-body);
  line-height: 1.7;
  font-size: 1.0625rem;
  padding: 2.5rem 1.25rem 4rem;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 0.5rem;
}

.site-title {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-title a {
  color: var(--primary-color);
  text-decoration: none;
}

.site-title a:hover {
  text-decoration: underline;
}

.site-tagline {
  font-size: 1.1rem;
  color: var(--muted-color);
  margin-top: 0.2rem;
}

.site-nav a {
  font-family: var(--font-title);
  font-size: 0.95rem;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Divider */
.divider {
  border: 0;
  border-top: 1px solid var(--border-color);
  margin: 1.75rem 0 2rem;
}

/* Intro Section */
.intro {
  margin-bottom: 2.5rem;
  font-size: 1.125rem;
  color: var(--muted-color);
}

/* Projects List */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.project-item {
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--border-color);
}

.project-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.project-title a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.project-title a:hover {
  color: var(--primary-color);
}

.project-desc {
  color: var(--muted-color);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.project-desc code {
  font-family: var(--font-title);
  font-size: 0.9em;
  background-color: rgba(125, 125, 125, 0.1);
  padding: 0.15em 0.35em;
  border-radius: 4px;
}

/* Links */
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary-color);
  text-decoration: none;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--primary-color);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.link-btn:hover {
  background-color: var(--primary-color);
  color: #ffffff;
}

.link-btn.secondary {
  color: var(--muted-color);
  border-color: var(--border-color);
}

.link-btn.secondary:hover {
  background-color: var(--border-color);
  color: var(--text-color);
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  font-size: 0.875rem;
  color: var(--muted-color);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-content a {
  color: var(--primary-color);
  text-decoration: none;
}

.footer-content a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
  body {
    padding: 1.5rem 1rem 3rem;
  }
  .site-header {
    flex-direction: column;
    gap: 0.75rem;
  }
  .project-title {
    font-size: 1.2rem;
  }
}
