/* anubismarket.store
 * Dark reference tool. Deep Egyptian palette: gold on warm black,
 * a note of lapis. Semi-transparent panels, sharp corners, no shadows,
 * faint horizontal scanlines like an old monitor.
 */

:root {
  --bg: #0b0a08;
  --panel: rgba(24, 20, 12, 0.72);
  --panel-2: rgba(36, 29, 16, 0.55);
  --line: rgba(201, 161, 60, 0.16);
  --line-strong: rgba(201, 161, 60, 0.45);
  --gold: #c9a13c;
  --gold-bright: #e9c964;
  --gold-dim: #8a6f2a;
  --lapis: #4a7ba6;
  --teal: #58a08f;
  --text: #d9d1bd;
  --text-dim: #978d75;
  --text-faint: #6e6650;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", "DejaVu Sans Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  background-image:
    radial-gradient(1100px 480px at 50% -8%, rgba(201, 161, 60, 0.07), transparent 70%),
    radial-gradient(800px 400px at 88% 108%, rgba(74, 123, 166, 0.05), transparent 70%);
  background-attachment: fixed;
}

/* Faint horizontal lines, like an old monitor. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(233, 201, 100, 0.02) 0px,
    rgba(233, 201, 100, 0.02) 1px,
    transparent 1px,
    transparent 3px
  );
}

/* One-time power-on sweep. */
body::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  top: -160px;
  height: 140px;
  z-index: 91;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(233, 201, 100, 0.055), transparent);
  animation: sweep 1.5s ease-out 0.15s 1 both;
}

@keyframes sweep {
  from { top: -160px; }
  to   { top: 100vh; }
}

::selection {
  background: rgba(201, 161, 60, 0.35);
  color: #fff;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover { color: var(--gold-bright); }

:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 2px;
}

code {
  font-family: var(--mono);
  font-size: 0.92em;
  color: var(--gold-bright);
  background: rgba(201, 161, 60, 0.07);
  border: 1px solid var(--line);
  padding: 0 4px;
}

.wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--bg);
  color: var(--gold-bright);
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
}

.skip:focus {
  left: 12px;
  top: 12px;
}

/* ------------------------------------------------------------------ */
/*  Header                                                             */
/* ------------------------------------------------------------------ */

.site-head {
  border-bottom: 1px solid var(--line);
  background: rgba(11, 10, 8, 0.82);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding: 13px 20px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.brand .mark {
  color: var(--gold);
  flex: none;
  transition: transform 0.35s ease;
}

.brand:hover .mark {
  transform: rotate(90deg);
  color: var(--gold-bright);
}

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

.brand-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-bright);
  white-space: nowrap;
}

.brand-sub {
  display: block;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 2px;
}

/* Blinking block cursor after the wordmark. */
.cursor {
  display: inline-block;
  width: 7px;
  height: 12px;
  margin-left: 6px;
  vertical-align: -1px;
  background: var(--gold);
  animation: blink 1.15s steps(2, start) infinite;
}

@keyframes blink {
  to { visibility: hidden; }
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 18px;
}

.nav a {
  position: relative;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }

.nav a[aria-current="page"] { color: var(--gold-bright); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

/* ------------------------------------------------------------------ */
/*  Address block (top of every page)                                  */
/* ------------------------------------------------------------------ */

.addr-panel {
  margin: 26px auto 6px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 16px 20px 18px;
  position: relative;
}

.addr-panel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 36px;
  height: 3px;
  background: var(--gold);
}

.addr-cap {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
}

.addr-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 7px 10px;
  border: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.addr-row:hover {
  border-color: var(--line);
  background: var(--panel-2);
}

.addr-row + .addr-row { margin-top: 4px; }

.addr {
  flex: 1 1 320px;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text);
  word-break: break-all;
  user-select: all;
  background: none;
  border: none;
  padding: 0;
}

.addr-row:hover .addr { color: var(--gold-bright); }

.copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--gold);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 13px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.08s ease;
}

.copy:hover {
  border-color: var(--line-strong);
  color: var(--gold-bright);
  background: rgba(201, 161, 60, 0.06);
}

.copy:active { transform: translateY(1px); }

.copy svg { width: 13px; height: 13px; display: block; }

.copy .copy-ic-done { display: none; }
.copy .copy-label-done { display: none; }

.copy.done {
  border-color: rgba(88, 160, 143, 0.55);
  color: var(--teal);
  animation: pulse 0.7s ease;
}

.copy.done .copy-ic { display: none; }
.copy.done .copy-ic-done { display: inline-flex; }
.copy.done .copy-label { display: none; }
.copy.done .copy-label-done { display: inline-block; }

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(88, 160, 143, 0.35); }
  100% { box-shadow: 0 0 0 12px rgba(88, 160, 143, 0); }
}

/* ------------------------------------------------------------------ */
/*  Main content                                                       */
/* ------------------------------------------------------------------ */

/* main also carries the .wrap class, so use main.wrap to win the
 * specificity fight over .wrap's `padding: 0 20px`. */
main.wrap { padding: 44px 20px 12px; }

h1 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
  color: var(--text);
}

.h1-rule {
  width: 56px;
  height: 2px;
  background: var(--gold);
  margin: 16px 0 28px;
}

.page-body p {
  margin-bottom: 14px;
}

p.dim { color: var(--text-dim); }

h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 38px 0 14px;
}

h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.page-body a:not(.btn) {
  border-bottom: 1px dotted var(--line-strong);
}

.page-body a:not(.btn):hover {
  border-bottom-color: var(--gold-bright);
}

.btn {
  display: inline-block;
  border: 1px solid var(--line-strong);
  color: var(--gold-bright);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 18px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.btn:hover {
  background: rgba(201, 161, 60, 0.08);
  border-color: var(--gold);
  color: var(--gold-bright);
}

.btn:active { transform: translateY(1px); }

/* Numbered steps */
ol.steps {
  list-style: none;
  counter-reset: step;
  margin: 4px 0 16px;
}

ol.steps li {
  counter-increment: step;
  position: relative;
  padding: 11px 14px 11px 52px;
  border: 1px solid var(--line);
  background: var(--panel);
  margin-bottom: 8px;
  color: var(--text-dim);
  transition: border-color 0.2s ease, background 0.2s ease;
}

ol.steps li:hover {
  border-color: var(--line-strong);
  background: var(--panel-2);
}

ol.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 15px;
  top: 11px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gold);
}

/* Home link grid */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.grid a {
  display: block;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 14px 16px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.18s ease;
}

.grid a:hover {
  border-color: var(--line-strong);
  background: var(--panel-2);
  transform: translateY(-2px);
}

.g-title {
  display: block;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--gold-bright);
  margin-bottom: 4px;
}

.g-desc {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-dim);
}

/* FAQ */
.faq-item {
  border: 1px solid var(--line);
  background: var(--panel);
  margin-bottom: 10px;
  transition: border-color 0.2s ease;
}

.faq-item:hover { border-color: var(--line-strong); }

.faq-q {
  padding: 14px 16px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.faq-a {
  padding: 8px 16px 16px;
  color: var(--text-dim);
  margin: 0;
}

/* Glossary */
.gloss dt {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--gold-bright);
  margin-top: 18px;
}

.gloss dt:first-of-type { margin-top: 4px; }

.gloss dd {
  margin: 4px 0 0;
  color: var(--text-dim);
}

/* Troubleshooting symptoms */
.symptom {
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold-dim);
  background: var(--panel);
  padding: 14px 16px;
  margin-bottom: 10px;
  transition: border-left-color 0.25s ease, background 0.25s ease;
}

.symptom:hover {
  border-left-color: var(--gold);
  background: var(--panel-2);
}

.symptom h3 {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.symptom p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14.5px;
}

/* Ticks list (about page) */
ul.ticks {
  list-style: none;
  margin: 4px 0 16px;
}

ul.ticks li {
  position: relative;
  padding: 9px 12px 9px 30px;
  border: 1px solid var(--line);
  background: var(--panel);
  margin-bottom: 8px;
  color: var(--text-dim);
  font-size: 14.5px;
}

ul.ticks li::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 16px;
  width: 7px;
  height: 7px;
  background: var(--gold);
}

/* ------------------------------------------------------------------ */
/*  Footer                                                             */
/* ------------------------------------------------------------------ */

.site-foot {
  margin-top: 64px;
  border-top: 1px solid var(--line);
  background: rgba(11, 10, 8, 0.75);
}

.foot-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 36px 20px 30px;
}

.foot-brand .brand { margin-bottom: 14px; }

.foot-brand .mark { width: 24px; height: 24px; }

.foot-note {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-faint);
  max-width: 300px;
}

.foot-col h4 {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
}

.foot-col ul { list-style: none; }

.foot-col li { margin-bottom: 7px; }

.foot-col a {
  color: var(--text-dim);
  font-size: 13.5px;
}

.foot-col a:hover { color: var(--gold-bright); }

.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding: 15px 20px 22px;
  font-size: 12px;
  color: var(--text-faint);
}

/* ------------------------------------------------------------------ */
/*  Scroll reveal                                                      */
/* ------------------------------------------------------------------ */

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

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

/* ------------------------------------------------------------------ */
/*  Responsive                                                         */
/* ------------------------------------------------------------------ */

@media (max-width: 760px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .foot-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }

  h1 { font-size: 22px; }

  .topbar {
    justify-content: center;
    text-align: center;
  }

  .nav { justify-content: center; }
}

/* ------------------------------------------------------------------ */
/*  Reduced motion                                                     */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  body::after { display: none; }

  .cursor { animation: none; }

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

  .brand .mark,
  .grid a,
  .copy,
  .nav a::after {
    transition: none;
  }

  .copy.done { animation: none; }
}
