/* Launcher 2 palette (docs/RE_NOTES.md "Launcher 2 design"). */
:root {
  --leather: #241311;
  --bar: rgba(18, 9, 5, 0.72);
  --rule: #4a2c1a;
  --well: #1c0f09;
  --well-line: #55331f;
  --text: #f1e3c4;
  --dim: #c0a27c;
  --gold: #e8b24a;
  --gold-hover: #f6cd78;
  --on-gold: #2a1606;
  --lilac: #d39ad4;
  --ok: #a9cf8e;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--leather) url("img/leather.png") repeat;
  image-rendering: auto;
  color: var(--text);
  font: 17px/1.6 "Inter", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hover); text-decoration: underline; }

/* Top bar, like the launcher's tab row */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: var(--bar);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
}
.topbar .in {
  max-width: var(--max); margin: 0 auto; padding: 0 16px;
  height: 60px; display: flex; align-items: center; gap: 28px;
}
.topbar .logo img { height: 30px; width: auto; }
.topbar nav { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.topbar nav a {
  color: var(--dim); white-space: nowrap; font-size: 15px;
  padding: 18px 0 16px; border-bottom: 2px solid transparent;
}
.topbar nav a:hover { color: var(--text); text-decoration: none; border-bottom-color: var(--gold); }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--rule); }
.hero > img { width: 100%; height: min(78vh, 760px); object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(36,19,17,0) 35%, rgba(36,19,17,0.85) 82%, var(--leather) 100%);
}
.hero .copy {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  max-width: var(--max); margin: 0 auto; padding: 0 16px 44px;
}
.hero .title { width: min(520px, 80vw); height: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6)); }
.hero p.tag { font-size: 21px; max-width: 640px; margin: 14px 0 22px; text-shadow: 0 1px 4px rgba(0,0,0,0.8); }
.badge {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--lilac); border: 1px solid var(--lilac); border-radius: 6px; padding: 2px 8px; margin-left: 4px;
  vertical-align: middle;
}

.buttons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 26px; border-radius: 8px; font-weight: 600; font-size: 16px;
  border: 1px solid #5a3520; color: var(--text); background: rgba(28, 15, 9, 0.7);
}
.btn:hover { text-decoration: none; border-color: var(--gold); color: var(--text); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.btn.gold:hover { background: var(--gold-hover); border-color: var(--gold-hover); color: var(--on-gold); }

/* Sections */
main section { max-width: var(--max); margin: 0 auto; padding: 64px 16px 8px; }
h2 { font-size: 30px; line-height: 1.25; margin: 0 0 8px; font-weight: 700; color: var(--gold); }
h3 {
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600;
  color: var(--lilac); margin: 34px 0 12px;
}
.lead { color: var(--dim); font-size: 18px; max-width: 760px; margin: 0 0 8px; }
p { margin: 0 0 14px; }
.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 8px 40px; }
ul.list { list-style: none; margin: 0; padding: 0; }
ul.list li { padding: 11px 0 11px 22px; border-bottom: 1px solid rgba(74, 44, 26, 0.6); position: relative; }
ul.list li::before {
  content: ""; position: absolute; left: 2px; top: 20px;
  width: 8px; height: 8px; border-radius: 2px; background: var(--gold);
}
ul.list li b { color: var(--text); font-weight: 600; }
ul.list li span { color: var(--dim); }
ul.list.todo li::before { background: transparent; border: 1.5px solid var(--lilac); }
ul.list.off li::before { background: var(--well-line); }

/* Principles: three plain columns straight on the leather (launcher groups have no card box) */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; margin-top: 26px; }
.principles h3 { margin-top: 0; }
.principles p { color: var(--dim); font-size: 16px; }

/* Feature blocks: image + text */
.feature { display: grid; grid-template-columns: 1.35fr 1fr; gap: 32px; align-items: center; margin: 36px 0; }
.feature.flip { grid-template-columns: 1fr 1.35fr; }
.feature.flip figure { order: 2; }
.feature h3 { margin-top: 0; }
figure { margin: 0; }
figure img, .shot {
  border-radius: 10px; border: 1px solid var(--well-line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); cursor: zoom-in;
}
figcaption { font-size: 14px; color: var(--dim); margin-top: 8px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 18px; }
.gallery figure img { aspect-ratio: 1600 / 756; object-fit: cover; width: 100%; }

/* Launcher tabs */
.seg {
  display: inline-flex; background: var(--well); border: 1px solid var(--well-line);
  border-radius: 8px; padding: 3px; gap: 2px; margin: 18px 0 16px; flex-wrap: wrap;
}
.seg button {
  font: inherit; font-size: 15px; color: var(--dim); background: transparent; border: 0;
  height: 34px; padding: 0 16px; border-radius: 6px; cursor: pointer;
}
.seg button[aria-selected="true"] { background: var(--gold); color: var(--on-gold); font-weight: 600; }
.launcher-shot { max-width: 880px; }
.launcher-shot img[hidden] { display: none; }

/* Install steps */
ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 18px 0 0; max-width: 820px; }
ol.steps li { counter-increment: s; position: relative; padding: 4px 0 18px 48px; }
ol.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 2px;
  width: 32px; height: 32px; border-radius: 8px; background: var(--gold); color: var(--on-gold);
  font-weight: 700; display: grid; place-items: center;
}
code {
  font: 14px/1.4 Consolas, "Cascadia Mono", monospace; background: var(--well);
  border: 1px solid var(--well-line); border-radius: 5px; padding: 1px 6px; color: var(--text);
  overflow-wrap: anywhere;
}

.note {
  border-left: 3px solid var(--lilac); background: rgba(28, 15, 9, 0.6);
  padding: 14px 18px; border-radius: 0 8px 8px 0; color: var(--dim); margin: 22px 0; max-width: 820px;
}
.note b { color: var(--text); }

/* Credits */
.credits { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 4px 40px; }
.credits div { padding: 12px 0; border-bottom: 1px solid rgba(74, 44, 26, 0.6); }
.credits b { display: block; }
.credits span { color: var(--dim); font-size: 15px; }

footer { margin-top: 72px; background: var(--bar); border-top: 1px solid var(--rule); }
footer .in {
  max-width: var(--max); margin: 0 auto; padding: 26px 16px 34px;
  color: var(--dim); font-size: 14px; display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between;
}
footer .ok { color: var(--ok); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 50; background: rgba(10, 5, 3, 0.94);
  display: none; align-items: center; justify-content: center; padding: 16px; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 92vh; width: auto; border-radius: 8px; }

@media (max-width: 820px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 16px; }
  .feature.flip figure { order: 0; }
  .topbar .in { gap: 16px; }
  .topbar .logo img { height: 24px; }
  .hero > img { height: 62vh; }
  .hero p.tag { font-size: 18px; }
  h2 { font-size: 25px; }
  main section { padding-top: 48px; }
}
.gallery.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
