/* ---------------- Base resets ---------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

/* ---------------- Base Theme ---------------- */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #222;
  background: #f6f6f8;
  background-image: linear-gradient(
    145deg,
    rgba(170, 170, 170, 0.06),
    rgba(120, 120, 120, 0.03)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  transition: background 0.3s ease, color 0.3s ease;
}

/* Fade-in */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* ---------------- Hero bar ---------------- */
.hero-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 180px; /* taller for portrait feel */
  background: linear-gradient(
    135deg, 
    rgba(0,0,0,0.06), 
    rgba(0,0,0,0.02)
  );
  z-index: -2;
}

/* ---------------- Card Layout ---------------- */
.page-wrap {
  width: 100%;
  max-width: 520px; /* narrower portrait shape */
  background: #fff;
  border-radius: 20px;
  padding: 36px 26px 30px;
  display: flex;
  flex-direction: column;
  align-items: center; /* centered layout */
  gap: 20px;
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.07),
    0 0 0 1px rgba(255,255,255,0.6),
    inset 0 1px 2px rgba(255,255,255,0.8);
  transition: background 0.3s ease;
}

/* ---------------- Portrait header ---------------- */
.site-header.portrait {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.logo {
  width: 180px;      /* bigger, centered, poster-like */
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.18));
}

.subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #777;
  margin: 0;
  text-align: center;
}

/* ---------------- Main Content ---------------- */
.card {
  width: 100%;
  border-top: 1px solid #eceff3;
  padding-top: 20px;
  text-align: center;
}

.lead {
  font-size: 1.10rem;
  margin-bottom: 16px;
}

.status {
  color: #444;
  margin-bottom: 22px;
}

/* Contact Pill */
.pill-link {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  background: #222;
  color: #fff;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: transform 0.18s ease, background 0.18s ease;
}

.pill-link:hover {
  background: #000;
  transform: translateY(-1px);
}

/* Footer */
.site-footer {
  margin-top: 10px;
  font-size: 0.82rem;
  color: #666;
  text-align: center;
  width: 100%;
}

/* ---------------- Dark Mode ---------------- */
.dark-mode {
  background: #1b1c1f;
  background-image: none;
  color: #e5e5e5;
}

.dark-mode .page-wrap {
  background: #2b2d33;
  color: #e5e5e5;
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255,255,255,0.07),
    inset 0 1px 3px rgba(255,255,255,0.02);
}

.dark-mode .subtitle {
  color: #aaa;
}

.dark-mode .hero-bar {
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.06),
    rgba(255,255,255,0.02)
  );
}

/* ---------------- Toggle Button ---------------- */
#theme-toggle {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 1.1rem;
  padding: 6px 10px;
  border-radius: 6px;
  border: none;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  cursor: pointer;
}

.dark-mode #theme-toggle {
  background: #333;
  color: #fff;
}

/* ---------------- Mobile Tweaks ---------------- */
@media (max-width: 560px) {

  body {
    padding: 16px;
  }

  .page-wrap {
    padding: 26px 18px 22px;
    max-width: 94%;
  }

  .logo {
    width: 150px;
  }

  .lead {
    font-size: 1.04rem;
  }
}