:root {
  --color-bg-light: #f5f7fa;
  --color-bg-dark: #0b1120;      /* very dark blue/grey */
  --color-bg-dark-alt: #111827;
  --color-accent: #1d4ed8;       /* blue */
  --color-accent-muted: #6b7280; /* grey */
  --color-accent-red: #991b1b;   /* dark red accent */
  --color-text: #111827;
  --color-text-muted: #4b5563;
  --color-border: #e5e7eb;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.12);
  --radius-lg: 12px;
  --radius-xl: 18px;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

/* Layout helpers */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header / hero */
.site-header {
  background: radial-gradient(circle at top left, #1e293b 0, var(--color-bg-dark-alt) 45%, var(--color-bg-dark) 100%);
  color: #e5e7eb;
  padding: 1.5rem 0 2.5rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-title {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: 0.03em;
}

.site-title a {
  color: white;
  text-decoration: none;
}

.site-subtitle {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
  color: var(--color-accent-muted);
}

/* Nav */
.site-nav {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.nav-link {
  font-size: 0.95rem;
  color: #cbd5f5;
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.nav-link:hover {
  border-color: rgba(148, 163, 184, 0.7);
  background-color: rgba(15, 23, 42, 0.4);
}

.nav-link.active {
  background: var(--color-accent);
  color: white;
  border-color: transparent;
}

/* Hero info (dark band content on About page) */
.hero-info {
  margin-top: 1.8rem;
}

.hero-text {
  background: rgba(15, 23, 42, 0.6);
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-soft);
}

.hero-text p {
  margin-top: 0;
}

.hero-interests {
  font-style: italic;
  color: #d1d5db;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.95rem;
  font-size: 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(156, 163, 175, 0.7);
  background: transparent;
  color: #e5e7eb;
  text-decoration: none;
  margin-right: 0.4rem;
  margin-top: 0.5rem;
}

.button.primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: white;
}

.button.subtle {
  opacity: 0.85;
}

.button:hover {
  opacity: 0.9;
}

/* Main content area (light background) */
.site-main {
  background: var(--color-bg-light);
  padding: 2.5rem 0 2.5rem;
}

.content {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 2rem 2.2rem;
  border: 1px solid var(--color-border);
}

/* Typography inside content */
.content h1,
.content h2,
.content h3 {
  font-weight: 600;
  margin-top: 0;
  color: #111827;
}

.content h1 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.content h2 {
  font-size: 1.2rem;
  margin-top: 1.8rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.3rem;
}

.content h3 {
  font-size: 1rem;
  margin-top: 1.2rem;
}

.content p {
  margin: 0.4rem 0 0.9rem;
  color: var(--color-text-muted);
}

.content ul {
  margin: 0.4rem 0 1rem 1.1rem;
  padding: 0;
}

.content li {
  margin-bottom: 0.25rem;
}

/* Footer (dark again) */
.site-footer {
  background: var(--color-bg-dark-alt);
  color: #9ca3af;
  padding: 1.7rem 0;
}

.footer-inner {
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer a {
  color: #cbd5f5;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .content {
    padding: 1.4rem 1.5rem;
  }
}

/* --- About page two-column layout --- */
.about-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.6rem;
  align-items: start;
}

/* --- Oval portrait photo --- */
.about-photo {
  width: 100%;
  aspect-ratio: 3 / 4;          /* portrait oval */
  object-fit: cover;
  border-radius: 50% / 65%;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  display: block;
  background-color: #f3f4f6;
}

/* Responsive: stack on small screens */
@media (max-width: 720px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-photo {
    max-width: 240px;
  }
}


/* Slightly tighter header spacing on About */
.site-header .header-inner {
  align-items: center;
}


/* --- About hero: photo left, intro right, links under intro --- */
.hero-grid {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.6rem;
  align-items: start;
}

.hero-photo {
  width: 100%;
  max-width: 160px;          /* controls size, not shape */
  height: auto;              /* let image keep its natural ratio */
  object-fit: cover;

  border-radius: 50%;
  aspect-ratio: auto;

  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  background-color: rgba(255, 255, 255, 0.06);
  display: block;
}


.hero-text-col .hero-text {
  /* reuse your existing hero-text look, but ensure it fills the column */
  width: 100%;
}

.hero-text-col .hero-links {
  margin-top: 0.6rem;
}

/* Make buttons align nicely and wrap */
.hero-text-col .hero-links .button {
  margin-top: 0.5rem;
}

/* Responsive: stack */
@media (max-width: 720px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    width: 120px;
  }
}

