/* ============================================
   VARUN & AKSHITA — SHARED SITE STYLES
   Warm, personal, minimal
   ============================================ */

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

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

:root {
  --cream:    #faf7f2;
  --sand:     #f0e9dc;
  --terracotta: #c4663a;
  --terra-light: #e8876a;
  --brown:    #5a3e2b;
  --muted:    #8c7b6e;
  --text:     #2e2218;
  --white:    #ffffff;

  --font-serif: 'Lora', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --max-width: 900px;
  --nav-height: 64px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--cream);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--brown);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }

p { color: var(--text); }

a {
  color: var(--terracotta);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--terra-light); }

em { font-style: italic; }

/* --- LAYOUT --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 72px 0;
}

/* --- NAVIGATION --- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--cream);
  border-bottom: 1px solid var(--sand);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brown);
  letter-spacing: 0.01em;
}
.nav-logo:hover { color: var(--terracotta); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--terracotta);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--brown);
  margin: 5px 0;
  transition: all 0.3s;
}

/* --- FOOTER --- */
footer {
  background-color: var(--brown);
  color: var(--sand);
  padding: 40px 0;
  text-align: center;
  font-size: 0.875rem;
}

footer a {
  color: var(--terra-light);
}

footer .footer-names {
  font-family: var(--font-serif);
  font-size: 1rem;
  margin-bottom: 8px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background-color: var(--terracotta);
  color: var(--white);
}
.btn-primary:hover {
  background-color: var(--terra-light);
  color: var(--white);
}

.btn-outline {
  background-color: transparent;
  border: 1.5px solid var(--terracotta);
  color: var(--terracotta);
}
.btn-outline:hover {
  background-color: var(--terracotta);
  color: var(--white);
}

/* --- CARDS --- */
.card {
  background: var(--white);
  border-radius: 8px;
  padding: 28px;
  border: 1px solid var(--sand);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 4px 20px rgba(90, 62, 43, 0.1);
  transform: translateY(-2px);
}

.card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--terracotta);
  background-color: #fdf0ea;
  border-radius: 3px;
  padding: 3px 8px;
  margin-bottom: 12px;
}

.card h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

/* --- DIVIDER --- */
.divider {
  width: 48px;
  height: 3px;
  background-color: var(--terracotta);
  border: none;
  border-radius: 2px;
  margin: 16px 0 32px;
}

/* --- SECTION HEADER --- */
.section-header {
  margin-bottom: 48px;
}

.section-header h2 {
  margin-bottom: 0;
}

/* --- GRID LAYOUTS --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* --- TAGS (skill/tech chips) --- */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--sand);
  border-radius: 3px;
  padding: 3px 10px;
  font-weight: 500;
}

/* --- RESPONSIVE --- */
@media (max-width: 700px) {
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--sand);
    padding: 16px 24px 24px;
    gap: 16px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  section {
    padding: 48px 0;
  }
}
