/* ============================================
   Ajay Patel — Personal Website
   Minimalist, clean design with outdoors palette
   ============================================ */

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

:root {
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;

  --forest: #4a6741;
  --forest-light: #5c7f52;
  --sage: #87a878;
  --moss: #6b7c5e;
  --clay: #b5906f;

  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 680px;
  --side-padding: 1.5rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-serif);
  background: var(--stone-50);
  color: var(--stone-800);
  line-height: 1.7;
  min-height: 100vh;
}

a {
  color: var(--forest);
  text-decoration: none;
  border-bottom: 1px solid var(--stone-200);
  transition: border-color 0.2s ease;
}

a:hover {
  border-color: var(--forest);
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  background: rgba(74, 103, 65, 0.15);
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--side-padding);
}

/* ---------- Header ---------- */
.header {
  padding: 3rem 0 0;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.header__name {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--stone-900);
  border: none;
}

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

.header__nav a {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--stone-500);
  border: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.header__nav a:hover {
  color: var(--stone-900);
}

/* ---------- Hero ---------- */
.hero {
  padding: 6rem 0 5rem;
}

.hero__greeting {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 300;
  line-height: 1.3;
  color: var(--stone-900);
  letter-spacing: -0.01em;
}

.hero__greeting strong {
  font-weight: 600;
}

.hero__sub {
  margin-top: 1.5rem;
  font-size: 1.0625rem;
  color: var(--stone-500);
  max-width: 520px;
  font-weight: 300;
}

/* ---------- Divider ---------- */
.divider {
  border: none;
  height: 1px;
  background: var(--stone-200);
  margin: 0;
}

/* ---------- Section ---------- */
.section {
  padding: 3.5rem 0;
}

.section__label {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--stone-400);
  margin-bottom: 1.75rem;
}

/* ---------- About ---------- */
.about__layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.about__photo {
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 1;
}

.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(15%);
}

.about__text p {
  margin-bottom: 1rem;
  color: var(--stone-700);
  font-size: 0.9375rem;
}

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

/* ---------- Outdoors Quote ---------- */
.quote-block {
  padding: 3rem 0;
  text-align: center;
}

.quote-block__text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 300;
  color: var(--stone-500);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

.quote-block__text::before {
  content: '"';
}

.quote-block__text::after {
  content: '"';
}

.quote-block__attr {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--stone-400);
  margin-top: 0.75rem;
  letter-spacing: 0.03em;
}

/* ---------- Interests ---------- */
.interests__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.interests__item {
  display: flex;
  gap: 1rem;
  align-items: baseline;
}

.interests__marker {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  color: var(--forest);
  font-weight: 500;
  letter-spacing: 0.05em;
  min-width: 20px;
  flex-shrink: 0;
  padding-top: 2px;
}

.interests__content h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--stone-800);
  margin-bottom: 0.25rem;
}

.interests__content p {
  font-size: 0.875rem;
  color: var(--stone-500);
  font-weight: 300;
}

/* ---------- Links Section ---------- */
.links__list {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.links__list a {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--stone-500);
  border-bottom: 1px solid var(--stone-200);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.links__list a:hover {
  color: var(--forest);
  border-color: var(--forest);
}

/* ---------- Footer ---------- */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--stone-200);
  margin-top: 1rem;
}

.footer__text {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--stone-400);
}

/* ---------- 404 ---------- */
.page-404 {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-404__code {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 300;
  color: var(--stone-200);
  line-height: 1;
  margin-bottom: 1rem;
}

.page-404__message {
  font-size: 1rem;
  color: var(--stone-500);
  margin-bottom: 2rem;
  font-weight: 300;
}

.page-404__link {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
}

/* ---------- Fade-in ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .hero {
    padding: 4rem 0 3.5rem;
  }

  .about__layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about__photo {
    max-width: 180px;
  }

  .links__list {
    flex-direction: column;
    gap: 0.75rem;
  }
}