/* =========================================================
   Sishir Adhikari — personal site
   Plain CSS, no framework. Mobile-first & responsive.
   Tweak the custom properties below to re-theme quickly.
   ========================================================= */

:root {
  /* Colors */
  --bg: #0f1115;
  --surface: #171a21;
  --border: #262b36;
  --text: #e7e9ee;
  --muted: #9aa3b2;
  --accent: #6ea8fe;
  --accent-strong: #4c8dff;

  /* Layout */
  --maxw: 960px;
  --radius: 14px;
  --gap: 1.5rem;

  /* Modern system font stack — no external font needed */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

/* ---------- Base / reset-ish ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 17, 21, 0.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
}

.nav__brand {
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.2px;
}

.nav__links {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

.nav__links a {
  color: var(--muted);
  font-size: 0.95rem;
}
.nav__links a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(3rem, 10vw, 6rem);
  text-align: center;
}

.hero__name {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  line-height: 1.1;
  margin: 0 0 0.75rem;
}

.hero__tagline {
  color: var(--muted);
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  max-width: 40ch;
  margin: 0 auto 2rem;
}

.hero__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.05s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn--primary {
  background: var(--accent-strong);
  color: #06122b;
}
.btn--primary:hover {
  background: var(--accent);
  color: #06122b;
}
.btn--ghost {
  border-color: var(--border);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--accent);
}

/* ---------- Sections ---------- */
.section {
  padding-block: clamp(2.5rem, 7vw, 4.5rem);
}

.section__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 0.5rem;
}

.section__subtitle {
  color: var(--muted);
  margin: 0 0 2rem;
}

.prose {
  color: var(--muted);
  max-width: 65ch;
  font-size: 1.05rem;
}

/* ---------- Project cards ---------- */
.cards {
  display: grid;
  gap: var(--gap);
  grid-template-columns: 1fr;
}

/* 2 columns on tablets, 3 on desktop */
@media (min-width: 560px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 860px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.card__title {
  margin: 0;
  font-size: 1.15rem;
}
.card__desc {
  margin: 0;
  color: var(--muted);
  flex: 1;
}
.card__link {
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: clamp(2.5rem, 7vw, 4rem);
  text-align: center;
}

.footer__title {
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  margin: 0 0 1.25rem;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin: 0 0 1.5rem;
  padding: 0;
}

.footer__copy {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}
