/* MOONFLICK website — base stylesheet.
   Palette is pinned here as the single source of truth for the brand colors
   (space-black background with cyan / magenta / deep-blue accents). Later M28
   tasks extend this file; keep it lean (see the css_js_bytes budget in
   scripts/web-check). */

:root {
  --space-black: #1a1932;
  --magenta: #f389f5;
  --cyan: #54f5ff;
  --deep-blue: #3003d9;

  --bg: var(--space-black);
  --bg-raised: #211f3d;
  --fg: #eef0ff;
  --fg-muted: #b7b8d6;
  --border: #38366a;

  --measure: 42rem;
  --font-body: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--cyan);
}

a:hover,
a:focus {
  color: var(--magenta);
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.9em;
  color: var(--fg);
  background: var(--bg-raised);
  padding: 0.1em 0.35em;
  border-radius: 3px;
  word-break: break-word;
}

/* --- Header ------------------------------------------------------------- */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--border);
}

.site-header__brand {
  display: inline-flex;
  line-height: 0;
}

.site-header__brand img {
  height: 40px;
  width: auto;
  image-rendering: pixelated;
}

.site-nav {
  display: flex;
  gap: clamp(0.75rem, 3vw, 1.75rem);
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  font-weight: 600;
}

/* --- Main / content ----------------------------------------------------- */

main {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 2.5rem);
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}

.hero__title {
  letter-spacing: 0.12em;
  color: var(--cyan);
}

.hero__pitch {
  font-size: 1.25rem;
  color: var(--fg);
}

.hero__body {
  color: var(--fg-muted);
}

.cta {
  margin: 2rem 0;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}

.btn--soon {
  color: var(--fg-muted);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  cursor: default;
}

.placeholder__note {
  color: var(--fg-muted);
  font-size: 0.95rem;
  border-left: 3px solid var(--deep-blue);
  padding-left: 1rem;
}

/* --- Footer ------------------------------------------------------------- */

.site-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  padding: 1.5rem clamp(1rem, 4vw, 2.5rem);
  color: var(--fg-muted);
  font-size: 0.9rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-bottom: 0.75rem;
}

.site-footer__links a {
  text-decoration: none;
}

.site-footer__legal {
  margin: 0;
}
