*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green: #3cb878;
  --green-dark: #2a9d62;
  --green-deep: #0a2e1f;
  --green-mid: #134d32;
  --green-soft: #e8f7ef;
  --green-glow: rgba(60, 184, 120, 0.15);
  --surface: #ffffff;
  --text: #1a2e24;
  --text-muted: #5a6f64;
  --text-light: #8a9e94;
  --border: #d4e8dc;
  --shadow: 0 4px 24px rgba(10, 46, 31, 0.12), 0 1px 3px rgba(10, 46, 31, 0.06);
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  background: var(--green-deep);
  color: var(--text);
  line-height: 1.6;
  min-height: 100dvh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(60, 184, 120, 0.08) 0%, transparent 50%),
    linear-gradient(225deg, rgba(19, 77, 50, 0.4) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
}

/* Brand header */
.brand-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  max-width: 38rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 0;
}

.brand-logo {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  object-fit: contain;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand-tagline {
  font-size: 0.6875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

/* Inbox */
.inbox {
  max-width: 38rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.inbox-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}

/* Email card */
.email {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.email-header {
  padding: 1.5rem 1.5rem 0;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--green-soft) 0%, var(--surface) 100%);
}

.email-meta {
  margin-bottom: 1.25rem;
}

.meta-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.5rem;
  padding: 0.3rem 0;
  font-size: 0.875rem;
}

.meta-label {
  color: var(--text-light);
  font-weight: 500;
}

.meta-value {
  color: var(--text-muted);
}

.meta-value strong {
  color: var(--text);
  font-weight: 600;
}

.meta-sub {
  color: var(--text-light);
  font-size: 0.8125rem;
}

.sender-card {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 0 1.25rem;
}

.avatar {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px var(--green-glow);
}

.sender-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.sender-title {
  font-size: 0.8125rem;
  color: var(--green-dark);
  font-weight: 600;
  line-height: 1.3;
}

.sender-location {
  font-size: 0.8125rem;
  color: var(--text-light);
  line-height: 1.3;
}

.email-body {
  padding: 1.5rem;
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.7;
}

.email-body p {
  margin-bottom: 1rem;
}

.email-body p:last-child {
  margin-bottom: 0;
}

.email-body strong {
  font-weight: 600;
  color: var(--green-mid);
}

.email-signature {
  padding: 0 1.5rem 1.5rem;
}

.signature-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 1.25rem;
}

.signature-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

.signature-role {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.125rem;
}

.signature-company {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-top: 0.25rem;
}

.signature-tagline {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.375rem;
}

.signature-domain {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.375rem;
}

.inbox-footer {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .brand-header {
    padding: 2.5rem 1.5rem 0;
  }

  .brand-logo {
    width: 3.25rem;
    height: 3.25rem;
  }

  .brand-name {
    font-size: 1.75rem;
  }

  .inbox {
    padding: 2rem 1.5rem 4rem;
  }

  .email-header {
    padding: 1.75rem 2rem 0;
  }

  .email-body {
    padding: 1.75rem 2rem;
  }

  .email-signature {
    padding: 0 2rem 1.75rem;
  }
}
