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

:root {
  --bg: #1a1a1a;
  --surface: #242424;
  --border: #333;
  --text: #e0e0e0;
  --text-dim: #999;
  --accent: #fff;
  --accent2: #666;
  --green: #4ade80;
  --radius: 8px;
  --max-w: 860px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* === HEADER === */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky; top: 0; z-index: 10;
}
header .inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}
nav a {
  margin-left: 2rem;
  font-size: 0.9rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
nav a:hover, nav a.active { color: var(--accent); text-decoration: none; }

/* === MAIN === */
main {
  flex: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  width: 100%;
}

/* === HERO === */
.hero {
  text-align: center;
  padding: 4rem 0;
}
.hero h1 {
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.hero .tagline {
  font-size: 1.25rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
}
.hero .cta {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: var(--radius);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero .cta:hover { background: var(--accent); color: var(--bg); text-decoration: none; }

/* === SECTIONS === */
section { margin-bottom: 4rem; }
section h2 {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* === CARDS === */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card h3 { font-weight: 500; margin-bottom: 0.5rem; }
.card p { color: var(--text-dim); font-size: 0.9rem; line-height: 1.6; }

/* === BLOG LIST === */
.blog-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.blog-item:last-child { border: none; }
.blog-item time { color: var(--text-dim); font-size: 0.8rem; }
.blog-item h3 { font-weight: 500; margin: 0.25rem 0; }
.blog-item p { color: var(--text-dim); font-size: 0.9rem; }

/* === ARTICLE === */
article h1 { font-size: 2rem; font-weight: 300; margin-bottom: 0.5rem; }
article .meta { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 2rem; }
article p { margin-bottom: 1rem; }
article img { max-width: 100%; border-radius: var(--radius); }

/* === CONTACT === */
.contact-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
.contact-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
}
.contact-link:hover { border-color: var(--accent); text-decoration: none; }

/* === SKILLS === */
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  padding: 0.25rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* === FOOTER === */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 2rem;
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
  nav a { margin-left: 1rem; font-size: 0.8rem; }
  .hero h1 { font-size: 2rem; }
  .cards { grid-template-columns: 1fr; }
}
