/* Nimbus Ware — landing page.
   No framework, no build step, no third-party requests. The whole page is this file
   plus index.html, so it can be dropped on any static host and stays fast on a phone. */

:root {
  color-scheme: dark light;

  --bg: #0b1020;
  --bg-glow: #16203c;
  --surface: #131a2e;
  --surface-hover: #1a2340;
  --border: #253052;
  --fg: #e9edf8;
  --muted: #94a2c4;
  --accent: #6fd3e6;
  --accent-soft: #6fd3e620;
  --building: #f0b03c;
  --planned: #8b9ac0;

  --radius: 14px;
  --wrap: 1080px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f7fc;
    --bg-glow: #e3e9f8;
    --surface: #ffffff;
    --surface-hover: #f7f9ff;
    --border: #dde3f2;
    --fg: #131a2e;
    --muted: #5a6788;
    --accent: #1d7f95;
    --accent-soft: #1d7f9518;
    --building: #9a6512;
    --planned: #6b7794;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  /* A soft nimbus behind the header, drawn with gradients so there's no image to load. */
  background-image: radial-gradient(
      70rem 30rem at 50% -12rem,
      var(--bg-glow) 0%,
      transparent 70%
    );
  background-repeat: no-repeat;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

/* Keyboard users get a real way past the header. */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  color: var(--fg);
  padding: 0.75rem 1rem;
  border-radius: 0 0 var(--radius) 0;
  z-index: 10;
}
.skip:focus {
  left: 0;
}

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

.hero {
  padding: clamp(3.5rem, 12vw, 7rem) 0 clamp(2rem, 6vw, 3.5rem);
  text-align: center;
}

.mark {
  color: var(--accent);
  width: clamp(56px, 12vw, 76px);
  margin: 0 auto 1.25rem;
}
.mark svg {
  width: 100%;
  height: auto;
  display: block;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.25rem, 7vw, 3.5rem);
  font-weight: 650;
  letter-spacing: -0.02em;
}

.tagline {
  margin: 0.75rem auto 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1rem, 2.5vw, 1.125rem);
}

/* --- Cards ----------------------------------------------------------------- */

.section-title {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 1rem;
}

.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

a.card:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
}

a.card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* A planned app is deliberately flatter — it should not invite a click that goes
   nowhere. */
.card.is-planned {
  opacity: 0.72;
  border-style: dashed;
}

.card h3 {
  margin: 0.75rem 0 0.5rem;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.meta {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.85;
}

.pill {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid currentColor;
}
.pill-live {
  color: var(--accent);
  background: var(--accent-soft);
}
.pill-building {
  color: var(--building);
}
.pill-planned {
  color: var(--planned);
}

/* --- About / footer -------------------------------------------------------- */

.note {
  margin: 3rem 0 0;
  padding: 1.5rem;
  border-left: 2px solid var(--border);
}
.note h2 {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.note p {
  margin: 0;
  color: var(--muted);
  max-width: 46rem;
}

footer {
  padding: 3rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
  a.card:hover {
    transform: none;
  }
}
