@font-face {
  font-family: Monocraft;
  src: url('assets/Monocraft.ttf') format('truetype');
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #090d14;
  --foreground: #e5e7eb;
  --muted: #aeb8c7;
  --panel: #0f172aad;
  --panel-strong: #0f172ad1;
  --panel-inset: #02061766;
  --border: #ffffff24;
  --border-strong: #ffffff38;
  --backdrop-overlay: #0206174d;
  --gold: #ffd679;
  --vignette: #02061766;
}

html[data-theme='day'] {
  color-scheme: light;
  --background: #f7f6f1;
  --foreground: #1f2937;
  --muted: #536174;
  --panel: #ffffffb3;
  --panel-strong: #ffffffbf;
  --panel-inset: #fbfaf7a6;
  --border: #0000001a;
  --border-strong: #0003;
  --backdrop-overlay: #ffffff4d;
  --gold: #805000;
  --vignette: #352a1e10;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--background); }
body {
  margin: 0;
  font: 1rem/1.6 Monocraft, monospace;
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button, a { touch-action: manipulation; }
::selection { color: #0f172a; background: #ffd679; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 6px; }

.scene { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.scene__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  filter: blur(3px) saturate(.75);
  opacity: 0;
  transition: opacity 900ms ease;
}
html[data-theme='night'] .scene__image--night,
html[data-theme='day'] .scene__image--day { opacity: 1; }
.scene__overlay { position: absolute; inset: 0; background: var(--backdrop-overlay); transition: background-color 900ms ease; }
.scene__vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, transparent 25%, var(--vignette) 100%); transition: background 900ms ease; }

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 64px;
}
.landing {
  width: min(100%, 816px);
  padding: 30px 54px 32px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--panel-strong);
  box-shadow: 0 24px 80px #00000021, inset 0 1px 0 #ffffff04;
  transition: background-color 900ms ease, border-color 900ms ease;
  animation: page-in 1000ms cubic-bezier(.16, 1, .3, 1) both;
}
.logo {
  display: block;
  width: 196px;
  max-width: 45%;
  height: auto;
  margin: 0 auto 18px;
  filter: drop-shadow(0 8px 16px #00000035);
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.5;
  letter-spacing: .19em;
}
h1 {
  margin: 0;
  font-size: clamp(1.55rem, 3.5vw, 2.1rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.accent { color: var(--gold); }
.intro { margin: 14px 0 0; font-size: 1rem; color: var(--muted); text-wrap: balance; }
.launch-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 28px 0 20px;
  color: var(--gold);
  font-size: .9375rem;
  line-height: 1.6;
}
.date-divider { height: 14px; width: 1px; background: var(--border-strong); }
.countdown { display: flex; gap: 12px; align-items: center; justify-content: center; }
.countdown__unit {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  max-width: 128px;
  min-height: 114px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel-inset);
  box-shadow: inset 0 1px 0 #ffffff03;
  transition: background-color 900ms ease, border-color 900ms ease;
}
.countdown__value {
  display: block;
  font-size: 2.875rem;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.07em;
  padding-right: .07em;
}
.countdown__label { color: var(--muted); font-size: .875rem; line-height: 1.6; }
.countdown__colon { color: var(--muted); font-size: 1.75rem; line-height: 1; padding-bottom: 22px; }
.community { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--border); }
.discord-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 25px;
  border: 1px solid #ffe5a6;
  border-radius: 12px;
  background: #f2c567;
  box-shadow: inset 0 1px 0 #ffffff40, 0 3px 0 #ac782e;
  color: #241b0e;
  font-size: .9375rem;
  line-height: 1.4;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}
.discord-button:hover { background: #ffda86; transform: translateY(-2px); box-shadow: inset 0 1px 0 #ffffff40, 0 5px 0 #ac782e; }
.discord-button:active { transform: translateY(2px); box-shadow: inset 0 1px 0 #ffffff40, 0 1px 0 #ac782e; }
.discord-button svg { flex: 0 0 auto; }
.community__note { margin: 16px 0 0; color: var(--muted); font-size: .875rem; line-height: 1.6; }
.footer { margin-top: 22px; color: var(--muted); font-size: .8125rem; text-align: center; }
.footer p { margin: 0; }

.theme-toggle {
  position: fixed;
  z-index: 2;
  right: 24px;
  bottom: 24px;
  width: 80px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel-strong);
  color: var(--foreground);
  cursor: pointer;
  box-shadow: 0 4px 16px #00000015;
  transition: background-color 900ms ease, border-color 180ms ease;
}
.theme-toggle:hover { border-color: var(--border-strong); }
.theme-toggle__icon { position: absolute; top: 12px; z-index: 1; transition: color 400ms ease; }
.theme-toggle__moon { left: 12px; color: var(--background); }
.theme-toggle__sun { right: 12px; }
.theme-toggle__thumb {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--foreground);
  box-shadow: 0 4px 10px #00000020;
  transition: transform 400ms cubic-bezier(.2, .8, .2, 1), background-color 900ms ease;
}
html[data-theme='day'] .theme-toggle__thumb { transform: translateX(36px); }
html[data-theme='day'] .theme-toggle__moon { color: var(--foreground); }
html[data-theme='day'] .theme-toggle__sun { color: var(--background); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.no-script { font-size: .875rem; color: var(--muted); }

@keyframes page-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 700px) and (max-height: 790px) {
  .page { padding-top: 24px; padding-bottom: 32px; }
  .landing { padding-top: 22px; padding-bottom: 24px; }
  .logo { width: 150px; margin-bottom: 12px; }
  .launch-date { margin-top: 22px; }
  .community { margin-top: 22px; padding-top: 20px; }
  .footer { margin-top: 16px; }
}
@media (max-width: 600px) {
  .page { padding: 24px 16px 72px; }
  .landing { padding: 24px 22px 28px; border-radius: 24px; }
  .logo { width: 136px; max-width: 54%; margin-bottom: 14px; }
  h1 { max-width: 340px; margin-inline: auto; font-size: 1.6rem; }
  .eyebrow { font-size: .875rem; letter-spacing: .12em; }
  .intro { margin-top: 14px; font-size: 1rem; line-height: 1.7; }
  .launch-date { flex-direction: column; gap: 4px; margin: 24px 0 20px; font-size: .9375rem; }
  .date-divider { display: none; }
  .countdown { gap: 8px; }
  .countdown__colon { display: none; }
  .countdown__unit { min-height: 92px; border-radius: 12px; gap: 7px; }
  .countdown__value { font-size: clamp(1.7rem, 7.3vw, 2.4rem); }
  .countdown__label { font-size: .875rem; letter-spacing: -.07em; }
  .community { margin-top: 24px; padding-top: 24px; }
  .discord-button { width: 100%; max-width: 290px; padding-inline: 12px; font-size: .875rem; }
  .community__note { max-width: 260px; margin-inline: auto; line-height: 1.7; text-wrap: balance; }
  .theme-toggle { right: 16px; bottom: 16px; }
}
@media (max-width: 370px) {
  .page { padding-inline: 12px; }
  .landing { padding-inline: 14px; }
  h1 { font-size: 1.45rem; }
  .countdown { gap: 5px; }
  .countdown__label { font-size: .875rem; letter-spacing: -.09em; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
