/* ============================================================
   Shadow X Market mirror desk
   Light, document-like layout. Content column 760px,
   header 1100px. Georgia headings, system sans body.
   ============================================================ */

:root {
  --bg: #f2f1ec;
  --sheet: #ffffff;
  --paper: #fbfaf7;
  --ink: #17191d;
  --body: #2b2d31;
  --muted: #6f737b;
  --line: #e3e0d8;
  --accent: #6d5bd0;
  --green: #2fa26a;
  --dark: #17191d;
  --darker: #101114;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--accent); }

/* ---------- top status strip ---------- */

.status-strip { background: var(--darker); }

.strip-in {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12.5px;
  color: #9aa0a6;
}

.status-left { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }

.status-right { white-space: nowrap; }
.status-right a { color: #c9ccd2; text-decoration: none; }
.status-right a:hover { text-decoration: underline; }

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: sx-pulse 2.4s ease-in-out infinite;
}

@keyframes sx-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(47, 162, 106, 0.45); }
  50%      { box-shadow: 0 0 0 6px rgba(47, 162, 106, 0); }
}

/* ---------- header ---------- */

.site-header { background: var(--dark); border-bottom: 1px solid #23262c; }

.head-in {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand .logo { flex: 0 0 auto; display: block; }

.brand-text { display: block; line-height: 1.15; }

.brand-name {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.2px;
  color: #f2f1ec;
}

.brand-tag {
  display: block;
  font-size: 11px;
  letter-spacing: 0.4px;
  color: #8a8f98;
}

/* the "unusual bold" menu: heavy uppercase with a sliding underline */

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

.main-nav a {
  position: relative;
  display: inline-block;
  padding: 9px 11px;
  color: #c9ccd2;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 3px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.main-nav a:hover { color: #ffffff; }
.main-nav a:hover::after { transform: scaleX(1); }
.main-nav a.active { color: #ffffff; }
.main-nav a.active::after { transform: scaleX(1); }

/* ---------- page column: breadcrumbs, sheet, footer (760px) ---------- */

.page-col {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

.breadcrumb {
  margin: 22px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumb .sep { margin: 0 7px; color: #b9bcbf; }
.breadcrumb .current { color: var(--body); }

.sheet {
  margin-top: 14px;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 42px 48px 46px;
  box-shadow: 0 1px 0 rgba(23, 25, 29, 0.04);
}

h1 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.22;
  font-weight: 700;
  color: var(--ink);
}

.meta {
  margin: 0 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

/* decorative 404 numeral on the not-found page */
.num404 {
  margin: -8px 0 26px;
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  color: #dedbd2;
}

/* ---------- prose ---------- */

.prose p {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--body);
}

.prose h2 {
  margin: 34px 0 14px;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--ink);
}

.prose h3 {
  margin: 28px 0 12px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose strong { color: var(--ink); }

.sx-list {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.sx-list li {
  position: relative;
  margin: 0 0 9px;
  padding-left: 20px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--body);
}

.sx-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.sx-table {
  width: 100%;
  margin: 0 0 22px;
  border-collapse: collapse;
  font-size: 14.5px;
}

.sx-table th {
  padding: 8px 10px;
  text-align: left;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
}

.sx-table td {
  padding: 8px 10px;
  color: var(--body);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

/* ---------- market at a glance ---------- */

.glance {
  width: 100%;
  margin: 0 0 10px;
  border-collapse: collapse;
}

.glance tr { border-bottom: 1px solid var(--line); }
.glance tr:last-child { border-bottom: 0; }

.glance th {
  width: 40%;
  padding: 9px 14px 9px 0;
  text-align: left;
  vertical-align: top;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
}

.glance td {
  padding: 9px 0;
  font-size: 15px;
  color: var(--ink);
}

/* ---------- mirror cards ---------- */

.mirror-cards {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
}

.mirror-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
  background: var(--dark);
  border-radius: 10px;
}

.mirror-onion {
  flex: 1;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.55;
  color: #e9e7e0;
  word-break: break-all;
}

.copy-btn {
  flex: 0 0 auto;
  padding: 8px 16px;
  border: 0;
  border-radius: 7px;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}

.copy-btn:hover { transform: translateY(-1px); }
.copy-btn.copied { background: var(--green); }

/* ---------- FAQ accordions ---------- */

.faq details {
  margin: 0 0 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.faq summary {
  position: relative;
  padding: 14px 44px 14px 18px;
  cursor: pointer;
  list-style: none;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 12px;
  font-size: 18px;
  color: var(--accent);
}

.faq details[open] summary::after { content: "\2013"; }

.faq-a {
  padding: 0 18px 16px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--body);
}

.faq-a p { margin: 0 0 10px; }
.faq-a p:last-child { margin-bottom: 0; }

/* ---------- latest guides grid ---------- */

.guides-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 4px;
}

.guide-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.guide-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(23, 25, 29, 0.08);
}

.guide-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.guide-date {
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- footer (same 760px width as the content) ---------- */

.site-footer { margin: 26px 0 64px; }

.foot-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.foot-col h4 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
}

.foot-col ul { margin: 0; padding: 0; list-style: none; }
.foot-col li { margin: 0 0 8px; }

.foot-col a {
  font-size: 14px;
  color: var(--body);
  text-decoration: none;
}

.foot-col a:hover { color: var(--accent); text-decoration: underline; }

.foot-note {
  margin: 22px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- motion (only when JS is present) ---------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

html.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .dot { animation: none; }
  .copy-btn, .guide-card, .main-nav a::after { transition: none; }
}

/* ---------- small screens ---------- */

@media (max-width: 720px) {
  .sheet { padding: 26px 20px 30px; border-radius: 8px; }

  h1 { font-size: 25px; }

  .head-in {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .main-nav a { padding: 8px 8px; }

  .strip-in { min-height: 0; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }

  .guides-grid, .foot-cols { grid-template-columns: 1fr; }

  .sx-table { display: block; overflow-x: auto; }
}
