:root{
    --max-width: 1200px;
    --content-padding-x: 1rem;
    --card-radius: 16px;
    --small-card-radius: 12px;
    --accent: #667eea;
    --muted: #555;
    --shadow-elev: rgba(0,0,0,0.08);
    --hover-shadow: rgba(102,126,234,0.3);
    --dir-bg-start: #f5f7fa;
    --dir-bg-end: #c3cfe2;
    --dark-dir-bg: #2a2a2a;
  }
  
  /* Base / page shell */
  * { box-sizing: border-box; }
  
  body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100%;
  }
  
  body > *:not(#header):not(footer) {
    max-width: var(--max-width);
    width: 100%;
    padding: 0 var(--content-padding-x);
    margin: 0 auto 2rem;
    box-sizing: border-box;
  }
  
  body > img:first-of-type,
  body > div:first-of-type:not(#header),
  body > p:first-of-type:not(#header p) {
    padding-top: 2rem;
  }
  
  body > img#profile {
    width: 200px !important;
    height: 200px !important;
    max-width: 200px !important;
    max-height: 200px !important;
    min-width: 200px !important;
    min-height: 200px !important;
    flex-shrink: 0;
  }
  
  /* body > *:last-child:not(footer):not(#header) {
    margin-bottom: 200px;
  } */
  
  #profile {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center center;
    margin: 2rem auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 4px solid white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    padding: 0;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    background: #f5f5f5;
  }
  
  #profile:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px var(--hover-shadow);
  }
  
  #intro {
    text-align: center;
    font-size: 1.25rem;
    color: var(--muted);
    max-width: 800px;
    margin: 1rem auto;
    line-height: 1.8;
    padding: 0 1rem;
  }
  
  #directory {
    background: white;
    border-radius: var(--card-radius);
    padding: 1rem;
    margin: 2rem auto;
    max-width: 700px;
    box-shadow: 0 4px 20px var(--shadow-elev);
    list-style: none;
    counter-reset: directory-counter;
    /* margin-bottom: 2rem; */
  }
  
  #directory li {
    counter-increment: directory-counter;
    padding: 0;
    margin: 0.75rem 0;
    background: linear-gradient(135deg, var(--dir-bg-start) 0%, var(--dir-bg-end) 100%);
    border-radius: 10px;
    border-left: 4px solid var(--accent);
    transition: all 0.3s ease;
    position: relative;
  }
  
  #directory li a {
    display: block;
    padding: 1rem;
    padding-left: 3rem;
    color: inherit;
    text-decoration: none;
    width: 100%;
    height: 100%;
  }
  
  #directory li::before {
    content: counter(directory-counter);
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
  }
  
  #directory li:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    border-left-width: 6px;
  }
  
  #directory li a:hover {
    color: var(--accent);
  }

  #dog {
    text-align: center;
    background: white;
    border-radius: var(--small-card-radius);
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 600px;
    box-shadow: 0 4px 20px var(--shadow-elev);
  }
  
  #dog h4 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.2rem;
  }
  
  #dog p {
    color: var(--muted);
    font-style: italic;
  }
  
  /* Responsive Design (preserve exact behavior) */
  @media (max-width: 768px) {
    body {
      padding-bottom: 20px;
    }
    
    #profile {
      width: 150px;
      height: 150px;
    }
  
    #intro, #conclusion {
      font-size: 1rem;
      padding: 1rem;
    }
  
    #directory {
      padding: 1.5rem;
      margin: 1rem;
    }
  
    #directory li {
      padding: 0;
    }
  
    #directory li a {
      padding: 0.75rem;
      padding-left: 2.5rem;
    }
  }
  
  /* Dark mode (preserved) */
  @media (prefers-color-scheme: dark) {
    #directory {
      background: var(--dark-dir-bg);
    }
  
    #directory li {
      background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
      color: #e0e0e0;
    }
  
    #directory li a {
      color: #e0e0e0;
    }
  
    #directory li a:hover {
      color: #8b9eff;
    }
  
    #conclusion, #dog {
      background: #2a2a2a;
      color: #e0e0e0;
    }
  
    #intro, #conclusion {
      color: #d0d0d0;
    }
  }