/* ============================================================
   Omega Market clearnet: main.css
   Palette: dark navy neutrals + one teal accent (market identity).
   Type: Space Grotesk (display), IBM Plex Sans (prose),
         IBM Plex Mono (addresses / data).
   Self-hosted, no third-party requests.
   ============================================================ */

:root {
  --bg:        #0b0d12;
  --bg-soft:   #0e1117;
  --panel:     #11141b;
  --panel-2:   #151922;
  --line:      #1e2430;
  --line-soft: #181d27;
  --text:      #d7dce6;
  --muted:     #8b93a7;
  --faint:     #5c667d;
  --accent:    #56b3a7;
  --accent-2:  #6cc4b8;
  --accent-soft: rgba(86, 179, 167, 0.13);
  --green:     #46c98d;
  --red:       #e0655f;
  --amber:     #d8a24a;

  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --sans: 'IBM Plex Sans', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --disp: 'Space Grotesk', 'IBM Plex Sans', sans-serif;

  --wrap: 1080px;
  --measure: 820px;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

::selection { background: var(--accent); color: #08110f; }

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: #33404f;
  text-underline-offset: 2px;
}
a:hover { color: #fff; text-decoration-color: var(--accent); }

.mono { font-family: var(--mono); font-size: 0.85em; letter-spacing: 0.01em; }
code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 1px 5px;
  color: #cdd5e4;
  overflow-wrap: anywhere;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #08110f; padding: 8px 14px; z-index: 100;
  font-weight: 600; text-decoration: none;
}
.skip:focus { left: 8px; top: 8px; }

.container {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ---------- top status bar ---------- */
.topbar {
  background: #080a0e;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--muted);
}
.topbar-in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 7px;
  padding-bottom: 7px;
}
.dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  margin-right: 7px;
  background: var(--faint);
}
.dot.ok { background: var(--green); box-shadow: 0 0 6px rgba(70, 201, 141, 0.7); }
.topbar-right { display: none; }

/* ---------- header ---------- */
.site-head {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #0d1119 0%, var(--bg) 100%);
  position: relative;
}
.head-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 15px;
  padding-bottom: 15px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand:hover { color: #fff; }
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 7px;
  display: block;
  background: #161d2b;
  border: 1px solid var(--line);
}
.brand-name { font-family: var(--disp); font-size: 1.08rem; font-weight: 500; letter-spacing: 0.01em; }
.brand-name b { font-weight: 700; }

.main-nav { display: flex; gap: 2px; }
.main-nav a {
  display: block;
  padding: 7px 11px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-radius: 6px;
  white-space: nowrap;
}
.main-nav a:hover { color: #fff; background: var(--panel); }
.main-nav a.active { color: var(--accent); background: var(--accent-soft); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 10px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; }

/* ---------- hero logo (the "official" marker) ---------- */
.hero-logo {
  text-align: center;
  padding: 34px 0 6px;
}
.hero-logo img {
  width: 64px; height: 64px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #10141c;
}
.hero-logo .name {
  display: block;
  margin-top: 12px;
  font-family: var(--disp);
  font-size: 1.2rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #fff;
}
.hero-logo .name b { color: var(--accent); font-weight: 700; }

/* Page H1 under the centered logo: descriptive, not a giant hero. */
.page-title {
  font-family: var(--disp);
  font-size: clamp(1.25rem, 3.2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  text-align: center;
  margin: 18px auto 0;
  max-width: 760px;
  color: #fff;
}

/* H1 for static content pages: left aligned inside the 820px column. */
.prose-title {
  font-family: var(--disp);
  font-size: clamp(1.55rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.22;
  margin: 18px 0 16px;
}
.content-block .dek {
  font-size: 1.02rem;
  color: #b9c1d2;
  margin: 0 0 22px;
}

/* ---------- status strip ---------- */
.status-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 22px auto 0;
  padding: 10px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: var(--bg-soft);
  font-size: 13px;
  color: var(--muted);
  max-width: 720px;
}
.status-strip .status-text { color: var(--text); font-weight: 500; }
.status-strip .status-meta { font-family: var(--mono); font-size: 11.5px; color: var(--faint); }

/* ---------- mirrors ---------- */
.mirrors {
  max-width: 760px;
  margin: 22px auto 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 0 4px;
}
.links-label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin: 10px 0 4px;
}
.mirror-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line-soft);
}
.mirror-row:last-of-type { border-bottom: 0; }
.mirror-link {
  flex: 1 1 auto;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  overflow-wrap: anywhere;
  line-height: 1.5;
  border-bottom: 1px solid transparent;
}
.mirror-link:hover { color: var(--accent); border-bottom-color: var(--accent); }
.copy-btn {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(86, 179, 167, 0.4);
  border-radius: 6px;
  padding: 6px 13px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.copy-btn:hover { background: rgba(86, 179, 167, 0.24); }
.copy-btn.copied { color: var(--green); border-color: rgba(70, 201, 141, 0.5); background: rgba(70, 201, 141, 0.1); }
.mirror-note {
  font-size: 13px;
  color: var(--faint);
  padding: 12px 18px 16px;
  line-height: 1.55;
}

/* Journal entry list (rendered on /journal.html). */
.journal-list { list-style: none; padding: 0; margin: 18px 0 0; border-top: 1px solid var(--line-soft); }
.journal-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}
.journal-list a { text-decoration: none; font-weight: 500; }
.journal-list a:hover { color: var(--accent); text-decoration: underline; }
.journal-list .news-date { font-family: var(--mono); font-size: 12px; color: var(--faint); white-space: nowrap; }

/* ---------- main content ---------- */
main.container { padding: 8px 20px 56px; }

/* Visible breadcrumb trail, aligned to the content column. */
.crumbs {
  max-width: var(--measure);
  margin: 0 auto 4px;
  padding-top: 12px;
}
.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 12px;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: var(--faint);
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs li + li::before {
  content: '\203a';
  margin-right: 8px;
  color: #33404f;
}

/* Prose lives in a centered readable column; the header/footer keep the
   wider 1080px frame. The mirrors card and status strip are narrower still. */
.content-block,
.steps,
.faq,
.news-feed,
.guides,
article {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
article .mirrors, article .status-strip { max-width: none; }

h1 {
  font-family: var(--disp);
  font-size: clamp(1.7rem, 4.5vw, 2.3rem);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 22px 0 14px;
}
h2 {
  font-family: var(--disp);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
  line-height: 1.3;
}
h3 {
  font-family: var(--disp);
  font-size: 1.06rem;
  font-weight: 600;
  margin: 26px 0 8px;
}
p { margin: 0 0 16px; }
main ul, main ol { padding-left: 22px; margin: 0 0 16px; }
main li { margin: 6px 0; }
main li::marker { color: var(--accent); }

/* content blocks: hairline separated, dense but breathing */
.content-block {
  margin-bottom: 8px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line-soft);
}
.content-block:last-of-type { border-bottom: 0; }
.content-block h2 { margin-top: 26px; }
.content-block:first-of-type h2 { margin-top: 8px; }

/* callout */
.callout {
  border-left: 3px solid var(--accent);
  background: var(--panel);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 14.5px;
  color: #b9c1d2;
}
.callout .callout-k {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.callout code.pgp {
  display: block;
  font-size: 13px;
  letter-spacing: 0.03em;
  background: var(--bg-soft);
  border-color: var(--line);
  padding: 8px 10px;
  margin-bottom: 8px;
}
.callout p { margin: 0; }
.callout.warn { border-left-color: var(--amber); }

/* numbered steps */
.steps { counter-reset: step; margin: 20px 0 8px; list-style: none; padding: 0; }
.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line-soft);
}
.step:first-child { border-top: 0; }
.step-num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid rgba(86, 179, 167, 0.45);
  border-radius: 50%;
  width: 34px; height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
}
.step h3 { margin: 4px 0 6px; }
.step p { margin: 0; color: #b9c1d2; font-size: 15px; }

/* FAQ (native details/summary, no JS) */
.faq { border-top: 1px solid var(--line-soft); padding: 16px 0; }
.faq:first-of-type { border-top: 0; }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--disp);
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.4;
  padding-right: 24px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 0; top: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 1.1rem;
}
.faq[open] summary::after { content: '\2013'; }
.faq p { margin: 10px 0 0; color: #b9c1d2; font-size: 15px; }

/* news feed */
.news-feed { }
.news-item { padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.news-item:last-child { border-bottom: 0; }
.news-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
  margin-bottom: 6px;
}
.news-item h3 { margin: 2px 0 6px; font-size: 1.06rem; }
.news-item h3 a { text-decoration: none; }
.news-item h3 a:hover { color: var(--accent); }
.news-item .dek { margin: 0; color: var(--muted); font-size: 14.5px; }

/* guides nav (inline link cloud) */
.guides { }
.guide-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 4px;
}
.guide-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 13px;
  transition: all 0.15s ease;
}
.guide-links a:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

/* ---------- article page ---------- */
.post-head { margin-bottom: 8px; }
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  margin: 18px 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.post-body { font-size: 15.5px; }
.post-body h2 { scroll-margin-top: 24px; }
.dek {
  font-size: 1.1rem;
  color: #b9c1d2;
  line-height: 1.6;
  margin: 0 0 20px;
}

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
}

.related {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.related h2 { margin-top: 0; font-size: 1.1rem; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.related li:last-child { border-bottom: 0; }
.related a { text-decoration: none; color: var(--text); }
.related a:hover { color: var(--accent); }

.news-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--faint);
}
.news-nav a { color: var(--muted); text-decoration: none; }
.news-nav a:hover { color: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #08110f;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  border-radius: 7px;
  padding: 11px 20px;
  border: 1px solid var(--accent);
}
.btn:hover { background: var(--accent-2); color: #08110f; }
.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  border-radius: 7px;
  padding: 11px 20px;
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- 404 ---------- */
.err { text-align: center; padding: 40px 0; }
.err-code {
  font-family: var(--mono);
  font-size: clamp(3rem, 10vw, 4.5rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
  margin: 20px 0 6px;
}
.err h1 { margin-top: 0; }
.err p { color: var(--muted); }

/* ---------- footer ---------- */
.site-foot {
  border-top: 1px solid var(--line);
  background: #080a0e;
  margin-top: 10px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding-top: 40px;
  padding-bottom: 30px;
}
.foot-h {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 14px;
  font-weight: 600;
}
.foot-col a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  padding: 4px 0;
}
.foot-col a:hover { color: var(--accent); }
.foot-onion { font-size: 12px; overflow-wrap: anywhere; line-height: 1.6; }
.foot-about p { font-size: 13.5px; color: var(--muted); margin: 14px 0 0; }
.foot-about .brand { margin-top: 0; }
.foot-disc { font-size: 12px !important; color: var(--faint) !important; margin-top: 14px !important; line-height: 1.55; }
.foot-brand { margin-top: 0; }
.foot-more { color: var(--accent) !important; margin-top: 8px; }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 18px;
  padding-bottom: 22px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--faint);
}

/* ---------- mobile ---------- */
@media (max-width: 899px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0d1119;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 10px 20px 16px;
    gap: 2px;
    z-index: 50;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 11px 8px; font-size: 15px; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .main-nav a:last-child { border-bottom: 0; }
  .nav-toggle { display: flex; }
  .topbar-in { justify-content: flex-start; }
  .hero-logo { padding-top: 26px; }
  .hero-logo .name { letter-spacing: 4px; font-size: 1.05rem; }
  h1 { margin-top: 18px; }
  h2 { margin-top: 32px; }
  .step { grid-template-columns: 38px 1fr; gap: 12px; }
  .step-num { width: 30px; height: 30px; font-size: 12px; }
  .mirror-row { flex-wrap: wrap; }
  .copy-btn { width: 100%; text-align: center; }
  .foot-grid { gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
