/* 
  Senkug - style.css
  Minimalist, archival, research-oriented.
*/

:root {
  /* Color Palette - Light Mode (Default) */
  --bg-color: #f8f9fa;
  --text-primary: #212529;
  --text-secondary: #495057;
  --text-tertiary: #868e96;
  --border-color: #dee2e6;
  --link-color: #0b5cff;
  --link-hover: #003ebb;
  
  /* Status Colors */
  --status-active-bg: #e3fcef;
  --status-active-text: #0ca678;
  --status-wip-bg: #fff3cd;
  --status-wip-text: #f59f00;
  --status-planned-bg: #f1f3f5;
  --status-planned-text: #868e96;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  
  /* Spacing & Layout */
  --max-width: 680px;
  --spacing-base: 1rem;
  --spacing-section: 4rem;
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --bg-color: #121212;
  --text-primary: #e9ecef;
  --text-secondary: #adb5bd;
  --text-tertiary: #6c757d;
  --border-color: #343a40;
  --link-color: #66a8ff;
  --link-hover: #99c7ff;

  --status-active-bg: rgba(12, 166, 120, 0.15);
  --status-active-text: #20c997;
  --status-wip-bg: rgba(245, 159, 0, 0.15);
  --status-wip-text: #ffd43b;
  --status-planned-bg: rgba(134, 142, 150, 0.15);
  --status-planned-text: #adb5bd;
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
  padding-top: 4rem; /* For fixed nav */
}

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

/* Typography */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

p, ul, ol {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--text-secondary);
}

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

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Navigation */
#site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(var(--bg-color), 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 3.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-brand:hover {
  text-decoration: none;
  color: var(--link-color);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

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

/* Theme Toggle Button */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  transition: color 0.2s ease;
}

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

[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; }
/* Default state (no attribute) assumes light */
:root:not([data-theme="dark"]) .sun-icon { display: none; }
:root:not([data-theme="dark"]) .moon-icon { display: block; }

/* Sections */
.hero-section {
  padding: 5rem 0 3rem;
}

.hero-section h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.subtitle {
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.description {
  font-size: 1.125rem;
  color: var(--text-primary);
  max-width: 90%;
}

.section-divider {
  border: 0;
  height: 1px;
  background-color: var(--border-color);
  margin: 0;
}

.content-section {
  padding: var(--spacing-section) 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-size: 1.25rem;
  margin-bottom: 0;
}

/* Badges */
.status-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.status-active {
  background-color: var(--status-active-bg);
  color: var(--status-active-text);
}

.status-wip {
  background-color: var(--status-wip-bg);
  color: var(--status-wip-text);
}

.status-planned {
  background-color: var(--status-planned-bg);
  color: var(--status-planned-text);
}

/* Lists */
.focus-list {
  padding-left: 1.25rem;
}

.focus-list li {
  margin-bottom: 0.75rem;
}

.planned-topics h3 {
  font-size: 1rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 500;
  color: var(--text-primary);
}

.planned-topics ul {
  padding-left: 1.25rem;
}

/* Contact */
.email-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 1.125rem;
  margin-top: 1rem;
}

/* Meta Notes */
.meta-note {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin-top: 1.5rem;
}

/* Footer */
.site-footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border-color);
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

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

.footer-content p {
  margin: 0;
  color: var(--text-tertiary);
}

/* Responsive */
@media (max-width: 600px) {
  .nav-links {
    gap: 1rem;
  }
  .nav-links a {
    font-size: 0.85rem;
  }
  .hero-section {
    padding: 3rem 0 2rem;
  }
  .content-section {
    padding: 3rem 0;
  }
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
