:root {
  color-scheme: dark;
  --navy: #0d1f3c;
  --navy-deep: #08162d;
  --navy-light: #193358;
  --orange: #e8650a;
  --white: #f8f4ed;
  --muted: #a8b3c3;
  --line: rgba(255, 255, 255, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--navy);
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 44%, rgba(32, 67, 110, 0.42), transparent 31rem),
    linear-gradient(135deg, var(--navy-deep), var(--navy) 58%);
  color: var(--white);
  font-family: "Inter", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.maintenance-shell {
  width: min(100% - 96px, 1440px);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  padding-top: 40px;
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.19em;
}

.brand__mark {
  width: 14px;
  height: 14px;
  border: 3px solid var(--orange);
  border-radius: 50%;
  position: relative;
}

.brand__mark::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  right: -5px;
  bottom: -4px;
  background: var(--orange);
}

.hero {
  align-self: center;
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(470px, 1.15fr);
  align-items: center;
  gap: clamp(64px, 9vw, 150px);
  padding: 72px 0;
}

.hero__copy {
  max-width: 610px;
}

.eyebrow,
.clock-panel__label {
  margin: 0 0 20px;
  color: var(--orange);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1 {
  max-width: 600px;
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3.35rem, 5.2vw, 6.8rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.intro {
  max-width: 535px;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: clamp(0.97rem, 1.1vw, 1.08rem);
  line-height: 1.75;
}

.status {
  max-width: 535px;
  margin-top: 44px;
}

.status__row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status__row span:last-child {
  color: var(--white);
}

.status__track {
  height: 2px;
  overflow: hidden;
  background: var(--line);
}

.status__fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--orange);
  transition: width 0.3s linear;
}

.contact {
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

a {
  color: var(--white);
  text-underline-offset: 4px;
  text-decoration-color: var(--orange);
}

a:hover,
a:focus-visible {
  color: #ff8a3d;
}

.clock-panel {
  position: relative;
  min-width: 0;
  padding: clamp(42px, 6vw, 88px) 0 clamp(38px, 5vw, 72px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.clock-panel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 72px;
  height: 2px;
  background: var(--orange);
}

.clock {
  display: flex;
  align-items: baseline;
  color: var(--white);
  font-size: clamp(6.2rem, 12vw, 12rem);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.09em;
  font-variant-numeric: tabular-nums;
}

.clock__colon {
  margin: 0 0.03em;
  color: var(--orange);
  transform: translateY(-0.05em);
}

.seconds {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 15px;
  margin-top: 32px;
}

.seconds__value {
  color: var(--orange);
  font-size: 1rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.seconds__rule {
  height: 1px;
  background: var(--line);
}

.clock-panel__date {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 32px;
  border-top: 1px solid var(--line);
  color: #7f8da2;
  font-size: 0.64rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .maintenance-shell {
    width: min(100% - 48px, 680px);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 68px;
    padding: 88px 0 72px;
  }

  .clock-panel {
    width: 100%;
  }

  .clock {
    font-size: clamp(6rem, 25vw, 10rem);
  }
}

@media (max-width: 520px) {
  .maintenance-shell {
    width: min(100% - 36px, 680px);
  }

  .brand {
    padding-top: 26px;
  }

  .hero {
    gap: 56px;
    padding: 72px 0 60px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.4rem);
  }

  .intro {
    margin-top: 26px;
  }

  .clock {
    font-size: clamp(5.15rem, 27vw, 8rem);
  }

  footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .status__fill {
    transition: none;
  }
}
