/* example.stormsites.ca — example static site served from a Storm Bucket.
   Self-contained: no external fonts, no CDNs, no JS. Copy the folder into a
   bucket and it serves as-is. Palette echoes Storm (storm.css). */

:root {
  --bg: #050505;
  --bg-soft: #0c0e12;
  --panel: #11141a;
  --line: #1d222c;
  --text: #e8edf3;
  --muted: #8a94a6;
  --primary: #1e90ff;
  --electric: #00d4ff;
}

* { box-sizing: border-box; }

html { color-scheme: dark; scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 600px at 80% -10%, rgba(0, 212, 255, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(30, 144, 255, 0.08), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

code { font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace; }

.dim { color: var(--muted); }

/* ---- top bar ---- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.4rem 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.bolt {
  width: 26px;
  height: 26px;
  fill: var(--electric);
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.5));
}

.nav { display: flex; gap: 1.4rem; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.15s ease;
}
.nav a:hover { color: var(--electric); }

/* ---- layout ---- */
main { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }

section { padding: 3.5rem 0; }

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
}
.section-sub { color: var(--muted); max-width: 60ch; margin: 0 0 2rem; }

/* ---- hero ---- */
.hero { padding-top: 2.5rem; padding-bottom: 2rem; }

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  color: var(--electric);
  margin: 0 0 1rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1.2rem;
  background: linear-gradient(135deg, #ffffff 0%, #cfe9ff 55%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lede { font-size: 1.12rem; color: #c4ccd8; max-width: 62ch; margin: 0 0 1.8rem; }

.url-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  font-size: 0.95rem;
}
.url-chip code { color: var(--electric); }
.url-chip .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 10px rgba(46, 204, 113, 0.8);
}

/* ---- cards ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: linear-gradient(180deg, var(--panel), var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.4rem;
}
.card h2 { font-size: 1.02rem; margin: 0 0 0.5rem; color: var(--electric); letter-spacing: 0.01em; }
.card p { margin: 0; color: #c4ccd8; font-size: 0.96rem; }
.card code { color: var(--text); background: #000; padding: 0.05rem 0.35rem; border-radius: 5px; }

/* ---- file tree ---- */
.tree {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-soft);
}
.tree li {
  display: flex;
  justify-content: space-between;
  padding: 0.85rem 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.tree li:first-child { border-top: none; }
.tree .path { font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--electric); }
.tree .meta { color: var(--muted); }

/* ---- banner ---- */
.banner-wrap { padding: 1rem 0 3rem; }
.banner {
  width: 100%;
  display: block;
  border-radius: 16px;
  border: 1px solid var(--line);
}

/* ---- terminal ---- */
.term {
  background: #07090d;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.2rem 1.3rem;
  color: #cdd6e3;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.7;
  overflow-x: auto;
}
.term .prompt { color: var(--electric); margin-right: 0.5rem; }

/* ---- footer ---- */
.foot {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}
.foot p { margin: 0.3rem 0; font-size: 0.9rem; }
.foot a { color: var(--electric); text-decoration: none; }
.foot a:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .nav { display: none; }
  section { padding: 2.4rem 0; }
}
