:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --panel: #ffffff;
  --text: #152033;
  --muted: #5c6b80;
  --line: #dfe6ee;
  --accent: #087f8c;
  --accent-soft: #e7f5f6;
  --shadow: 0 24px 70px rgba(21, 32, 51, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(246, 248, 251, 0.92)),
    var(--bg);
  color: var(--text);
  font-family:
    Inter,
    "Noto Sans TC",
    "PingFang TC",
    "Microsoft JhengHei",
    Arial,
    sans-serif;
}

.maintenance-page {
  display: grid;
  min-height: 100vh;
  padding: 32px;
  place-items: center;
}

.notice {
  display: grid;
  width: min(100%, 1040px);
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: center;
  gap: 44px;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.notice__brand {
  display: flex;
  width: min(100%, 318px);
  margin: 0 0 28px;
  overflow: hidden;
  border-radius: 6px;
  background: #09bd96;
}

.notice__brand img {
  display: block;
  width: 100%;
  height: auto;
}

h1 {
  margin: 0;
  font-size: clamp(2.45rem, 5vw, 4.75rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.05;
}

.notice__message {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  line-height: 1.75;
}

.notice__submessage {
  max-width: 560px;
  margin: 12px 0 0;
  color: #334155;
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  line-height: 1.7;
}

.notice__contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.notice__contact a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid #0b8f68;
  border-radius: 8px;
  background: #0f9f76;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease;
}

.notice__contact a:hover,
.notice__contact a:focus-visible {
  border-color: #08785a;
  background: #0b8362;
}

.notice__contact a:focus-visible {
  outline: 3px solid rgba(15, 159, 118, 0.28);
  outline-offset: 3px;
}

.notice__image {
  display: block;
  width: min(100%, 420px);
  height: auto;
  justify-self: end;
}

@media (max-width: 760px) {
  .maintenance-page {
    padding: 20px;
  }

  .notice {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px;
  }

  .notice__brand {
    margin-bottom: 22px;
  }

  .notice__image {
    width: min(100%, 320px);
    justify-self: center;
    order: -1;
  }
}

@media (max-width: 420px) {
  .maintenance-page {
    padding: 12px;
  }

  .notice {
    padding: 22px;
  }
}
