/* ============================================================
   event.halmeel.gov.so — holding page
   ============================================================ */

:root {
  --blue:  #b4d7f4;
  --gold:  #ffc33e;

  --bg:    #0a111d;
  --bg-2:  #070c15;
  --text:  #e8eef6;
  --muted: #9aa8bc;
  --faint: #6b7a91;

  --line:        rgba(180, 215, 244, 0.12);
  --line-strong: rgba(180, 215, 244, 0.22);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          "Noto Sans", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;

  --gutter: clamp(1.25rem, 1rem + 2.2vw, 3rem);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, p { margin: 0; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

:focus-visible { outline: 1px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

/* ---------- Shell ---------- */
.shell {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  max-width: 1080px;
  margin-inline: auto;
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem) var(--gutter);
}

/* ---------- Masthead ---------- */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand__mark { width: 32px; height: 32px; flex: none; }
.brand__name {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--blue);
}

.langs__track {
  position: relative;
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.langs__thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 0;
  border-radius: 4px;
  background: rgba(180, 215, 244, 0.09);
  transition: transform 0.3s var(--ease), width 0.3s var(--ease);
  pointer-events: none;
}
.langs__btn {
  position: relative;
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--faint);
  transition: color 0.25s var(--ease);
}
.langs__btn:hover { color: var(--muted); }
.langs__btn[aria-current="true"] { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(2.5rem, 1.5rem + 5vw, 4.5rem) 0;
}

.hero__mark {
  width: clamp(72px, 7vw, 92px);
  height: auto;
  margin-bottom: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
}

.title {
  max-width: 18ch;
  font-size: clamp(1.9rem, 1.1rem + 3.2vw, 3rem);
  line-height: 1.16;
  font-weight: 400;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.date {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: clamp(0.9688rem, 0.94rem + 0.2vw, 1.0625rem);
}

/* ---------- Countdown ---------- */
.countdown {
  display: flex;
  margin-top: clamp(2rem, 1.4rem + 2vw, 2.75rem);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.countdown[hidden] { display: none; }

.cd {
  flex: 1;
  min-width: clamp(74px, 18vw, 108px);
  padding: clamp(0.85rem, 0.7rem + 0.6vw, 1.15rem) clamp(0.6rem, 0.4rem + 1vw, 1.25rem);
  border-inline-start: 1px solid var(--line);
}
.cd:first-child { border-inline-start: 0; }

.cd__value {
  display: block;
  font-family: var(--mono);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.cd__unit {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------- Contact ---------- */
.contact {
  margin-top: clamp(2rem, 1.4rem + 2vw, 2.75rem);
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--blue);
  border-bottom: 1px solid rgba(180, 215, 244, 0.28);
  padding-bottom: 2px;
  transition: border-color 0.25s var(--ease);
}
.contact:hover { border-color: var(--blue); }

/* ---------- Footer ---------- */
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  flex-wrap: wrap;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--faint);
}

@media (max-width: 599px) {
  .foot { justify-content: center; text-align: center; }
  .countdown { width: 100%; }
}

/* ---------- Entrance ---------- */
.js .shell > * { opacity: 0; animation: fade 0.6s var(--ease) forwards; }
.js .masthead { animation-delay: 0.04s; }
.js .hero     { animation-delay: 0.12s; }
.js .foot     { animation-delay: 0.20s; }
@keyframes fade { to { opacity: 1; } }

/* ---------- Preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .js .shell > * { opacity: 1; }
}

@media (prefers-contrast: more) {
  :root {
    --muted: #c7d2e1;
    --faint: #9cabc0;
    --line: rgba(180, 215, 244, 0.3);
    --line-strong: rgba(180, 215, 244, 0.45);
  }
}

@media print {
  .langs { display: none; }
  body { background: #fff; color: #000; }
}
