/* --- GENERAL RESET & TOKENS --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --color-teal: #00d5c3;
  --color-text-dark: #111111;
  --color-text-muted: #777777;
}

html, body {
  height: 100%;
  background-color: #ffffff;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* --- HEADER SECTION --- */
header {
  height: 28vh;
  min-height: 180px;
  max-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  
  /* Background images with density scaling for retina displays */
  background-image: url('assets/img/Anne header.png');
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  header {
    background-image: url('assets/img/Anne header@2x.png');
  }
}

@media (-webkit-min-device-pixel-ratio: 3), (min-resolution: 288dpi) {
  header {
    background-image: url('assets/img/Anne header@3x.png');
  }
}

.header-logo {
  margin-top: 6em;
  height: 190px;
  max-height: 65%;
  width: auto;
}

/* --- MAIN CONTENT (DEFINITION) --- */
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  background-color: #ffffff;
}

.definition-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4.5rem;
  max-width: 850px;
  width: 100%;
}

.phonetic-col {
  flex: 0 0 auto;
}

.phonetic-text {
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--color-text-dark);
  letter-spacing: 0.02em;
  padding: 1.75rem 0.5rem;
  border-top: 1.5px dotted #b0b0b0;
  border-bottom: 1.5px dotted #b0b0b0;
  text-align: center;
  white-space: nowrap;
}

.meaning-col {
  flex: 1;
  max-width: 480px;
}

.meaning-col p {
  font-size: 1.35rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  font-weight: 400;
}

/* --- FOOTER SECTION --- */
footer {
  height: 22vh;
  min-height: 140px;
  max-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  
  /* Background images with density scaling for retina displays */
  background-image: url('assets/img/Anne lower banner.png');
  background-size: cover;
  background-position: center;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  footer {
    background-image: url('assets/img/Anne lower banner@2x.png');
  }
}

@media (-webkit-min-device-pixel-ratio: 3), (min-resolution: 288dpi) {
  footer {
    background-image: url('assets/img/Anne lower banner@3x.png');
  }
}

.footer-text {
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: #ffffff;
  text-align: center;
}

.teal-text {
  color: var(--color-teal);
  font-weight: 400;
}

.email-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s ease;
  margin-left: 0.15rem;
}

.email-link:hover {
  color: var(--color-teal);
  text-decoration: underline;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 768px) {
  .definition-container {
    gap: 3rem;
  }
  
  .phonetic-text {
    font-size: 2.8rem;
  }
  
  .meaning-col p {
    font-size: 1.2rem;
  }
  
  .footer-text {
    font-size: 1.15rem;
  }
}

@media (max-width: 640px) {
  header {
    height: 22vh;
    min-height: 140px;
  }
  
  .header-logo {
    height: 65px;
  }
  
  .definition-container {
    flex-direction: column;
    gap: 2.5rem;
    text-align: center;
  }
  
  .phonetic-text {
    font-size: 2.6rem;
    padding: 1.25rem 0.25rem;
    display: inline-block;
  }
  
  .meaning-col {
    max-width: 100%;
    padding: 0 1rem;
  }
  
  .meaning-col p {
    font-size: 1.15rem;
  }
  
  footer {
    height: 18vh;
    min-height: 110px;
  }
  
  .footer-text {
    font-size: 1.05rem;
    padding: 0 1.5rem;
  }
}
