:root {
  --bg: #050608;
  --fg: #f0ece6;
  --muted: #9a978f;
  --accent: #8affc1;
  --accent-warm: #c4956a;
  --border: #2a2826;
  --shadow: rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
}

body {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 0.95rem;
  line-height: 1.65;
  background:
    radial-gradient(circle at 18% 14%, rgba(138, 255, 193, 0.05), transparent 22%),
    radial-gradient(circle at 82% 6%, rgba(196, 149, 106, 0.07), transparent 20%),
    linear-gradient(180deg, #050608 0%, #040507 46%, #030405 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(255, 255, 255, 0.012) 3px,
      rgba(255, 255, 255, 0.012) 4px
    );
  opacity: 0.4;
  mix-blend-mode: soft-light;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--fg);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 1rem 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.5rem;
  align-items: center;
  border-bottom: 1px solid rgba(42, 40, 38, 0.92);
  background: rgba(5, 6, 8, 0.86);
  backdrop-filter: blur(12px);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.nav a {
  color: var(--muted);
}

.nav a:first-child {
  color: var(--fg);
}

.nav a[aria-current="page"] {
  color: var(--accent-warm);
}

.nav a:hover {
  color: var(--accent);
}

.page-main {
  position: relative;
  z-index: 1;
}

.hero-wrap {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(42, 40, 38, 0.72);
}

.hero-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background:
    linear-gradient(to top, rgba(5, 6, 8, 1), rgba(5, 6, 8, 0.3) 65%, transparent 100%);
  pointer-events: none;
}

.hero-img {
  width: 100%;
  min-height: 320px;
  height: min(68vh, 720px);
  display: block;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.45) contrast(1.08) grayscale(0.18);
}

.content {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.circle-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.aspect {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-warm);
  margin-bottom: 1rem;
}

h1 {
  margin: 0 0 0.3rem;
  color: var(--accent-warm);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: clamp(2.5rem, 5.6vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.98;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.intro {
  margin-bottom: 2.5rem;
  padding-left: 1.2rem;
  border-left: 2px solid rgba(196, 149, 106, 0.7);
  color: var(--fg);
  font-size: 1.15rem;
}

.body-text {
  margin-bottom: 2rem;
  color: var(--muted);
}

.body-text p {
  margin: 0 0 1.2rem;
}

.artifact-block {
  margin: 2.7rem 0;
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(10, 12, 14, 0.94), rgba(7, 9, 11, 0.98));
  box-shadow: 0 24px 54px var(--shadow);
}

.artifact-label {
  margin-bottom: 0.5rem;
  color: var(--accent-warm);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.artifact-title {
  margin: 0 0 0.6rem;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.artifact-body {
  color: var(--muted);
  font-size: 0.88rem;
}

.trace {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.sister-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(122px, 1fr));
  gap: 0.55rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.sister-nav a {
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  text-align: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.sister-nav a:hover,
.sister-nav a.is-current {
  color: var(--accent-warm);
  border-color: rgba(196, 149, 106, 0.7);
  background: rgba(196, 149, 106, 0.08);
}

.back-link {
  margin-top: 3rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.back-link a {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
}

footer {
  padding: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

@media (max-width: 700px) {
  .nav {
    padding: 1rem 1.2rem;
  }

  .content {
    padding: 2rem 1.2rem 4rem;
  }

  .sister-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
