/* 
 * Ridom Khan - Personal Website
 * Minimal, clean design inspired by ssi.inc and karpathy.ai
 * Pure HTML & CSS, no frameworks
 */

:root {
  --bg: #0a0a0b;
  --bg-secondary: #111113;
  --text: #e8e6e3;
  --text-muted: #8a8a8a;
  --accent: #c4a35a;
  --accent-hover: #ddb968;
  --border: #222224;
  --link: #e8e6e3;
  --link-hover: #fff;
}

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

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

body {
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
}

/* Typography */
h1 {
  font-size: 2.4rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

h2 {
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

em {
  font-style: italic;
  color: var(--accent);
}

strong {
  font-weight: 500;
}

/* Header */
header {
  margin-bottom: 4rem;
  text-align: center;
}

.tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-links a {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--text-muted);
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

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

/* Sections */
section {
  margin-bottom: 3.5rem;
}

.intro p {
  font-size: 1.15rem;
}

.intro p:first-child {
  font-size: 1.3rem;
}

.experience-block {
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--border);
}

.summary {
  margin-top: 1.5rem;
  font-style: italic;
  color: var(--text-muted);
}

/* Projects */
.projects {
  list-style: none;
}

.projects li {
  margin-bottom: 0.75rem;
}

.projects a {
  font-size: 1.1rem;
}

.projects a::before {
  content: "→ ";
  color: var(--accent);
}

/* Contact */
.contact a {
  font-size: 1.1rem;
  color: var(--accent);
}

/* Footer */
footer {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* Responsive */
@media (max-width: 600px) {
  html {
    font-size: 16px;
  }

  main {
    padding: 3rem 1.25rem 2rem;
  }

  h1 {
    font-size: 2rem;
  }

  .intro p:first-child {
    font-size: 1.15rem;
  }

  .social-links {
    gap: 1rem;
  }
}

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

/* Focus states for accessibility */
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
