/*
suckless-inspired stylesheet
optimized technical density, system fonts, zero layout shift
*/

:root {
  --bg-color: #fafafa;
  --text-main: #111111;
  --text-muted: #555555;
  --accent: #005cc5;
  --border-color: #dddddd;
  --code-bg: #eaeaeb;

  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

[data-theme="dark"] {
  --bg-color: #111111;
  --text-main: #e0e0e0;
  --text-muted: #8b949e;
  --accent: #58a6ff;
  --border-color: #30363d;
  --code-bg: #222222;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.layout-wrapper {
  display: flex;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
  gap: 4rem;
}

::selection {
  background: var(--accent);
  color: var(--bg-color);
}

/* Sidebar Navigation */
aside {
  width: 240px;
  flex-shrink: 0;
  position: sticky;
  top: 4rem;
  height: max-content;
}

aside h1 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  letter-spacing: -0.02em;
}

aside h2 {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 2rem;
  font-family: var(--font-mono);
}

nav ul {
  list-style: none;
  margin-bottom: 2rem;
  border-left: 1px solid var(--border-color);
  padding-left: 1rem;
}

nav li {
  margin-bottom: 0.6rem;
}

nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

nav a:hover {
  color: var(--text-main);
}

.contact-links a {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 0.5rem;
}

.contact-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.location {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  cursor: pointer;
  margin-top: 2rem;
  transition: color 0.15s ease;
}

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

/* Main Content Area */
main {
  flex-grow: 1;
  max-width: 700px;
}

section {
  margin-bottom: 4.5rem;
}

h3.section-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
}

p {
  margin-bottom: 1.2rem;
  color: var(--text-main);
}

.inline-code {
  font-family: var(--font-mono);
  background: var(--code-bg);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  font-size: 0.85em;
}

/* Philosophy */
.philosophy-content {
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.philosophy-content li {
  margin-bottom: 0.8rem;
}

.philosophy-content strong {
  color: var(--text-main);
}

/* Projects */
.project {
  margin-bottom: 3.5rem;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.project-title {
  font-size: 1.2rem;
  font-weight: 600;
}

.project-links a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
}

.project-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.project-role {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}

.project-overview {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.project-details {
  border-left: 2px solid var(--border-color);
  padding-left: 1rem;
  margin-top: 1rem;
}

.project-details h5 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 1.2rem 0 0.5rem 0;
  color: var(--text-main);
}

.project-details ul {
  padding-left: 1rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.project-details li {
  margin-bottom: 0.4rem;
}

.project-details strong {
  color: var(--text-main);
}

.tech-stack-inline {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: var(--code-bg);
  color: var(--text-muted);
  padding: 0.2rem 0.4rem;
  margin-right: 0.4rem;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 0.4rem;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.skill-category h4 {
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-main);
}

.skill-category ul {
  list-style: none;
  padding: 0;
  color: var(--text-muted);
}

.skill-category li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

/* Timeline (Experience / Education) */
.timeline-item {
  margin-bottom: 2rem;
}

.timeline-header {
  margin-bottom: 0.5rem;
}

.timeline-role {
  font-weight: 600;
  font-size: 1.05rem;
}

.timeline-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.timeline-item ul {
  padding-left: 1.2rem;
  color: var(--text-muted);
  margin-top: 0.8rem;
  font-size: 0.95rem;
}

.timeline-item li {
  margin-bottom: 0.4rem;
}

/* Responsive */
@media (max-width: 800px) {
  .layout-wrapper {
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 3rem;
  }

  aside {
    width: 100%;
    position: static;
  }

  nav ul {
    border-left: none;
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
  }

  .timeline-meta {
    flex-direction: column;
    gap: 0.2rem;
  }
}
