/* =============================================
   PRANAVHARAN.COM — style.css
   ============================================= */

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

/* ---- CSS Variables ---- */
:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #666666;
  --border: #e8e8e8;
  --nav-bg: rgba(255, 255, 255, 0.85);
  --link-hover: #000000;
  --accent: #111111;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f0f;
    --text: #ededed;
    --muted: #888888;
    --border: #222222;
    --nav-bg: rgba(15, 15, 15, 0.85);
    --link-hover: #ffffff;
    --accent: #ededed;
  }
}

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

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

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

/* ---- Typography ---- */
h1, h2, h3 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

h1 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

h2 {
  font-size: 0.7rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

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

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

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

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

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

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

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

/* ---- Nav ---- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--nav-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-name {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
}

.nav-name:hover {
  text-decoration: none;
}

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

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

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

/* ---- Hero / About ---- */
#about .hero-intro {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
}

#about .hero-intro p {
  margin-bottom: 1rem;
}

.social-links {
  margin-top: 1.5rem;
  display: flex;
  gap: 1.25rem;
}

.social-links a {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

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

/* ---- Work ---- */
.work-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.work-item {}

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

.work-title {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
}

.work-date {
  font-size: 0.8125rem;
  color: var(--muted);
  white-space: nowrap;
}

.work-bullets {
  list-style: none;
  padding: 0;
}

.work-bullets li {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  padding-left: 1rem;
  position: relative;
  margin-bottom: 0.3rem;
}

.work-bullets li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--border);
}

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

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

.project-item:first-child {
  padding-top: 0;
}

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

.project-title {
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

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

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

.project-arrow {
  color: var(--muted);
  font-size: 0.75rem;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

/* ---- Writing ---- */
.writing-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.writing-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}

.writing-list li:first-child {
  padding-top: 0;
}

.writing-list li:last-child {
  border-bottom: none;
}

.writing-list a {
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
  flex: 1;
}

.writing-list a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.writing-arrow {
  font-size: 0.75rem;
  color: var(--muted);
  flex-shrink: 0;
}

.writing-text {
  font-size: 0.9rem;
  color: var(--muted);
  flex: 1;
}

/* ---- Now ---- */
#now .now-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

#now .now-line {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.7;
}

#now .now-line .label {
  color: var(--muted);
  margin-right: 0.3rem;
}

.curious-block {
  margin-bottom: 1.75rem;
}

.curious-block p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.8;
}

.reach-out {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.reach-out p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.reach-out a {
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- Footer ---- */
footer {
  padding: 2rem 0 3rem;
}

.footer-inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ---- Mobile ---- */
@media (max-width: 640px) {
  h1 {
    font-size: 1.6rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .work-header {
    flex-direction: column;
    gap: 0.1rem;
  }

  .writing-list li {
    flex-direction: row;
    align-items: baseline;
  }
}
