/* =============================================
   tapuranjan.com — Personal Site Styles
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
  --bg:      #0d0d0d;
  --text:    #e8e8e8;
  --accent:  #6ee7b7;
  --muted:   #888888;
  --border:  #222222;
}

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

/* ── Base ── */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ── */
.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}

section:last-of-type {
  border-bottom: none;
}

/* ── Typography ── */
h1 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}

h2 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 2rem;
}

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

p:last-child {
  margin-bottom: 0;
}

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

a:hover {
  text-decoration: underline;
}

/* ── Header / Hero ── */
header {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--border);
}

header .tagline {
  font-size: 1rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* ── Nav ── */
nav {
  margin-top: 2rem;
  display: flex;
  gap: 1.5rem;
}

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

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

/* ── Projects ── */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.project-card {
  border-left: 2px solid var(--accent);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.project-card:last-child {
  margin-bottom: 0;
}

.project-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.project-card h3 a {
  color: var(--text);
}

.project-card h3 a:hover {
  color: var(--accent);
  text-decoration: none;
}

.project-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
}

/* ── Blog ── */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.blog-entry {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.blog-entry time {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
  min-width: 6rem;
}

.blog-entry a {
  font-size: 0.95rem;
  color: var(--text);
}

.blog-entry a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ── Social / Contact ── */
.social-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  min-width: 5rem;
}

.social-list a {
  font-size: 0.95rem;
}

/* ── Footer ── */
footer {
  padding: 3rem 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  h1 {
    font-size: 1.6rem;
  }

  section {
    padding: 3rem 0;
  }

  header {
    padding: 3.5rem 0 3rem;
  }

  nav {
    gap: 1rem;
  }

  .blog-entry {
    flex-direction: column;
    gap: 0.2rem;
  }

  .blog-entry time {
    min-width: unset;
  }
}
