/* ─────────────────────────────────────────────────────────────────────────────
   site.css  –  SherretInc under-construction page
   Self-hosted, no external CDN, no JavaScript required.
───────────────────────────────────────────────────────────────────────────── */

/* ── Custom properties ───────────────────────────────────────────────────── */
:root {
  --clr-bg:        #f0f2f5;
  --clr-card:      #ffffff;
  --clr-border:    #e2e6ea;
  --clr-heading:   #0f172a;
  --clr-body:      #374151;
  --clr-muted:     #6b7280;
  --clr-accent:    #1d4ed8;
  --clr-accent-h:  #1e40af;
  --clr-divider:   #cbd5e1;

  --radius:        1rem;
  --shadow:        0 4px 24px rgba(0, 0, 0, 0.08);

  --font-sans:     system-ui, -apple-system, "Segoe UI", Roboto,
                   Helvetica, Arial, sans-serif;
}

/* ── Reset / base ────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family:      var(--font-sans);
  background-color: var(--clr-bg);
  color:            var(--clr-body);
  min-height:       100dvh;
  display:          flex;
  flex-direction:   column;
  align-items:      center;
  justify-content:  center;
  padding:          2rem 1rem;
  line-height:      1.6;
}

/* ── Main / card ─────────────────────────────────────────────────────────── */
main {
  width:       100%;
  max-width:   560px;
  flex:        1;
  display:     flex;
  align-items: center;
}

.card {
  width:            100%;
  background-color: var(--clr-card);
  border:           1px solid var(--clr-border);
  border-radius:    var(--radius);
  box-shadow:       var(--shadow);
  padding:          3rem 2.5rem;
  text-align:       center;
}

/* ── Logo ────────────────────────────────────────────────────────────────── */
.logo-wrap {
  position:        relative;
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  min-height:      80px;
  margin-bottom:   2rem;
}

/* The placeholder is shown by default; hidden once the real image loads */
.logo-placeholder {
  position:         absolute;
  inset:            0;
  display:          flex;
  align-items:      center;
  justify-content:  center;
  border:           2px dashed var(--clr-divider);
  border-radius:    0.5rem;
  padding:          0.5rem 1.5rem;
  color:            var(--clr-muted);
  font-size:        0.8rem;
  letter-spacing:   0.04em;
  text-transform:   uppercase;
  pointer-events:   none;
}

/* When the real logo.png loads successfully, hide the placeholder */
.logo-img {
  position:   relative;   /* sits above .logo-placeholder in stacking order */
  max-width:  240px;
  max-height: 80px;
  width:      auto;
  height:     auto;
  object-fit: contain;
  display:    block;
  z-index:    1;
}

/* Hide the placeholder once the image is successfully loaded.
   img:not([src]) or broken images won't trigger this rule. */
.logo-img[src]:not([src=""]):-moz-broken { display: none; }  /* FF */

/* ── Heading ─────────────────────────────────────────────────────────────── */
h1 {
  font-size:      2rem;
  font-weight:    700;
  color:          var(--clr-heading);
  letter-spacing: -0.02em;
  line-height:    1.2;
  margin-bottom:  1.5rem;
}

/* ── Divider ─────────────────────────────────────────────────────────────── */
.divider {
  border:           none;
  border-top:       2px solid var(--clr-divider);
  margin:           0 auto 1.75rem;
  width:            4rem;
}

/* ── Body copy ───────────────────────────────────────────────────────────── */
.tagline {
  font-size:     1.2rem;
  font-weight:   600;
  color:         var(--clr-heading);
  margin-bottom: 0.75rem;
}

.message {
  font-size:     0.975rem;
  color:         var(--clr-body);
  margin-bottom: 2rem;
}

/* ── Contact / email ─────────────────────────────────────────────────────── */
.contact {
  font-size:      0.9rem;
  color:          var(--clr-muted);
  padding-top:    1.5rem;
  border-top:     1px solid var(--clr-border);
}

.email-link {
  display:         inline-block;
  margin-top:      0.4rem;
  color:           var(--clr-accent);
  font-weight:     600;
  text-decoration: none;
  word-break:      break-all;
}

.email-link:hover,
.email-link:focus-visible {
  color:           var(--clr-accent-h);
  text-decoration: underline;
  outline-offset:  3px;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer {
  font-size:    0.78rem;
  color:        var(--clr-muted);
  text-align:   center;
  padding-top:  1.5rem;
}

/* ── Responsive – small screens ──────────────────────────────────────────── */
@media (max-width: 480px) {
  .card {
    padding: 2rem 1.25rem;
  }

  h1 {
    font-size: 1.6rem;
  }

  .tagline {
    font-size: 1.05rem;
  }
}

/* ── Reduced-motion ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration:       0.01ms !important;
    animation-iteration-count: 1     !important;
    transition-duration:      0.01ms !important;
  }
}
