*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #ece6cd;
  --secondary: #024d6c;
  --loyal-blue: #034460;
  --accent: rgba(2, 77, 108, 0.12);
}

html {
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  line-height: 1.6;
  color: var(--loyal-blue);
}

.letter {
  max-width: 740px;
  width: 100%;
  background: var(--secondary);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(2, 77, 108, 0.35);
  padding: 3rem 3.5rem 2.5rem;
  position: relative;
}

/* ===== LETTERHEAD – CENTERED ===== */
.letterhead {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--primary);
  margin-bottom: 1.75rem;
  gap: 0.75rem;
}

.logo-area {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* NO FRAME – just the raw image */
.logo {
  max-width: 160px;
  max-height: 120px;
  width: auto;
  height: auto;
  display: block;
}

.company-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.company-name small {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.1rem;
  opacity: 0.9;
}

/* ===== BODY ===== */
.date-line {
  text-align: right;
  font-size: 0.9rem;
  color: var(--primary);
  margin-bottom: 2rem;
  font-weight: 400;
  opacity: 0.9;
}

.date-line span {
  display: inline-block;
  border-bottom: 1px dotted var(--primary);
  padding-bottom: 0.1rem;
}

.salutation {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.body {
  font-size: 1rem;
  color: var(--loyal-blue);
  margin-bottom: 2rem;
  background: var(--primary);
  padding: 1.25rem 1.5rem;
  border-radius: 6px;
  border-left: 3px solid var(--accent);
}

.body .under-construction-heading {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--loyal-blue);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  text-align: center;
}

.body p {
  margin-bottom: 1rem;
  text-align: left;
}

.body p:last-child {
  margin-bottom: 0;
}

/* ===== CONTACT LIST ===== */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.body .contact-line {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--accent);
  padding: 0.1rem 0.6rem 0.1rem 0.4rem;
  border-radius: 4px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--loyal-blue);
  width: fit-content;
}

.body .contact-line svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: block;
  fill: var(--loyal-blue);
}

/* ===== CLOSING ===== */
.closing {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 2px solid var(--primary);
}

.closing p {
  font-size: 1rem;
  color: var(--primary);
}

.signature {
  margin-top: 0.75rem;
  font-weight: 700;
  color: var(--primary);
}

.signature .title {
  font-weight: 400;
  color: var(--primary);
  font-size: 0.85rem;
  display: block;
  opacity: 0.8;
  font-style: italic;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  body {
    padding: 1rem 0.75rem;
  }

  .letter {
    padding: 1.75rem 1.25rem 1.75rem;
  }

  .company-name {
    font-size: 1.2rem;
  }

  .company-name small {
    font-size: 0.65rem;
  }

  .logo {
    max-width: 120px;
    max-height: 90px;
  }

  .date-line {
    text-align: left;
    margin-bottom: 1.5rem;
  }

  .salutation {
    font-size: 1rem;
  }

  .body {
    font-size: 0.95rem;
    padding: 1rem 0.9rem;
  }

  .body .contact-line {
    white-space: normal;
    display: inline-flex;
    margin-bottom: 0.2rem;
  }

  .contact-list {
    gap: 0.4rem;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
  }
}

@media (max-width: 400px) {
  .letter {
    padding: 1.25rem 0.9rem;
  }

  .logo {
    max-width: 100px;
    max-height: 75px;
  }

  .company-name {
    font-size: 1rem;
  }
}