/*
  Eternal Shop BD — Maintenance Countdown Page
  Built by Rafid — MIT Licensed (see LICENSE)
*/

:root {
  --ink: #12162a;
  --ink-deep: #0b0e1c;
  --paper: #edebe2;
  --paper-dim: #a9a79c;
  --brass: #c9a24b;
  --brass-soft: rgba(201, 162, 75, 0.35);
  --teal: #3e7c6a;
  --line: rgba(237, 235, 226, 0.14);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  background: radial-gradient(
    120% 140% at 50% -10%,
    #1a2036 0%,
    var(--ink) 45%,
    var(--ink-deep) 100%
  );
  color: var(--paper);
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  overflow-x: hidden;
}

/* faint grid texture, quiet */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.35;
  mask-image: radial-gradient(80% 60% at 50% 40%, black 0%, transparent 75%);
  pointer-events: none;
}

.scene {
  width: 100%;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.wordmark {
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--paper);
  margin-bottom: 6px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.wordmark .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brass);
  display: inline-block;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- hang string + grommet, the signature element --- */
.string-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  height: 46px;
}
.string-wrap svg {
  overflow: visible;
}
.string-wrap path {
  fill: none;
  stroke: var(--brass-soft);
  stroke-width: 1.5;
}
.grommet {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink);
  border: 1.5px solid var(--brass);
  margin-top: -7px;
  box-shadow: 0 0 0 4px rgba(18, 22, 42, 0.9);
}

/* --- the tag/ticket card --- */
.tag {
  position: relative;
  width: 100%;
  background: linear-gradient(180deg, #171c33 0%, #131728 100%);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 52px 44px 40px;
  text-align: center;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}

/* ticket notches, top and bottom of the sides */
.tag::before,
.tag::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink-deep);
  box-shadow: inset 0 0 0 1px var(--line);
  left: -13px;
}
.tag::before {
  top: -13px;
}
.tag::after {
  bottom: -13px;
}

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--brass-soft);
}

h1 {
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: clamp(30px, 6vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
h1 em {
  font-style: italic;
  color: var(--brass);
  font-weight: 500;
}

.sub {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--paper-dim);
  max-width: 420px;
  margin: 0 auto 38px;
}

/* countdown board */
.board {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  margin-bottom: 30px;
  position: relative;
}
.unit {
  position: relative;
  flex: 1;
  padding: 0 6px;
}
.unit:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}
.num {
  font-family: "IBM Plex Mono", monospace;
  font-variant-numeric: tabular-nums;
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 500;
  color: var(--paper);
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}
.lbl {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-dim);
  margin-top: 8px;
}

/* quiet ambient scan line under the board */
.scan {
  position: relative;
  height: 2px;
  width: 100%;
  background: var(--line);
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 34px;
}
.scan::after {
  content: "";
  position: absolute;
  top: 0;
  left: -30%;
  height: 100%;
  width: 30%;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
  animation: sweep 3.2s ease-in-out infinite;
}
@keyframes sweep {
  0% {
    left: -30%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

.reopen {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  color: var(--teal);
  letter-spacing: 0.04em;
}
.reopen b {
  color: var(--paper);
  font-weight: 600;
}

.footnote {
  margin-top: 26px;
  font-size: 12.5px;
  color: var(--paper-dim);
}
.footnote a {
  color: var(--brass);
  text-decoration: none;
  border-bottom: 1px solid var(--brass-soft);
  transition: border-color 0.2s ease;
}
.footnote a:hover {
  border-color: var(--brass);
}

.credit {
  margin-top: 22px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: rgba(169, 167, 156, 0.55);
}

.credit a {
  color: var(--brass);
  text-decoration: none;
  border-bottom: 1px solid var(--brass-soft);
  transition: border-color 0.2s ease;
}

.credit a:hover {
  border-color: var(--brass);
}

@media (prefers-reduced-motion: reduce) {
  .scene {
    animation: none;
  }
  .scan::after {
    animation: none;
    display: none;
  }
}

@media (max-width: 480px) {
  .tag {
    padding: 44px 22px 32px;
  }
  .board {
    flex-wrap: wrap;
    row-gap: 26px;
  }
  .unit {
    flex: 0 0 50%;
  }
  .unit:nth-child(2)::after {
    display: none;
  }
}
