/* ────────────────────────────────────────────────────────────────
   DΛREΛKT_ — Dark Terminal Theme
   Retro DOS aesthetic, glowing lambda, elegant monospace.
   ──────────────────────────────────────────────────────────────── */

/* ── UNLAYERED OVERRIDES — beat module layers (canvas, navbar) ── */
html[data-site="dareakt"] {
  background: #0a0a0a;
}

body[data-site="dareakt"] {
  --site-bg: #0a0a0a;
  --site-bg-light: #0a0a0a;
  --site-bg-dark: #0a0a0a;
  --site-fg: #e8e8e8;
  --site-fg-bright: #ffffff;
  --site-accent: #00ffcc;
  --site-accent-dim: rgba(0, 255, 204, 0.15);
  --site-border: rgba(255, 255, 255, 0.06);
  --site-pad: clamp(1.5rem, 5vw, 4rem);
  --site-max: 960px;
  --site-font: "IBM Plex Mono", "Fira Code", "Cascadia Code", Consolas, "Courier New", monospace;
  --site-glow: 0 0 8px rgba(0, 255, 204, 0.6), 0 0 24px rgba(0, 255, 204, 0.2);
  --background-color: #0a0a0a;

  background: #0a0a0a;
  color: var(--site-fg);
  font-family: var(--site-font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

html[data-site="dareakt"],
body[data-site="dareakt"] {
  height: 100%;
  margin: 0;
}

/* Force canvas dark regardless of data-theme attribute */
body[data-site="dareakt"] .ui-canvas,
body[data-site="dareakt"] .ui-canvas[data-theme="light"],
body[data-site="dareakt"] .ui-canvas[data-theme="dark"] {
  background: #0a0a0a;
}

body[data-site="dareakt"] .ui-layout {
  background: #0a0a0a;
}

/* ── Terminal Navbar — unlayered to beat module layers ──────── */
body[data-site="dareakt"] .ui-navbar__wrap {
  background: rgba(10, 10, 10, 0.85);
  border-bottom: 1px solid rgba(0, 255, 204, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}

body[data-site="dareakt"] .ui-navbar {
  background: transparent;
  max-width: var(--site-max, 960px);
  margin: 0 auto;
}

body[data-site="dareakt"] .ui-navbar__inner {
  padding: 0.6rem var(--site-pad);
}

body[data-site="dareakt"] .ui-navbar__logo {
  color: #00ffcc;
  font-family: var(--site-font);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

body[data-site="dareakt"] .ui-navbar__menu {
  gap: 0.15rem;
}

body[data-site="dareakt"] .ui-navbar__link {
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--site-font);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

body[data-site="dareakt"] .ui-navbar__link:hover {
  color: #00ffcc;
  border-color: rgba(0, 255, 204, 0.25);
}

body[data-site="dareakt"] .ui-navbar__link[aria-current="page"],
body[data-site="dareakt"] .ui-navbar__link.active {
  color: #00ffcc;
  border-color: rgba(0, 255, 204, 0.5);
}

body[data-site="dareakt"] .ui-navbar__burger {
  color: rgba(255, 255, 255, 0.5);
}

/* ── Text colors — unlayered to beat module layers ───────────── */
body[data-site="dareakt"] h1,
body[data-site="dareakt"] h2,
body[data-site="dareakt"] h3 {
  color: #ffffff;
}

body[data-site="dareakt"] h2 {
  color: #00ffcc;
}

body[data-site="dareakt"] p {
  color: #e8e8e8;
}

body[data-site="dareakt"] .module-wrapper--dareakt-description p {
  color: #c0c0c0;
}

body[data-site="dareakt"] .module-wrapper--dareakt-separator p {
  color: rgba(255, 255, 255, 0.5);
}

body[data-site="dareakt"] .module-wrapper--dareakt-system-info p {
  color: rgba(255, 255, 255, 0.6);
}

body[data-site="dareakt"] .ui-section-footer,
body[data-site="dareakt"] .ui-section-footer__credits {
  color: rgba(255, 255, 255, 0.6);
}

/* ── List items (copy.fromJson arrays) — terminal readout ──── */
body[data-site="dareakt"] .module-wrapper--philosophy-laws-list .ui-copy__item,
body[data-site="dareakt"] .module-wrapper--philosophy-principles-list .ui-copy__item,
body[data-site="dareakt"] .module-wrapper--architecture-boot-list .ui-copy__item,
body[data-site="dareakt"] .module-wrapper--architecture-modules-list .ui-copy__item,
body[data-site="dareakt"] .module-wrapper--architecture-bus-list .ui-copy__item,
body[data-site="dareakt"] .module-wrapper--security-levels-list .ui-copy__item,
body[data-site="dareakt"] .module-wrapper--security-capabilities-list .ui-copy__item,
body[data-site="dareakt"] .module-wrapper--security-evidence-list .ui-copy__item,
body[data-site="dareakt"] .module-wrapper--security-egress-list .ui-copy__item {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  line-height: 1.9;
  padding-left: 1.5em;
  position: relative;
  margin-block: 0.25em;
}

body[data-site="dareakt"] .module-wrapper--philosophy-laws-list .ui-copy__item::before,
body[data-site="dareakt"] .module-wrapper--philosophy-principles-list .ui-copy__item::before,
body[data-site="dareakt"] .module-wrapper--architecture-boot-list .ui-copy__item::before,
body[data-site="dareakt"] .module-wrapper--architecture-modules-list .ui-copy__item::before,
body[data-site="dareakt"] .module-wrapper--architecture-bus-list .ui-copy__item::before,
body[data-site="dareakt"] .module-wrapper--security-levels-list .ui-copy__item::before,
body[data-site="dareakt"] .module-wrapper--security-capabilities-list .ui-copy__item::before,
body[data-site="dareakt"] .module-wrapper--security-evidence-list .ui-copy__item::before,
body[data-site="dareakt"] .module-wrapper--security-egress-list .ui-copy__item::before {
  content: ">";
  position: absolute;
  left: 0;
  color: rgba(0, 255, 204, 0.5);
}

/* ── Closing statements — accent, italic ──────────────────── */
body[data-site="dareakt"] .module-wrapper--philosophy-closing-text .ui-copy__item,
body[data-site="dareakt"] .module-wrapper--security-closing-text .ui-copy__item {
  color: rgba(0, 255, 204, 0.75);
  font-style: italic;
}

/* ── Stats line ───────────────────────────────────────────── */
body[data-site="dareakt"] .module-wrapper--architecture-stats-text .ui-copy__item {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-align: center;
}

/* Λ Lambda glow — unlayered to beat core.css global .lambda */
body[data-site="dareakt"] .lambda {
  color: #00ffcc;
  text-shadow:
    0 0 8px rgba(0, 255, 204, 0.6),
    0 0 24px rgba(0, 255, 204, 0.2);
  animation:
    lambdaBoot 0.8s ease-out forwards,
    dareakt-lambda-pulse 3s ease-in-out infinite 0.8s;
}

@keyframes dareakt-lambda-pulse {
  0%, 100% {
    text-shadow:
      0 0 8px rgba(0, 255, 204, 0.6),
      0 0 24px rgba(0, 255, 204, 0.2);
  }
  50% {
    text-shadow:
      0 0 14px rgba(0, 255, 204, 0.9),
      0 0 40px rgba(0, 255, 204, 0.35);
  }
}

/* Blinking cursor _ — unlayered to beat core.css */
body[data-site="dareakt"] .cursor {
  color: #00ffcc;
  animation: dareakt-cursor-blink 1s step-end infinite;
}

@keyframes dareakt-cursor-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

@layer site {

  /* ── Typography ──────────────────────────────────────────────── */
  body[data-site="dareakt"] h1,
  body[data-site="dareakt"] h2,
  body[data-site="dareakt"] h3 {
    color: var(--site-fg-bright);
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-block: 1em 0.5em;
  }

  body[data-site="dareakt"] h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    letter-spacing: 0.15em;
    margin-block-end: 0.3em;
  }

  body[data-site="dareakt"] h2 {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: var(--site-accent);
    letter-spacing: 0.12em;
  }

  body[data-site="dareakt"] p {
    max-width: 60ch;
    margin-block: 0.6em;
    color: var(--site-fg);
  }

  body[data-site="dareakt"] a {
    color: var(--site-accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
  }

  body[data-site="dareakt"] a:hover {
    border-bottom-color: var(--site-accent);
  }

  /* Lambda + cursor styles are unlayered (above) to beat core.css */

  /* ── Hero section — full-viewport centered ───────────────────── */
  .module-wrapper--dareakt-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: var(--site-pad);
    box-sizing: border-box;
    text-align: center;
    position: relative;
  }

  /* Scanline overlay (subtle CRT effect) */
  .module-wrapper--dareakt-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.03) 2px,
      rgba(0, 0, 0, 0.03) 4px
    );
    pointer-events: none;
    z-index: 1;
  }

  .module-wrapper--dareakt-hero .ui-section-body {
    position: relative;
    z-index: 2;
  }

  /* Hero inner content centering */
  .ui-section-body[data-id="dareakt-hero"] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  /* Hero subtitle line */
  .module-wrapper--dareakt-subtitle p {
    color: var(--site-accent);
    letter-spacing: 0.12em;
    font-size: clamp(0.85rem, 2vw, 1.1rem);
    text-transform: uppercase;
    margin-block: 0;
  }

  /* Description block */
  .module-wrapper--dareakt-description p {
    color: #c0c0c0;
    max-width: 48ch;
    margin-inline: auto;
    text-align: center;
    font-size: 0.92rem;
    line-height: 1.8;
  }

  /* Separator line */
  .module-wrapper--dareakt-separator {
    display: flex;
    justify-content: center;
    padding-block: 1.5rem;
  }

  .module-wrapper--dareakt-separator p {
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5em;
    font-size: 0.7rem;
  }

  /* System info block */
  .module-wrapper--dareakt-system-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-align: center;
    margin-inline: auto;
  }

  /* ── Page header sections (not home hero) ────────────────────── */
  .module-wrapper--philosophy-header,
  .module-wrapper--architecture-header,
  .module-wrapper--security-header {
    padding-top: 5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 255, 204, 0.08);
  }

  /* Page h1 — smaller than home hero, left-aligned */
  .module-wrapper--philosophy-heading h1,
  .module-wrapper--architecture-heading h1,
  .module-wrapper--security-heading h1 {
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    letter-spacing: 0.15em;
    margin-block-end: 0.2em;
  }

  /* Page content sections — constrained width, left-aligned */
  .module-wrapper--philosophy-manifesto,
  .module-wrapper--philosophy-laws,
  .module-wrapper--philosophy-principles,
  .module-wrapper--philosophy-closing,
  .module-wrapper--architecture-intro,
  .module-wrapper--architecture-boot,
  .module-wrapper--architecture-modules,
  .module-wrapper--architecture-bus,
  .module-wrapper--architecture-stats,
  .module-wrapper--security-intro,
  .module-wrapper--security-levels,
  .module-wrapper--security-capabilities,
  .module-wrapper--security-evidence,
  .module-wrapper--security-egress,
  .module-wrapper--security-closing {
    max-width: var(--site-max, 960px);
    margin-inline: auto;
    padding-inline: var(--site-pad);
  }

  /* Section dividers — subtle top border */
  .module-wrapper--philosophy-laws,
  .module-wrapper--philosophy-principles,
  .module-wrapper--architecture-boot,
  .module-wrapper--architecture-modules,
  .module-wrapper--architecture-bus,
  .module-wrapper--security-levels,
  .module-wrapper--security-capabilities,
  .module-wrapper--security-evidence,
  .module-wrapper--security-egress {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    margin-top: 0.5rem;
    padding-top: 1.5rem;
  }

  /* ── Footer ──────────────────────────────────────────────────── */
  body[data-site="dareakt"] .ui-section-footer {
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-align: center;
    padding-block: 2rem;
  }

  body[data-site="dareakt"] .ui-section-footer__credits {
    color: rgba(255, 255, 255, 0.6);
  }

  /* ── Layout overrides ────────────────────────────────────────── */
  body[data-site="dareakt"] .ui-canvas {
    min-height: 100vh;
    min-height: 100dvh;
  }

  /* ── Scrollbar (match dark theme) ────────────────────────────── */
  body[data-site="dareakt"]::-webkit-scrollbar {
    width: 6px;
  }

  body[data-site="dareakt"]::-webkit-scrollbar-track {
    background: var(--site-bg);
  }

  body[data-site="dareakt"]::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
  }

  /* ── Selection ───────────────────────────────────────────────── */
  body[data-site="dareakt"] ::selection {
    background: var(--site-accent);
    color: var(--site-bg);
  }

  /* ── Responsive ──────────────────────────────────────────────── */
  @media (max-width: 600px) {
    body[data-site="dareakt"] {
      font-size: 14px;
    }
  }

}
