/* ===== UOMysticmoon design tokens (from the Claude Design handoff) ===== */ :root { --bg: #0e1318; --bg-deep: #0b0f14; --panel-a: #192231; --panel-b: #141a21; --panel-flat: #11161d; --line: #2a3544; --line-soft: #1d2733; --accent: #7f99bd; --accent-bright: #cdd9e8; --ink: #eef3f8; --head: #e6edf6; --text: #c4cdd8; --muted: #aeb8c4; --dim: #6f7d8e; --blue: #13243c; --mode-live: #5fb98a; --mode-maint: #e6c26a; --serif: Georgia, "Times New Roman", serif; --display: Cinzel, Georgia, serif; --sans: "Helvetica Neue", Arial, sans-serif; --shadow-card: 0 14px 34px rgba(0, 0, 0, 0.3); --panel-grad: linear-gradient(180deg, var(--panel-a), var(--panel-b)); } * { box-sizing: border-box; } html, body { margin: 0; } body { background: var(--bg); color: var(--ink); font-family: var(--serif); line-height: 1.6; -webkit-font-smoothing: antialiased; } a { color: inherit; } /* ===== Typography helpers ===== */ .display { font-family: var(--display); font-weight: 600; color: var(--head); } .sans { font-family: var(--sans); } .eyebrow { margin: 0 0 14px; color: var(--accent); font-family: var(--sans); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; } /* ===== Layout shells ===== */ .shell { width: min(1080px, calc(100% - 32px)); margin: 0 auto; } .shell-mid { width: min(880px, calc(100% - 32px)); margin: 0 auto; } .shell-narrow { width: min(760px, calc(100% - 32px)); margin: 0 auto; } .page { min-height: 100vh; display: flex; flex-direction: column; } .page-body { flex: 1; padding: 56px 0 64px; } /* ===== Cards / panels ===== */ .card { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); background: var(--panel-grad); box-shadow: var(--shadow-card); transition: border-color 0.18s, transform 0.18s; } a.card:hover, a.card:focus-visible { border-color: var(--accent); transform: translateY(-3px); outline: none; } .card-kicker { color: var(--accent); font-family: var(--sans); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 12px; } .panel { border: 1px solid var(--line); border-radius: 10px; background: var(--panel-grad); } .panel-flat { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel-flat); } .note { border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 8px; background: rgba(19, 36, 60, 0.4); padding: 18px 22px; color: var(--muted); } /* ===== Grids ===== */ .grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } .grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } .grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } @media (max-width: 860px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } } /* ===== Pills / buttons ===== */ .pill { border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; color: var(--muted); background: rgba(11, 22, 48, 0.5); font-family: var(--sans); font-size: 0.86rem; text-decoration: none; cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s; } .pill:hover, .pill:focus-visible { border-color: var(--accent); background: var(--blue); color: var(--ink); outline: none; } .btn { border-radius: 999px; padding: 12px 26px; font-family: var(--sans); font-size: 0.92rem; font-weight: 600; text-decoration: none; cursor: pointer; display: inline-block; border: 1px solid var(--accent); transition: background 0.16s, border-color 0.16s, transform 0.16s; } .btn-primary { background: var(--accent-bright); color: var(--bg-deep); } .btn-primary:hover { background: var(--ink); } .btn-ghost { border-color: rgba(200, 208, 216, 0.4); color: var(--ink); background: rgba(11, 22, 48, 0.45); } .btn-ghost:hover { border-color: var(--accent); background: var(--blue); } .btn-sq { border-radius: 8px; padding: 10px 18px; font-size: 0.85rem; } .btn[disabled], button[disabled] { opacity: 0.55; cursor: not-allowed; } /* ===== Forms ===== */ .input, .textarea, .select { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 11px 14px; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 0.95rem; } .textarea { min-height: 200px; resize: vertical; line-height: 1.5; } .input:focus, .textarea:focus, .select:focus { border-color: var(--accent); outline: none; } .field-label { display: block; margin-bottom: 7px; color: var(--muted); font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; } /* ===== Headings used in prose ===== */ .h1 { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(2.4rem, 5.5vw, 3.6rem); line-height: 1.04; color: var(--head); } .lead { margin: 16px 0 0; color: var(--muted); font-size: 1.08rem; } /* ===== Rich prose (wiki / newsletter body) ===== */ .prose { color: var(--text); font-size: 1.06rem; } .prose h2 { margin: 32px 0 12px; font-family: var(--display); font-weight: 600; font-size: 1.6rem; color: var(--head); scroll-margin-top: 90px; } .prose h3 { margin: 24px 0 10px; font-family: var(--display); font-weight: 600; font-size: 1.25rem; color: var(--head); } .prose p { margin: 0 0 18px; } .prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; } .prose li { margin-bottom: 8px; } .prose a { color: var(--accent); } .prose strong { color: #dbe2ea; } .prose img { max-width: 100%; border-radius: 8px; border: 1px solid var(--line); } /* ===== Rich text editor (TipTap) ===== */ .rte { position: relative; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); } .rte:focus-within { border-color: var(--accent); } .rte-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--panel-flat); } .rte-btn { min-width: 30px; height: 30px; padding: 0 8px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--muted); font-family: var(--sans); font-size: 0.85rem; line-height: 1; cursor: pointer; transition: background 0.12s, color 0.12s, border-color 0.12s; } .rte-btn:hover:not([disabled]) { background: var(--blue); color: var(--ink); } .rte-btn.is-active { background: var(--blue); border-color: var(--accent); color: var(--accent-bright); } .rte-btn[disabled] { opacity: 0.4; cursor: not-allowed; } .rte-sep { width: 1px; align-self: stretch; margin: 2px 4px; background: var(--line); } .rte-content { padding: 14px 16px; max-height: 460px; overflow-y: auto; } .rte-content .ProseMirror { min-height: 220px; outline: none; } .rte-content .ProseMirror p.is-editor-empty:first-child::before { content: attr(data-placeholder); float: left; height: 0; color: var(--dim); pointer-events: none; } /* Internal-link picker popover */ .rte-linkmenu { position: absolute; z-index: 20; top: 50px; left: 10px; width: min(360px, calc(100% - 20px)); padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-a); box-shadow: var(--shadow-card); } .rte-linkmenu-list { margin-top: 8px; max-height: 220px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; } .rte-linkmenu-item { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 9px; border: none; border-radius: 6px; background: transparent; color: var(--text); font-family: var(--sans); font-size: 0.88rem; text-align: left; cursor: pointer; } .rte-linkmenu-item:hover { background: var(--blue); color: var(--ink); } .rte-linkmenu-slug { color: var(--dim); font-family: ui-monospace, Menlo, monospace; font-size: 0.76rem; } /* ===== Wiki connectivity (tags + red links) ===== */ .wiki-tag { display: inline-block; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(127, 153, 189, 0.1); color: var(--accent); font-family: var(--sans); font-size: 0.78rem; text-decoration: none; } .wiki-tag:hover { border-color: var(--accent); background: var(--blue); } .prose a.wiki-red-link { color: #d98b84; border-bottom: 1px dotted #d98b84; } /* ===== Wiki revision history ===== */ .wiki-history { display: grid; grid-template-columns: 240px 1fr; gap: 18px; align-items: start; } @media (max-width: 640px) { .wiki-history { grid-template-columns: 1fr; } } .wiki-history-list { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; } .wiki-rev { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-flat); color: var(--text); text-align: left; cursor: pointer; } .wiki-rev:hover { border-color: var(--accent); } .wiki-rev.is-active { border-color: var(--accent); background: var(--blue); } .wiki-rev-note { font-family: var(--sans); font-size: 0.86rem; color: var(--head); } .wiki-rev-latest { color: var(--accent); font-size: 0.74rem; } .wiki-rev-meta { font-family: var(--sans); font-size: 0.72rem; color: var(--dim); } .wiki-diff { white-space: pre-wrap; word-break: break-word; font-family: var(--sans); font-size: 0.92rem; line-height: 1.6; color: var(--text); max-height: 360px; overflow-y: auto; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); } .diff-add { background: rgba(95, 185, 138, 0.22); color: #b9e6cd; } .diff-del { background: rgba(176, 102, 95, 0.24); color: #e3b0aa; text-decoration: line-through; } /* ===== Hero canvas editor ===== */ .hero-el-editable { outline: 1px dashed rgba(127, 153, 189, 0.45); outline-offset: 2px; user-select: none; touch-action: none; /* let Pointer Events drive drag on touch */ } .hero-el-editable:hover { outline-color: var(--accent); } .hero-el-editable.is-selected { outline: 2px solid var(--accent); } .hero-canvas-grid { background-image: linear-gradient(to right, rgba(127, 153, 189, 0.18) 1px, transparent 1px), linear-gradient(to bottom, rgba(127, 153, 189, 0.18) 1px, transparent 1px); } /* ===== Admin tables ===== */ .adm-table { width: 100%; border-collapse: collapse; } .adm-th { text-align: left; padding: 11px 14px; color: var(--accent); font-family: var(--sans); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; border-bottom: 1px solid var(--line); } .adm-td { padding: 13px 14px; color: var(--text); font-family: var(--sans); font-size: 0.88rem; border-bottom: 1px solid var(--line-soft); vertical-align: middle; } .badge { border-radius: 999px; padding: 3px 11px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; font-family: var(--sans); white-space: nowrap; } .badge-pub { background: rgba(95, 185, 138, 0.16); color: #7fd0a4; border: 1px solid rgba(95, 185, 138, 0.4); } .badge-draft { background: rgba(127, 153, 189, 0.14); color: #9fb0c6; border: 1px solid var(--line); } .badge-admin { background: rgba(216, 226, 239, 0.12); color: #d8e2ef; border: 1px solid #3a4a5e; } .badge-editor { background: rgba(127, 153, 189, 0.1); color: var(--muted); border: 1px solid var(--line); } .link-accent { color: var(--accent); text-decoration: none; cursor: pointer; } .link-accent:hover { text-decoration: underline; } /* ===== Misc ===== */ .moon { display: inline-block; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #eef3f8, #9fb0c6 55%, #5d6e88); } .muted { color: var(--muted); } .dim { color: var(--dim); } .center { text-align: center; } .spin { width: 26px; height: 26px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.7s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } .admin-grid { min-height: 100vh; display: grid; grid-template-columns: 236px 1fr; } @media (max-width: 760px) { .admin-grid { grid-template-columns: 1fr; } } .wiki-grid { display: grid; grid-template-columns: 230px 1fr; gap: 44px; align-items: start; } @media (max-width: 860px) { .wiki-grid { grid-template-columns: 1fr; } }