/* Flukz.org — open-source shmup community resource */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-base:     #0d1117;
  --bg-panel:    #161b22;
  --bg-card:     #1c2330;
  --bg-code:     #111820;
  --border:      #30363d;
  --accent:      #58a6ff;
  --accent-dim:  #1f6feb;
  --green:       #3fb950;
  --orange:      #d29922;
  --red:         #f85149;
  --txt-main:    #c9d1d9;
  --txt-muted:   #8b949e;
  --txt-faint:   #484f58;
  --txt-head:    #e6edf3;
  --mono:        "SFMono-Regular", "Consolas", "Liberation Mono", "Menlo", monospace;
  --sans:        -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --radius:      6px;
  --max-w:       1040px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg-base);
  color: var(--txt-main);
  font-family: var(--sans);
  line-height: 1.65;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── layout wrapper ── */
.fz-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── topbar ── */
.fz-topbar {
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--txt-muted);
  padding: 0.35rem 0;
}
.fz-topbar .fz-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.fz-topbar a { color: var(--green); }
.fz-topbar .fz-badge {
  display: inline-block;
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0 0.45rem;
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--green);
  margin-left: 0.4rem;
}
.fz-topbar .fz-badge-os { color: var(--accent); }
.fz-topbar .fz-badge-gpl { color: var(--orange); }

/* ── site header ── */
.fz-site-header {
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.fz-site-header .fz-wrap {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}
.fz-logo {
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--txt-head);
  letter-spacing: -0.02em;
}
.fz-logo span { color: var(--accent); }
.fz-logo-sub {
  font-size: 0.82rem;
  color: var(--txt-muted);
  font-family: var(--mono);
}

/* ── nav ── */
.fz-primary-nav {
  background: var(--bg-base);
  border-bottom: 1px solid var(--border);
}
.fz-primary-nav .fz-wrap {
  display: flex;
  gap: 0;
}
.fz-primary-nav a {
  display: inline-block;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  color: var(--txt-muted);
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.fz-primary-nav a:hover { color: var(--txt-main); text-decoration: none; }
.fz-primary-nav a.fz-nav-active { color: var(--accent); border-bottom-color: var(--accent); }

/* ── hero / project intro ── */
.fz-hero {
  background: linear-gradient(160deg, #0d1117 0%, #0f1923 60%, #0d1117 100%);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 0 2.5rem;
}
.fz-hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}
.fz-hero-tag {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--txt-muted);
  margin-bottom: 0.75rem;
}
.fz-hero-tag::before { content: "// "; color: var(--txt-faint); }
.fz-hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--txt-head);
  line-height: 1.2;
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}
.fz-hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.fz-hero-deck {
  font-size: 1.05rem;
  color: var(--txt-muted);
  max-width: 600px;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.fz-hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.fz-btn {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  transition: opacity 0.15s;
}
.fz-btn:hover { opacity: 0.85; text-decoration: none; }
.fz-btn-primary { background: var(--accent-dim); color: #fff; }
.fz-btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
}
.fz-hero-meta {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  min-width: 220px;
}
.fz-hero-meta .fz-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--txt-muted);
}
.fz-hero-meta .fz-meta-row:last-child { border-bottom: none; }
.fz-hero-meta .fz-meta-key { color: var(--txt-faint); }
.fz-hero-meta .fz-meta-val { color: var(--green); }
.fz-hero-meta .fz-meta-val-blue { color: var(--accent); }

/* ── feature strip ── */
.fz-feature-strip {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}
.fz-feature-strip h2 {
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--txt-faint);
  margin-bottom: 1.5rem;
}
.fz-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}
.fz-feature-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}
.fz-feature-card .fz-fc-icon {
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.fz-feature-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--txt-head);
  margin-bottom: 0.35rem;
}
.fz-feature-card p {
  font-size: 0.82rem;
  color: var(--txt-muted);
  line-height: 1.55;
}

/* ── changelog block ── */
.fz-changelog {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}
.fz-changelog-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.fz-changelog h2 {
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--txt-faint);
  margin-bottom: 1rem;
}
.fz-changelog-list { list-style: none; }
.fz-changelog-list li {
  display: flex;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.fz-changelog-list li:last-child { border-bottom: none; }
.fz-cl-ver {
  font-family: var(--mono);
  color: var(--green);
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 0.78rem;
  padding-top: 0.05rem;
}
.fz-cl-text { color: var(--txt-muted); }
.fz-roadmap-list { list-style: none; }
.fz-roadmap-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--txt-muted);
}
.fz-roadmap-list li:last-child { border-bottom: none; }
.fz-rm-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.38rem;
}
.fz-rm-done { background: var(--green); }
.fz-rm-wip  { background: var(--orange); }
.fz-rm-todo { background: var(--txt-faint); }
.fz-rm-label { font-family: var(--mono); font-size: 0.72rem; }
.fz-rm-done-label { color: var(--green); }
.fz-rm-wip-label  { color: var(--orange); }
.fz-rm-todo-label { color: var(--txt-faint); }

/* ── main two-column layout ── */
.fz-content-zone {
  padding: 2.5rem 0;
}
.fz-cols {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}
.fz-section-label {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--txt-faint);
  margin-bottom: 1rem;
}

/* ── devlog post list ── */
.fz-post-stream { list-style: none; }
.fz-post-stream li {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}
.fz-post-stream li:last-child { border-bottom: none; }
.fz-post-kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--txt-faint);
  margin-bottom: 0.3rem;
}
.fz-post-stream h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  line-height: 1.35;
}
.fz-post-stream h3 a { color: var(--txt-head); }
.fz-post-stream h3 a:hover { color: var(--accent); text-decoration: none; }
.fz-post-stream p {
  font-size: 0.85rem;
  color: var(--txt-muted);
  line-height: 1.6;
}

/* ── sidebar ── */
.fz-sidebar { }
.fz-sidebar-widget {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: 1.25rem;
}
.fz-sidebar-widget h4 {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--txt-faint);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.fz-sidebar-widget p {
  font-size: 0.83rem;
  color: var(--txt-muted);
  line-height: 1.6;
}
.fz-sidebar-widget ul {
  list-style: none;
}
.fz-sidebar-widget ul li {
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.83rem;
}
.fz-sidebar-widget ul li:last-child { border-bottom: none; }
.fz-sidebar-widget ul li::before {
  content: "> ";
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.75rem;
}

/* ── about / contact / section-landing pages ── */
.fz-page-canvas {
  max-width: 760px;
  margin: 2.5rem auto;
  padding: 0 1.25rem;
}
.fz-page-canvas h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--txt-head);
  margin-bottom: 0.5rem;
}
.fz-page-canvas .fz-page-intro {
  font-size: 1rem;
  color: var(--txt-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}
.fz-page-canvas h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--txt-head);
  margin: 2rem 0 0.6rem;
}
.fz-page-canvas p {
  font-size: 0.92rem;
  color: var(--txt-muted);
  line-height: 1.7;
  margin-bottom: 0.85rem;
}
.fz-page-canvas ul, .fz-page-canvas ol {
  margin: 0 0 1rem 1.25rem;
  font-size: 0.92rem;
  color: var(--txt-muted);
  line-height: 1.7;
}

/* ── contact form ── */
.fz-contact-form { margin-top: 1.5rem; }
.fz-form-row { margin-bottom: 1rem; }
.fz-form-row label {
  display: block;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--txt-muted);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.fz-form-row input,
.fz-form-row textarea,
.fz-form-row select {
  width: 100%;
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--txt-main);
  font-family: var(--sans);
  font-size: 0.9rem;
  padding: 0.55rem 0.75rem;
  outline: none;
  transition: border-color 0.15s;
}
.fz-form-row input:focus,
.fz-form-row textarea:focus { border-color: var(--accent); }
.fz-form-row textarea { min-height: 130px; resize: vertical; }
.fz-form-submit {
  display: inline-block;
  background: var(--accent-dim);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.55rem 1.4rem;
  cursor: pointer;
  transition: opacity 0.15s;
}
.fz-form-submit:hover { opacity: 0.85; }

/* ── article page ── */
.fz-article-wrap {
  max-width: 760px;
  margin: 2.5rem auto;
  padding: 0 1.25rem;
}
.fz-article-eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--txt-faint);
  margin-bottom: 0.5rem;
}
.fz-article-wrap h1 {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--txt-head);
  line-height: 1.25;
  margin-bottom: 0.65rem;
}
.fz-article-lede {
  font-size: 1.05rem;
  color: var(--txt-muted);
  line-height: 1.7;
  margin-bottom: 0.75rem;
  border-left: 3px solid var(--accent-dim);
  padding-left: 1rem;
}
.fz-article-dateline {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--txt-faint);
  margin-bottom: 2rem;
}
.fz-article-wrap h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--txt-head);
  margin: 2rem 0 0.6rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.fz-article-wrap p {
  font-size: 0.93rem;
  color: var(--txt-muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.fz-article-wrap ul, .fz-article-wrap ol {
  margin: 0 0 1rem 1.25rem;
  font-size: 0.93rem;
  color: var(--txt-muted);
  line-height: 1.75;
}
.fz-article-wrap li { margin-bottom: 0.35rem; }
.fz-code-block {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--green);
  overflow-x: auto;
  margin: 1.25rem 0;
  line-height: 1.6;
  white-space: pre;
}
.fz-code-block .cm { color: var(--txt-faint); }
.fz-code-block .kw { color: var(--accent); }
.fz-code-block .st { color: var(--orange); }
.fz-inline-code {
  font-family: var(--mono);
  font-size: 0.83em;
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.1em 0.4em;
  color: var(--green);
}

/* ── devlog section index ── */
.fz-section-index { padding: 2.5rem 0; }
.fz-section-index h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--txt-head);
  margin-bottom: 0.35rem;
}
.fz-section-index .fz-section-desc {
  font-size: 0.9rem;
  color: var(--txt-muted);
  margin-bottom: 2rem;
}

/* ── footer ── */
.fz-site-footer {
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
  margin-top: 2rem;
}
.fz-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.fz-footer-nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.fz-footer-nav a {
  font-size: 0.83rem;
  color: var(--txt-muted);
}
.fz-footer-nav a:hover { color: var(--txt-main); }
.fz-footer-copy {
  font-size: 0.78rem;
  color: var(--txt-faint);
  font-family: var(--mono);
}

/* ── responsive ── */
@media (max-width: 700px) {
  .fz-hero-inner { grid-template-columns: 1fr; }
  .fz-hero-meta { min-width: unset; }
  .fz-cols { grid-template-columns: 1fr; }
  .fz-changelog-inner { grid-template-columns: 1fr; }
  .fz-hero h1 { font-size: 1.6rem; }
}
