/* ==========================================================================
   Asia CCUS Network — Maintenance page
   ========================================================================== */

:root {
  --color-bg: #ffffff;
  --color-title: #000000;
  --color-text: #64748b;
  --color-muted: #94a3b8;
  --color-accent: #f97316;
  --font-sans: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

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

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  position: relative;
  background: var(--color-bg);
  color: var(--color-title);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ---------- Fixed viewport layout ---------- */

.page {
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 76px 24px 64px;
  text-align: center;
  overflow: hidden;
}

/* ---------- Brand ---------- */

.brand {
  position: absolute;
  top: clamp(18px, 4vh, 34px);
  left: 50%;
  transform: translateX(-50%);
}

.brand__logo {
  width: 48px;
  height: auto;
}

/* ---------- Hero ---------- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 900px;
  margin: 0;
}

.hero__image {
  width: min( min(440px, 66vw), 42vh );
  max-width: 100%;
  max-height: 42svh;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.hero__title {
  margin: clamp(20px, 3.2vh, 32px) 0 0;
  max-width: 100%;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.035em;
  color: var(--color-title);
  text-wrap: balance;
}

.hero__text {
  margin: 10px 0 0;
  font-size: clamp(14px, 1.35vw, 17px);
  font-weight: 300;
  line-height: 1.65;
  color: var(--color-text);
}

.hero__link {
  color: var(--color-accent);
  font-weight: 400;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  white-space: pre;
  transition: opacity 0.2s ease;
}

.hero__link::after {
  content: " ";
}

.hero__link:hover,
.hero__link:focus-visible {
  opacity: 0.75;
}

.hero__link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ---------- Footer ---------- */

.footer {
  position: absolute;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 16px;
  text-align: center;
  font-size: 12px;
  font-weight: 300;
  line-height: 18px;
  color: var(--color-muted);
}

.footer p {
  margin: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero__image {
    width: min(400px, 70vw);
    max-height: 39svh;
  }

  .hero__title {
    font-size: clamp(25px, 4vw, 34px);
  }

  .hero__text {
    font-size: 15px;
  }
}

@media (max-width: 600px) {
  .page {
    padding: 68px 20px 54px;
  }

  .brand {
    top: max(18px, env(safe-area-inset-top));
  }

  .brand__logo {
    width: 42px;
  }

  .hero {
    max-width: 440px;
  }

  .hero__image {
    width: min(340px, 82vw);
    max-height: 34svh;
  }

  .hero__title {
    margin-top: 22px;
    font-size: clamp(24px, 7vw, 30px);
    line-height: 1.2;
    letter-spacing: -0.03em;
  }

  .hero__text {
    margin-top: 9px;
    font-size: 14px;
    line-height: 1.55;
    text-wrap: balance;
  }

  .hero__text br {
    display: none;
  }

  .footer {
    font-size: 11px;
  }
}

/* Compact / landscape viewport: keep all content inside one screen */
@media (max-height: 650px) {
  .page {
    padding-top: 52px;
    padding-bottom: 42px;
  }

  .brand {
    top: 12px;
  }

  .brand__logo {
    width: 36px;
  }

  .hero__image {
    width: min(340px, 58vw);
    max-height: 34svh;
  }

  .hero__title {
    margin-top: 14px;
    font-size: clamp(22px, 3vw, 30px);
  }

  .hero__text {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.4;
  }

  .footer {
    bottom: 8px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
