@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Pixelify+Sans:wght@600&display=swap");

:root {
  --ink: #f8f0df;
  --muted: #d9d2bf;
  --red: #d92525;
  --brand-red: #ff7168;
  --panel: rgb(18 29 24 / 88%);
  --border: rgb(248 240 223 / 24%);
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  min-height: 100dvh;
  margin: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  background:
    linear-gradient(90deg, rgb(8 15 12 / 48%), rgb(8 15 12 / 8%)),
    #17231d url("assets/pixel-landscape.png") center / cover no-repeat;
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
}

.hero {
  display: grid;
  place-items: center;
  padding: clamp(24px, 6vw, 64px);
}

.card {
  width: min(100%, 680px);
  padding: clamp(28px, 6vw, 64px);
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--panel);
  box-shadow: 12px 12px 0 rgb(9 16 13 / 42%);
  backdrop-filter: blur(8px);
}

.brand {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(12px, 3vw, 24px);
}

.logo {
  display: block;
  width: clamp(104px, 22vw, 144px);
  height: clamp(104px, 22vw, 144px);
  flex: 0 0 auto;
  background: transparent;
  object-fit: contain;
  image-rendering: pixelated;
}

.brand-name {
  min-width: 0;
  margin: 0;
  color: var(--brand-red);
  font: 600 clamp(2rem, 5.5vw, 3.35rem) / 1.02 "Pixelify Sans", monospace;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  max-width: 12ch;
  margin: 36px 0 0;
  font: 600 clamp(2.6rem, 8vw, 5.5rem) / 0.92 "Pixelify Sans", monospace;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.intro {
  max-width: 48ch;
  margin: 28px 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.5vw, 1.16rem);
  line-height: 1.65;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 12px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  color: var(--ink);
  font-weight: 700;
}

.status span {
  width: 10px;
  height: 10px;
  background: var(--red);
  box-shadow: 0 0 0 4px rgb(217 37 37 / 22%);
}

.site-footer {
  align-self: end;
  padding: 0 16px max(6px, env(safe-area-inset-bottom));
  color: rgb(248 240 223 / 72%);
  font-size: clamp(0.75rem, 1.2vw, 0.8rem);
  line-height: 1.35;
  text-align: center;
}

.site-footer p {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 8px;
}

.site-footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-underline-offset: 3px;
}

.site-footer a:hover { color: #ff8a82; }

.site-footer a:focus-visible {
  outline: 3px solid #ff8a82;
  outline-offset: 3px;
}

@media (max-width: 560px) {
  .hero { align-items: end; padding: 16px; }
  .card { padding: 28px 24px 32px; box-shadow: 7px 7px 0 rgb(9 16 13 / 42%); }
  .logo { width: 88px; height: 88px; }
  h1 { margin-top: 28px; }
  .site-footer { padding-inline: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
