:root {
  color-scheme: light;
  --navy: #102a43;
  --blue: #246b73;
  --green: #19845a;
  --muted: #627487;
  --gold: #efb94f;
  --cream: #fbf9f4;
  --white: #fffefa;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 78% 42%, rgba(239, 185, 79, 0.13), transparent 34%),
    radial-gradient(ellipse at 12% 68%, rgba(25, 132, 90, 0.055), transparent 32%),
    var(--cream);
  color: var(--navy);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

.page {
  display: flex;
  width: min(1160px, calc(100% - 72px));
  min-height: 100vh;
  margin: 0 auto;
  flex-direction: column;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header {
  min-height: 92px;
  border-bottom: 1px solid rgba(16, 42, 67, 0.1);
}

.school-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-name {
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-name span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
}

.header-note {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.01em;
}

.maintenance {
  display: grid;
  flex: 1;
  grid-template-columns: 1fr 0.92fr;
  align-items: center;
  gap: clamp(52px, 8vw, 100px);
  padding: clamp(48px, 7vw, 82px) 0;
}

.illustration {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1 / 0.88;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 48% 52% 45% 55% / 47% 43% 57% 53%;
  background:
    radial-gradient(circle at 75% 20%, rgba(239, 185, 79, 0.12), transparent 30%),
    #f2ead9;
  box-shadow: 0 24px 64px rgba(16, 42, 67, 0.08);
}

.seal-watermark {
  position: absolute;
  z-index: 1;
  top: 8%;
  left: 23%;
  width: 54%;
  opacity: 0.08;
  filter: grayscale(1);
}

.illustration::before,
.illustration::after {
  position: absolute;
  bottom: -22%;
  width: 78%;
  height: 54%;
  border-radius: 50%;
  background: #dce9df;
  content: "";
}

.illustration::before {
  left: -19%;
}

.illustration::after {
  right: -22%;
  bottom: -26%;
  background: #e5d9c4;
}

.sun {
  position: absolute;
  z-index: 2;
  top: 17%;
  right: 18%;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--gold);
}

.cloud {
  position: absolute;
  z-index: 2;
  width: 64px;
  height: 19px;
  border-radius: 20px;
  background: rgba(255, 254, 250, 0.8);
}

.cloud::before,
.cloud::after {
  position: absolute;
  bottom: 5px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: inherit;
  content: "";
}

.cloud::before {
  left: 9px;
}

.cloud::after {
  right: 9px;
  width: 21px;
  height: 21px;
}

.cloud-one {
  top: 25%;
  left: 17%;
}

.cloud-two {
  top: 39%;
  right: 13%;
  transform: scale(0.7);
}

.book {
  position: absolute;
  z-index: 3;
  bottom: 20%;
  left: 27%;
  width: 48%;
  height: 33%;
  border: 5px solid var(--navy);
  border-radius: 8px 10px 12px 8px;
  transform: rotate(-8deg);
}

.book-back {
  bottom: 17%;
  left: 31%;
  border-color: #c66f4e;
  background: #c66f4e;
  transform: rotate(8deg);
}

.book-front {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 11px;
  padding: 0 22px;
  background: #fffefa;
}

.book-front span {
  display: block;
  width: 74%;
  height: 3px;
  border-radius: 3px;
  background: #d9e2dc;
}

.book-front span:nth-child(2) {
  width: 100%;
}

.book-front span:nth-child(3) {
  width: 58%;
}

.plant {
  position: absolute;
  z-index: 4;
  right: 15%;
  bottom: 18%;
  width: 53px;
  height: 72px;
}

.plant span {
  position: absolute;
  bottom: 0;
  left: 9px;
  width: 36px;
  height: 31px;
  border-radius: 4px 4px 14px 14px;
  background: #c66f4e;
}

.plant i {
  position: absolute;
  bottom: 28px;
  left: 23px;
  width: 14px;
  height: 32px;
  border-radius: 100% 0 100% 0;
  background: #638b70;
  transform: rotate(-27deg);
  transform-origin: bottom;
}

.plant i:nth-child(2) {
  left: 16px;
  height: 27px;
  transform: rotate(-62deg);
}

.plant i:nth-child(3) {
  left: 26px;
  height: 28px;
  transform: rotate(28deg) scaleX(-1);
}

.sparkle {
  position: absolute;
  z-index: 3;
  color: #c66f4e;
  font-size: 25px;
}

.sparkle-one {
  top: 34%;
  left: 19%;
}

.sparkle-two {
  right: 28%;
  bottom: 24%;
  color: var(--gold);
  font-size: 18px;
}

.message {
  max-width: 480px;
  padding: 10px 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(25, 132, 90, 0.14);
}

h1 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(48px, 6.4vw, 78px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 1.04;
}

h1 span {
  color: var(--blue);
}

.description {
  max-width: 430px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.countdown {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid rgba(16, 42, 67, 0.1);
  border-radius: 12px;
  background: rgba(255, 254, 250, 0.78);
  box-shadow: 0 8px 24px rgba(16, 42, 67, 0.04);
}

.countdown-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  margin-bottom: 13px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}

.countdown-heading time {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.countdown-unit {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 9px 4px 8px;
  border-radius: 8px;
  background: rgba(16, 42, 67, 0.045);
}

.countdown-value {
  color: var(--blue);
  font-family: "Manrope", sans-serif;
  font-size: clamp(20px, 2.5vw, 27px);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  line-height: 1;
}

.countdown-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.countdown-complete {
  margin: 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.countdown-grid.countdown-expired {
  display: none;
}

.notice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 22px;
  padding: 15px 16px;
  border: 1px solid rgba(198, 111, 78, 0.2);
  border-radius: 12px;
  background: rgba(255, 254, 250, 0.74);
  box-shadow: 0 8px 24px rgba(16, 42, 67, 0.035);
}

.notice-icon {
  color: #c66f4e;
  font-size: 19px;
}

.notice p {
  margin: 0;
  color: #526579;
  font-size: 13px;
  font-weight: 600;
}

.refresh-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  background: var(--navy);
  color: white;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 5px 14px rgba(16, 42, 67, 0.12);
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.refresh-button:hover {
  background: var(--blue);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(16, 42, 67, 0.16);
}

.refresh-button:disabled {
  cursor: wait;
  opacity: 0.78;
}

.refresh-button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.refresh-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.refresh-feedback {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  min-height: 72px;
  border-top: 1px solid rgba(16, 42, 67, 0.1);
  color: var(--muted);
  font-size: 12px;
}

.footer-divider {
  width: 3px;
  height: 3px;
  margin-left: auto;
  margin-right: 17px;
  border-radius: 50%;
  background: #a2adb7;
}

.site-footer > span:last-child {
  margin-left: 17px;
}

.site-header {
  animation: fade-in 650ms ease-out both;
}

.illustration {
  animation: scene-enter 800ms cubic-bezier(0.2, 0.7, 0.25, 1) both;
}

.message {
  animation: fade-rise 700ms 120ms cubic-bezier(0.2, 0.7, 0.25, 1) both;
}

.site-footer {
  animation: fade-in 700ms 220ms ease-out both;
}

.sun {
  animation: sun-glow 5s ease-in-out 800ms infinite;
}

.cloud-one {
  animation: cloud-drift 8s ease-in-out 700ms infinite alternate;
}

.cloud-two {
  animation: cloud-drift-small 7s ease-in-out 1s infinite alternate;
}

.status-dot {
  animation: status-pulse 2.8s ease-in-out 1s infinite;
}

.sparkle {
  animation: sparkle 3s ease-in-out infinite;
}

.sparkle-two {
  animation-delay: 1.1s;
}

.plant {
  transform-origin: 50% 100%;
  animation: plant-sway 4s ease-in-out 1s infinite;
}

.refresh-button svg {
  transform-origin: center;
  transition: transform 400ms ease;
}

.refresh-button:hover svg,
.refresh-button:focus-visible svg {
  transform: rotate(-35deg);
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scene-enter {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes cloud-drift {
  from {
    translate: -3px 0;
  }
  to {
    translate: 7px -3px;
  }
}

@keyframes cloud-drift-small {
  from {
    translate: 0 0;
  }
  to {
    translate: -8px -3px;
  }
}

@keyframes sun-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(239, 185, 79, 0);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(239, 185, 79, 0.1);
  }
}

@keyframes status-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(25, 132, 90, 0.14);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(25, 132, 90, 0.06);
  }
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 0.7;
    scale: 0.9;
  }
  50% {
    opacity: 1;
    scale: 1.15;
  }
}

@keyframes plant-sway {
  0%,
  100% {
    rotate: 0deg;
  }
  50% {
    rotate: 2deg;
  }
}

@media (max-width: 760px) {
  .page {
    width: min(100% - 40px, 540px);
  }

  .site-header {
    min-height: 78px;
  }

  .header-note {
    display: none;
  }

  .maintenance {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 36px 0 44px;
  }

  .illustration {
    width: min(100%, 360px);
  }

  .message {
    margin: 0 auto;
  }

  h1 {
    font-size: clamp(52px, 12vw, 68px);
  }

  .site-footer {
    min-height: 66px;
    gap: 8px;
    font-size: 10px;
  }

  .footer-divider {
    margin-right: 4px;
  }

  .site-footer > span:last-child {
    margin-left: 4px;
    text-align: right;
  }
}

@media (max-width: 380px) {
  .page {
    width: calc(100% - 32px);
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .site-footer {
    flex-wrap: wrap;
    justify-content: center;
    padding: 14px 0;
  }

  .footer-divider {
    margin-left: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
