/* Keyframes for the spinner *//* ============================================================
   kingofalldata.com — Design system by Muse, implemented by Vulcan
   Palette: near-black bg, off-white text, amber accent, cool slate
   Type: Inter (headings/body) + JetBrains Mono (code/technical)
   ============================================================ */

/* --- Custom Properties --- */
@-webkit-keyframes iron-router-progress-before {
	0%   { -webkit-transform: rotate(0deg);   transform: rotate(0deg); }
	100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}
@-moz-keyframes iron-router-progress-before {
	0%   { -moz-transform: rotate(0deg);   transform: rotate(0deg); }
	100% { -moz-transform: rotate(360deg); transform: rotate(360deg); }
}
@-o-keyframes iron-router-progress-before {
	0%   { -o-transform: rotate(0deg);   transform: rotate(0deg); }
	100% { -o-transform: rotate(360deg); transform: rotate(360deg); }
}
@-ms-keyframes iron-router-progress-before {
	0%   { -ms-transform: rotate(0deg);   transform: rotate(0deg); }
	100% { -ms-transform: rotate(360deg); transform: rotate(360deg); }
}
@keyframes iron-router-progress-before {
	0%   { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Main progress bar */
#iron-router-progress {
	display: block;
	position: fixed;
	top: 0;
	left: 0;
	width: 0%;
	height: 3px;
	background-color: rgba(160, 160, 160, 0.6);
	box-shadow: 0 0 5px rgba(160, 160, 160, 0.6);
	opacity: 1;
	z-index: 10000;
}

/* CSS-only spinner */
/* The spinner only shows after 0.5 seconds of load time */
#iron-router-progress.spinner:before {
	content: "";
	display: block;
	position: fixed;
	top: 10px;
	right: 10px;
	width: 25px;
	height: 25px;
	background-color: transparent;
	border: 3px solid rgba(160, 160, 160, 0.6);
	border-radius: 100px;
	border-right-color: transparent !important;
	opacity: 0;
	z-index: 10000;
	pointer-events: none;
	transition: 0.5s opacity;
	transition-delay: 0.5s;
}

/* Loading state transitions */
#iron-router-progress.loading {
	transition: 1s width, 1s opacity;
	transition-delay: 0s, 1s;
}

#iron-router-progress.loading.spinner:before {
	opacity: 1;
	-webkit-animation: iron-router-progress-before 0.5s linear infinite;
	-moz-animation: iron-router-progress-before 0.5s linear infinite;
	-o-animation: iron-router-progress-before 0.5s linear infinite;
	-ms-animation: iron-router-progress-before 0.5s linear infinite;
	animation: iron-router-progress-before 0.5s linear infinite;
}

/* Done state - fade out */
#iron-router-progress.done {
	opacity: 0;
}

#iron-router-progress.done.spinner:before {
	opacity: 0;
}.application-containment {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

/* center container - panels slide over this */
.content-containment {
  position: relative;
  z-index: 1;
  height: 100%;
  overflow: auto;
  overflow-x: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.content-containment.left-open {
  transform: translateX(var(--panel-width, 280px));
}

.content-containment.right-open {
  transform: translateX(calc(-1 * var(--panel-width, 280px)));
}

.content-containment.both-open {
  transform: translateX(calc(var(--panel-width, 280px) - var(--panel-width, 280px)));
}

/* panel containers */
.panel-containment {
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--panel-width, 280px);
  min-width: var(--panel-min-width, 200px);
  max-width: var(--panel-max-width, 85vw);
  z-index: 20;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              width 0.1s ease;
  will-change: transform;
  overflow: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  background: var(--panel-bg, #fff);
  box-shadow: var(--panel-shadow, 2px 0 10px rgba(0,0,0,0.15));
}

.panel-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 8px;
  cursor: col-resize;
  z-index: 25;
}

.panel-handle:hover {
  background: rgba(0, 0, 0, 0.05);
}

.panel-handle:active {
  background: rgba(0, 0, 0, 0.1);
}

/* LEFT PANELS */
.panel-containment.left {
  left: 0;
  transform: translateX(-100%);
}

.panel-handle.left {
  right: 0;
}

.panel-containment.left.open {
  transform: translateX(0);
}

/* RIGHT PANELS */
.panel-containment.right {
  right: 0;
  transform: translateX(100%);
}

.panel-handle.right {
  left: 0;
}

.panel-containment.right.open {
  transform: translateX(0);
}

/* Panel header */
.panel-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: inherit;
  padding: var(--panel-padding, 16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.panel-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.panel-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.panel-close:focus-visible {
  outline: 2px solid var(--focus-color, #0066cc);
  outline-offset: 2px;
}

/* History navigation */
.panel-nav {
  display: flex;
  gap: 4px;
}

.panel-nav button {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s, background 0.2s;
}

.panel-nav button:hover:not(:disabled) {
  opacity: 1;
  background: rgba(0, 0, 0, 0.1);
}

.panel-nav button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* back-to-top link */
.back-to-top {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: none;
  padding: 8px 12px;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border-radius: 16px;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

.back-to-top.show {
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0.8;
}

.back-to-top:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* Mobile optimizations */
@media (max-width: 768px) {
  :root {
    --panel-width: 85vw;
    --panel-min-width: 280px;
    --panel-max-width: 85vw;
  }

  .panel-handle {
    display: none;
  }

  .back-to-top {
    bottom: 24px;
    right: 24px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .content-containment,
  .panel-containment,
  .back-to-top {
    transition: none;
  }
}

/* Focus management for accessibility */
.panel-containment:focus-within {
  z-index: 22;
}

/* Print styles */
@media print {
  .panel-containment,
  .back-to-top {
    display: none !important;
  }

  .content-containment {
    transform: none !important;
  }
}
:root {
	/* Alice — warm gold palette, distinct from main portal */
	--alice-bg:           #0A0A0A;
	--alice-text:         #F0EDE5;
	--alice-accent:       #F4B844;
	--alice-accent-dark:  #E8A738;
	--alice-border:       #2A2A2A;
	--alice-success:      #8AC926;
	--alice-subtle:       #555555;
	--alice-surface:      #111111;
	--alice-spacing:      1.5rem;

	--bg:         #0D0D0D;
	--bg-surface: #111111;
	--bg-raised:  #171717;
	--bg-dark:    #0A0A0A;
	--text:       #E8E6E1;
	--text-dim:   #A09E9A;
	--accent:     #C9A84C;
	--accent-dim: #9B7D35;
	--slate:      #4A5568;
	--slate-light:#718096;
	--green:      #3EAF6A;
	--border:     rgba(255,255,255,0.07);
	--border-accent: rgba(201,168,76,0.3);

	--font-body: 'Inter', system-ui, -apple-system, sans-serif;
	--font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

	--max-width: 960px;
	--section-pad: 96px 24px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-weight: 400;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

code, pre {
	font-family: var(--font-mono);
}

/* --- Navigation --- */
.site-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 24px 32px;
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--bg);
	border-bottom: 1px solid var(--border);
}

.nav-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	font-size: 15px;
	letter-spacing: -0.01em;
}

.nav-key-icon {
	color: var(--accent);
	font-size: 18px;
	line-height: 1;
}

.nav-wordmark {
	color: var(--text);
}

.nav-link {
	font-size: 14px;
	color: var(--slate-light);
	transition: color 0.15s;
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 24px;
}

.nav-link:hover { color: var(--text); }

/* --- Hero --- */
.hero {
	padding: 80px 32px 96px;
	max-width: var(--max-width);
	margin: 0 auto;
}

.hero-headline {
	font-size: clamp(40px, 6vw, 72px);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.03em;
	color: var(--text);
	margin-bottom: 28px;
}

.hero-subhead {
	font-size: 18px;
	font-weight: 400;
	line-height: 1.65;
	color: var(--slate-light);
	max-width: 600px;
	margin-bottom: 40px;
}

.hero-actions {
	display: flex;
	align-items: center;
	gap: 28px;
	flex-wrap: wrap;
	margin-bottom: 48px;
}

.btn-primary {
	display: inline-flex;
	align-items: center;
	background: var(--accent);
	color: #0A0A0A;
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 700;
	padding: 12px 24px;
	border-radius: 2px;
	transition: background 0.15s;
	white-space: nowrap;
}

.btn-primary:hover { background: var(--accent-dim); }

.btn-text {
	font-size: 15px;
	font-weight: 400;
	color: var(--slate-light);
	border-bottom: 1px solid var(--slate);
	padding-bottom: 1px;
	transition: color 0.15s, border-color 0.15s;
}

.btn-text:hover { color: var(--text); border-color: var(--text-dim); }

/* Terminal block */
.hero-terminal {
	background: var(--bg-surface);
	border: 1px solid var(--border);
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 20px;
	max-width: 640px;
}

.terminal-bar {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 16px;
	background: var(--bg-raised);
	border-bottom: 1px solid var(--border);
}

.terminal-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--border);
}

.terminal-title {
	margin-left: 8px;
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--slate);
}

.terminal-body {
	padding: 20px 20px;
	font-size: 13px;
	line-height: 1.7;
	overflow-x: auto;
}

.hero-supporting {
	font-size: 14px;
	color: var(--slate);
}

.hero-supporting code {
	font-size: 13px;
	color: var(--accent);
}

/* Namespace cards in hero */
.hero-namespaces {
	margin-top: 64px;
	padding-top: 48px;
	border-top: 1px solid var(--border);
}

.namespaces-label {
	font-size: 12px;
	font-family: var(--font-mono);
	color: var(--slate);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-bottom: 16px;
}

.namespace-cards {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.namespace-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px 18px;
	background: var(--bg-surface);
	border: 1px solid var(--border);
	border-radius: 2px;
	transition: border-color 0.15s;
	cursor: pointer;
	min-width: 160px;
}

.namespace-card:hover { border-color: var(--border-accent); }

.ns-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.ns-name {
	font-family: var(--font-mono);
	font-size: 15px;
	font-weight: 500;
	color: var(--text);
}

.ns-type {
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--slate);
}

.ns-desc {
	font-size: 12px;
	color: var(--slate-light);
}

.ns-status {
	font-family: var(--font-mono);
	font-size: 11px;
	padding: 2px 8px;
	border-radius: 2px;
	white-space: nowrap;
}

.ns-active {
	color: var(--green);
	background: rgba(62,175,106,0.1);
}

/* --- Sections --- */
.section {
	padding: var(--section-pad);
	border-top: 1px solid var(--border);
}

.section-dark {
	background: var(--bg-dark);
}

.section-cta {
	background: var(--bg-surface);
}

.section-inner {
	max-width: var(--max-width);
	margin: 0 auto;
}

.section-prose {
	max-width: 720px;
}

.section-heading {
	font-size: clamp(24px, 3.5vw, 40px);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.15;
	color: var(--text);
	margin-bottom: 32px;
}

.section-subhead {
	font-size: 17px;
	color: var(--slate-light);
	margin-bottom: 48px;
	max-width: 600px;
	line-height: 1.65;
}

/* --- Prose --- */
.prose p {
	font-size: 17px;
	line-height: 1.7;
	color: var(--text-dim);
	margin-bottom: 20px;
}

.prose p:last-child { margin-bottom: 0; }

.prose em { color: var(--text); font-style: italic; }

.prose code {
	font-size: 14px;
	color: var(--accent);
	background: rgba(201,168,76,0.08);
	padding: 1px 6px;
	border-radius: 2px;
}

.prose pre {
	background: var(--bg-surface);
	border: 1px solid var(--border);
	border-radius: 4px;
	padding: 20px;
	overflow-x: auto;
	margin: 24px 0;
}

.prose pre code {
	background: none;
	padding: 0;
	font-size: 13px;
	color: var(--text-dim);
}

.prose h1, .prose h2, .prose h3, .prose h4 {
	color: var(--text);
	line-height: 1.3;
	margin-top: 40px;
	margin-bottom: 12px;
}

.prose h1 { font-size: 28px; }
.prose h2 { font-size: 22px; }
.prose h3 { font-size: 18px; }
.prose h4 { font-size: 16px; }

.prose ul, .prose ol {
	margin: 0 0 20px 24px;
	color: var(--text-dim);
	font-size: 17px;
	line-height: 1.7;
}

.prose li { margin-bottom: 6px; }

.prose blockquote {
	border-left: 3px solid var(--accent);
	margin: 24px 0;
	padding: 12px 20px;
	background: rgba(201,168,76,0.04);
	color: var(--text-dim);
	font-style: italic;
}

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

.prose a:hover { color: var(--text); }

.prose hr {
	border: none;
	border-top: 1px solid var(--border);
	margin: 40px 0;
}

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

/* Directory tree diagram */
.arch-diagram {
	margin-top: 48px;
}

.dir-tree {
	background: var(--bg-surface);
	border: 1px solid var(--border);
	border-left: 2px solid var(--accent);
	padding: 24px 28px;
	font-size: 13px;
	line-height: 1.8;
	border-radius: 0 2px 2px 0;
	overflow-x: auto;
	color: var(--text);
}

/* Pull quote */
.pull-quote {
	margin-top: 48px;
	font-size: 22px;
	font-weight: 700;
	color: var(--accent);
	letter-spacing: -0.01em;
}

/* --- Entity Grid --- */
.entity-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 16px;
	margin-bottom: 40px;
}

.entity-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 24px;
	background: var(--bg-surface);
	border: 1px solid var(--border);
	border-radius: 2px;
	transition: border-color 0.15s;
	cursor: pointer;
}

.entity-card:hover { border-color: var(--border-accent); }

.entity-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.entity-name {
	font-family: var(--font-mono);
	font-size: 16px;
	font-weight: 500;
	color: var(--text);
}

.entity-status {
	font-family: var(--font-mono);
	font-size: 11px;
	padding: 2px 8px;
	border-radius: 2px;
}

.entity-status.active {
	color: var(--green);
	background: rgba(62,175,106,0.1);
}

.entity-role {
	font-size: 14px;
	color: var(--slate-light);
	line-height: 1.6;
	flex: 1;
}

.entity-link {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--slate);
	transition: color 0.15s;
}

.entity-card:hover .entity-link { color: var(--accent); }

.team-note {
	font-size: 15px;
	color: var(--slate-light);
	line-height: 1.65;
	border-top: 1px solid var(--border);
	padding-top: 32px;
}

/* --- Get Started / Code block --- */
.code-block {
	background: var(--bg);
	border: 1px solid var(--border);
	border-left: 2px solid var(--accent);
	padding: 20px 24px;
	margin-bottom: 16px;
	border-radius: 0 2px 2px 0;
	max-width: 640px;
}

.code-block pre {
	font-size: 14px;
	line-height: 1.7;
	overflow-x: auto;
}

.code-caption {
	font-size: 14px;
	color: var(--slate);
	margin-bottom: 56px;
}

.code-caption code {
	font-size: 13px;
	color: var(--accent);
}

/* Paths grid */
.paths-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
}

.path-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 28px 24px;
	border: 1px solid var(--border);
	border-radius: 2px;
}

.path-card-accent {
	border-color: var(--border-accent);
	background: rgba(201,168,76,0.04);
}

.path-heading {
	font-size: 16px;
	font-weight: 700;
	color: var(--text);
	letter-spacing: -0.01em;
}

.path-body {
	font-size: 14px;
	color: var(--slate-light);
	line-height: 1.65;
	flex: 1;
}

.path-body code {
	font-size: 13px;
	color: var(--accent);
	background: rgba(201,168,76,0.08);
	padding: 1px 5px;
	border-radius: 2px;
}

.path-link {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--slate);
	transition: color 0.15s;
}

.path-link:hover { color: var(--text); }

.path-link-accent {
	display: inline-flex;
	align-items: center;
	background: var(--accent);
	color: #0A0A0A;
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 700;
	padding: 10px 16px;
	border-radius: 2px;
	margin-top: 4px;
	transition: background 0.15s;
}

.path-link-accent:hover { background: var(--accent-dim); }

/* --- Terminal helpers --- */
.t-prompt { color: var(--accent); user-select: none; }
.t-dim { color: var(--slate); }

/* --- Footer --- */
.site-footer {
	padding: 64px 32px;
	border-top: 1px solid var(--border);
	text-align: center;
}

.footer-tagline {
	font-size: 14px;
	color: var(--slate-light);
	margin-bottom: 24px;
	font-style: italic;
}

.footer-links {
	display: flex;
	justify-content: center;
	gap: 32px;
	flex-wrap: wrap;
	margin-bottom: 24px;
}

.footer-links a {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--slate);
	transition: color 0.15s;
}

.footer-links a:hover { color: var(--text); }

.footer-meta {
	font-size: 12px;
	color: var(--slate);
}

/* --- Responsive --- */
@media (max-width: 640px) {
	.site-nav { padding: 20px 20px; }
	.hero { padding: 48px 20px 64px; }
	.section { padding: 64px 20px; }
	.site-footer { padding: 48px 20px; }
	.hero-actions { gap: 20px; }
	.footer-links { gap: 20px; }
}

/* ============================================================
   Blog — markdown post rendering
   ============================================================ */

.blog-page {
	min-height: 80vh;
}

.blog-inner {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 64px 32px 96px;
}

.blog-heading {
	font-size: clamp(32px, 4vw, 48px);
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--text);
	margin-bottom: 12px;
}

.blog-subhead {
	font-size: 16px;
	color: var(--slate-light);
	margin-bottom: 48px;
}

.blog-loading,
.blog-empty,
.blog-error {
	font-size: 15px;
	color: var(--slate);
}

.blog-list {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.blog-card {
	display: block;
	padding: 24px;
	background: var(--bg-surface);
	border: 1px solid var(--border);
	border-radius: 2px;
	transition: border-color 0.15s;
}

.blog-card:hover { border-color: var(--border-accent); }

.blog-card-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 8px;
}

.blog-card-date {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--slate);
}

.blog-card-pillar {
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--accent);
	background: rgba(201,168,76,0.08);
	padding: 2px 8px;
	border-radius: 2px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.blog-card-title {
	font-size: 20px;
	font-weight: 700;
	color: var(--text);
	letter-spacing: -0.01em;
	margin-bottom: 4px;
}

.blog-card-author {
	font-size: 13px;
	color: var(--slate-light);
}

/* --- Blog Post --- */

.blog-post-inner {
	max-width: 720px;
	margin: 0 auto;
	padding: 48px 32px 96px;
}

.blog-back-link {
	display: inline-block;
	font-size: 14px;
	color: var(--slate);
	margin-bottom: 32px;
	transition: color 0.15s;
}

.blog-back-link:hover { color: var(--text); }

.blog-article-header {
	margin-bottom: 48px;
	padding-bottom: 32px;
	border-bottom: 1px solid var(--border);
}

.blog-article-title {
	font-size: clamp(28px, 4vw, 40px);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.15;
	color: var(--text);
	margin-bottom: 8px;
}

.blog-article-author {
	font-size: 14px;
	color: var(--slate-light);
}

.blog-article-body h1,
.blog-article-body h2,
.blog-article-body h3 {
	color: var(--text);
	margin-top: 40px;
	margin-bottom: 16px;
	letter-spacing: -0.01em;
}

.blog-article-body h1 { font-size: 28px; font-weight: 700; }
.blog-article-body h2 { font-size: 22px; font-weight: 700; }
.blog-article-body h3 { font-size: 18px; font-weight: 600; }

.blog-article-body hr {
	border: none;
	border-top: 1px solid var(--border);
	margin: 40px 0;
}

.blog-article-body table {
	width: 100%;
	border-collapse: collapse;
	margin: 24px 0;
	font-size: 14px;
}

.blog-article-body th,
.blog-article-body td {
	text-align: left;
	padding: 10px 16px;
	border: 1px solid var(--border);
}

.blog-article-body th {
	background: var(--bg-surface);
	color: var(--text);
	font-weight: 600;
	font-size: 13px;
}

.blog-article-body td {
	color: var(--text-dim);
}

.blog-article-body pre {
	background: var(--bg-surface);
	border: 1px solid var(--border);
	border-left: 2px solid var(--accent);
	padding: 20px 24px;
	border-radius: 0 2px 2px 0;
	overflow-x: auto;
	font-size: 13px;
	line-height: 1.7;
	margin: 24px 0;
}

.blog-article-body blockquote {
	border-left: 2px solid var(--accent);
	padding-left: 20px;
	margin: 24px 0;
	color: var(--text-dim);
	font-style: italic;
}

.blog-article-body strong {
	color: var(--text);
	font-weight: 600;
}

.blog-article-body a {
	color: var(--accent);
	border-bottom: 1px solid var(--accent-dim);
	transition: color 0.15s;
}

.blog-article-body a:hover { color: var(--text); }

.blog-article-body ul,
.blog-article-body ol {
	margin: 16px 0;
	padding-left: 24px;
}

.blog-article-body li {
	font-size: 17px;
	line-height: 1.7;
	color: var(--text-dim);
	margin-bottom: 8px;
}

@media (max-width: 640px) {
	.blog-inner { padding: 40px 20px 64px; }
	.blog-post-inner { padding: 32px 16px 64px; }
}

/* ============================================================
   Alice — 12-level learning journey
   Warm gold palette, conversation-first, mobile-first
   Design: Muse alice-ui-design-brief.md
   ============================================================ */

.alice-shell {
	min-height: 100vh;
	background: var(--alice-bg);
	color: var(--alice-text);
	font-family: var(--font-body);
	font-size: 18px;
	line-height: 1.65;
}

/* --- Nav --- */
.alice-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 24px;
	border-bottom: 1px solid var(--alice-border);
	position: sticky;
	top: 0;
	background: var(--alice-bg);
	z-index: 10;
}

.alice-back {
	background: none;
	border: none;
	color: var(--alice-subtle);
	font-size: 14px;
	cursor: pointer;
	font-family: var(--font-body);
	padding: 0;
	text-decoration: none;
	transition: color 0.15s;
}
.alice-back:hover { color: var(--alice-text); }

.alice-nav-title {
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--alice-subtle);
}

/* --- Mark --- */
.alice-mark {
	color: var(--alice-accent);
	font-size: 32px;
	text-align: center;
	margin-bottom: 24px;
}
.alice-mark--large { font-size: 56px; }

/* --- Intro --- */
.alice-intro {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	padding: 40px 24px;
}

.alice-intro-inner {
	max-width: 480px;
	width: 100%;
}

.alice-bubble {
	background: var(--alice-surface);
	border: 1px solid var(--alice-border);
	border-top: 3px solid var(--alice-accent);
	border-radius: 2px;
	padding: 28px 32px;
	margin-bottom: 32px;
}

.alice-bubble p { margin-bottom: 16px; }
.alice-bubble p:last-child { margin-bottom: 0; }

.alice-bubble--intro p { font-size: 18px; }
.alice-bubble--grad p { font-size: 17px; }

.alice-name {
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--alice-accent);
	margin-bottom: 16px !important;
	letter-spacing: 0.05em;
}

.alice-intro-actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

/* --- Buttons --- */
.alice-btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--alice-accent);
	color: #0A0A0A;
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 700;
	padding: 14px 32px;
	border: none;
	border-radius: 2px;
	cursor: pointer;
	transition: background 0.15s;
	width: 100%;
	max-width: 320px;
}
.alice-btn-primary:hover { background: var(--alice-accent-dark); }

.alice-btn-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--alice-accent);
	color: var(--alice-accent);
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 600;
	padding: 12px 28px;
	border-radius: 2px;
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
}
.alice-btn-secondary:hover { background: rgba(244,184,68,0.08); }

.alice-link-subtle {
	font-size: 14px;
	color: var(--alice-subtle);
	text-decoration: none;
	border-bottom: 1px solid var(--alice-border);
	padding-bottom: 1px;
	transition: color 0.15s;
}
.alice-link-subtle:hover { color: var(--alice-text); }

/* --- Journey --- */
.alice-journey { padding-bottom: 80px; }

.alice-journey-inner {
	max-width: 640px;
	margin: 0 auto;
	padding: 40px 24px;
}

.alice-journey-heading {
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--alice-text);
	margin-bottom: 32px;
}

.alice-level-list {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-bottom: 32px;
}

.alice-level-row {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 20px;
	background: var(--alice-surface);
	border: 1px solid var(--alice-border);
	border-radius: 2px;
	cursor: pointer;
	transition: border-color 0.15s;
}
.alice-level-row:hover { border-color: var(--alice-accent); }

.level--locked { opacity: 0.45; cursor: default; }
.level--locked:hover { border-color: var(--alice-border); }
.level--done { opacity: 0.7; }
.level--active { border-color: rgba(244,184,68,0.3); }

.alice-level-icon {
	font-size: 18px;
	color: var(--alice-accent);
	width: 24px;
	text-align: center;
	flex-shrink: 0;
}
.level--done .alice-level-icon { color: var(--alice-success); }
.level--locked .alice-level-icon { color: var(--alice-subtle); }

.alice-level-info { flex: 1; }

.alice-level-title {
	font-size: 15px;
	font-weight: 600;
	color: var(--alice-text);
	margin-bottom: 2px;
}

.alice-level-meta {
	font-size: 12px;
	color: var(--alice-subtle);
	font-family: var(--font-mono);
}

.alice-btn-level {
	background: none;
	border: 1px solid var(--alice-accent);
	color: var(--alice-accent);
	font-family: var(--font-body);
	font-size: 13px;
	padding: 6px 14px;
	border-radius: 2px;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s;
	flex-shrink: 0;
}
.alice-btn-level:hover { background: rgba(244,184,68,0.1); }
.alice-btn-level--done { border-color: var(--alice-subtle); color: var(--alice-subtle); }

.alice-progress-note {
	font-size: 13px;
	color: var(--alice-subtle);
	font-family: var(--font-mono);
	text-align: center;
}

/* --- Lesson conversation --- */
.alice-lesson {
	display: flex;
	flex-direction: column;
	height: 100vh;
}

.alice-conversation {
	flex: 1;
	overflow-y: auto;
	padding: 32px 24px 120px;
	max-width: 640px;
	margin: 0 auto;
	width: 100%;
}

.alice-message {
	margin-bottom: 28px;
}

.alice-msg-sender {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--alice-accent);
	margin-bottom: 8px;
	letter-spacing: 0.05em;
}

.alice-message--human .alice-msg-sender {
	color: var(--alice-subtle);
	text-align: right;
}

.alice-msg-body {
	font-size: 17px;
	line-height: 1.7;
	color: var(--alice-text);
}

.alice-msg-body p { margin: 0 0 14px; }
.alice-msg-body p:last-child { margin-bottom: 0; }
.alice-msg-body em { color: var(--alice-accent); font-style: normal; font-weight: 600; }
.alice-msg-body strong { color: var(--alice-text); font-weight: 600; }
.alice-msg-body code {
	font-family: var(--font-mono);
	font-size: 14px;
	color: var(--alice-accent);
	background: rgba(244,184,68,0.08);
	padding: 1px 6px;
	border-radius: 2px;
}
.alice-msg-body pre {
	background: rgba(0,0,0,0.3);
	border: 1px solid var(--alice-border);
	border-radius: 4px;
	padding: 14px;
	overflow-x: auto;
	margin: 12px 0;
}
.alice-msg-body pre code {
	background: none;
	padding: 0;
	color: var(--alice-text);
	font-size: 13px;
}
.alice-msg-body ul, .alice-msg-body ol {
	margin: 0 0 14px 22px;
}
.alice-msg-body li { margin-bottom: 4px; }

.alice-btn-continue {
	display: block;
	width: 100%;
	max-width: 200px;
	background: none;
	border: 1px solid var(--alice-border);
	color: var(--alice-text);
	font-family: var(--font-body);
	font-size: 14px;
	padding: 10px 20px;
	border-radius: 2px;
	cursor: pointer;
	transition: border-color 0.15s, color 0.15s;
	margin-top: 8px;
}
.alice-btn-continue:hover { border-color: var(--alice-accent); color: var(--alice-accent); }

/* --- Checkpoint --- */
.alice-checkpoint {
	margin-top: 8px;
	padding: 24px;
	background: var(--alice-surface);
	border: 1px solid var(--alice-border);
	border-left: 3px solid var(--alice-accent);
	border-radius: 0 2px 2px 0;
}

.alice-checkpoint-label {
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--alice-accent);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-bottom: 12px;
}

.alice-checkpoint-question {
	font-size: 16px;
	color: var(--alice-text);
	line-height: 1.6;
	margin-bottom: 20px;
}

.alice-checkpoint-input {
	width: 100%;
	background: var(--alice-bg);
	border: 1px solid var(--alice-border);
	color: var(--alice-text);
	font-family: var(--font-body);
	font-size: 15px;
	padding: 12px 16px;
	border-radius: 2px;
	resize: vertical;
	min-height: 80px;
	margin-bottom: 16px;
	transition: border-color 0.15s;
}
.alice-checkpoint-input:focus {
	outline: none;
	border-color: var(--alice-accent);
}
.alice-checkpoint-input::placeholder { color: var(--alice-subtle); }

/* --- Graduation --- */
.alice-graduation { padding-bottom: 80px; }

.alice-graduation-inner {
	max-width: 560px;
	margin: 0 auto;
	padding: 40px 24px;
}

.alice-certificate {
	background: var(--alice-surface);
	border: 1px solid var(--alice-accent);
	border-radius: 2px;
	padding: 32px;
	margin: 32px 0;
}

.alice-cert-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 24px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--alice-border);
}

.alice-cert-mark {
	color: var(--alice-accent);
	font-size: 24px;
}

.alice-cert-title {
	font-family: var(--font-mono);
	font-size: 14px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--alice-text);
}

.alice-cert-body { display: flex; flex-direction: column; gap: 20px; }

.alice-cert-line {
	font-size: 15px;
	color: var(--alice-text);
	line-height: 1.6;
}

.alice-cert-meta {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.alice-cert-label {
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--alice-subtle);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 4px;
}

.alice-cert-value {
	font-size: 14px;
	color: var(--alice-text);
}

.alice-cert-sig { padding-top: 16px; border-top: 1px solid var(--alice-border); }

.alice-cert-pgp {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--alice-subtle);
	line-height: 1.5;
	margin-top: 8px;
	word-break: break-all;
	white-space: pre-wrap;
}

.alice-grad-actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin-bottom: 24px;
}

.alice-grad-note {
	font-size: 14px;
	color: var(--alice-subtle);
	text-align: center;
	line-height: 1.6;
}

/* --- Alice responsive --- */
@media (max-width: 640px) {
	.alice-bubble { padding: 20px 20px; }
	.alice-journey-inner { padding: 24px 16px; }
	.alice-conversation { padding: 24px 16px 100px; }
	.alice-graduation-inner { padding: 24px 16px; }
	.alice-cert-meta { grid-template-columns: 1fr; }
}