/* Smarcaz: the app's own look (dark panels, gold, ChunkFive headings). */
@font-face {
  font-family: "ChunkFive";
  src: url("fonts/ChunkFive-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0d0f11;
  --bg-2: #141719;
  --panel: #1b1e21;
  --panel-2: #23272a;
  --border: #33383c;
  --text: #e9eaeb;
  --text-2: #c6c9cb;
  --muted: #8f979c;
  --gold: #f1c040;
  --gold-2: #ffe58a;
  --gold-deep: #b5852c;
  --green: #7cc77f;
  --red: #e07a6f;
  --blue: #6ec0ff;
  --radius: 10px;
  --max: 1080px;
  --display: "ChunkFive", Georgia, serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(1200px 600px at 70% -10%, #2a2312 0%, transparent 60%) no-repeat, var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(13, 15, 17, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 18px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand span { font: 22px/1 var(--display); letter-spacing: 0.5px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.nav a {
  color: var(--text-2); padding: 7px 12px; border-radius: 8px; font-size: 15px; font-weight: 500;
}
.nav a:hover { background: var(--panel-2); color: var(--text); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--gold); background: var(--panel); }
.pill {
  display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--panel-2); border: 1px solid var(--border); color: var(--gold-2);
}

/* Hero */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero h1 { font: 64px/1 var(--display); margin: 0 0 6px; color: var(--gold); text-shadow: 0 3px 0 #000, 0 0 30px rgba(241, 192, 64, 0.15); }
.hero .tagline { font-size: 20px; color: var(--text-2); margin: 10px 0 24px; max-width: 34em; }
.hero-art { justify-self: center; width: min(300px, 70vw); filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.6)); }
.meta { color: var(--muted); font-size: 14px; margin-top: 10px; }

.install { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 14px 12px; }
.install-label { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.code { display: flex; gap: 10px; align-items: center; background: #0a0b0c; border: 1px solid var(--border); border-radius: 8px; padding: 10px 10px 10px 14px; }
.code code { font: 13.5px/1.5 var(--mono); color: var(--gold-2); overflow-x: auto; white-space: nowrap; flex: 1; min-width: 0; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--gold-deep); background: linear-gradient(#f6cf5a, #d9a531); color: #1b1404;
  font: 600 14px/1 var(--body); padding: 9px 14px; border-radius: 8px; cursor: pointer; white-space: nowrap;
}
.button:hover { filter: brightness(1.06); text-decoration: none; }
.button:disabled { opacity: 0.55; cursor: default; filter: none; }
.button.ghost { background: var(--panel-2); border-color: var(--border); color: var(--text); }

/* Sections */
main { padding-bottom: 64px; }
.section { padding: 28px 0; }
.section h2 { font: 30px/1.1 var(--display); color: var(--gold); margin: 0 0 6px; }
.section .lead { color: var(--text-2); margin: 0 0 22px; max-width: 46em; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.toc a { font-size: 14px; color: var(--text-2); background: var(--panel); border: 1px solid var(--border); padding: 5px 11px; border-radius: 999px; }
.toc a:hover { color: var(--gold); text-decoration: none; }

.group { margin: 0 0 40px; scroll-margin-top: 80px; }
.group-head { display: flex; align-items: baseline; gap: 12px; margin: 0 0 14px; }
.group-head h3 { font: 24px/1.1 var(--display); margin: 0; color: var(--text); }
.group-body { display: grid; grid-template-columns: 1fr; gap: 18px; }
.group-body.with-image { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.card h4 { margin: 0 0 4px; font-size: 16px; color: var(--gold-2); }
.card p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.shot { margin: 0; background: #08090a; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; position: sticky; top: 80px; }
/* Captures at their own size (never blown up); a tall one shows its top part. */
.shot { max-height: 600px; overflow: hidden; }
.shot img { display: block; width: auto; max-width: 100%; height: auto; margin: 0 auto; border-radius: 6px; }

/* Updates */
.release { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); margin: 0 0 12px; }
.release summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.release summary::-webkit-details-marker { display: none; }
.release summary::before { content: "›"; color: var(--muted); font-size: 20px; line-height: 1; transition: transform 0.15s; }
.release[open] summary::before { transform: rotate(90deg); }
.release .v { font: 20px/1 var(--display); color: var(--gold); }
.release .date { color: var(--muted); font-size: 14px; }
.release .count { margin-left: auto; color: var(--muted); font-size: 13px; }
.release ul { margin: 0; padding: 0 16px 14px 44px; }
.release li { margin: 6px 0; color: var(--text-2); font-size: 14.5px; }
.area { display: inline-block; font-size: 12px; font-weight: 700; color: var(--bg); background: var(--gold-2); border-radius: 5px; padding: 0 6px; margin-right: 6px; text-transform: lowercase; }
.latest { font-size: 12px; color: var(--green); border: 1px solid var(--green); border-radius: 999px; padding: 1px 8px; }

/* Report */
.form { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; max-width: 720px; }
.field { margin: 0 0 16px; }
.field label { display: block; font-weight: 600; margin: 0 0 6px; }
.field .hint { color: var(--muted); font-size: 13.5px; margin: 4px 0 0; }
.field textarea, .field input[type="text"] {
  width: 100%; background: #0a0b0c; color: var(--text); border: 1px solid var(--border); border-radius: 8px;
  font: 15px/1.5 var(--body); padding: 10px 12px;
}
.field textarea { min-height: 140px; resize: vertical; }
.drop {
  display: block; border: 1.5px dashed var(--border); border-radius: 10px; padding: 18px; text-align: center; color: var(--text-2);
  background: #0a0b0c; cursor: pointer;
}
.drop:hover, .drop.over { border-color: var(--gold); }
.drop input { display: none; }
.drop strong { color: var(--gold-2); }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 22px; max-width: 720px; }
.steps li { counter-increment: step; position: relative; padding: 0 0 10px 38px; color: var(--text-2); }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--panel-2); border: 1px solid var(--gold-deep); color: var(--gold); font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.progress { height: 8px; background: #0a0b0c; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; margin: 12px 0 0; display: none; }
.progress div { height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); transition: width 0.2s; }
.status { margin: 12px 0 0; min-height: 1.5em; }
.status.ok { color: var(--green); }
.status.error { color: var(--red); }
.honey { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.note { color: var(--muted); font-size: 13.5px; max-width: 720px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 13.5px; padding: 22px 0 32px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

@media (max-width: 860px) {
  .hero { padding: 36px 0 20px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .hero-art { order: -1; width: 140px; justify-self: start; }
  .hero h1 { font-size: 46px; }
  .group-body.with-image { grid-template-columns: 1fr; }
  .shot { position: static; }
  .nav { margin-left: 0; width: 100%; padding-bottom: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .release summary::before, .progress div { transition: none; }
}
