:root {
  --bg: #0e0d0b;
  --bg2: #17150f;
  --card: #1d1a13;
  --line: #2f2a1e;
  --text: #ece6d8;
  --muted: #a39b88;
  --gold: #e3b341;
  --gold2: #f5d77a;
  --green: #5fc77a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--gold2); }
img { max-width: 100%; height: auto; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .9em; background: var(--bg2); padding: 1px 5px; border-radius: 4px; }

/* the menu and copy buttons work only with scripts: early.js adds the "js" class, so without
   scripts they stay hidden and the menu's links stay in view */
.copy { display: none; }
html.js .copy { display: inline-block; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.section { padding: 64px 16px; }
.wrap.section { padding: 64px 16px; }
.alt { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: 1.9rem; margin: 0 0 24px; }
h3 { margin: 28px 0 10px; }
.muted { color: var(--muted); }
.todo { color: var(--gold); font-style: italic; }

.banner { background: #3a2c08; color: var(--gold2); text-align: center; padding: 8px 16px; font-size: .9rem; }

.nav { position: sticky; top: 0; z-index: 10; background: rgba(14,13,11,.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.brand img { border-radius: 50%; }
.links { display: flex; align-items: center; gap: 22px; }
.links a { color: var(--text); text-decoration: none; }
.links a:hover { color: var(--gold2); }
.menu-btn { background: none; border: 1px solid var(--line); color: var(--text); border-radius: 6px; padding: 4px 10px; cursor: pointer; font: inherit; }
.menu-btn { display: none; font-size: 1.2rem; }

.hero { padding: 72px 0; background: radial-gradient(ellipse at 75% 40%, rgba(227,179,65,.16), transparent 60%); }
.hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; margin: 8px 0 18px; }
.hero-logo { justify-self: center; border-radius: 50%; box-shadow: 0 0 80px rgba(227,179,65,.25); }
.tag { color: var(--gold); letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; margin: 0; }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 560px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.btn { display: inline-block; padding: 10px 18px; border-radius: 8px; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; background: var(--card); }
.btn:hover { border-color: var(--gold); }
.btn.primary { background: var(--gold); color: #1a1406; border-color: var(--gold); }
.btn.primary:hover { background: var(--gold2); }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.card h3 { margin-top: 0; color: var(--gold2); }
.card p { color: var(--muted); margin: 0; }
.feat { border-left: 3px solid var(--gold); padding: 4px 0 4px 14px; }
.feat p { color: var(--muted); margin: 4px 0 0; }

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.shots figure { margin: 0; }
.shots img { border-radius: 8px; border: 1px solid var(--line); display: block; }
.shots figcaption { color: var(--muted); font-size: .9rem; margin-top: 6px; text-align: center; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 500; }
tr:last-child th, tr:last-child td { border-bottom: none; }

.ver { font-size: .9rem; color: var(--gold); border: 1px solid var(--gold); border-radius: 999px; padding: 2px 10px; vertical-align: middle; }
.pill { font-size: .75rem; color: var(--bg); background: var(--green); border-radius: 999px; padding: 2px 8px; vertical-align: middle; font-weight: 600; }
.dl .btn { margin: 16px 8px 0 0; }
.notes { color: var(--muted); padding-left: 20px; margin-top: 24px; }
.notes li { margin: 6px 0; }

.steps li { margin: 8px 0; }
.code { position: relative; background: #0a0907; border: 1px solid var(--line); border-radius: 10px; margin: 12px 0 20px; }
.code pre { margin: 0; padding: 16px; overflow-x: auto; }
.code code { background: none; padding: 0; font-size: .88rem; }
.copy { position: absolute; top: 8px; right: 8px; background: var(--card); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 3px 10px; cursor: pointer; font: inherit; font-size: .8rem; }
.copy:hover { color: var(--text); border-color: var(--gold); }

.road { list-style: none; padding: 0; margin: 0; }
.road li { padding: 10px 0 10px 34px; position: relative; border-left: 2px solid var(--line); margin-left: 8px; }
.road li::before { content: ""; position: absolute; left: -8px; top: 15px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg2); border: 2px solid var(--line); }
.road li.done::before { background: var(--green); border-color: var(--green); }
.road li.now::before { background: var(--gold); border-color: var(--gold); }

.foot { display: flex; align-items: center; gap: 10px; padding: 28px 16px; color: var(--muted); font-size: .9rem; }

@media (max-width: 820px) {
  .hero-inner, .grid3, .grid2, .two, .shots { grid-template-columns: 1fr; }
  .hero-logo { width: 160px; grid-row: 1; }
  /* without scripts the links wrap under the brand; with them they open from the menu button */
  .nav-inner { flex-wrap: wrap; height: auto; min-height: 60px; }
  .links { flex-wrap: wrap; gap: 0 18px; padding-bottom: 10px; }
  html.js .nav-inner { flex-wrap: nowrap; height: 60px; }
  html.js .menu-btn { display: block; }
  html.js .links { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  html.js .links.open { display: flex; }
  html.js .links a { padding: 10px 0; width: 100%; }
  .section, .wrap.section { padding: 48px 16px; }
  th, td { padding: 8px 10px; }
}
.onion, .seeds code { overflow-wrap: anywhere; }
.seeds code { display: inline-block; margin: 2px 4px 2px 0; }
.seeds small { display: block; margin-top: 4px; }
/* a command on a line of its own: never broken in the middle, scrolled within itself if too wide */
code.cmd { display: block; width: fit-content; max-width: 100%; overflow-x: auto; white-space: nowrap; margin: 6px 0; padding: 4px 8px; background: #0a0907; border: 1px solid var(--line); }
.fpr-line { margin: 16px 0; }
.fpr { font-size: 1em; color: var(--gold2); overflow-wrap: anywhere; }
