1375 lines
28 KiB
CSS
1375 lines
28 KiB
CSS
:root {
|
|
--font-display: 'VT323', ui-monospace, 'JetBrains Mono', monospace;
|
|
--font-body: 'Source Serif 4', 'Source Serif Pro', 'Iowan Old Style', Georgia, serif;
|
|
--font-mono: 'JetBrains Mono', ui-monospace, 'Consolas', monospace;
|
|
--font-heading: var(--font-display);
|
|
|
|
--bg: #fafaf5;
|
|
--bg-surface: #f3f1e8;
|
|
--bg-surface-hover: #ece9dc;
|
|
--ink: #1a1a1a;
|
|
--ink-soft: #4a4a4a;
|
|
--ink-mute: #7a7a78;
|
|
--rule: #1a1a1a;
|
|
--rule-soft: rgba(26, 26, 26, 0.16);
|
|
--paper-rule: rgba(26, 26, 26, 0.08);
|
|
|
|
--blueprint: #3553ff;
|
|
--blueprint-tint: rgba(53, 83, 255, 0.08);
|
|
--blueprint-tint-strong: rgba(53, 83, 255, 0.18);
|
|
|
|
--status-complete: #3553ff;
|
|
--status-in-progress: #4a4a4a;
|
|
--status-planned: #b8b6ad;
|
|
--warn: #b8870f;
|
|
|
|
--code-bg: #efece0;
|
|
--modal-bg: #fafaf5;
|
|
--overlay-bg: rgba(26, 26, 26, 0.55);
|
|
--header-bg: rgba(250, 250, 245, 0.94);
|
|
|
|
--header-offset: 92px;
|
|
|
|
--text: var(--ink);
|
|
--text-muted: var(--ink-soft);
|
|
--border: var(--rule-soft);
|
|
--accent: var(--blueprint);
|
|
--accent-hover: #2840d6;
|
|
--secondary: var(--blueprint);
|
|
--complete: var(--status-complete);
|
|
--planned: var(--status-planned);
|
|
--shadow-color: var(--ink);
|
|
--shadow-hard: 3px 3px 0 var(--ink);
|
|
--shadow-hard-lg: 5px 5px 0 var(--ink);
|
|
--dot-color: var(--paper-rule);
|
|
}
|
|
|
|
[data-theme="dark"] {
|
|
--bg: #0a0d1a;
|
|
--bg-surface: #131830;
|
|
--bg-surface-hover: #1b2244;
|
|
--ink: #e8e6dc;
|
|
--ink-soft: #a8a6a0;
|
|
--ink-mute: #7a7878;
|
|
--rule: #e8e6dc;
|
|
--rule-soft: rgba(232, 230, 220, 0.18);
|
|
--paper-rule: rgba(232, 230, 220, 0.08);
|
|
|
|
--blueprint: #6b8eff;
|
|
--blueprint-tint: rgba(107, 142, 255, 0.12);
|
|
--blueprint-tint-strong: rgba(107, 142, 255, 0.22);
|
|
|
|
--status-complete: #6b8eff;
|
|
--status-in-progress: #c8c6c0;
|
|
--status-planned: #4a4a48;
|
|
--warn: #d4a83d;
|
|
|
|
--code-bg: #131830;
|
|
--modal-bg: #0f1424;
|
|
--overlay-bg: rgba(10, 13, 26, 0.78);
|
|
--header-bg: rgba(10, 13, 26, 0.94);
|
|
|
|
--accent-hover: #8aa5ff;
|
|
}
|
|
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html {
|
|
scroll-behavior: smooth;
|
|
scroll-padding-top: 96px;
|
|
}
|
|
|
|
body {
|
|
font-family: var(--font-body);
|
|
font-size: 18px;
|
|
line-height: 1.62;
|
|
color: var(--ink);
|
|
background-color: var(--bg);
|
|
background-image: radial-gradient(var(--paper-rule) 1px, transparent 1px);
|
|
background-size: 16px 16px;
|
|
background-attachment: fixed;
|
|
-webkit-font-smoothing: antialiased;
|
|
text-rendering: optimizeLegibility;
|
|
hyphens: auto;
|
|
-webkit-hyphens: auto;
|
|
transition: background-color 0.2s, color 0.2s;
|
|
}
|
|
|
|
.skip-link {
|
|
position: absolute;
|
|
left: -9999px;
|
|
top: 0;
|
|
z-index: 9999;
|
|
background: var(--blueprint);
|
|
color: #fff;
|
|
padding: 12px 18px;
|
|
font-family: var(--font-mono);
|
|
font-size: 0.9rem;
|
|
text-decoration: none;
|
|
border-radius: 0;
|
|
}
|
|
|
|
.skip-link:focus,
|
|
.skip-link:focus-visible {
|
|
left: 16px;
|
|
top: 16px;
|
|
outline: 2px solid var(--ink);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 0 32px;
|
|
}
|
|
|
|
h1, h2, h3, h4 {
|
|
font-family: var(--font-display);
|
|
font-weight: 400;
|
|
line-height: 1;
|
|
letter-spacing: 0.02em;
|
|
text-transform: uppercase;
|
|
color: var(--blueprint);
|
|
}
|
|
|
|
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
|
|
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
|
|
h3 { font-size: clamp(1.2rem, 2.6vw, 1.6rem); }
|
|
h4 { font-size: 1.1rem; }
|
|
|
|
p {
|
|
font-family: var(--font-body);
|
|
font-size: 1rem;
|
|
line-height: 1.62;
|
|
color: var(--ink);
|
|
}
|
|
|
|
a {
|
|
color: var(--blueprint);
|
|
text-decoration: none;
|
|
border-bottom: 1px solid transparent;
|
|
transition: border-color 0.15s, color 0.15s;
|
|
}
|
|
|
|
a:hover {
|
|
border-bottom-color: var(--blueprint);
|
|
}
|
|
|
|
code, pre, kbd, samp {
|
|
font-family: var(--font-mono);
|
|
}
|
|
|
|
::selection {
|
|
background: var(--blueprint);
|
|
color: var(--bg);
|
|
}
|
|
|
|
.ascii-rule {
|
|
display: block;
|
|
width: 100%;
|
|
height: 6px;
|
|
margin: 32px 0;
|
|
background-image:
|
|
repeating-linear-gradient(
|
|
to right,
|
|
var(--blueprint) 0,
|
|
var(--blueprint) 4px,
|
|
transparent 4px,
|
|
transparent 8px
|
|
),
|
|
repeating-linear-gradient(
|
|
to right,
|
|
transparent 0,
|
|
transparent 8px,
|
|
var(--blueprint-tint-strong) 8px,
|
|
var(--blueprint-tint-strong) 14px
|
|
);
|
|
background-size: 100% 3px, 100% 3px;
|
|
background-position: 0 0, 0 3px;
|
|
background-repeat: no-repeat;
|
|
user-select: none;
|
|
}
|
|
|
|
.label {
|
|
font-family: var(--font-mono);
|
|
font-size: 0.72rem;
|
|
font-weight: 500;
|
|
letter-spacing: 0.12em;
|
|
text-transform: uppercase;
|
|
color: var(--ink-soft);
|
|
}
|
|
|
|
.fig-label {
|
|
font-family: var(--font-mono);
|
|
font-size: 0.7rem;
|
|
font-weight: 500;
|
|
letter-spacing: 0.16em;
|
|
text-transform: uppercase;
|
|
color: var(--blueprint);
|
|
}
|
|
|
|
.dropcap > p:first-of-type::first-letter,
|
|
p.dropcap::first-letter {
|
|
font-family: var(--font-display);
|
|
float: left;
|
|
font-size: 4.2rem;
|
|
line-height: 0.85;
|
|
padding: 0.08em 0.12em 0 0;
|
|
color: var(--blueprint);
|
|
}
|
|
|
|
.site-header {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
z-index: 100;
|
|
background: var(--header-bg);
|
|
backdrop-filter: blur(10px);
|
|
-webkit-backdrop-filter: blur(10px);
|
|
border-bottom: 1px solid var(--rule-soft);
|
|
}
|
|
|
|
.header-inner {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 0 32px;
|
|
height: 64px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.logo {
|
|
font-family: var(--font-display);
|
|
font-size: 1.6rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
color: var(--ink);
|
|
border-bottom: none;
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 8px;
|
|
}
|
|
|
|
.logo:hover {
|
|
color: var(--blueprint);
|
|
border-bottom: none;
|
|
}
|
|
|
|
.logo-icon {
|
|
display: inline-block;
|
|
width: 12px;
|
|
height: 12px;
|
|
background: var(--blueprint);
|
|
}
|
|
|
|
.header-nav {
|
|
display: flex;
|
|
gap: 28px;
|
|
align-items: center;
|
|
}
|
|
|
|
.header-nav a {
|
|
font-family: var(--font-mono);
|
|
font-size: 0.8rem;
|
|
font-weight: 500;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
color: var(--ink-soft);
|
|
border-bottom: none;
|
|
}
|
|
|
|
.header-nav a:hover {
|
|
color: var(--blueprint);
|
|
border-bottom: none;
|
|
}
|
|
|
|
.header-github {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 6px 12px;
|
|
border: 1px solid var(--rule-soft);
|
|
background: var(--bg-surface);
|
|
font-family: var(--font-mono);
|
|
font-size: 0.78rem;
|
|
font-weight: 500;
|
|
letter-spacing: 0.06em;
|
|
color: var(--ink);
|
|
text-transform: uppercase;
|
|
transition: border-color 0.15s, color 0.15s;
|
|
}
|
|
|
|
.header-github:hover {
|
|
border-color: var(--blueprint);
|
|
color: var(--blueprint);
|
|
border-bottom: 1px solid var(--blueprint);
|
|
}
|
|
|
|
.header-github svg {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.header-github .star-icon {
|
|
color: var(--blueprint);
|
|
}
|
|
|
|
.header-github .star-count {
|
|
font-variant-numeric: tabular-nums;
|
|
font-weight: 600;
|
|
color: var(--ink);
|
|
min-width: 1ch;
|
|
}
|
|
|
|
.header-github .star-count[data-loading="true"] {
|
|
opacity: 0.4;
|
|
}
|
|
|
|
.theme-toggle {
|
|
background: transparent;
|
|
border: 1px solid var(--rule-soft);
|
|
width: 36px;
|
|
height: 36px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-family: var(--font-mono);
|
|
font-size: 0.95rem;
|
|
color: var(--ink);
|
|
transition: border-color 0.15s, color 0.15s;
|
|
}
|
|
|
|
.theme-toggle:hover {
|
|
border-color: var(--blueprint);
|
|
color: var(--blueprint);
|
|
}
|
|
|
|
.btn {
|
|
font-family: var(--font-mono);
|
|
font-size: 0.8rem;
|
|
font-weight: 500;
|
|
letter-spacing: 0.12em;
|
|
text-transform: uppercase;
|
|
padding: 10px 20px;
|
|
border: 1px solid var(--ink);
|
|
background: var(--bg);
|
|
color: var(--ink);
|
|
cursor: pointer;
|
|
display: inline-block;
|
|
text-align: center;
|
|
transition: background 0.15s, color 0.15s, border-color 0.15s;
|
|
}
|
|
|
|
.btn:hover {
|
|
background: var(--ink);
|
|
color: var(--bg);
|
|
border-bottom: 1px solid var(--ink);
|
|
}
|
|
|
|
.btn-primary {
|
|
background: var(--blueprint);
|
|
color: var(--bg);
|
|
border-color: var(--blueprint);
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background: var(--accent-hover);
|
|
color: var(--bg);
|
|
border-color: var(--accent-hover);
|
|
border-bottom: 1px solid var(--accent-hover);
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: transparent;
|
|
color: var(--ink);
|
|
border-color: var(--ink);
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background: var(--ink);
|
|
color: var(--bg);
|
|
border-bottom: 1px solid var(--ink);
|
|
}
|
|
|
|
.section {
|
|
padding: 80px 0;
|
|
border-top: 1px solid var(--rule-soft);
|
|
}
|
|
|
|
.section-title {
|
|
font-family: var(--font-display);
|
|
font-size: clamp(1.8rem, 4vw, 2.6rem);
|
|
text-align: left;
|
|
text-transform: uppercase;
|
|
color: var(--blueprint);
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.section-subtitle {
|
|
font-family: var(--font-mono);
|
|
font-size: 0.85rem;
|
|
letter-spacing: 0.1em;
|
|
text-transform: uppercase;
|
|
color: var(--ink-mute);
|
|
margin-bottom: 40px;
|
|
}
|
|
|
|
.modal-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: var(--overlay-bg);
|
|
z-index: 200;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 32px 16px;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transition: opacity 0.2s;
|
|
}
|
|
|
|
.modal-overlay.open {
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.modal {
|
|
position: relative;
|
|
background: var(--modal-bg);
|
|
border: 1px solid var(--ink);
|
|
width: 100%;
|
|
max-width: 760px;
|
|
max-height: 86vh;
|
|
overflow-y: auto;
|
|
padding: 36px 32px 28px;
|
|
transform: translateY(16px);
|
|
transition: transform 0.25s ease;
|
|
}
|
|
|
|
.modal-overlay.open .modal {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.modal-close {
|
|
position: absolute;
|
|
top: 12px;
|
|
right: 16px;
|
|
background: none;
|
|
border: none;
|
|
font-family: var(--font-mono);
|
|
font-size: 1.4rem;
|
|
color: var(--ink-mute);
|
|
cursor: pointer;
|
|
line-height: 1;
|
|
}
|
|
|
|
.modal-close:hover {
|
|
color: var(--blueprint);
|
|
}
|
|
|
|
.modal-header {
|
|
margin-bottom: 22px;
|
|
padding-bottom: 18px;
|
|
border-bottom: 1px solid var(--rule-soft);
|
|
}
|
|
|
|
.modal-phase-num {
|
|
display: block;
|
|
font-family: var(--font-mono);
|
|
font-size: 0.78rem;
|
|
font-weight: 500;
|
|
letter-spacing: 0.16em;
|
|
text-transform: uppercase;
|
|
color: var(--blueprint);
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.modal-title {
|
|
font-family: var(--font-display);
|
|
font-size: 1.8rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.02em;
|
|
color: var(--ink);
|
|
margin: 0 0 8px;
|
|
}
|
|
|
|
.modal-desc {
|
|
color: var(--ink-soft);
|
|
font-size: 0.95rem;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.modal-progress {
|
|
margin-top: 14px;
|
|
padding: 6px 10px;
|
|
background: var(--blueprint-tint);
|
|
border: 1px solid var(--blueprint);
|
|
font-family: var(--font-mono);
|
|
font-size: 0.75rem;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
color: var(--blueprint);
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.modal-progress-count {
|
|
font-weight: 600;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.modal-progress-pct {
|
|
margin-left: auto;
|
|
padding: 2px 8px;
|
|
background: var(--blueprint);
|
|
color: var(--bg);
|
|
font-size: 0.7rem;
|
|
font-weight: 600;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.modal-progress-bar {
|
|
margin-top: 10px;
|
|
height: 4px;
|
|
background: var(--rule-soft);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.modal-progress-bar-fill {
|
|
height: 100%;
|
|
background: var(--blueprint);
|
|
transition: width 0.4s ease;
|
|
width: 0%;
|
|
}
|
|
|
|
.modal-footer {
|
|
margin-top: 18px;
|
|
padding-top: 14px;
|
|
border-top: 1px solid var(--rule-soft);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
font-family: var(--font-mono);
|
|
font-size: 0.7rem;
|
|
letter-spacing: 0.06em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.modal-footer-note {
|
|
color: var(--ink-mute);
|
|
}
|
|
|
|
.modal-reset {
|
|
background: transparent;
|
|
border: 1px solid var(--rule-soft);
|
|
color: var(--ink-mute);
|
|
padding: 6px 12px;
|
|
font-family: var(--font-mono);
|
|
font-size: 0.7rem;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
cursor: pointer;
|
|
transition: color 0.15s, border-color 0.15s;
|
|
}
|
|
|
|
.modal-reset:hover {
|
|
color: var(--blueprint);
|
|
border-color: var(--blueprint);
|
|
}
|
|
|
|
.modal-lessons {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0;
|
|
}
|
|
|
|
.modal-lesson {
|
|
display: grid;
|
|
grid-template-columns: 14px minmax(0, 1fr) auto auto auto auto;
|
|
align-items: center;
|
|
gap: 14px;
|
|
padding: 12px 0;
|
|
border-bottom: 1px solid var(--rule-soft);
|
|
}
|
|
|
|
.modal-lesson:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.modal-lesson:hover {
|
|
background: var(--blueprint-tint);
|
|
}
|
|
|
|
.modal-lesson > a {
|
|
color: var(--ink);
|
|
font-family: var(--font-body);
|
|
font-size: 0.96rem;
|
|
font-weight: 500;
|
|
text-decoration: none;
|
|
border-bottom: 1px solid transparent;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.modal-lesson > a:hover {
|
|
color: var(--blueprint);
|
|
border-bottom-color: var(--blueprint);
|
|
}
|
|
|
|
.modal-lesson-status {
|
|
width: 12px;
|
|
height: 12px;
|
|
border: 1px solid var(--ink);
|
|
background: transparent;
|
|
}
|
|
|
|
.modal-lesson-status.complete {
|
|
background: var(--blueprint);
|
|
border-color: var(--blueprint);
|
|
}
|
|
|
|
.modal-lesson-status.in-progress {
|
|
background: linear-gradient(135deg, var(--blueprint) 0%, var(--blueprint) 50%, transparent 50%, transparent 100%);
|
|
border-color: var(--blueprint);
|
|
}
|
|
|
|
.modal-lesson-status.planned {
|
|
background: transparent;
|
|
border-style: dashed;
|
|
border-color: var(--ink-mute);
|
|
}
|
|
|
|
.modal-lesson-lang {
|
|
font-family: var(--font-mono);
|
|
font-size: 0.68rem;
|
|
letter-spacing: 0.06em;
|
|
color: var(--ink-mute);
|
|
min-width: 80px;
|
|
text-align: right;
|
|
}
|
|
|
|
.modal-lesson-type {
|
|
font-family: var(--font-mono);
|
|
font-size: 0.62rem;
|
|
font-weight: 500;
|
|
letter-spacing: 0.12em;
|
|
text-transform: uppercase;
|
|
padding: 3px 8px;
|
|
background: transparent;
|
|
border: 1px solid var(--rule-soft);
|
|
color: var(--ink-mute);
|
|
min-width: 56px;
|
|
text-align: center;
|
|
}
|
|
|
|
.modal-lesson-type[data-type="Build"] {
|
|
color: var(--blueprint);
|
|
border-color: var(--blueprint);
|
|
}
|
|
|
|
.modal-lesson-type[data-type="Learn"] {
|
|
color: var(--ink);
|
|
border-color: var(--ink);
|
|
}
|
|
|
|
.modal-lesson-type[data-type="Capstone"] {
|
|
color: var(--warn);
|
|
border-color: var(--warn);
|
|
}
|
|
|
|
.modal-lesson .modal-lesson-read {
|
|
font-family: var(--font-mono);
|
|
font-size: 0.72rem;
|
|
font-weight: 500;
|
|
letter-spacing: 0.1em;
|
|
text-transform: uppercase;
|
|
padding: 4px 10px;
|
|
background: transparent;
|
|
color: var(--ink-soft);
|
|
border: 1px solid var(--rule-soft);
|
|
text-decoration: none;
|
|
transition: color 0.15s, border-color 0.15s;
|
|
}
|
|
|
|
.modal-lesson .modal-lesson-read:hover {
|
|
color: var(--blueprint);
|
|
border-color: var(--blueprint);
|
|
border-bottom: 1px solid var(--blueprint);
|
|
}
|
|
|
|
.modal-lesson-read-placeholder {
|
|
display: inline-block;
|
|
width: 64px;
|
|
height: 1px;
|
|
}
|
|
|
|
.modal-lesson-toggle {
|
|
width: 22px;
|
|
height: 22px;
|
|
border: 1px solid var(--rule-soft);
|
|
background: transparent;
|
|
color: var(--ink-soft);
|
|
font-family: var(--font-mono);
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
line-height: 1;
|
|
cursor: pointer;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: background 0.15s, border-color 0.15s, color 0.15s;
|
|
padding: 0;
|
|
}
|
|
|
|
.modal-lesson-toggle:hover {
|
|
border-color: var(--blueprint);
|
|
color: var(--blueprint);
|
|
}
|
|
|
|
.modal-lesson-toggle.done {
|
|
background: var(--blueprint);
|
|
border-color: var(--blueprint);
|
|
color: var(--bg);
|
|
}
|
|
|
|
.copy-btn {
|
|
background: none;
|
|
border: none;
|
|
font-family: var(--font-mono);
|
|
font-size: 0.95rem;
|
|
cursor: pointer;
|
|
padding: 2px 6px;
|
|
color: var(--ink-mute);
|
|
transition: color 0.15s;
|
|
}
|
|
|
|
.copy-btn:hover {
|
|
color: var(--blueprint);
|
|
}
|
|
|
|
.site-footer {
|
|
border-top: 1px solid var(--rule-soft);
|
|
padding: 32px 0;
|
|
}
|
|
|
|
.footer-inner {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 16px;
|
|
}
|
|
|
|
.footer-inner p {
|
|
font-family: var(--font-mono);
|
|
font-size: 0.78rem;
|
|
letter-spacing: 0.06em;
|
|
color: var(--ink-mute);
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.footer-links {
|
|
display: flex;
|
|
gap: 24px;
|
|
}
|
|
|
|
.footer-links a {
|
|
font-family: var(--font-mono);
|
|
font-size: 0.78rem;
|
|
letter-spacing: 0.06em;
|
|
text-transform: uppercase;
|
|
color: var(--ink-soft);
|
|
border-bottom: none;
|
|
}
|
|
|
|
.footer-links a:hover {
|
|
color: var(--blueprint);
|
|
border-bottom: none;
|
|
}
|
|
|
|
.fade-in {
|
|
opacity: 0;
|
|
transform: translateY(12px);
|
|
transition: opacity 0.5s ease, transform 0.5s ease;
|
|
}
|
|
|
|
.fade-in.visible {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.reveal {
|
|
transition:
|
|
opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--stagger-delay, 0ms),
|
|
transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--stagger-delay, 0ms);
|
|
will-change: opacity, transform;
|
|
}
|
|
|
|
body.js-anim .reveal {
|
|
opacity: 0;
|
|
transform: translateY(20px);
|
|
}
|
|
|
|
body.js-anim .reveal--left {
|
|
transform: translateX(-20px);
|
|
}
|
|
|
|
body.js-anim .reveal.in-view {
|
|
opacity: 1;
|
|
transform: none;
|
|
}
|
|
|
|
.ascii-rule {
|
|
transition: clip-path 1.1s cubic-bezier(0.22, 1, 0.36, 1) var(--stagger-delay, 0ms);
|
|
}
|
|
|
|
body.js-anim .ascii-rule {
|
|
clip-path: inset(0 100% 0 0);
|
|
}
|
|
|
|
body.js-anim .ascii-rule.in-view {
|
|
clip-path: inset(0 0 0 0);
|
|
}
|
|
|
|
.toc-row {
|
|
transition:
|
|
opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1) var(--stagger-delay, 0ms),
|
|
transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) var(--stagger-delay, 0ms),
|
|
background 0.15s;
|
|
}
|
|
|
|
body.js-anim .toc-row {
|
|
opacity: 0;
|
|
transform: translateY(8px);
|
|
}
|
|
|
|
body.js-anim .toc-row.in-view {
|
|
opacity: 1;
|
|
transform: none;
|
|
}
|
|
|
|
@keyframes title-flicker {
|
|
0%, 100% { opacity: 1; }
|
|
18% { opacity: 0.4; }
|
|
20% { opacity: 1; }
|
|
62% { opacity: 0.7; }
|
|
64% { opacity: 1; }
|
|
}
|
|
|
|
.manual-title {
|
|
animation: title-flicker 2.4s ease-out 0.1s 1;
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.reveal,
|
|
.ascii-rule,
|
|
.toc-row,
|
|
.stat-row-bar::before,
|
|
.manual-title {
|
|
transition: none !important;
|
|
animation: none !important;
|
|
opacity: 1 !important;
|
|
transform: none !important;
|
|
clip-path: none !important;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 1024px) {
|
|
.container {
|
|
padding: 0 24px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.header-nav a:not(.header-github) {
|
|
display: none;
|
|
}
|
|
|
|
.header-inner {
|
|
height: 56px;
|
|
padding: 0 12px;
|
|
gap: 8px;
|
|
}
|
|
|
|
.logo {
|
|
font-size: 1.2rem;
|
|
gap: 6px;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
flex-shrink: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.header-nav {
|
|
gap: 8px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.header-github {
|
|
padding: 4px 8px;
|
|
font-size: 0.7rem;
|
|
gap: 4px;
|
|
}
|
|
|
|
.theme-toggle {
|
|
width: 32px;
|
|
height: 32px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.container {
|
|
padding: 0 16px;
|
|
}
|
|
|
|
.section {
|
|
padding: 48px 0;
|
|
}
|
|
|
|
.btn {
|
|
width: 100%;
|
|
max-width: 320px;
|
|
}
|
|
|
|
.modal {
|
|
padding: 24px 18px;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.modal-lesson {
|
|
grid-template-columns: 12px minmax(0, 1fr) auto auto auto auto;
|
|
column-gap: 8px;
|
|
padding: 10px 0;
|
|
font-size: 0.88rem;
|
|
}
|
|
|
|
.modal-lesson-lang {
|
|
min-width: 0;
|
|
font-size: 0.62rem;
|
|
}
|
|
|
|
.modal-lesson-type {
|
|
min-width: 0;
|
|
padding: 2px 6px;
|
|
font-size: 0.58rem;
|
|
}
|
|
|
|
.modal-lesson .modal-lesson-read {
|
|
padding: 3px 8px;
|
|
font-size: 0.66rem;
|
|
}
|
|
|
|
.modal-lesson-read-placeholder {
|
|
width: 48px;
|
|
}
|
|
|
|
.footer-inner {
|
|
flex-direction: column;
|
|
text-align: center;
|
|
gap: 8px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
body {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.header-inner {
|
|
padding: 0 10px;
|
|
gap: 6px;
|
|
}
|
|
|
|
.logo {
|
|
font-size: 1rem;
|
|
letter-spacing: 0.02em;
|
|
}
|
|
|
|
.logo-icon {
|
|
width: 10px;
|
|
height: 10px;
|
|
}
|
|
|
|
.header-github {
|
|
padding: 3px 6px;
|
|
font-size: 0.65rem;
|
|
}
|
|
|
|
.header-github .star-count {
|
|
font-size: 0.7rem;
|
|
}
|
|
|
|
.theme-toggle {
|
|
width: 30px;
|
|
height: 30px;
|
|
font-size: 0.85rem;
|
|
}
|
|
}
|
|
|
|
@media (min-width: 1440px) {
|
|
.container {
|
|
max-width: 1240px;
|
|
}
|
|
}
|
|
|
|
/* ═══════════════════════════════════════════════════════════════════════
|
|
Command Palette — global search (Cmd/Ctrl+K or search button)
|
|
═══════════════════════════════════════════════════════════════════════ */
|
|
|
|
/* ── Search trigger button in the header ─────────────────────────────── */
|
|
.search-toggle {
|
|
background: transparent;
|
|
border: 1px solid var(--rule-soft);
|
|
width: 36px;
|
|
height: 36px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--ink-soft);
|
|
transition: border-color 0.15s, color 0.15s;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.search-toggle:hover {
|
|
border-color: var(--blueprint);
|
|
color: var(--blueprint);
|
|
}
|
|
|
|
/* ── Palette overlay wrapper ─────────────────────────────────────────── */
|
|
#cmdPalette {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 1000;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: flex-start;
|
|
/* push the panel below the fixed header on any viewport */
|
|
padding: clamp(68px, 13vh, 150px) 16px 16px;
|
|
pointer-events: none; /* clicks pass through until open */
|
|
}
|
|
|
|
#cmdPalette.cp-open {
|
|
pointer-events: auto;
|
|
}
|
|
|
|
/* ── Dimmed backdrop ─────────────────────────────────────────────────── */
|
|
.cp-backdrop {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: var(--overlay-bg);
|
|
opacity: 0;
|
|
transition: opacity 0.15s ease;
|
|
}
|
|
|
|
#cmdPalette.cp-open .cp-backdrop {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* ── Panel ───────────────────────────────────────────────────────────── */
|
|
.cp-panel {
|
|
position: relative;
|
|
z-index: 1;
|
|
width: 100%;
|
|
max-width: 640px;
|
|
max-height: 70vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: var(--modal-bg);
|
|
border: 2px solid var(--ink);
|
|
box-shadow: 6px 6px 0 var(--ink);
|
|
overflow: hidden;
|
|
/* entry animation */
|
|
opacity: 0;
|
|
transform: translateY(-12px);
|
|
transition:
|
|
transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
|
|
opacity 0.16s ease;
|
|
}
|
|
|
|
#cmdPalette.cp-open .cp-panel {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
/* ── Search row ──────────────────────────────────────────────────────── */
|
|
.cp-search-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 14px 16px;
|
|
border-bottom: 1px solid var(--rule-soft);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.cp-search-icon {
|
|
color: var(--ink-mute);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.cp-input {
|
|
flex: 1;
|
|
font-family: var(--font-mono);
|
|
font-size: 1rem;
|
|
color: var(--ink);
|
|
background: transparent;
|
|
border: none;
|
|
outline: none;
|
|
min-width: 0;
|
|
caret-color: var(--blueprint);
|
|
}
|
|
|
|
.cp-input::placeholder {
|
|
color: var(--ink-mute);
|
|
}
|
|
|
|
/* Strip browser chrome from <input type="search"> */
|
|
.cp-input[type="search"]::-webkit-search-decoration,
|
|
.cp-input[type="search"]::-webkit-search-cancel-button,
|
|
.cp-input[type="search"]::-webkit-search-results-button,
|
|
.cp-input[type="search"]::-webkit-search-results-decoration {
|
|
display: none;
|
|
}
|
|
|
|
.cp-kbd-esc {
|
|
font-family: var(--font-mono);
|
|
font-size: 0.65rem;
|
|
color: var(--ink-mute);
|
|
background: var(--bg-surface);
|
|
border: 1px solid var(--rule-soft);
|
|
padding: 2px 6px;
|
|
letter-spacing: 0.04em;
|
|
flex-shrink: 0;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
}
|
|
|
|
.cp-kbd-esc:hover {
|
|
color: var(--blueprint);
|
|
border-color: var(--blueprint);
|
|
}
|
|
|
|
/* ── Results list ────────────────────────────────────────────────────── */
|
|
.cp-results {
|
|
list-style: none;
|
|
overflow-y: auto;
|
|
flex: 1;
|
|
min-height: 0;
|
|
overscroll-behavior: contain;
|
|
}
|
|
|
|
.cp-results::-webkit-scrollbar { width: 4px; }
|
|
.cp-results::-webkit-scrollbar-thumb { background: var(--rule-soft); border-radius: 2px; }
|
|
|
|
/* ── Empty / no-match state ──────────────────────────────────────────── */
|
|
.cp-empty {
|
|
display: block;
|
|
padding: 24px 20px;
|
|
font-family: var(--font-mono);
|
|
font-size: 0.85rem;
|
|
color: var(--ink-mute);
|
|
text-align: center;
|
|
}
|
|
|
|
.cp-empty em {
|
|
font-style: normal;
|
|
color: var(--ink-soft);
|
|
}
|
|
|
|
/* ── Result item ─────────────────────────────────────────────────────── */
|
|
.cp-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 10px 16px;
|
|
cursor: pointer;
|
|
border-left: 3px solid transparent;
|
|
list-style: none;
|
|
transition: background 0.08s, border-left-color 0.08s;
|
|
}
|
|
|
|
.cp-item + .cp-item {
|
|
border-top: 1px solid var(--rule-soft);
|
|
}
|
|
|
|
.cp-item:hover,
|
|
.cp-item--active {
|
|
background: var(--blueprint-tint);
|
|
border-left-color: var(--blueprint);
|
|
}
|
|
|
|
.cp-item-body {
|
|
display: grid;
|
|
/* chip / name / summary / meta — all rows auto-height */
|
|
grid-template-rows: auto auto auto auto;
|
|
gap: 1px;
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
/* Phase / Glossary chip */
|
|
.cp-item-chip {
|
|
font-family: var(--font-mono);
|
|
font-size: 0.6rem;
|
|
font-weight: 700;
|
|
letter-spacing: 0.14em;
|
|
text-transform: uppercase;
|
|
color: var(--blueprint);
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.cp-item-chip--alt {
|
|
color: var(--ink-mute);
|
|
}
|
|
|
|
/* Lesson / term name */
|
|
.cp-item-name {
|
|
font-family: var(--font-body);
|
|
font-size: 0.94rem;
|
|
font-weight: 600;
|
|
color: var(--ink);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
line-height: 1.35;
|
|
}
|
|
|
|
/* One-line summary */
|
|
.cp-item-summary {
|
|
font-family: var(--font-body);
|
|
font-size: 0.8rem;
|
|
color: var(--ink-soft);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
/* Type · Language meta line */
|
|
.cp-item-meta {
|
|
font-family: var(--font-mono);
|
|
font-size: 0.64rem;
|
|
letter-spacing: 0.04em;
|
|
color: var(--ink-mute);
|
|
line-height: 1.3;
|
|
}
|
|
|
|
/* Chevron arrow — appears only on hover / active */
|
|
.cp-item-arrow {
|
|
color: var(--ink-mute);
|
|
flex-shrink: 0;
|
|
opacity: 0;
|
|
transition: opacity 0.1s, color 0.1s;
|
|
}
|
|
|
|
.cp-item:hover .cp-item-arrow,
|
|
.cp-item--active .cp-item-arrow {
|
|
opacity: 1;
|
|
color: var(--blueprint);
|
|
}
|
|
|
|
/* Highlighted match inside results */
|
|
.cp-results mark {
|
|
background: var(--blueprint-tint-strong);
|
|
color: var(--blueprint);
|
|
padding: 0 1px;
|
|
font-style: normal;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
/* ── Footer keyboard hints ───────────────────────────────────────────── */
|
|
.cp-footer {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 14px;
|
|
flex-wrap: wrap;
|
|
padding: 7px 16px;
|
|
border-top: 1px solid var(--rule-soft);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.cp-footer-group {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.cp-footer kbd {
|
|
font-family: var(--font-mono);
|
|
font-size: 0.6rem;
|
|
color: var(--ink-mute);
|
|
background: var(--bg-surface);
|
|
border: 1px solid var(--rule-soft);
|
|
padding: 1px 5px;
|
|
letter-spacing: 0.02em;
|
|
user-select: none;
|
|
}
|
|
|
|
.cp-footer-label {
|
|
font-family: var(--font-mono);
|
|
font-size: 0.6rem;
|
|
color: var(--ink-mute);
|
|
letter-spacing: 0.04em;
|
|
}
|
|
|
|
.cp-footer-shortcut {
|
|
margin-left: auto;
|
|
font-family: var(--font-mono);
|
|
font-size: 0.6rem;
|
|
color: var(--ink-mute);
|
|
letter-spacing: 0.06em;
|
|
}
|
|
|
|
/* ── Scroll lock when palette is open ───────────────────────────────── */
|
|
body[data-palette-open] {
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* ── Reduced motion ──────────────────────────────────────────────────── */
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.cp-backdrop,
|
|
.cp-panel {
|
|
transition: none !important;
|
|
}
|
|
}
|
|
|
|
/* ── Mobile: full-width sheet pinned to top ──────────────────────────── */
|
|
@media (max-width: 600px) {
|
|
#cmdPalette {
|
|
padding: 56px 0 0; /* clear the 56px mobile header */
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.cp-panel {
|
|
max-width: 100%;
|
|
max-height: calc(85vh - 56px);
|
|
border-left: none;
|
|
border-right: none;
|
|
border-top: 2px solid var(--ink);
|
|
box-shadow: none;
|
|
}
|
|
|
|
.search-toggle {
|
|
width: 32px;
|
|
height: 32px;
|
|
}
|
|
|
|
/* Keep only the "navigate" hint on small screens */
|
|
.cp-footer-group:not(:first-child),
|
|
.cp-footer-shortcut {
|
|
display: none;
|
|
}
|
|
}
|