:root {
  --color-bg: #1A1A1A; /* Slightly warmer dark grey */
  --color-bg-header: #282828; /* Header slightly lighter */
  --color-bg-footer: #101010;
  --color-border: #383838; /* Darker warm grey border */
  --color-text: #E8E8E8; /* Slightly brighter text */
  --color-text-muted: #B0B0B0; /* Medium warm grey */
  --color-text-footer: #A0A0A0; /* Slightly lighter footer text */
  --color-accent: #88B0B0;       /* Soft Teal */
  --color-accent-hover: #A0C0C0; /* Lighter Teal */
  --color-link: var(--color-accent);

  /* Font sizes remain the same */
  --font-base-size: 14px;
  --font-header-size: 2.25rem;
  --font-subheader-size: 1.15rem;
  --font-content-size: 1.05rem;

  /* Content Widths */
  --width-content: 720px;
}

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

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.5;
  font-size: var(--font-base-size);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

hr {
  height: 1px;
  background-color: var(--color-text-footer);
  border: none;
}

/* Header */
.common-header {
  background-color: var(--color-bg-header);
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.common-header-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--color-accent);
  margin-bottom: 1rem;
  flex-shrink: 0;
  /* Polished: subtle shadow + smooth border transition */
  box-shadow: 0 0 6px rgba(74, 144, 226, 0.5);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.common-header-photo:hover,
.common-header-photo:focus {
  border-color: var(--color-accent-hover);
  box-shadow: 0 0 12px rgba(107, 163, 255, 0.8);
  outline: none;
}

.common-header-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.common-header h1 {
  margin: 0;
  font-weight: 700;
  font-size: var(--font-header-size);
  color: var(--color-accent);
  letter-spacing: 0.03em; /* subtle tracking for clarity */
  text-shadow: 0 0 3px rgba(74, 144, 226, 0.4); /* subtle glow for emphasis */
}

.tagline {
  margin-top: 0.25rem;
  font-weight: 600; /* slightly bolder for better contrast */
  font-size: var(--font-subheader-size);
  color: var(--color-text-muted);
  letter-spacing: 0.04em; /* subtle tracking */
}

/* Navigation */
nav {
  margin-top: 1rem;
  width: 100%;
}

.header-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.header-links li a {
  color: var(--color-link);
  text-decoration: none;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px; /* optional */
  transition: color 0.2s ease;
  font-size: 1rem;
}

.header-links li a:hover,
.header-links li a:focus {
  color: var(--color-accent-hover);
  text-decoration: underline;
  background: none;
  outline: none;
}

/* Inline links in content */
.content a {
  color: var(--color-link);
  text-decoration: none;
  transition: color 0.2s ease;
}

.content a:hover,
.content a:focus {
  color: var(--color-accent-hover);
  text-decoration: underline;
  outline: none;
}

/* Main content */
.content {
  flex-grow: 1;
  max-width: var(--width-content);
  margin: 3rem auto 4rem;
  padding: 0 1.5rem;
  font-weight: 400;
  font-size: var(--font-content-size);
}

.content h2 {
  font-size: 1.75rem; /* about 28px */
  margin-bottom: 1rem;
  color: var(--color-accent);
}

.content p,
.content ul {
  margin-bottom: 1.5rem;
  font-size: var(--font-content-size);
}

.content ul {
  padding-left: 1.25rem;
  list-style-type: disc;
}

.content ul li {
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

/* Footer */
.footer {
  background-color: var(--color-bg-footer);
  text-align: center;
  padding: 3rem 0;
  font-size: 0.9rem;
  color: var(--color-text-footer);
  border-top: 1px solid var(--color-border);
}

/* Responsive */
@media (max-width: 600px) {
  .common-header-photo {
    width: 90px;
    height: 90px;
  }

  .common-header h1 {
    font-size: 1.75rem;
  }

  .content {
    margin: 2rem 1rem 3rem;
    font-size: 1rem;
  }

  .header-links {
    gap: 0.75rem;
  }
}
