mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-05-08 02:28:25 -05:00
Quarto-based interview prep site with IronLaw deep-dive, landing page, SVG diagrams, and custom dark-mode styling.
426 lines
11 KiB
CSS
426 lines
11 KiB
CSS
/*
|
|
=============================================================================
|
|
IRONLAW ASSESSMENT ENGINE STYLES
|
|
=============================================================================
|
|
Matches the exact typography, callout geometry, and color tokens from
|
|
the MLSysBook ecosystem (book/quarto/assets/styles/_base-styles.scss).
|
|
*/
|
|
|
|
.engine-container {
|
|
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
height: calc(100vh - 60px); /* Account for navbar */
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
background-color: var(--bs-body-bg, #ffffff);
|
|
color: var(--bs-body-color, #212529);
|
|
}
|
|
|
|
/* ---------------------------------
|
|
LANDING PAGE
|
|
--------------------------------- */
|
|
.landing-view {
|
|
padding: 6rem 2rem;
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
width: 100%;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.hero {
|
|
text-align: center;
|
|
margin-bottom: 5rem;
|
|
}
|
|
|
|
.hero h1 {
|
|
font-weight: 800;
|
|
letter-spacing: -0.04em;
|
|
font-size: 3.5rem;
|
|
margin-bottom: 1.5rem;
|
|
line-height: 1.1;
|
|
font-family: 'Outfit', sans-serif;
|
|
}
|
|
|
|
.hero p {
|
|
font-size: 1.25rem;
|
|
color: var(--bs-secondary-color, #6c757d);
|
|
max-width: 700px;
|
|
margin: 0 auto;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.track-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
|
gap: 2rem;
|
|
}
|
|
|
|
.track-card {
|
|
border: 1px solid var(--bs-border-color, #dee2e6);
|
|
border-radius: 0.5rem;
|
|
padding: 2rem;
|
|
cursor: pointer;
|
|
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
background-color: var(--bs-tertiary-bg, #f8f9fa);
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.track-card::before {
|
|
content: "";
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 4px;
|
|
height: 100%;
|
|
background-color: transparent;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.track-card:hover {
|
|
border-color: #6366f1; /* MLSys Indigo */
|
|
box-shadow: 0 10px 25px rgba(99, 102, 241, 0.08);
|
|
transform: translateY(-4px);
|
|
}
|
|
|
|
.track-card:hover::before {
|
|
background-color: #6366f1;
|
|
}
|
|
|
|
.track-card h3 {
|
|
margin-top: 0;
|
|
margin-bottom: 1rem;
|
|
font-family: 'Outfit', sans-serif;
|
|
font-weight: 700;
|
|
font-size: 1.4rem;
|
|
}
|
|
|
|
.track-card p {
|
|
margin: 0;
|
|
color: var(--bs-secondary-color, #6c757d);
|
|
line-height: 1.5;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
/* ---------------------------------
|
|
THE ARENA
|
|
--------------------------------- */
|
|
.arena {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
width: 100%;
|
|
}
|
|
|
|
.arena-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 1.5rem 3rem;
|
|
border-bottom: 1px solid var(--bs-border-color, #dee2e6);
|
|
background-color: var(--bs-body-bg, #ffffff);
|
|
}
|
|
|
|
.arena-title {
|
|
font-weight: 700;
|
|
font-size: 1.25rem;
|
|
font-family: 'Outfit', sans-serif;
|
|
color: var(--bs-body-color, #212529);
|
|
}
|
|
|
|
.header-actions {
|
|
display: flex;
|
|
gap: 1rem;
|
|
align-items: center;
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: transparent;
|
|
border: 1px solid var(--bs-border-color, #dee2e6);
|
|
color: var(--bs-secondary-color, #6c757d);
|
|
padding: 0.5rem 1.25rem;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
font-size: 0.9rem;
|
|
font-weight: 600;
|
|
font-family: 'Inter', sans-serif;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
border-color: #6366f1;
|
|
color: #6366f1;
|
|
background-color: rgba(99, 102, 241, 0.05);
|
|
}
|
|
|
|
.btn-quit {
|
|
background: transparent;
|
|
border: 1px solid var(--bs-border-color, #dee2e6);
|
|
color: var(--bs-body-color, #212529);
|
|
padding: 0.5rem 1.25rem;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
font-size: 0.9rem;
|
|
font-weight: 600;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.btn-quit:hover {
|
|
border-color: #ef4444;
|
|
color: #ef4444;
|
|
background-color: rgba(239, 68, 68, 0.05);
|
|
}
|
|
|
|
.arena-body {
|
|
display: flex;
|
|
flex: 1;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Left Pane: Scenario */
|
|
.pane-scenario {
|
|
flex: 1;
|
|
padding: 3rem 4rem;
|
|
overflow-y: auto;
|
|
border-right: 1px solid var(--bs-border-color, #dee2e6);
|
|
background-color: var(--bs-body-bg, #ffffff);
|
|
}
|
|
|
|
.badge {
|
|
display: inline-block;
|
|
padding: 0.25rem 0.75rem;
|
|
border-radius: 12px;
|
|
font-size: 0.75rem;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
margin-bottom: 1.5rem;
|
|
color: white;
|
|
}
|
|
|
|
.lvl-l3 { background-color: #22c55e; }
|
|
.lvl-l4 { background-color: #3b82f6; }
|
|
.lvl-l5 { background-color: #eab308; }
|
|
.lvl-l6 { background-color: #ef4444; }
|
|
|
|
.pane-scenario h2 {
|
|
margin-top: 0;
|
|
margin-bottom: 2.5rem;
|
|
font-size: 2.25rem;
|
|
font-weight: 800;
|
|
line-height: 1.2;
|
|
font-family: 'Outfit', sans-serif;
|
|
}
|
|
|
|
/* Match MLSysBook Callout Style */
|
|
.prompt {
|
|
font-size: 1.1rem;
|
|
line-height: 1.7;
|
|
padding: 1.5rem 2rem;
|
|
background-color: rgba(99, 102, 241, 0.05);
|
|
border-left: 5px solid #6366f1;
|
|
border-radius: 0.5rem;
|
|
color: var(--bs-body-color, #212529);
|
|
}
|
|
|
|
/* Right Pane: Chat */
|
|
.pane-chat {
|
|
flex: 1.2;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background-color: var(--bs-tertiary-bg, #f8f9fa);
|
|
/* THIS WAS THE SCROLL FIX: */
|
|
height: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.chat-log {
|
|
flex: 1;
|
|
padding: 3rem 4rem;
|
|
overflow-y: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2rem;
|
|
}
|
|
|
|
.chat-row {
|
|
display: flex;
|
|
width: 100%;
|
|
}
|
|
|
|
.chat-row.user {
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.chat-row.assistant, .chat-row.system {
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
.bubble {
|
|
max-width: 85%;
|
|
padding: 1.25rem 1.75rem;
|
|
border-radius: 12px;
|
|
font-size: 1rem;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.chat-row.user .bubble {
|
|
background-color: #6366f1;
|
|
color: white;
|
|
border-top-right-radius: 4px;
|
|
box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.2);
|
|
}
|
|
|
|
.chat-row.assistant .bubble {
|
|
background-color: var(--bs-body-bg, #ffffff);
|
|
border: 1px solid var(--bs-border-color, #dee2e6);
|
|
color: var(--bs-body-color, #212529);
|
|
border-top-left-radius: 4px;
|
|
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
|
|
width: 100%;
|
|
}
|
|
|
|
.chat-row.system .bubble {
|
|
background-color: transparent;
|
|
border: none;
|
|
color: var(--bs-secondary-color, #6c757d);
|
|
font-style: italic;
|
|
font-size: 0.9rem;
|
|
padding: 0;
|
|
margin: 0 auto;
|
|
text-align: center;
|
|
box-shadow: none;
|
|
}
|
|
|
|
/* Format the Expert Answer block inside the chat bubble */
|
|
.expert-box {
|
|
margin-top: 1rem;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.expert-box blockquote {
|
|
margin: 1.5rem 0 0 0;
|
|
padding: 1rem 1.5rem;
|
|
background-color: rgba(0,0,0,0.03);
|
|
border-left: 4px solid var(--bs-secondary-color, #6c757d);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.feedback-box {
|
|
background-color: var(--bs-tertiary-bg, #f8f9fa);
|
|
border: 1px solid var(--bs-border-color, #dee2e6);
|
|
padding: 1.5rem;
|
|
margin-top: 2rem;
|
|
border-radius: 0.5rem;
|
|
}
|
|
|
|
.btn-github-star {
|
|
background-color: #24292e;
|
|
color: white;
|
|
padding: 0.6rem 1.2rem;
|
|
border-radius: 6px;
|
|
text-decoration: none;
|
|
font-weight: 600;
|
|
font-size: 0.9rem;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.btn-github-star:hover {
|
|
background-color: #000;
|
|
color: white;
|
|
}
|
|
|
|
.btn-github-issue {
|
|
background-color: transparent;
|
|
color: var(--bs-body-color, #212529);
|
|
border: 1px solid var(--bs-border-color, #dee2e6);
|
|
padding: 0.6rem 1.2rem;
|
|
border-radius: 6px;
|
|
text-decoration: none;
|
|
font-weight: 600;
|
|
font-size: 0.9rem;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.btn-github-issue:hover {
|
|
border-color: #6366f1;
|
|
color: #6366f1;
|
|
}
|
|
|
|
.typing {
|
|
color: var(--bs-secondary-color, #6c757d);
|
|
font-style: italic;
|
|
}
|
|
|
|
.chat-input-area {
|
|
padding: 2rem 4rem;
|
|
background-color: var(--bs-body-bg, #ffffff);
|
|
border-top: 1px solid var(--bs-border-color, #dee2e6);
|
|
display: flex;
|
|
gap: 1rem;
|
|
align-items: flex-end;
|
|
}
|
|
|
|
#answer-input {
|
|
flex: 1;
|
|
border: 1px solid var(--bs-border-color, #dee2e6);
|
|
background-color: var(--bs-tertiary-bg, #f8f9fa);
|
|
color: var(--bs-body-color, #212529);
|
|
border-radius: 8px;
|
|
padding: 1rem 1.25rem;
|
|
font-size: 1rem;
|
|
resize: none;
|
|
outline: none;
|
|
transition: all 0.2s;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
#answer-input:focus {
|
|
border-color: #6366f1;
|
|
background-color: var(--bs-body-bg, #ffffff);
|
|
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
|
|
}
|
|
|
|
#btn-submit {
|
|
background-color: #6366f1;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 8px;
|
|
padding: 0 2rem;
|
|
height: 52px;
|
|
font-weight: 600;
|
|
font-size: 1rem;
|
|
cursor: pointer;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
#btn-submit:hover {
|
|
background-color: #4f46e5;
|
|
}
|
|
|
|
/* ---------------------------------
|
|
DARK MODE INTEGRATION
|
|
--------------------------------- */
|
|
html[data-bs-theme="dark"] .engine-container { background-color: #0a0a0f; color: #e8e8f0; }
|
|
html[data-bs-theme="dark"] .track-card { background-color: #11111a; border-color: #2a2a3a; }
|
|
html[data-bs-theme="dark"] .track-card h3 { color: #e8e8f0; }
|
|
html[data-bs-theme="dark"] .arena-header { background-color: #0a0a0f; border-color: #2a2a3a; }
|
|
html[data-bs-theme="dark"] .arena-title { color: #e8e8f0; }
|
|
html[data-bs-theme="dark"] .btn-secondary { border-color: #2a2a3a; color: #9090a0; }
|
|
html[data-bs-theme="dark"] .btn-secondary:hover { border-color: #6366f1; color: #6366f1; background-color: rgba(99, 102, 241, 0.1); }
|
|
html[data-bs-theme="dark"] .btn-quit { border-color: #2a2a3a; color: #e8e8f0; }
|
|
html[data-bs-theme="dark"] .btn-quit:hover { border-color: #ef4444; background-color: rgba(239, 68, 68, 0.1); }
|
|
html[data-bs-theme="dark"] .pane-scenario { background-color: #0a0a0f; border-color: #2a2a3a; }
|
|
html[data-bs-theme="dark"] .pane-scenario h2 { color: #e8e8f0; }
|
|
html[data-bs-theme="dark"] .prompt { color: #e8e8f0; background-color: rgba(99, 102, 241, 0.08); }
|
|
html[data-bs-theme="dark"] .pane-chat { background-color: #11111a; }
|
|
html[data-bs-theme="dark"] .chat-row.assistant .bubble { background-color: #1a1a24; border-color: #2a2a3a; color: #e8e8f0; }
|
|
html[data-bs-theme="dark"] .chat-input-area { background-color: #0a0a0f; border-color: #2a2a3a; }
|
|
html[data-bs-theme="dark"] #answer-input { background-color: #11111a; border-color: #2a2a3a; color: #e8e8f0; }
|
|
html[data-bs-theme="dark"] #answer-input:focus { background-color: #1a1a24; border-color: #6366f1; }
|
|
html[data-bs-theme="dark"] .expert-box { background-color: rgba(34, 197, 94, 0.08); border-color: #22c55e; }
|
|
html[data-bs-theme="dark"] .expert-box blockquote { background-color: rgba(255,255,255,0.05); border-color: #6c757d; }
|
|
html[data-bs-theme="dark"] .feedback-box { background-color: #11111a; border-color: #2a2a3a; }
|
|
html[data-bs-theme="dark"] .btn-github-issue { color: #e8e8f0; border-color: #2a2a3a; }
|
|
html[data-bs-theme="dark"] .btn-github-issue:hover { border-color: #6366f1; color: #6366f1; background-color: rgba(99, 102, 241, 0.1); }
|