/* --- CSS Variables (Root) --- */
:root {
  /* Font stack: This is the modern way to get Apple's system font (SF Pro) 
	on Mac/iOS. It falls back to Inter (which you had) and other
	system fonts on different devices.
  */
  --font-primary: -apple-system, BlinkMacSystemFont, 'Inter', "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Color Palette (Dark Mode) 
	Swapped light and dark colors.
  */
  --color-text: #f5f5f7; /* Was dark gray, now light gray */
  --color-text-light: #a1a1a6; /* Was medium gray, now lighter gray */
  --color-primary: #2997ff; /* Apple's brighter blue for dark backgrounds */
  --color-background: #1d1d1f; /* Was light gray, now very dark gray */
  --color-card-bg: #2c2c2e; /* Was white, now medium-dark gray */
  --color-border: #424245; /* Was light gray, now dark gray border */
  
  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075); /* Shadow is fine */
  --shadow-md: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1); /* Shadow is fine */
  --border-radius-md: 8px;
  --transition-speed: 0.2s ease;
}

/* --- General Body Styles --- */
body {
  font-family: var(--font-primary);
  line-height: 1.6;
  background-color: var(--color-background);
  color: var(--color-text);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Header & Navigation --- */
header {
  /* Using a slightly different dark color for contrast with the new dark body */
  background-color: #333; 
  border-bottom: 1px solid var(--color-border); /* Added a border to separate from body */
  padding: 1rem 0;
  box-shadow: none;
}

nav {
  width: 90%;
  max-width: 960px; 
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-size: 1.1rem;
  font-weight: 600;
  color: #f5f5f7; /* Light gray/off-white */
  text-decoration: none;
  transition: color var(--transition-speed);
}
.nav-brand:hover {
  color: #ffffff;
}

.nav-link {
  color: #d2d2d7; /* Lighter gray for nav links */
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  margin-left: 0.5rem;
  transition: background-color var(--transition-speed), color var(--transition-speed);
}

.nav-link:hover {
  background-color: transparent;
  color: #ffffff; /* Glow to white on hover */
}

/* --- Main Content Card --- */
main {
  width: 90%;
  max-width: 960px; 
  margin: 40px auto; 
  padding: 40px;
  background-color: var(--color-card-bg); /* Now uses the dark card color */
  border-radius: var(--border-radius-md);
  box-shadow: none; 
  border: 1px solid var(--color-border);
}

/* --- Typography --- */
h1, h2 {
  color: var(--color-text); /* Will use the light text color */
  font-weight: 600;
  font-size: 2.5rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

p {
  color: var(--color-text-light); /* Will use the lighter text color */
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

a {
  color: var(--color-primary); /* Uses the bright blue link color */
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  text-decoration: underline;
}

/* Style for the italic email on the about page */
i {
  color: var(--color-text-light);
  font-style: normal;
  font-family: monospace;
}