/* === Base Styles === */
:root {
  --bg-color: #f9f3ef; /* soft cream-brown */
  --text-color: #4a3b2e; /* dark coffee brown */
  --heading-color: #3a2d23; /* deep brown for headings */
  --h2-color: #6b5744; /* medium brown for subheadings */
  --accent-color: #b08b64; /* warm gold-brown accent */
  --border-color: whitesmoke; /* light border color */
}

body.dark-mode {
  --bg-color: #2e2e2e; /* dark background */
  --text-color: #e0e0e0; /* light text */
  --heading-color: #ffffff; /* white for headings */
  --h2-color: #cccccc; /* light gray for subheadings */
  --accent-color: #e6b57e; /* warm accent */
}

/* === Theme Toggle Button === */
#theme-toggle {
  border-radius: 50%;
  cursor: pointer;
  width: 50px;
  height: 50px;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: var(--bg-color); /* ✅ fixed from --background-color */
  border: none;
  transition: background-color 0.3s, fill 0.3s;
}

#theme-toggle svg {
  fill: var(--text-color);
  width: 30px;
  height: 30px;
}

#theme-toggle svg:last-child {
  display: none;
}

.dark-mode #theme-toggle svg:first-child {
  display: none;
}

.dark-mode #theme-toggle svg:last-child {
  display: block;
}

/* === Global Reset === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* === Body === */
body {
  font-family: 'Georgia', serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* === Hero Section === */
#hero {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.hero-content {
  max-width: 600px;
  padding: 2rem;
}

/* === Headshot === */
.headshot {
  width: 300px;
  height: 300px;
  border: 5px solid var(--border-color);
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* === Headings === */
h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 0.5rem;
}

h1 span {
  color: var(--accent-color);
}

h2 {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--h2-color);
  margin-bottom: 1.2rem;
}

/* === Paragraph === */
p {
  margin: 20px 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
  margin-bottom: 1.8rem;
}

/* === Weather & Time === */
.weather-time {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin: 16px 0;
}

.weather-time p {
  margin: 0;
  padding: 0 8px;
}

/* === Responsive Design === */
@media (max-width: 600px) {
  body {
    height: auto;
    padding: 2rem 1rem;
  }

  .hero-content {
    padding: 1rem;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1rem;
  }

  p {
    font-size: 0.95rem;
  }

  .headshot {
    width: 120px;
    height: 120px;
  }
}
