/* ---------------------------------------------------------------------------
   Ashesh Dhakal — personal website
   Single stylesheet, no external dependencies.
--------------------------------------------------------------------------- */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f8fa;
  --text: #1f2328;
  --text-muted: #57606a;
  --accent: #0b5fff;
  --accent-hover: #0947bf;
  --border: #d8dee4;
  --card-bg: #ffffff;
  --shadow: 0 1px 3px rgba(31, 35, 40, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --bg-alt: #161b22;
    --text: #e6edf3;
    --text-muted: #9198a1;
    --accent: #539bf5;
    --accent-hover: #7db4f7;
    --border: #30363d;
    --card-bg: #161b22;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

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

/* Header ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 3.75rem;
}

.nav-brand {
  font-weight: 700;
  color: var(--text);
}

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

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

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

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

/* Hero -------------------------------------------------------------------- */

.hero {
  padding: 6rem 1.25rem 5rem;
  text-align: center;
}

.hero-eyebrow {
  font-size: 1.05rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0.4rem 0 1rem;
}

.hero-subtitle {
  max-width: 38rem;
  margin: 0 auto 2rem;
  font-size: 1.15rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #ffffff;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Sections ---------------------------------------------------------------- */

.section {
  padding: 4rem 1.25rem;
  border-top: 1px solid var(--border);
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.subsection-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
}

/* Projects ---------------------------------------------------------------- */

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1.25rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.4rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
}

.project-card h3 {
  font-size: 1.08rem;
  line-height: 1.35;
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-grow: 1;
}

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

.tags li {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  padding: 0.15rem 0.6rem;
  border-radius: 1rem;
}

.card-link {
  font-weight: 600;
  font-size: 0.92rem;
}

/* About ------------------------------------------------------------------- */

.about-intro p + p {
  margin-top: 1rem;
}

.about-intro {
  max-width: 46rem;
  color: var(--text);
}

.venture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1.25rem;
}

.venture-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.4rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

a.venture-card:hover {
  border-color: var(--accent);
  text-decoration: none;
  color: var(--text);
  transform: translateY(-2px);
}

.venture-card h4 {
  font-size: 1.05rem;
}

.venture-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  flex-grow: 1;
}

.venture-url {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.venture-prose {
  margin-top: 1.75rem;
  max-width: 46rem;
  color: var(--text-muted);
}

.venture-prose p + p {
  margin-top: 1rem;
}

.about-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

@media (max-width: 44rem) {
  .about-columns {
    grid-template-columns: 1fr;
  }
}

.skill-list {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.skill-list li {
  padding-left: 1.4rem;
  position: relative;
  color: var(--text);
}

.skill-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

/* Timeline ---------------------------------------------------------------- */

.timeline {
  list-style: none;
  display: grid;
  gap: 1.4rem;
  border-left: 2px solid var(--border);
  padding-left: 1.25rem;
}

.timeline li {
  position: relative;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -1.65rem;
  top: 0.45em;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}

.timeline h4 {
  font-size: 1rem;
}

.timeline p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.timeline-date {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}

/* Recommendations ----------------------------------------------------------- */

.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
  gap: 1.25rem;
}

.recommendation-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.6rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
}

.recommendation-card blockquote {
  color: var(--text);
  font-style: italic;
  flex-grow: 1;
}

.recommendation-card blockquote::before {
  content: "\201C";
  display: block;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--accent);
  font-style: normal;
}

.recommendation-card figcaption {
  display: flex;
  flex-direction: column;
}

.recommendation-card figcaption span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Footer -------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 2rem 0;
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
}

/* Small screens -------------------------------------------------------------- */

@media (max-width: 40rem) {
  .nav {
    flex-direction: column;
    height: auto;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    gap: 0.5rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .hero {
    padding-top: 4rem;
    padding-bottom: 3.5rem;
  }
}
