2026-05-29 18:44:00 +02:00
|
|
|
/* ===================================================
|
|
|
|
|
SMF2290 Pensum — Editorial Scholarly Design System
|
|
|
|
|
=================================================== */
|
|
|
|
|
|
|
|
|
|
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=Public+Sans:ital,wght@0,300..900;1,300..900&family=JetBrains+Mono:ital,wght@0,400..700;1,400..700&display=swap');
|
|
|
|
|
|
|
|
|
|
:root {
|
|
|
|
|
/* Colors — Dark (default) — deep ink with warm accents */
|
|
|
|
|
--bg: #0F1218;
|
|
|
|
|
--bg-warm: #131720;
|
|
|
|
|
--surface: #1A1F2A;
|
|
|
|
|
--surface-2: #232936;
|
|
|
|
|
--ink: #EDE6D6;
|
|
|
|
|
--ink-2: #C7C0AF;
|
|
|
|
|
--muted: #8D8674;
|
|
|
|
|
--subtle: #5F5A4D;
|
|
|
|
|
--line: rgba(237, 230, 214, 0.10);
|
|
|
|
|
--line-strong: rgba(237, 230, 214, 0.22);
|
|
|
|
|
|
|
|
|
|
/* Theme accents */
|
|
|
|
|
--accent: #E07B5F; /* warm terracotta */
|
|
|
|
|
--accent-2: #D9B057; /* aged gold */
|
|
|
|
|
|
|
|
|
|
--theme-etikk: #D89AA2;
|
|
|
|
|
--theme-etikk-soft: #4A2027;
|
|
|
|
|
--theme-etikk-bg: #2A1A1D;
|
|
|
|
|
|
|
|
|
|
--theme-baerekraft: #9CC089;
|
|
|
|
|
--theme-baerekraft-soft: #2D4029;
|
|
|
|
|
--theme-baerekraft-bg: #1A2419;
|
|
|
|
|
|
|
|
|
|
--theme-samfunn: #E6B777;
|
|
|
|
|
--theme-samfunn-soft: #5A3D17;
|
|
|
|
|
--theme-samfunn-bg: #2A2014;
|
|
|
|
|
|
|
|
|
|
--theme-verktoy: #A2BDD9;
|
|
|
|
|
--theme-verktoy-soft: #1F3149;
|
|
|
|
|
--theme-verktoy-bg: #161E2A;
|
|
|
|
|
|
|
|
|
|
/* Type */
|
|
|
|
|
--f-display: 'Fraunces', 'Georgia', serif;
|
|
|
|
|
--f-body: 'Public Sans', system-ui, sans-serif;
|
|
|
|
|
--f-mono: 'JetBrains Mono', 'Menlo', monospace;
|
|
|
|
|
|
|
|
|
|
/* Scale */
|
|
|
|
|
--s-0: 0.75rem;
|
|
|
|
|
--s-1: 0.875rem;
|
|
|
|
|
--s-2: 1rem;
|
|
|
|
|
--s-3: 1.125rem;
|
|
|
|
|
--s-4: 1.25rem;
|
|
|
|
|
--s-5: 1.5rem;
|
|
|
|
|
--s-6: 2rem;
|
|
|
|
|
--s-7: 2.75rem;
|
|
|
|
|
--s-8: 4rem;
|
|
|
|
|
--s-9: 6rem;
|
|
|
|
|
--s-10: 9rem;
|
|
|
|
|
|
|
|
|
|
/* Spacing */
|
|
|
|
|
--sp-1: 0.25rem;
|
|
|
|
|
--sp-2: 0.5rem;
|
|
|
|
|
--sp-3: 0.75rem;
|
|
|
|
|
--sp-4: 1rem;
|
|
|
|
|
--sp-5: 1.5rem;
|
|
|
|
|
--sp-6: 2rem;
|
|
|
|
|
--sp-7: 3rem;
|
|
|
|
|
--sp-8: 4.5rem;
|
|
|
|
|
--sp-9: 6rem;
|
|
|
|
|
--sp-10: 9rem;
|
|
|
|
|
|
|
|
|
|
--radius: 3px;
|
|
|
|
|
--radius-lg: 14px;
|
|
|
|
|
|
|
|
|
|
--maxw-text: 64ch;
|
|
|
|
|
--maxw-page: 1340px;
|
|
|
|
|
--maxw-narrow: 920px;
|
|
|
|
|
|
|
|
|
|
--ease: cubic-bezier(0.22, 0.7, 0.36, 1);
|
|
|
|
|
--ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[data-theme="light"] {
|
|
|
|
|
--bg: #EFEAE0;
|
|
|
|
|
--bg-warm: #F4EFE6;
|
|
|
|
|
--surface: #F8F5ED;
|
|
|
|
|
--surface-2: #FBF9F3;
|
|
|
|
|
--ink: #1A2230;
|
|
|
|
|
--ink-2: #3B4252;
|
|
|
|
|
--muted: #6E6857;
|
|
|
|
|
--subtle: #948D7B;
|
|
|
|
|
--line: rgba(26, 34, 48, 0.12);
|
|
|
|
|
--line-strong: rgba(26, 34, 48, 0.22);
|
|
|
|
|
|
|
|
|
|
--accent: #A53E2E;
|
|
|
|
|
--accent-2: #B17E2C;
|
|
|
|
|
|
|
|
|
|
--theme-etikk: #7A2E3A;
|
|
|
|
|
--theme-etikk-soft: #C49AA3;
|
|
|
|
|
--theme-etikk-bg: #F0DEDF;
|
|
|
|
|
|
|
|
|
|
--theme-baerekraft: #3D5A39;
|
|
|
|
|
--theme-baerekraft-soft: #A4B89F;
|
|
|
|
|
--theme-baerekraft-bg: #DBE3D5;
|
|
|
|
|
|
|
|
|
|
--theme-samfunn: #A06B27;
|
|
|
|
|
--theme-samfunn-soft: #D8B687;
|
|
|
|
|
--theme-samfunn-bg: #EFDFC4;
|
|
|
|
|
|
|
|
|
|
--theme-verktoy: #2C4767;
|
|
|
|
|
--theme-verktoy-soft: #91A7C0;
|
|
|
|
|
--theme-verktoy-bg: #D8E1EC;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ===================================================
|
|
|
|
|
Reset
|
|
|
|
|
=================================================== */
|
|
|
|
|
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
|
|
|
|
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
|
|
|
|
|
body {
|
|
|
|
|
font-family: var(--f-body);
|
|
|
|
|
font-size: var(--s-2);
|
|
|
|
|
line-height: 1.6;
|
|
|
|
|
color: var(--ink);
|
|
|
|
|
background: var(--bg);
|
|
|
|
|
font-feature-settings: "ss01", "ss02", "cv11";
|
|
|
|
|
text-rendering: optimizeLegibility;
|
|
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
|
|
-moz-osx-font-smoothing: grayscale;
|
|
|
|
|
min-height: 100vh;
|
|
|
|
|
overflow-x: hidden;
|
|
|
|
|
transition: background 0.4s var(--ease), color 0.4s var(--ease);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Subtle paper grain */
|
|
|
|
|
body::before {
|
|
|
|
|
content: '';
|
|
|
|
|
position: fixed;
|
|
|
|
|
inset: 0;
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
z-index: 0;
|
|
|
|
|
opacity: 0.03;
|
|
|
|
|
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
|
|
|
|
|
mix-blend-mode: screen;
|
|
|
|
|
}
|
|
|
|
|
[data-theme="light"] body::before { mix-blend-mode: multiply; opacity: 0.045; }
|
|
|
|
|
|
|
|
|
|
/* Warm ambient glow */
|
|
|
|
|
body::after {
|
|
|
|
|
content: '';
|
|
|
|
|
position: fixed;
|
|
|
|
|
inset: 0;
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
z-index: 0;
|
|
|
|
|
background:
|
|
|
|
|
radial-gradient(ellipse 900px 700px at 10% -10%, rgba(224, 123, 95, 0.10), transparent 60%),
|
|
|
|
|
radial-gradient(ellipse 800px 600px at 92% 110%, rgba(156, 192, 137, 0.06), transparent 60%);
|
|
|
|
|
}
|
|
|
|
|
[data-theme="light"] body::after {
|
|
|
|
|
background:
|
|
|
|
|
radial-gradient(ellipse 800px 600px at 12% -10%, rgba(165, 62, 46, 0.07), transparent 60%),
|
|
|
|
|
radial-gradient(ellipse 700px 500px at 90% 110%, rgba(61, 90, 57, 0.06), transparent 60%);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
img, svg { display: block; max-width: 100%; }
|
|
|
|
|
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
|
|
|
|
|
input, textarea { font: inherit; color: inherit; }
|
|
|
|
|
a { color: inherit; text-decoration: none; }
|
|
|
|
|
ul, ol { list-style: none; }
|
|
|
|
|
|
|
|
|
|
::selection { background: var(--ink); color: var(--bg-warm); }
|
|
|
|
|
|
|
|
|
|
/* ===================================================
|
|
|
|
|
Typography
|
|
|
|
|
=================================================== */
|
|
|
|
|
.display {
|
|
|
|
|
font-family: var(--f-display);
|
|
|
|
|
font-weight: 300;
|
|
|
|
|
font-variation-settings: "opsz" 144, "SOFT" 50;
|
|
|
|
|
letter-spacing: -0.03em;
|
|
|
|
|
line-height: 0.92;
|
|
|
|
|
color: var(--ink);
|
|
|
|
|
}
|
|
|
|
|
.display-it { font-style: italic; }
|
|
|
|
|
|
|
|
|
|
.eyebrow {
|
|
|
|
|
font-family: var(--f-mono);
|
|
|
|
|
font-size: var(--s-0);
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
letter-spacing: 0.15em;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
}
|
|
|
|
|
.eyebrow strong { color: var(--ink); font-weight: 600; }
|
|
|
|
|
|
|
|
|
|
.serif { font-family: var(--f-display); }
|
|
|
|
|
.mono { font-family: var(--f-mono); }
|
|
|
|
|
|
|
|
|
|
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 400; letter-spacing: -0.02em; line-height: 1.1; color: var(--ink); }
|
|
|
|
|
h1 { font-size: var(--s-7); font-variation-settings: "opsz" 80, "SOFT" 30; }
|
|
|
|
|
h2 { font-size: var(--s-6); font-variation-settings: "opsz" 48; }
|
|
|
|
|
h3 { font-size: var(--s-5); font-variation-settings: "opsz" 36; }
|
|
|
|
|
h4 { font-size: var(--s-4); font-weight: 500; font-variation-settings: "opsz" 14; letter-spacing: -0.01em; }
|
|
|
|
|
|
|
|
|
|
p { color: var(--ink-2); }
|
|
|
|
|
p + p { margin-top: var(--sp-4); }
|
|
|
|
|
|
|
|
|
|
strong { color: var(--ink); font-weight: 600; }
|
|
|
|
|
em { font-family: var(--f-display); font-style: italic; font-weight: 400; color: var(--ink); }
|
|
|
|
|
|
|
|
|
|
code, kbd {
|
|
|
|
|
font-family: var(--f-mono);
|
|
|
|
|
font-size: 0.92em;
|
|
|
|
|
background: var(--surface-2);
|
|
|
|
|
padding: 0.12em 0.42em;
|
|
|
|
|
border-radius: var(--radius);
|
|
|
|
|
border: 1px solid var(--line);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
blockquote {
|
|
|
|
|
font-family: var(--f-display);
|
|
|
|
|
font-style: italic;
|
|
|
|
|
font-weight: 300;
|
|
|
|
|
font-variation-settings: "opsz" 60, "SOFT" 50;
|
|
|
|
|
font-size: var(--s-5);
|
|
|
|
|
line-height: 1.35;
|
|
|
|
|
color: var(--ink);
|
|
|
|
|
border-left: 2px solid var(--accent);
|
|
|
|
|
padding-left: var(--sp-5);
|
|
|
|
|
margin: var(--sp-6) 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ===================================================
|
|
|
|
|
Layout
|
|
|
|
|
=================================================== */
|
|
|
|
|
.app {
|
|
|
|
|
position: relative;
|
|
|
|
|
z-index: 1;
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-columns: 280px 1fr;
|
|
|
|
|
min-height: 100vh;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.app--no-sidebar { grid-template-columns: 1fr; }
|
|
|
|
|
|
|
|
|
|
@media (max-width: 900px) {
|
|
|
|
|
.app { grid-template-columns: 1fr; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Sidebar */
|
|
|
|
|
.sidebar {
|
|
|
|
|
position: sticky;
|
|
|
|
|
top: 0;
|
|
|
|
|
height: 100vh;
|
|
|
|
|
padding: var(--sp-6) var(--sp-5);
|
|
|
|
|
border-right: 1px solid var(--line);
|
|
|
|
|
background: var(--bg-warm);
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
z-index: 10;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sidebar__brand {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 2px;
|
|
|
|
|
margin-bottom: var(--sp-7);
|
|
|
|
|
}
|
|
|
|
|
.sidebar__brand-code {
|
|
|
|
|
font-family: var(--f-mono);
|
|
|
|
|
font-size: var(--s-0);
|
|
|
|
|
letter-spacing: 0.18em;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
}
|
|
|
|
|
.sidebar__brand-name {
|
|
|
|
|
font-family: var(--f-display);
|
|
|
|
|
font-size: var(--s-5);
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
font-style: italic;
|
|
|
|
|
font-variation-settings: "opsz" 30, "SOFT" 100;
|
|
|
|
|
letter-spacing: -0.02em;
|
|
|
|
|
line-height: 1;
|
|
|
|
|
color: var(--ink);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sidebar__section { margin-bottom: var(--sp-6); }
|
|
|
|
|
.sidebar__label {
|
|
|
|
|
font-family: var(--f-mono);
|
|
|
|
|
font-size: 0.6875rem;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
letter-spacing: 0.18em;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
color: var(--subtle);
|
|
|
|
|
margin-bottom: var(--sp-3);
|
|
|
|
|
padding-left: var(--sp-2);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sidebar__nav { display: flex; flex-direction: column; gap: 1px; }
|
|
|
|
|
.sidebar__link {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: var(--sp-3);
|
|
|
|
|
padding: var(--sp-2) var(--sp-2);
|
|
|
|
|
font-size: var(--s-1);
|
|
|
|
|
color: var(--ink-2);
|
|
|
|
|
border-radius: var(--radius);
|
|
|
|
|
position: relative;
|
|
|
|
|
transition: background 0.18s var(--ease), color 0.18s var(--ease);
|
|
|
|
|
}
|
|
|
|
|
.sidebar__link:hover { background: var(--surface); color: var(--ink); }
|
|
|
|
|
.sidebar__link--active {
|
|
|
|
|
background: var(--surface);
|
|
|
|
|
color: var(--ink);
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
}
|
|
|
|
|
.sidebar__link--active::before {
|
|
|
|
|
content: '';
|
|
|
|
|
position: absolute;
|
|
|
|
|
left: -1px;
|
|
|
|
|
top: 8px;
|
|
|
|
|
bottom: 8px;
|
|
|
|
|
width: 2px;
|
|
|
|
|
background: var(--accent);
|
|
|
|
|
}
|
|
|
|
|
.sidebar__link-num {
|
|
|
|
|
font-family: var(--f-mono);
|
|
|
|
|
font-size: 0.6875rem;
|
|
|
|
|
color: var(--subtle);
|
|
|
|
|
font-variant-numeric: tabular-nums;
|
|
|
|
|
min-width: 1.8em;
|
|
|
|
|
}
|
|
|
|
|
.sidebar__link--active .sidebar__link-num { color: var(--accent); }
|
|
|
|
|
|
|
|
|
|
.sidebar__exam {
|
|
|
|
|
margin-top: auto;
|
|
|
|
|
padding: var(--sp-4);
|
|
|
|
|
border: 1px solid var(--line);
|
|
|
|
|
border-radius: var(--radius);
|
|
|
|
|
background: var(--surface);
|
|
|
|
|
}
|
|
|
|
|
.sidebar__exam-label {
|
|
|
|
|
font-family: var(--f-mono);
|
|
|
|
|
font-size: 0.6875rem;
|
|
|
|
|
letter-spacing: 0.18em;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
margin-bottom: 4px;
|
|
|
|
|
}
|
|
|
|
|
.sidebar__exam-countdown {
|
|
|
|
|
font-family: var(--f-display);
|
|
|
|
|
font-size: var(--s-6);
|
|
|
|
|
line-height: 1;
|
|
|
|
|
font-weight: 300;
|
|
|
|
|
font-variation-settings: "opsz" 60, "SOFT" 30;
|
|
|
|
|
color: var(--accent);
|
|
|
|
|
letter-spacing: -0.04em;
|
|
|
|
|
}
|
|
|
|
|
.sidebar__exam-detail {
|
|
|
|
|
font-family: var(--f-mono);
|
|
|
|
|
font-size: 0.6875rem;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
margin-top: var(--sp-2);
|
|
|
|
|
letter-spacing: 0.04em;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Mobile drawer */
|
|
|
|
|
.sidebar-toggle {
|
|
|
|
|
display: none;
|
|
|
|
|
position: fixed;
|
|
|
|
|
top: 14px;
|
|
|
|
|
left: 14px;
|
|
|
|
|
z-index: 100;
|
|
|
|
|
width: 38px;
|
|
|
|
|
height: 38px;
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
background: var(--surface);
|
|
|
|
|
border: 1px solid var(--line);
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
}
|
|
|
|
|
.sidebar-toggle svg { width: 18px; height: 18px; }
|
|
|
|
|
@media (max-width: 900px) {
|
|
|
|
|
.sidebar-toggle { display: flex; }
|
|
|
|
|
.sidebar {
|
|
|
|
|
position: fixed;
|
|
|
|
|
left: 0; top: 0; bottom: 0;
|
|
|
|
|
width: 84%;
|
|
|
|
|
max-width: 320px;
|
|
|
|
|
transform: translateX(-100%);
|
|
|
|
|
transition: transform 0.32s var(--ease);
|
|
|
|
|
box-shadow: 0 0 80px rgba(0,0,0,0.15);
|
|
|
|
|
}
|
|
|
|
|
.sidebar--open { transform: translateX(0); }
|
|
|
|
|
.sidebar-scrim {
|
|
|
|
|
position: fixed; inset: 0;
|
|
|
|
|
background: rgba(0,0,0,0.3);
|
|
|
|
|
z-index: 9;
|
|
|
|
|
opacity: 0; pointer-events: none;
|
|
|
|
|
transition: opacity 0.32s var(--ease);
|
|
|
|
|
}
|
|
|
|
|
.sidebar-scrim--open { opacity: 1; pointer-events: auto; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Main canvas */
|
|
|
|
|
.canvas {
|
|
|
|
|
position: relative;
|
|
|
|
|
min-height: 100vh;
|
|
|
|
|
padding: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Top bar */
|
|
|
|
|
.topbar {
|
|
|
|
|
position: sticky;
|
|
|
|
|
top: 0;
|
|
|
|
|
z-index: 8;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
gap: var(--sp-4);
|
|
|
|
|
padding: var(--sp-4) var(--sp-7);
|
|
|
|
|
border-bottom: 1px solid var(--line);
|
|
|
|
|
background: rgba(15, 18, 24, 0.78);
|
|
|
|
|
backdrop-filter: saturate(180%) blur(14px);
|
|
|
|
|
-webkit-backdrop-filter: saturate(180%) blur(14px);
|
|
|
|
|
}
|
|
|
|
|
[data-theme="light"] .topbar { background: rgba(239, 234, 224, 0.75); }
|
|
|
|
|
|
|
|
|
|
.topbar__crumbs {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: var(--sp-3);
|
|
|
|
|
font-family: var(--f-mono);
|
|
|
|
|
font-size: var(--s-0);
|
|
|
|
|
letter-spacing: 0.05em;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
}
|
|
|
|
|
.topbar__crumbs strong { color: var(--ink); font-weight: 500; }
|
|
|
|
|
.topbar__crumbs span { opacity: 0.5; }
|
|
|
|
|
|
|
|
|
|
.topbar__actions { display: flex; gap: var(--sp-2); align-items: center; }
|
|
|
|
|
|
|
|
|
|
.icon-btn {
|
|
|
|
|
width: 36px; height: 36px;
|
|
|
|
|
border-radius: var(--radius);
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
color: var(--ink-2);
|
|
|
|
|
border: 1px solid transparent;
|
|
|
|
|
transition: background 0.18s, border-color 0.18s, color 0.18s;
|
|
|
|
|
}
|
|
|
|
|
.icon-btn:hover { background: var(--surface); border-color: var(--line); color: var(--ink); }
|
|
|
|
|
.icon-btn svg { width: 18px; height: 18px; }
|
|
|
|
|
|
|
|
|
|
.search {
|
|
|
|
|
position: relative;
|
|
|
|
|
flex: 0 1 420px;
|
|
|
|
|
min-width: 0;
|
|
|
|
|
}
|
|
|
|
|
.search__input {
|
|
|
|
|
width: 100%;
|
|
|
|
|
background: var(--surface);
|
|
|
|
|
border: 1px solid var(--line);
|
|
|
|
|
border-radius: var(--radius);
|
|
|
|
|
padding: var(--sp-2) var(--sp-3) var(--sp-2) calc(var(--sp-4) + 14px);
|
|
|
|
|
font-size: var(--s-1);
|
|
|
|
|
outline: none;
|
|
|
|
|
transition: border-color 0.18s, background 0.18s;
|
|
|
|
|
}
|
|
|
|
|
.search__input::placeholder { color: var(--subtle); }
|
|
|
|
|
.search__input:focus { border-color: var(--ink-2); background: var(--surface-2); }
|
|
|
|
|
.search__icon {
|
|
|
|
|
position: absolute;
|
|
|
|
|
left: var(--sp-3);
|
|
|
|
|
top: 50%;
|
|
|
|
|
transform: translateY(-50%);
|
|
|
|
|
width: 14px; height: 14px;
|
|
|
|
|
color: var(--subtle);
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
}
|
|
|
|
|
.search__kbd {
|
|
|
|
|
position: absolute;
|
|
|
|
|
right: var(--sp-2);
|
|
|
|
|
top: 50%;
|
|
|
|
|
transform: translateY(-50%);
|
|
|
|
|
font-family: var(--f-mono);
|
|
|
|
|
font-size: 0.6875rem;
|
|
|
|
|
color: var(--subtle);
|
|
|
|
|
background: var(--bg);
|
|
|
|
|
border: 1px solid var(--line);
|
|
|
|
|
padding: 1px 6px;
|
|
|
|
|
border-radius: 3px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-results {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: calc(100% + 8px);
|
|
|
|
|
left: 0; right: 0;
|
|
|
|
|
background: var(--surface-2);
|
|
|
|
|
border: 1px solid var(--line);
|
|
|
|
|
border-radius: var(--radius-lg);
|
|
|
|
|
box-shadow: 0 12px 40px rgba(0,0,0,0.12);
|
|
|
|
|
max-height: 70vh;
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
display: none;
|
|
|
|
|
z-index: 100;
|
|
|
|
|
}
|
|
|
|
|
.search-results--open { display: block; }
|
|
|
|
|
.search-result {
|
|
|
|
|
display: block;
|
|
|
|
|
padding: var(--sp-3) var(--sp-4);
|
|
|
|
|
border-bottom: 1px solid var(--line);
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
transition: background 0.12s;
|
|
|
|
|
}
|
|
|
|
|
.search-result:hover { background: var(--bg-warm); }
|
|
|
|
|
.search-result:last-child { border-bottom: 0; }
|
|
|
|
|
.search-result__type {
|
|
|
|
|
font-family: var(--f-mono);
|
|
|
|
|
font-size: 0.6875rem;
|
|
|
|
|
letter-spacing: 0.1em;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
color: var(--accent);
|
|
|
|
|
margin-bottom: 2px;
|
|
|
|
|
}
|
|
|
|
|
.search-result__title { font-weight: 500; color: var(--ink); font-size: var(--s-1); }
|
|
|
|
|
.search-result__snippet { font-size: var(--s-0); color: var(--muted); margin-top: 4px; }
|
|
|
|
|
.search-result mark { background: var(--theme-samfunn-bg); color: var(--ink); padding: 0 2px; border-radius: 2px; }
|
|
|
|
|
|
|
|
|
|
/* ===================================================
|
|
|
|
|
Page containers
|
|
|
|
|
=================================================== */
|
|
|
|
|
.page {
|
|
|
|
|
padding: var(--sp-8) var(--sp-7);
|
|
|
|
|
max-width: var(--maxw-page);
|
|
|
|
|
margin: 0 auto;
|
|
|
|
|
}
|
|
|
|
|
.page--narrow { max-width: var(--maxw-narrow); }
|
|
|
|
|
@media (max-width: 700px) {
|
|
|
|
|
.page { padding: var(--sp-6) var(--sp-5); }
|
|
|
|
|
.topbar { padding: var(--sp-3) var(--sp-4) var(--sp-3) 60px; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ===================================================
|
|
|
|
|
Home page
|
|
|
|
|
=================================================== */
|
|
|
|
|
.hero {
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-columns: 1fr;
|
|
|
|
|
gap: var(--sp-8);
|
|
|
|
|
align-items: end;
|
|
|
|
|
padding: var(--sp-9) 0 var(--sp-8);
|
|
|
|
|
border-bottom: 1px solid var(--line);
|
|
|
|
|
position: relative;
|
|
|
|
|
}
|
|
|
|
|
.hero__meta {
|
|
|
|
|
font-family: var(--f-mono);
|
|
|
|
|
font-size: var(--s-0);
|
|
|
|
|
letter-spacing: 0.18em;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
gap: var(--sp-5);
|
|
|
|
|
margin-bottom: var(--sp-5);
|
|
|
|
|
}
|
|
|
|
|
.hero__meta strong { color: var(--ink); font-weight: 500; }
|
|
|
|
|
.hero__title {
|
|
|
|
|
font-family: var(--f-display);
|
|
|
|
|
font-size: clamp(3rem, 9vw, 8rem);
|
|
|
|
|
font-weight: 300;
|
|
|
|
|
font-variation-settings: "opsz" 144, "SOFT" 30;
|
|
|
|
|
letter-spacing: -0.04em;
|
|
|
|
|
line-height: 0.9;
|
|
|
|
|
color: var(--ink);
|
|
|
|
|
}
|
|
|
|
|
.hero__title em {
|
|
|
|
|
font-style: italic;
|
|
|
|
|
font-weight: 300;
|
|
|
|
|
color: var(--accent);
|
|
|
|
|
font-variation-settings: "opsz" 144, "SOFT" 100;
|
|
|
|
|
}
|
|
|
|
|
.hero__quote {
|
|
|
|
|
font-family: var(--f-display);
|
|
|
|
|
font-style: italic;
|
|
|
|
|
font-size: var(--s-5);
|
|
|
|
|
font-weight: 300;
|
|
|
|
|
font-variation-settings: "opsz" 60, "SOFT" 70;
|
|
|
|
|
line-height: 1.35;
|
|
|
|
|
color: var(--ink);
|
|
|
|
|
max-width: 56ch;
|
|
|
|
|
margin-top: var(--sp-6);
|
|
|
|
|
}
|
|
|
|
|
.hero__quote::before { content: '“'; color: var(--accent); margin-right: 0.05em; }
|
|
|
|
|
.hero__quote::after { content: '”'; color: var(--accent); margin-left: 0.05em; }
|
|
|
|
|
.hero__attribution {
|
|
|
|
|
margin-top: var(--sp-3);
|
|
|
|
|
font-family: var(--f-mono);
|
|
|
|
|
font-size: var(--s-0);
|
|
|
|
|
letter-spacing: 0.1em;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.exam-strip {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
gap: var(--sp-6);
|
|
|
|
|
padding: var(--sp-5) 0;
|
|
|
|
|
border-bottom: 1px solid var(--line);
|
|
|
|
|
}
|
|
|
|
|
.exam-cell {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 2px;
|
|
|
|
|
}
|
|
|
|
|
.exam-cell__label {
|
|
|
|
|
font-family: var(--f-mono);
|
|
|
|
|
font-size: 0.6875rem;
|
|
|
|
|
letter-spacing: 0.15em;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
color: var(--subtle);
|
|
|
|
|
}
|
|
|
|
|
.exam-cell__value {
|
|
|
|
|
font-family: var(--f-display);
|
|
|
|
|
font-size: var(--s-4);
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
font-variation-settings: "opsz" 36;
|
|
|
|
|
color: var(--ink);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Theme cards */
|
|
|
|
|
.themes {
|
|
|
|
|
padding: var(--sp-8) 0;
|
|
|
|
|
}
|
|
|
|
|
.themes__head {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
align-items: end;
|
|
|
|
|
margin-bottom: var(--sp-6);
|
|
|
|
|
}
|
|
|
|
|
.themes__title {
|
|
|
|
|
font-family: var(--f-display);
|
|
|
|
|
font-size: var(--s-6);
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
font-variation-settings: "opsz" 48;
|
|
|
|
|
letter-spacing: -0.02em;
|
|
|
|
|
}
|
|
|
|
|
.themes__count {
|
|
|
|
|
font-family: var(--f-mono);
|
|
|
|
|
font-size: var(--s-0);
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
letter-spacing: 0.1em;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.themes__grid {
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-columns: repeat(2, 1fr);
|
|
|
|
|
gap: var(--sp-5);
|
|
|
|
|
}
|
|
|
|
|
@media (max-width: 700px) { .themes__grid { grid-template-columns: 1fr; } }
|
|
|
|
|
|
|
|
|
|
.theme-card {
|
|
|
|
|
position: relative;
|
|
|
|
|
display: block;
|
|
|
|
|
padding: var(--sp-7) var(--sp-6) var(--sp-6);
|
|
|
|
|
background: var(--surface);
|
|
|
|
|
border: 1px solid var(--line);
|
|
|
|
|
border-radius: var(--radius-lg);
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
|
|
|
|
|
isolation: isolate;
|
|
|
|
|
}
|
|
|
|
|
.theme-card::before {
|
|
|
|
|
content: '';
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0; left: 0;
|
|
|
|
|
width: 100%; height: 4px;
|
|
|
|
|
background: var(--theme-color);
|
|
|
|
|
transform-origin: left;
|
|
|
|
|
transform: scaleX(0);
|
|
|
|
|
transition: transform 0.6s var(--ease);
|
|
|
|
|
z-index: 1;
|
|
|
|
|
}
|
|
|
|
|
.theme-card::after {
|
|
|
|
|
content: '';
|
|
|
|
|
position: absolute;
|
|
|
|
|
inset: 0;
|
|
|
|
|
background: radial-gradient(circle at 100% 0%, var(--theme-color-bg), transparent 50%);
|
|
|
|
|
opacity: 0.6;
|
|
|
|
|
z-index: 0;
|
|
|
|
|
transition: opacity 0.4s var(--ease);
|
|
|
|
|
}
|
|
|
|
|
.theme-card:hover {
|
|
|
|
|
transform: translateY(-2px);
|
|
|
|
|
border-color: var(--theme-color);
|
|
|
|
|
box-shadow: 0 18px 40px -16px var(--theme-color-shadow, rgba(0,0,0,0.18));
|
|
|
|
|
}
|
|
|
|
|
.theme-card:hover::before { transform: scaleX(1); }
|
|
|
|
|
.theme-card:hover::after { opacity: 1; }
|
|
|
|
|
.theme-card > * { position: relative; z-index: 2; }
|
|
|
|
|
|
|
|
|
|
.theme-card__num {
|
|
|
|
|
font-family: var(--f-display);
|
|
|
|
|
font-size: var(--s-10);
|
|
|
|
|
font-weight: 300;
|
|
|
|
|
font-variation-settings: "opsz" 144, "SOFT" 100;
|
|
|
|
|
line-height: 0.8;
|
|
|
|
|
color: var(--theme-color);
|
|
|
|
|
letter-spacing: -0.04em;
|
|
|
|
|
opacity: 0.18;
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: var(--sp-3);
|
|
|
|
|
right: var(--sp-5);
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
z-index: 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.theme-card__eyebrow {
|
|
|
|
|
font-family: var(--f-mono);
|
|
|
|
|
font-size: var(--s-0);
|
|
|
|
|
letter-spacing: 0.18em;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
color: var(--theme-color);
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
margin-bottom: var(--sp-3);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.theme-card__title {
|
|
|
|
|
font-family: var(--f-display);
|
|
|
|
|
font-size: var(--s-7);
|
|
|
|
|
font-weight: 300;
|
|
|
|
|
font-variation-settings: "opsz" 80, "SOFT" 40;
|
|
|
|
|
letter-spacing: -0.03em;
|
|
|
|
|
line-height: 0.95;
|
|
|
|
|
color: var(--ink);
|
|
|
|
|
margin-bottom: var(--sp-3);
|
|
|
|
|
}
|
|
|
|
|
.theme-card__title em {
|
|
|
|
|
font-style: italic;
|
|
|
|
|
font-weight: 300;
|
|
|
|
|
font-variation-settings: "opsz" 80, "SOFT" 100;
|
|
|
|
|
color: var(--theme-color);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.theme-card__summary {
|
|
|
|
|
font-size: var(--s-1);
|
|
|
|
|
color: var(--ink-2);
|
|
|
|
|
margin-bottom: var(--sp-5);
|
|
|
|
|
max-width: 40ch;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.theme-card__list {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
gap: 6px;
|
|
|
|
|
margin-bottom: var(--sp-5);
|
|
|
|
|
}
|
|
|
|
|
.theme-card__chip {
|
|
|
|
|
font-family: var(--f-mono);
|
|
|
|
|
font-size: 0.6875rem;
|
|
|
|
|
letter-spacing: 0.04em;
|
|
|
|
|
padding: 3px 8px;
|
|
|
|
|
border: 1px solid var(--line);
|
|
|
|
|
border-radius: 2px;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
background: var(--surface-2);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.theme-card__foot {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
align-items: center;
|
|
|
|
|
padding-top: var(--sp-4);
|
|
|
|
|
border-top: 1px solid var(--line);
|
|
|
|
|
font-family: var(--f-mono);
|
|
|
|
|
font-size: var(--s-0);
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
letter-spacing: 0.1em;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
}
|
|
|
|
|
.theme-card__arrow {
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 6px;
|
|
|
|
|
color: var(--theme-color);
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
transition: transform 0.4s var(--ease);
|
|
|
|
|
}
|
|
|
|
|
.theme-card:hover .theme-card__arrow { transform: translateX(4px); }
|
|
|
|
|
|
|
|
|
|
/* Theme color schemes */
|
|
|
|
|
.theme-card--etikk {
|
|
|
|
|
--theme-color: var(--theme-etikk);
|
|
|
|
|
--theme-color-soft: var(--theme-etikk-soft);
|
|
|
|
|
--theme-color-bg: var(--theme-etikk-bg);
|
|
|
|
|
--theme-color-shadow: rgba(122, 46, 58, 0.25);
|
|
|
|
|
}
|
|
|
|
|
.theme-card--baerekraft {
|
|
|
|
|
--theme-color: var(--theme-baerekraft);
|
|
|
|
|
--theme-color-soft: var(--theme-baerekraft-soft);
|
|
|
|
|
--theme-color-bg: var(--theme-baerekraft-bg);
|
|
|
|
|
--theme-color-shadow: rgba(61, 90, 57, 0.25);
|
|
|
|
|
}
|
|
|
|
|
.theme-card--samfunn {
|
|
|
|
|
--theme-color: var(--theme-samfunn);
|
|
|
|
|
--theme-color-soft: var(--theme-samfunn-soft);
|
|
|
|
|
--theme-color-bg: var(--theme-samfunn-bg);
|
|
|
|
|
--theme-color-shadow: rgba(160, 107, 39, 0.25);
|
|
|
|
|
}
|
|
|
|
|
.theme-card--verktoy {
|
|
|
|
|
--theme-color: var(--theme-verktoy);
|
|
|
|
|
--theme-color-soft: var(--theme-verktoy-soft);
|
|
|
|
|
--theme-color-bg: var(--theme-verktoy-bg);
|
|
|
|
|
--theme-color-shadow: rgba(44, 71, 103, 0.25);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Modes (Flashcards / Quiz / Eksamen entry strip) */
|
|
|
|
|
.modes {
|
|
|
|
|
padding: var(--sp-8) 0;
|
|
|
|
|
border-top: 1px solid var(--line);
|
|
|
|
|
}
|
|
|
|
|
.modes__grid {
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-columns: repeat(3, 1fr);
|
|
|
|
|
gap: 0;
|
|
|
|
|
}
|
|
|
|
|
@media (max-width: 700px) { .modes__grid { grid-template-columns: 1fr; } }
|
|
|
|
|
|
|
|
|
|
.mode-card {
|
|
|
|
|
padding: var(--sp-6);
|
|
|
|
|
border-left: 1px solid var(--line);
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: var(--sp-3);
|
|
|
|
|
text-align: left;
|
|
|
|
|
background: transparent;
|
|
|
|
|
transition: background 0.3s var(--ease);
|
|
|
|
|
align-items: stretch;
|
|
|
|
|
}
|
|
|
|
|
.mode-card:first-child { border-left: 0; padding-left: 0; }
|
|
|
|
|
.mode-card:last-child { padding-right: 0; }
|
|
|
|
|
@media (max-width: 700px) {
|
|
|
|
|
.mode-card { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-right: 0; }
|
|
|
|
|
.mode-card:first-child { border-top: 0; }
|
|
|
|
|
}
|
|
|
|
|
.mode-card:hover { background: rgba(0,0,0,0.015); }
|
|
|
|
|
[data-theme="dark"] .mode-card:hover { background: rgba(255,255,255,0.02); }
|
|
|
|
|
|
|
|
|
|
.mode-card__label {
|
|
|
|
|
font-family: var(--f-mono);
|
|
|
|
|
font-size: var(--s-0);
|
|
|
|
|
letter-spacing: 0.18em;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
}
|
|
|
|
|
.mode-card__title {
|
|
|
|
|
font-family: var(--f-display);
|
|
|
|
|
font-size: var(--s-6);
|
|
|
|
|
font-weight: 300;
|
|
|
|
|
font-variation-settings: "opsz" 48, "SOFT" 40;
|
|
|
|
|
letter-spacing: -0.02em;
|
|
|
|
|
line-height: 1.05;
|
|
|
|
|
color: var(--ink);
|
|
|
|
|
}
|
|
|
|
|
.mode-card__title em { font-style: italic; color: var(--accent); }
|
|
|
|
|
.mode-card__desc { font-size: var(--s-1); color: var(--muted); max-width: 36ch; }
|
|
|
|
|
.mode-card__cta {
|
|
|
|
|
margin-top: var(--sp-4);
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 6px;
|
|
|
|
|
font-family: var(--f-mono);
|
|
|
|
|
font-size: var(--s-0);
|
|
|
|
|
letter-spacing: 0.1em;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
color: var(--accent);
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
}
|
|
|
|
|
.mode-card__cta::after {
|
|
|
|
|
content: '→';
|
|
|
|
|
transition: transform 0.3s var(--ease);
|
|
|
|
|
}
|
|
|
|
|
.mode-card:hover .mode-card__cta::after { transform: translateX(4px); }
|
|
|
|
|
|
|
|
|
|
/* ===================================================
|
|
|
|
|
Week / Lesson page
|
|
|
|
|
=================================================== */
|
|
|
|
|
.lesson-header {
|
|
|
|
|
padding: var(--sp-8) 0 var(--sp-6);
|
|
|
|
|
border-bottom: 1px solid var(--line);
|
|
|
|
|
margin-bottom: var(--sp-7);
|
|
|
|
|
}
|
|
|
|
|
.lesson-header__num {
|
|
|
|
|
font-family: var(--f-mono);
|
|
|
|
|
font-size: var(--s-0);
|
|
|
|
|
letter-spacing: 0.2em;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
margin-bottom: var(--sp-3);
|
|
|
|
|
}
|
|
|
|
|
.lesson-header__title {
|
|
|
|
|
font-family: var(--f-display);
|
|
|
|
|
font-size: clamp(2.5rem, 6vw, 4.5rem);
|
|
|
|
|
font-weight: 300;
|
|
|
|
|
font-variation-settings: "opsz" 80, "SOFT" 30;
|
|
|
|
|
letter-spacing: -0.03em;
|
|
|
|
|
line-height: 0.95;
|
|
|
|
|
}
|
|
|
|
|
.lesson-header__title em { font-style: italic; color: var(--accent); }
|
|
|
|
|
.lesson-header__meta {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
gap: var(--sp-4);
|
|
|
|
|
margin-top: var(--sp-5);
|
|
|
|
|
font-family: var(--f-mono);
|
|
|
|
|
font-size: var(--s-0);
|
|
|
|
|
letter-spacing: 0.1em;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
}
|
|
|
|
|
.lesson-header__meta strong { color: var(--ink); font-weight: 500; }
|
|
|
|
|
|
|
|
|
|
.tag {
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 6px;
|
|
|
|
|
padding: 4px 10px;
|
|
|
|
|
border: 1px solid var(--theme-color, var(--line));
|
|
|
|
|
background: var(--theme-color-bg, var(--surface));
|
|
|
|
|
color: var(--theme-color, var(--ink));
|
|
|
|
|
font-family: var(--f-mono);
|
|
|
|
|
font-size: 0.6875rem;
|
|
|
|
|
letter-spacing: 0.15em;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
border-radius: 2px;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.lesson {
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-columns: 1fr min(64ch, 100%) 1fr;
|
|
|
|
|
}
|
|
|
|
|
.lesson > * { grid-column: 2; }
|
|
|
|
|
.lesson > .lesson-wide { grid-column: 1 / -1; }
|
|
|
|
|
|
|
|
|
|
.lesson h2 {
|
|
|
|
|
font-size: var(--s-6);
|
|
|
|
|
margin-top: var(--sp-8);
|
|
|
|
|
margin-bottom: var(--sp-4);
|
|
|
|
|
padding-bottom: var(--sp-3);
|
|
|
|
|
border-bottom: 1px solid var(--line);
|
|
|
|
|
font-variation-settings: "opsz" 48, "SOFT" 30;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
}
|
|
|
|
|
.lesson h2::before {
|
|
|
|
|
content: counter(section, decimal-leading-zero) ' / ';
|
|
|
|
|
font-family: var(--f-mono);
|
|
|
|
|
font-size: var(--s-1);
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
letter-spacing: 0.1em;
|
|
|
|
|
vertical-align: middle;
|
|
|
|
|
margin-right: 12px;
|
|
|
|
|
}
|
|
|
|
|
.lesson h3 {
|
|
|
|
|
font-size: var(--s-5);
|
|
|
|
|
margin-top: var(--sp-6);
|
|
|
|
|
margin-bottom: var(--sp-3);
|
|
|
|
|
font-variation-settings: "opsz" 36;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
}
|
|
|
|
|
.lesson h4 {
|
|
|
|
|
font-size: var(--s-3);
|
|
|
|
|
margin-top: var(--sp-5);
|
|
|
|
|
margin-bottom: var(--sp-2);
|
|
|
|
|
color: var(--ink-2);
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
font-family: var(--f-body);
|
|
|
|
|
letter-spacing: 0;
|
|
|
|
|
}
|
|
|
|
|
.lesson { counter-reset: section; }
|
|
|
|
|
.lesson h2 { counter-increment: section; }
|
|
|
|
|
|
|
|
|
|
.lesson p { font-size: var(--s-2); line-height: 1.7; margin-bottom: var(--sp-4); }
|
|
|
|
|
.lesson ul, .lesson ol { margin: var(--sp-3) 0 var(--sp-4) var(--sp-5); }
|
|
|
|
|
.lesson ul li { list-style: '— '; padding-left: var(--sp-2); margin-bottom: var(--sp-2); color: var(--ink-2); line-height: 1.6; }
|
|
|
|
|
.lesson ol li { list-style: decimal-leading-zero; padding-left: var(--sp-2); margin-bottom: var(--sp-2); color: var(--ink-2); line-height: 1.6; font-variant-numeric: tabular-nums; }
|
|
|
|
|
|
|
|
|
|
.lesson table {
|
|
|
|
|
width: 100%;
|
|
|
|
|
border-collapse: collapse;
|
|
|
|
|
margin: var(--sp-5) 0;
|
|
|
|
|
font-size: var(--s-1);
|
|
|
|
|
}
|
|
|
|
|
.lesson th, .lesson td {
|
|
|
|
|
padding: var(--sp-3) var(--sp-4);
|
|
|
|
|
text-align: left;
|
|
|
|
|
border-bottom: 1px solid var(--line);
|
|
|
|
|
vertical-align: top;
|
|
|
|
|
}
|
|
|
|
|
.lesson th {
|
|
|
|
|
font-family: var(--f-mono);
|
|
|
|
|
font-size: var(--s-0);
|
|
|
|
|
letter-spacing: 0.1em;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
background: var(--surface);
|
|
|
|
|
border-bottom: 1px solid var(--line-strong);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.lesson blockquote { margin: var(--sp-6) 0; }
|
|
|
|
|
|
|
|
|
|
.note-box {
|
|
|
|
|
background: var(--surface);
|
|
|
|
|
border: 1px solid var(--line);
|
|
|
|
|
border-left: 3px solid var(--accent-2);
|
|
|
|
|
border-radius: var(--radius);
|
|
|
|
|
padding: var(--sp-4) var(--sp-5);
|
|
|
|
|
margin: var(--sp-5) 0;
|
|
|
|
|
}
|
|
|
|
|
.note-box__label {
|
|
|
|
|
font-family: var(--f-mono);
|
|
|
|
|
font-size: 0.6875rem;
|
|
|
|
|
letter-spacing: 0.18em;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
color: var(--accent-2);
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
margin-bottom: 6px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.toc {
|
|
|
|
|
background: var(--surface);
|
|
|
|
|
border: 1px solid var(--line);
|
|
|
|
|
border-radius: var(--radius);
|
|
|
|
|
padding: var(--sp-5);
|
|
|
|
|
margin-bottom: var(--sp-7);
|
|
|
|
|
}
|
|
|
|
|
.toc__label {
|
|
|
|
|
font-family: var(--f-mono);
|
|
|
|
|
font-size: 0.6875rem;
|
|
|
|
|
letter-spacing: 0.18em;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
margin-bottom: var(--sp-3);
|
|
|
|
|
}
|
|
|
|
|
.toc__list { display: flex; flex-direction: column; gap: 2px; }
|
|
|
|
|
.toc__link {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: var(--sp-3);
|
|
|
|
|
padding: 4px 0;
|
|
|
|
|
font-size: var(--s-1);
|
|
|
|
|
color: var(--ink-2);
|
|
|
|
|
transition: color 0.15s;
|
|
|
|
|
}
|
|
|
|
|
.toc__link:hover { color: var(--accent); }
|
|
|
|
|
.toc__num {
|
|
|
|
|
font-family: var(--f-mono);
|
|
|
|
|
font-size: var(--s-0);
|
|
|
|
|
color: var(--subtle);
|
|
|
|
|
min-width: 2em;
|
|
|
|
|
font-variant-numeric: tabular-nums;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Concept callout - for definitions */
|
|
|
|
|
.concept {
|
|
|
|
|
margin: var(--sp-5) 0;
|
|
|
|
|
padding: var(--sp-4) var(--sp-5);
|
|
|
|
|
background: var(--surface-2);
|
|
|
|
|
border: 1px solid var(--line);
|
|
|
|
|
border-radius: var(--radius-lg);
|
|
|
|
|
position: relative;
|
|
|
|
|
}
|
|
|
|
|
.concept__term {
|
|
|
|
|
font-family: var(--f-display);
|
|
|
|
|
font-size: var(--s-4);
|
|
|
|
|
font-style: italic;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
font-variation-settings: "opsz" 24, "SOFT" 100;
|
|
|
|
|
color: var(--ink);
|
|
|
|
|
}
|
|
|
|
|
.concept__def {
|
|
|
|
|
margin-top: 6px;
|
|
|
|
|
font-size: var(--s-1);
|
|
|
|
|
color: var(--ink-2);
|
|
|
|
|
line-height: 1.6;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Pagination at bottom of lesson */
|
|
|
|
|
.lesson-pager {
|
|
|
|
|
margin-top: var(--sp-9);
|
|
|
|
|
padding-top: var(--sp-6);
|
|
|
|
|
border-top: 1px solid var(--line);
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
gap: var(--sp-4);
|
|
|
|
|
}
|
|
|
|
|
.pager-link {
|
|
|
|
|
flex: 1;
|
|
|
|
|
display: block;
|
|
|
|
|
padding: var(--sp-4) var(--sp-5);
|
|
|
|
|
background: var(--surface);
|
|
|
|
|
border: 1px solid var(--line);
|
|
|
|
|
border-radius: var(--radius);
|
|
|
|
|
transition: background 0.2s, border-color 0.2s;
|
|
|
|
|
}
|
|
|
|
|
.pager-link:hover { background: var(--surface-2); border-color: var(--ink-2); }
|
|
|
|
|
.pager-link--prev { text-align: left; }
|
|
|
|
|
.pager-link--next { text-align: right; }
|
|
|
|
|
.pager-link__dir {
|
|
|
|
|
font-family: var(--f-mono);
|
|
|
|
|
font-size: 0.6875rem;
|
|
|
|
|
letter-spacing: 0.18em;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
margin-bottom: 4px;
|
|
|
|
|
}
|
|
|
|
|
.pager-link__title {
|
|
|
|
|
font-family: var(--f-display);
|
|
|
|
|
font-size: var(--s-4);
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
color: var(--ink);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ===================================================
|
|
|
|
|
Flashcards
|
|
|
|
|
=================================================== */
|
|
|
|
|
.fc-stage {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
gap: var(--sp-6);
|
|
|
|
|
min-height: calc(100vh - 200px);
|
|
|
|
|
padding: var(--sp-7) var(--sp-5);
|
|
|
|
|
perspective: 1800px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.fc-meta {
|
|
|
|
|
font-family: var(--f-mono);
|
|
|
|
|
font-size: var(--s-0);
|
|
|
|
|
letter-spacing: 0.18em;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: var(--sp-5);
|
|
|
|
|
align-items: center;
|
|
|
|
|
}
|
|
|
|
|
.fc-meta strong { color: var(--ink); font-weight: 500; }
|
|
|
|
|
.fc-meta__sep { opacity: 0.4; }
|
|
|
|
|
|
|
|
|
|
.fc-card {
|
|
|
|
|
width: min(640px, 100%);
|
|
|
|
|
min-height: 380px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
position: relative;
|
|
|
|
|
transform-style: preserve-3d;
|
|
|
|
|
transition: transform 0.7s var(--ease);
|
|
|
|
|
user-select: none;
|
|
|
|
|
}
|
|
|
|
|
.fc-card--flipped { transform: rotateY(180deg); }
|
|
|
|
|
|
|
|
|
|
.fc-face {
|
|
|
|
|
position: absolute;
|
|
|
|
|
inset: 0;
|
|
|
|
|
backface-visibility: hidden;
|
|
|
|
|
-webkit-backface-visibility: hidden;
|
|
|
|
|
background: var(--surface);
|
|
|
|
|
border: 1px solid var(--line);
|
|
|
|
|
border-radius: var(--radius-lg);
|
|
|
|
|
padding: var(--sp-7);
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
box-shadow: 0 30px 60px -30px rgba(0,0,0,0.2),
|
|
|
|
|
0 0 0 1px rgba(0,0,0,0.04) inset;
|
|
|
|
|
}
|
|
|
|
|
.fc-face--back {
|
|
|
|
|
transform: rotateY(180deg);
|
|
|
|
|
background: var(--surface-2);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.fc-face__type {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: var(--sp-5);
|
|
|
|
|
left: var(--sp-7);
|
|
|
|
|
font-family: var(--f-mono);
|
|
|
|
|
font-size: 0.6875rem;
|
|
|
|
|
letter-spacing: 0.2em;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
}
|
|
|
|
|
.fc-face__hint {
|
|
|
|
|
position: absolute;
|
|
|
|
|
bottom: var(--sp-5);
|
|
|
|
|
left: var(--sp-7);
|
|
|
|
|
right: var(--sp-7);
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
font-family: var(--f-mono);
|
|
|
|
|
font-size: 0.6875rem;
|
|
|
|
|
letter-spacing: 0.18em;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
color: var(--subtle);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.fc-face__front-text {
|
|
|
|
|
font-family: var(--f-display);
|
|
|
|
|
font-size: var(--s-7);
|
|
|
|
|
font-weight: 300;
|
|
|
|
|
font-variation-settings: "opsz" 60, "SOFT" 30;
|
|
|
|
|
letter-spacing: -0.02em;
|
|
|
|
|
line-height: 1.05;
|
|
|
|
|
color: var(--ink);
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
.fc-face__back-text {
|
|
|
|
|
font-size: var(--s-3);
|
|
|
|
|
line-height: 1.5;
|
|
|
|
|
color: var(--ink-2);
|
|
|
|
|
}
|
|
|
|
|
.fc-face__back-term {
|
|
|
|
|
font-family: var(--f-display);
|
|
|
|
|
font-style: italic;
|
|
|
|
|
color: var(--ink);
|
|
|
|
|
font-size: var(--s-4);
|
|
|
|
|
display: block;
|
|
|
|
|
margin-bottom: var(--sp-3);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.fc-controls {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: var(--sp-3);
|
|
|
|
|
}
|
|
|
|
|
.fc-btn {
|
|
|
|
|
padding: var(--sp-3) var(--sp-5);
|
|
|
|
|
border: 1px solid var(--line);
|
|
|
|
|
background: var(--surface);
|
|
|
|
|
border-radius: var(--radius);
|
|
|
|
|
font-family: var(--f-mono);
|
|
|
|
|
font-size: var(--s-0);
|
|
|
|
|
letter-spacing: 0.15em;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
color: var(--ink-2);
|
|
|
|
|
transition: all 0.18s var(--ease);
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: var(--sp-2);
|
|
|
|
|
}
|
|
|
|
|
.fc-btn:hover:not(:disabled) { background: var(--ink); color: var(--bg); border-color: var(--ink); }
|
|
|
|
|
.fc-btn:disabled { opacity: 0.4; cursor: not-allowed; }
|
|
|
|
|
.fc-btn--hard { color: var(--theme-etikk); }
|
|
|
|
|
.fc-btn--hard:hover { background: var(--theme-etikk); color: var(--bg); border-color: var(--theme-etikk); }
|
|
|
|
|
.fc-btn--good { color: var(--theme-samfunn); }
|
|
|
|
|
.fc-btn--good:hover { background: var(--theme-samfunn); color: var(--bg); border-color: var(--theme-samfunn); }
|
|
|
|
|
.fc-btn--easy { color: var(--theme-baerekraft); }
|
|
|
|
|
.fc-btn--easy:hover { background: var(--theme-baerekraft); color: var(--bg); border-color: var(--theme-baerekraft); }
|
|
|
|
|
|
|
|
|
|
.fc-filters {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
gap: var(--sp-2);
|
|
|
|
|
justify-content: center;
|
|
|
|
|
}
|
|
|
|
|
.fc-filter {
|
|
|
|
|
padding: 4px 12px;
|
|
|
|
|
background: transparent;
|
|
|
|
|
border: 1px solid var(--line);
|
|
|
|
|
border-radius: 100px;
|
|
|
|
|
font-family: var(--f-mono);
|
|
|
|
|
font-size: 0.6875rem;
|
|
|
|
|
letter-spacing: 0.1em;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
transition: all 0.18s var(--ease);
|
|
|
|
|
}
|
|
|
|
|
.fc-filter:hover { color: var(--ink); border-color: var(--ink-2); }
|
|
|
|
|
.fc-filter--active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
|
|
|
|
|
|
|
|
|
|
.fc-empty {
|
|
|
|
|
padding: var(--sp-7);
|
|
|
|
|
text-align: center;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
font-style: italic;
|
|
|
|
|
font-family: var(--f-display);
|
|
|
|
|
font-size: var(--s-4);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ===================================================
|
|
|
|
|
Quiz
|
|
|
|
|
=================================================== */
|
|
|
|
|
.quiz-stage { max-width: 740px; margin: 0 auto; padding: var(--sp-8) var(--sp-5); }
|
|
|
|
|
.quiz-bar {
|
|
|
|
|
height: 4px;
|
|
|
|
|
background: var(--line);
|
|
|
|
|
border-radius: 2px;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
margin-bottom: var(--sp-7);
|
|
|
|
|
}
|
|
|
|
|
.quiz-bar__fill {
|
|
|
|
|
height: 100%;
|
|
|
|
|
background: var(--accent);
|
|
|
|
|
width: 0%;
|
|
|
|
|
transition: width 0.4s var(--ease);
|
|
|
|
|
}
|
|
|
|
|
.quiz-meta {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
font-family: var(--f-mono);
|
|
|
|
|
font-size: var(--s-0);
|
|
|
|
|
letter-spacing: 0.15em;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
margin-bottom: var(--sp-5);
|
|
|
|
|
}
|
|
|
|
|
.quiz-meta strong { color: var(--ink); font-weight: 500; }
|
|
|
|
|
.quiz-question {
|
|
|
|
|
font-family: var(--f-display);
|
|
|
|
|
font-size: var(--s-6);
|
|
|
|
|
font-weight: 300;
|
|
|
|
|
font-variation-settings: "opsz" 60, "SOFT" 30;
|
|
|
|
|
letter-spacing: -0.02em;
|
|
|
|
|
line-height: 1.15;
|
|
|
|
|
margin-bottom: var(--sp-6);
|
|
|
|
|
}
|
|
|
|
|
.quiz-question em { font-style: italic; color: var(--accent); }
|
|
|
|
|
|
|
|
|
|
.quiz-options { display: flex; flex-direction: column; gap: var(--sp-3); }
|
|
|
|
|
.quiz-option {
|
|
|
|
|
padding: var(--sp-4) var(--sp-5);
|
|
|
|
|
background: var(--surface);
|
|
|
|
|
border: 1px solid var(--line);
|
|
|
|
|
border-radius: var(--radius);
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: var(--sp-3);
|
|
|
|
|
align-items: flex-start;
|
|
|
|
|
text-align: left;
|
|
|
|
|
transition: all 0.18s var(--ease);
|
|
|
|
|
font-size: var(--s-2);
|
|
|
|
|
color: var(--ink);
|
|
|
|
|
line-height: 1.5;
|
|
|
|
|
}
|
|
|
|
|
.quiz-option__letter {
|
|
|
|
|
font-family: var(--f-display);
|
|
|
|
|
font-style: italic;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
min-width: 1.5em;
|
|
|
|
|
font-size: var(--s-4);
|
|
|
|
|
}
|
|
|
|
|
.quiz-option:hover:not(.quiz-option--disabled) {
|
|
|
|
|
border-color: var(--ink-2);
|
|
|
|
|
background: var(--surface-2);
|
|
|
|
|
}
|
|
|
|
|
.quiz-option--selected { border-color: var(--ink); background: var(--surface-2); }
|
|
|
|
|
.quiz-option--correct {
|
|
|
|
|
border-color: var(--theme-baerekraft);
|
|
|
|
|
background: var(--theme-baerekraft-bg);
|
|
|
|
|
color: var(--theme-baerekraft);
|
|
|
|
|
}
|
|
|
|
|
.quiz-option--correct .quiz-option__letter { color: var(--theme-baerekraft); }
|
|
|
|
|
.quiz-option--wrong {
|
|
|
|
|
border-color: var(--theme-etikk);
|
|
|
|
|
background: var(--theme-etikk-bg);
|
|
|
|
|
color: var(--theme-etikk);
|
|
|
|
|
}
|
|
|
|
|
.quiz-option--wrong .quiz-option__letter { color: var(--theme-etikk); }
|
|
|
|
|
.quiz-option--disabled { cursor: default; }
|
|
|
|
|
|
|
|
|
|
.quiz-explanation {
|
|
|
|
|
margin-top: var(--sp-5);
|
|
|
|
|
padding: var(--sp-4) var(--sp-5);
|
|
|
|
|
background: var(--surface);
|
|
|
|
|
border: 1px solid var(--line);
|
|
|
|
|
border-left: 3px solid var(--accent);
|
|
|
|
|
border-radius: var(--radius);
|
|
|
|
|
}
|
|
|
|
|
.quiz-explanation__label {
|
|
|
|
|
font-family: var(--f-mono);
|
|
|
|
|
font-size: 0.6875rem;
|
|
|
|
|
letter-spacing: 0.18em;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
color: var(--accent);
|
|
|
|
|
margin-bottom: 4px;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.quiz-actions {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
margin-top: var(--sp-6);
|
|
|
|
|
gap: var(--sp-3);
|
|
|
|
|
}
|
|
|
|
|
.btn {
|
|
|
|
|
padding: var(--sp-3) var(--sp-5);
|
|
|
|
|
font-family: var(--f-mono);
|
|
|
|
|
font-size: var(--s-0);
|
|
|
|
|
letter-spacing: 0.15em;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
border-radius: var(--radius);
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
border: 1px solid var(--line);
|
|
|
|
|
background: var(--surface);
|
|
|
|
|
color: var(--ink-2);
|
|
|
|
|
transition: all 0.18s var(--ease);
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: var(--sp-2);
|
|
|
|
|
}
|
|
|
|
|
.btn:hover:not(:disabled) { background: var(--ink); color: var(--bg); border-color: var(--ink); }
|
|
|
|
|
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
|
|
|
|
|
.btn--primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
|
|
|
|
|
.btn--primary:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); }
|
|
|
|
|
.btn--ghost { background: transparent; }
|
|
|
|
|
|
|
|
|
|
.quiz-result {
|
|
|
|
|
text-align: center;
|
|
|
|
|
padding: var(--sp-9) var(--sp-5);
|
|
|
|
|
}
|
|
|
|
|
.quiz-result__score {
|
|
|
|
|
font-family: var(--f-display);
|
|
|
|
|
font-size: var(--s-10);
|
|
|
|
|
font-weight: 300;
|
|
|
|
|
font-variation-settings: "opsz" 144, "SOFT" 50;
|
|
|
|
|
letter-spacing: -0.04em;
|
|
|
|
|
line-height: 1;
|
|
|
|
|
color: var(--accent);
|
|
|
|
|
}
|
|
|
|
|
.quiz-result__total {
|
|
|
|
|
font-family: var(--f-display);
|
|
|
|
|
font-style: italic;
|
|
|
|
|
font-size: var(--s-5);
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
margin-top: var(--sp-2);
|
|
|
|
|
}
|
|
|
|
|
.quiz-result__label {
|
|
|
|
|
margin-top: var(--sp-4);
|
|
|
|
|
font-family: var(--f-mono);
|
|
|
|
|
font-size: var(--s-0);
|
|
|
|
|
letter-spacing: 0.2em;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
}
|
|
|
|
|
.quiz-result__verdict {
|
|
|
|
|
font-family: var(--f-display);
|
|
|
|
|
font-size: var(--s-6);
|
|
|
|
|
margin-top: var(--sp-3);
|
|
|
|
|
font-variation-settings: "opsz" 48, "SOFT" 50;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
}
|
|
|
|
|
|
2026-05-29 19:04:49 +02:00
|
|
|
/* Sub-topic grid */
|
|
|
|
|
.quiz-sub-grid {
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
|
|
|
|
gap: var(--sp-3);
|
|
|
|
|
margin-top: var(--sp-4);
|
|
|
|
|
}
|
|
|
|
|
.quiz-sub-card {
|
|
|
|
|
text-align: left;
|
|
|
|
|
padding: var(--sp-5);
|
|
|
|
|
background: var(--surface);
|
|
|
|
|
border: 1px solid var(--line);
|
|
|
|
|
border-radius: var(--radius);
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
transition: all 0.18s var(--ease);
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 4px;
|
|
|
|
|
}
|
|
|
|
|
.quiz-sub-card:hover {
|
|
|
|
|
border-color: var(--ink-2);
|
|
|
|
|
background: var(--surface-2);
|
|
|
|
|
transform: translateY(-1px);
|
|
|
|
|
}
|
|
|
|
|
.quiz-sub-card--all {
|
|
|
|
|
background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), var(--surface));
|
|
|
|
|
border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
|
|
|
|
|
}
|
|
|
|
|
.quiz-sub-card--all:hover {
|
|
|
|
|
border-color: var(--accent);
|
|
|
|
|
}
|
|
|
|
|
.quiz-sub-card__count {
|
|
|
|
|
font-family: var(--f-display);
|
|
|
|
|
font-size: var(--s-6);
|
|
|
|
|
font-weight: 300;
|
|
|
|
|
font-variation-settings: "opsz" 48, "SOFT" 30;
|
|
|
|
|
line-height: 1;
|
|
|
|
|
color: var(--ink);
|
|
|
|
|
letter-spacing: -0.03em;
|
|
|
|
|
}
|
|
|
|
|
.quiz-sub-card--all .quiz-sub-card__count { color: var(--accent); }
|
|
|
|
|
.quiz-sub-card__label {
|
|
|
|
|
font-family: var(--f-body);
|
|
|
|
|
font-size: var(--s-2);
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
color: var(--ink);
|
|
|
|
|
margin-top: 4px;
|
|
|
|
|
}
|
|
|
|
|
.quiz-sub-card__hint {
|
|
|
|
|
font-family: var(--f-mono);
|
|
|
|
|
font-size: 0.6875rem;
|
|
|
|
|
letter-spacing: 0.12em;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
margin-top: 2px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Per-subtopic breakdown on quiz result */
|
|
|
|
|
.subtopic-breakdown {
|
|
|
|
|
margin: var(--sp-7) auto 0;
|
|
|
|
|
max-width: 620px;
|
|
|
|
|
padding: var(--sp-5);
|
|
|
|
|
background: var(--surface);
|
|
|
|
|
border: 1px solid var(--line);
|
|
|
|
|
border-radius: var(--radius-lg);
|
|
|
|
|
}
|
|
|
|
|
.subtopic-breakdown__label {
|
|
|
|
|
font-family: var(--f-mono);
|
|
|
|
|
font-size: var(--s-0);
|
|
|
|
|
letter-spacing: 0.18em;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
margin-bottom: var(--sp-4);
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
.subtopic-row {
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-columns: 1fr 1fr auto;
|
|
|
|
|
gap: var(--sp-3);
|
|
|
|
|
align-items: center;
|
|
|
|
|
padding: var(--sp-2) 0;
|
|
|
|
|
border-bottom: 1px solid var(--line);
|
|
|
|
|
}
|
|
|
|
|
.subtopic-row:last-child { border-bottom: 0; }
|
|
|
|
|
.subtopic-row__name {
|
|
|
|
|
font-size: var(--s-1);
|
|
|
|
|
color: var(--ink);
|
|
|
|
|
}
|
|
|
|
|
.subtopic-row__bar {
|
|
|
|
|
height: 6px;
|
|
|
|
|
background: var(--line);
|
|
|
|
|
border-radius: 3px;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
.subtopic-row__fill {
|
|
|
|
|
height: 100%;
|
|
|
|
|
transition: width 0.6s var(--ease);
|
|
|
|
|
}
|
|
|
|
|
.subtopic-row__score {
|
|
|
|
|
font-family: var(--f-mono);
|
|
|
|
|
font-size: var(--s-0);
|
|
|
|
|
color: var(--ink-2);
|
|
|
|
|
font-variant-numeric: tabular-nums;
|
|
|
|
|
min-width: 3em;
|
|
|
|
|
text-align: right;
|
|
|
|
|
}
|
|
|
|
|
|
2026-05-29 18:44:00 +02:00
|
|
|
/* ===================================================
|
|
|
|
|
Eksamen page
|
|
|
|
|
=================================================== */
|
|
|
|
|
.exam-q {
|
|
|
|
|
margin-bottom: var(--sp-7);
|
|
|
|
|
padding-bottom: var(--sp-7);
|
|
|
|
|
border-bottom: 1px solid var(--line);
|
|
|
|
|
}
|
|
|
|
|
.exam-q:last-child { border-bottom: 0; }
|
|
|
|
|
.exam-q__head {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: var(--sp-4);
|
|
|
|
|
align-items: baseline;
|
|
|
|
|
margin-bottom: var(--sp-4);
|
|
|
|
|
}
|
|
|
|
|
.exam-q__num {
|
|
|
|
|
font-family: var(--f-display);
|
|
|
|
|
font-size: var(--s-7);
|
|
|
|
|
font-weight: 300;
|
|
|
|
|
font-variation-settings: "opsz" 80, "SOFT" 30;
|
|
|
|
|
color: var(--accent);
|
|
|
|
|
letter-spacing: -0.04em;
|
|
|
|
|
line-height: 1;
|
|
|
|
|
}
|
|
|
|
|
.exam-q__head-info {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 2px;
|
|
|
|
|
}
|
|
|
|
|
.exam-q__category {
|
|
|
|
|
font-family: var(--f-mono);
|
|
|
|
|
font-size: var(--s-0);
|
|
|
|
|
letter-spacing: 0.18em;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
}
|
|
|
|
|
.exam-q__weight {
|
|
|
|
|
font-family: var(--f-mono);
|
|
|
|
|
font-size: var(--s-0);
|
|
|
|
|
color: var(--subtle);
|
|
|
|
|
}
|
|
|
|
|
.exam-q__title {
|
|
|
|
|
font-family: var(--f-display);
|
|
|
|
|
font-size: var(--s-5);
|
|
|
|
|
font-weight: 300;
|
|
|
|
|
font-variation-settings: "opsz" 36, "SOFT" 30;
|
|
|
|
|
line-height: 1.3;
|
|
|
|
|
margin-bottom: var(--sp-4);
|
|
|
|
|
}
|
|
|
|
|
.exam-q__sub {
|
|
|
|
|
font-family: var(--f-display);
|
|
|
|
|
font-style: italic;
|
|
|
|
|
font-size: var(--s-3);
|
|
|
|
|
color: var(--ink-2);
|
|
|
|
|
margin-bottom: var(--sp-3);
|
|
|
|
|
padding-left: var(--sp-4);
|
|
|
|
|
border-left: 2px solid var(--accent-2);
|
|
|
|
|
}
|
|
|
|
|
.exam-q__reveal {
|
|
|
|
|
margin-top: var(--sp-4);
|
|
|
|
|
padding: var(--sp-5);
|
|
|
|
|
background: var(--surface);
|
|
|
|
|
border: 1px solid var(--line);
|
|
|
|
|
border-radius: var(--radius);
|
|
|
|
|
}
|
|
|
|
|
.exam-q__reveal-label {
|
|
|
|
|
font-family: var(--f-mono);
|
|
|
|
|
font-size: 0.6875rem;
|
|
|
|
|
letter-spacing: 0.18em;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
color: var(--accent);
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
margin-bottom: var(--sp-3);
|
|
|
|
|
}
|
|
|
|
|
.exam-q__toggle {
|
|
|
|
|
margin-top: var(--sp-4);
|
|
|
|
|
font-family: var(--f-mono);
|
|
|
|
|
font-size: var(--s-0);
|
|
|
|
|
letter-spacing: 0.15em;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
color: var(--accent);
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
background: none;
|
|
|
|
|
border: none;
|
|
|
|
|
padding: 0;
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 6px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ===================================================
|
|
|
|
|
tl;dr — eksamen i farta
|
|
|
|
|
=================================================== */
|
|
|
|
|
.sidebar__link--tldr .sidebar__link-num {
|
|
|
|
|
color: var(--accent);
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
}
|
|
|
|
|
.sidebar__link--tldr {
|
|
|
|
|
position: relative;
|
|
|
|
|
}
|
|
|
|
|
.sidebar__link--tldr::after {
|
|
|
|
|
content: '';
|
|
|
|
|
position: absolute;
|
|
|
|
|
right: var(--sp-3);
|
|
|
|
|
top: 50%;
|
|
|
|
|
transform: translateY(-50%);
|
|
|
|
|
width: 6px; height: 6px;
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
background: var(--accent);
|
|
|
|
|
box-shadow: 0 0 10px var(--accent);
|
|
|
|
|
animation: tldr-pulse 2s var(--ease) infinite;
|
|
|
|
|
}
|
|
|
|
|
@keyframes tldr-pulse {
|
|
|
|
|
0%, 100% { opacity: 0.7; transform: translateY(-50%) scale(1); }
|
|
|
|
|
50% { opacity: 1; transform: translateY(-50%) scale(1.3); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Home promo card */
|
|
|
|
|
.tldr-promo {
|
|
|
|
|
padding: var(--sp-7) 0;
|
|
|
|
|
border-top: 1px solid var(--line);
|
|
|
|
|
border-bottom: 1px solid var(--line);
|
|
|
|
|
}
|
|
|
|
|
.tldr-promo__card {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: var(--sp-6);
|
|
|
|
|
padding: var(--sp-6) var(--sp-7);
|
|
|
|
|
background: linear-gradient(135deg,
|
|
|
|
|
color-mix(in srgb, var(--accent) 8%, var(--surface)) 0%,
|
|
|
|
|
var(--surface) 100%);
|
|
|
|
|
border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
|
|
|
|
|
border-radius: var(--radius-lg);
|
|
|
|
|
position: relative;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
|
|
|
|
|
isolation: isolate;
|
|
|
|
|
}
|
|
|
|
|
.tldr-promo__card::before {
|
|
|
|
|
content: '';
|
|
|
|
|
position: absolute;
|
|
|
|
|
inset: 0;
|
|
|
|
|
background:
|
|
|
|
|
radial-gradient(ellipse 400px 200px at 0% 50%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%);
|
|
|
|
|
z-index: 0;
|
|
|
|
|
opacity: 0.5;
|
|
|
|
|
transition: opacity 0.4s var(--ease);
|
|
|
|
|
}
|
|
|
|
|
.tldr-promo__card > * { position: relative; z-index: 1; }
|
|
|
|
|
.tldr-promo__card:hover {
|
|
|
|
|
transform: translateY(-2px);
|
|
|
|
|
box-shadow: 0 20px 40px -20px color-mix(in srgb, var(--accent) 40%, transparent);
|
|
|
|
|
}
|
|
|
|
|
.tldr-promo__card:hover::before { opacity: 1; }
|
|
|
|
|
|
|
|
|
|
.tldr-promo__icon {
|
|
|
|
|
font-family: var(--f-display);
|
|
|
|
|
font-style: italic;
|
|
|
|
|
font-weight: 300;
|
|
|
|
|
font-size: var(--s-9);
|
|
|
|
|
line-height: 0.8;
|
|
|
|
|
color: var(--accent);
|
|
|
|
|
font-variation-settings: "opsz" 144, "SOFT" 100;
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
}
|
|
|
|
|
.tldr-promo__body { flex: 1; }
|
|
|
|
|
.tldr-promo__label {
|
|
|
|
|
font-family: var(--f-mono);
|
|
|
|
|
font-size: var(--s-0);
|
|
|
|
|
letter-spacing: 0.2em;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
color: var(--accent);
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
margin-bottom: var(--sp-2);
|
|
|
|
|
}
|
|
|
|
|
.tldr-promo__title {
|
|
|
|
|
font-family: var(--f-display);
|
|
|
|
|
font-size: var(--s-6);
|
|
|
|
|
font-weight: 300;
|
|
|
|
|
font-variation-settings: "opsz" 60, "SOFT" 40;
|
|
|
|
|
letter-spacing: -0.02em;
|
|
|
|
|
line-height: 1.1;
|
|
|
|
|
margin-bottom: var(--sp-3);
|
|
|
|
|
color: var(--ink);
|
|
|
|
|
}
|
|
|
|
|
.tldr-promo__title em {
|
|
|
|
|
font-style: italic;
|
|
|
|
|
color: var(--accent);
|
|
|
|
|
font-variation-settings: "opsz" 60, "SOFT" 100;
|
|
|
|
|
}
|
|
|
|
|
.tldr-promo__desc {
|
|
|
|
|
font-size: var(--s-1);
|
|
|
|
|
color: var(--ink-2);
|
|
|
|
|
max-width: 56ch;
|
|
|
|
|
}
|
|
|
|
|
.tldr-promo__arrow {
|
|
|
|
|
font-family: var(--f-display);
|
|
|
|
|
font-size: var(--s-7);
|
|
|
|
|
color: var(--accent);
|
|
|
|
|
font-weight: 300;
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
transition: transform 0.4s var(--ease);
|
|
|
|
|
}
|
|
|
|
|
.tldr-promo__card:hover .tldr-promo__arrow { transform: translateX(8px); }
|
|
|
|
|
|
|
|
|
|
@media (max-width: 700px) {
|
|
|
|
|
.tldr-promo__card {
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
align-items: flex-start;
|
|
|
|
|
padding: var(--sp-5);
|
|
|
|
|
gap: var(--sp-4);
|
|
|
|
|
}
|
|
|
|
|
.tldr-promo__icon { font-size: var(--s-8); }
|
|
|
|
|
.tldr-promo__arrow { align-self: flex-end; font-size: var(--s-6); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* tl;dr page */
|
|
|
|
|
.tldr-page { max-width: 760px; }
|
|
|
|
|
|
|
|
|
|
.tldr-hero {
|
|
|
|
|
text-align: left;
|
|
|
|
|
padding: var(--sp-8) 0 var(--sp-7);
|
|
|
|
|
border-bottom: 1px solid var(--line);
|
|
|
|
|
margin-bottom: var(--sp-7);
|
|
|
|
|
position: relative;
|
|
|
|
|
}
|
|
|
|
|
.tldr-hero__stamp {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: var(--sp-6);
|
|
|
|
|
right: 0;
|
|
|
|
|
font-family: var(--f-display);
|
|
|
|
|
font-style: italic;
|
|
|
|
|
font-weight: 300;
|
|
|
|
|
font-size: var(--s-10);
|
|
|
|
|
font-variation-settings: "opsz" 144, "SOFT" 100;
|
|
|
|
|
line-height: 1;
|
|
|
|
|
color: var(--accent);
|
|
|
|
|
opacity: 0.18;
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
}
|
|
|
|
|
.tldr-hero__num {
|
|
|
|
|
font-family: var(--f-mono);
|
|
|
|
|
font-size: var(--s-0);
|
|
|
|
|
letter-spacing: 0.25em;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
color: var(--accent);
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
margin-bottom: var(--sp-3);
|
|
|
|
|
}
|
|
|
|
|
.tldr-hero__title {
|
|
|
|
|
font-family: var(--f-display);
|
|
|
|
|
font-size: clamp(2.5rem, 6vw, 4.5rem);
|
|
|
|
|
font-weight: 300;
|
|
|
|
|
font-variation-settings: "opsz" 80, "SOFT" 30;
|
|
|
|
|
letter-spacing: -0.03em;
|
|
|
|
|
line-height: 0.95;
|
|
|
|
|
color: var(--ink);
|
|
|
|
|
}
|
|
|
|
|
.tldr-hero__title em {
|
|
|
|
|
font-style: italic;
|
|
|
|
|
color: var(--accent);
|
|
|
|
|
font-variation-settings: "opsz" 80, "SOFT" 100;
|
|
|
|
|
}
|
|
|
|
|
.tldr-hero__sub {
|
|
|
|
|
margin-top: var(--sp-4);
|
|
|
|
|
font-family: var(--f-display);
|
|
|
|
|
font-style: italic;
|
|
|
|
|
font-size: var(--s-4);
|
|
|
|
|
color: var(--ink-2);
|
|
|
|
|
font-weight: 300;
|
|
|
|
|
font-variation-settings: "opsz" 24, "SOFT" 60;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Compact, scan-friendly typography for tldr content */
|
|
|
|
|
.tldr-body { display: block; }
|
|
|
|
|
.tldr-body h2 {
|
|
|
|
|
font-size: var(--s-5);
|
|
|
|
|
margin-top: var(--sp-7);
|
|
|
|
|
margin-bottom: var(--sp-3);
|
|
|
|
|
padding-bottom: var(--sp-2);
|
|
|
|
|
border-bottom: 1px solid var(--line);
|
|
|
|
|
font-variation-settings: "opsz" 36, "SOFT" 40;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
}
|
|
|
|
|
.tldr-body h2::before {
|
|
|
|
|
content: '§ ';
|
|
|
|
|
color: var(--accent);
|
|
|
|
|
font-style: italic;
|
|
|
|
|
font-family: var(--f-display);
|
|
|
|
|
font-weight: 300;
|
|
|
|
|
}
|
|
|
|
|
.tldr-body h3 {
|
|
|
|
|
font-size: var(--s-4);
|
|
|
|
|
margin-top: var(--sp-5);
|
|
|
|
|
margin-bottom: var(--sp-2);
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
font-family: var(--f-body);
|
|
|
|
|
color: var(--ink);
|
|
|
|
|
letter-spacing: 0;
|
|
|
|
|
}
|
|
|
|
|
.tldr-body h3::before {
|
|
|
|
|
content: '— ';
|
|
|
|
|
color: var(--accent);
|
|
|
|
|
margin-right: 4px;
|
|
|
|
|
}
|
|
|
|
|
.tldr-body p { font-size: var(--s-1); line-height: 1.55; margin-bottom: var(--sp-3); }
|
|
|
|
|
.tldr-body ul, .tldr-body ol { margin: var(--sp-2) 0 var(--sp-4) var(--sp-4); }
|
|
|
|
|
.tldr-body ul li { list-style: '· '; padding-left: var(--sp-2); margin-bottom: 4px; font-size: var(--s-1); line-height: 1.5; color: var(--ink-2); }
|
|
|
|
|
.tldr-body ol li { font-size: var(--s-1); margin-bottom: 4px; line-height: 1.5; color: var(--ink-2); }
|
|
|
|
|
.tldr-body strong { color: var(--ink); }
|
|
|
|
|
.tldr-body blockquote {
|
|
|
|
|
margin: var(--sp-4) 0;
|
|
|
|
|
padding: var(--sp-3) var(--sp-4);
|
|
|
|
|
border-left: 2px solid var(--accent);
|
|
|
|
|
background: color-mix(in srgb, var(--accent) 6%, transparent);
|
|
|
|
|
font-size: var(--s-1);
|
|
|
|
|
font-style: normal;
|
|
|
|
|
font-family: var(--f-body);
|
|
|
|
|
color: var(--ink);
|
|
|
|
|
line-height: 1.5;
|
|
|
|
|
}
|
|
|
|
|
.tldr-body table { font-size: var(--s-1); margin: var(--sp-4) 0; }
|
|
|
|
|
.tldr-body th, .tldr-body td { padding: var(--sp-2) var(--sp-3); }
|
|
|
|
|
.tldr-body hr {
|
|
|
|
|
border: 0;
|
|
|
|
|
height: 1px;
|
|
|
|
|
background: var(--line);
|
|
|
|
|
margin: var(--sp-6) 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ===================================================
|
|
|
|
|
Animations
|
|
|
|
|
=================================================== */
|
|
|
|
|
@keyframes fadeUp {
|
|
|
|
|
from { opacity: 0; transform: translateY(12px); }
|
|
|
|
|
to { opacity: 1; transform: translateY(0); }
|
|
|
|
|
}
|
|
|
|
|
.reveal { animation: fadeUp 0.7s var(--ease) backwards; }
|
|
|
|
|
.reveal:nth-child(2) { animation-delay: 0.06s; }
|
|
|
|
|
.reveal:nth-child(3) { animation-delay: 0.12s; }
|
|
|
|
|
.reveal:nth-child(4) { animation-delay: 0.18s; }
|
|
|
|
|
.reveal:nth-child(5) { animation-delay: 0.24s; }
|
|
|
|
|
.reveal:nth-child(6) { animation-delay: 0.30s; }
|
|
|
|
|
.reveal:nth-child(7) { animation-delay: 0.36s; }
|
|
|
|
|
.reveal:nth-child(8) { animation-delay: 0.42s; }
|
|
|
|
|
|
|
|
|
|
@keyframes shimmer {
|
|
|
|
|
0% { background-position: -200% 0; }
|
|
|
|
|
100% { background-position: 200% 0; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.is-loading {
|
|
|
|
|
background: linear-gradient(90deg,
|
|
|
|
|
var(--surface) 0%,
|
|
|
|
|
var(--surface-2) 50%,
|
|
|
|
|
var(--surface) 100%);
|
|
|
|
|
background-size: 200% 100%;
|
|
|
|
|
animation: shimmer 1.6s linear infinite;
|
|
|
|
|
border-radius: var(--radius);
|
|
|
|
|
color: transparent !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Scrollbars */
|
|
|
|
|
::-webkit-scrollbar { width: 10px; height: 10px; }
|
|
|
|
|
::-webkit-scrollbar-track { background: transparent; }
|
|
|
|
|
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 5px; }
|
|
|
|
|
::-webkit-scrollbar-thumb:hover { background: var(--line-strong); }
|
|
|
|
|
|
|
|
|
|
/* Print */
|
|
|
|
|
@media print {
|
|
|
|
|
body::before, body::after { display: none; }
|
|
|
|
|
.sidebar, .topbar, .sidebar-toggle { display: none; }
|
|
|
|
|
.app { grid-template-columns: 1fr; }
|
|
|
|
|
.canvas { padding: 0; }
|
|
|
|
|
}
|
2026-05-30 21:42:16 +02:00
|
|
|
|
|
|
|
|
/* ===================================================
|
|
|
|
|
Fast-track — kondensert læringsspor
|
|
|
|
|
=================================================== */
|
|
|
|
|
.sidebar__link--fasttrack .sidebar__link-num {
|
|
|
|
|
color: var(--accent-2);
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Hero */
|
|
|
|
|
.ft-hero {
|
|
|
|
|
padding: var(--sp-7) 0 var(--sp-6);
|
|
|
|
|
border-bottom: 1px solid var(--line);
|
|
|
|
|
margin-bottom: var(--sp-7);
|
|
|
|
|
}
|
|
|
|
|
.ft-hero__badge {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
font-family: var(--f-mono);
|
|
|
|
|
font-size: var(--s-0);
|
|
|
|
|
letter-spacing: 0.2em;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
color: var(--accent-2);
|
|
|
|
|
border: 1px solid var(--line-strong);
|
|
|
|
|
border-radius: var(--radius);
|
|
|
|
|
padding: 4px 10px;
|
|
|
|
|
margin-bottom: var(--sp-4);
|
|
|
|
|
}
|
|
|
|
|
.ft-hero__title {
|
|
|
|
|
font-family: var(--f-display);
|
|
|
|
|
font-weight: 300;
|
|
|
|
|
font-size: var(--s-7);
|
|
|
|
|
line-height: 1.05;
|
|
|
|
|
color: var(--ink);
|
|
|
|
|
margin-bottom: var(--sp-4);
|
|
|
|
|
}
|
|
|
|
|
.ft-hero__title em { font-style: italic; color: var(--accent-2); }
|
|
|
|
|
.ft-hero__sub {
|
|
|
|
|
font-size: var(--s-3);
|
|
|
|
|
line-height: 1.6;
|
|
|
|
|
color: var(--ink-2);
|
|
|
|
|
max-width: 60ch;
|
|
|
|
|
}
|
|
|
|
|
.ft-hero__sub strong { color: var(--ink); }
|
|
|
|
|
|
|
|
|
|
/* Progress */
|
|
|
|
|
.ft-progress { margin-top: var(--sp-6); max-width: 480px; }
|
|
|
|
|
.ft-progress__head {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
align-items: baseline;
|
|
|
|
|
margin-bottom: var(--sp-2);
|
|
|
|
|
}
|
|
|
|
|
.ft-progress__label {
|
|
|
|
|
font-family: var(--f-mono);
|
|
|
|
|
font-size: var(--s-0);
|
|
|
|
|
letter-spacing: 0.15em;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
}
|
|
|
|
|
.ft-progress__count {
|
|
|
|
|
font-family: var(--f-mono);
|
|
|
|
|
font-size: var(--s-1);
|
|
|
|
|
color: var(--accent-2);
|
|
|
|
|
font-variant-numeric: tabular-nums;
|
|
|
|
|
}
|
|
|
|
|
.ft-progress__track {
|
|
|
|
|
height: 6px;
|
|
|
|
|
background: var(--surface-2);
|
|
|
|
|
border-radius: 99px;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
.ft-progress__bar {
|
|
|
|
|
height: 100%;
|
|
|
|
|
width: 0;
|
|
|
|
|
background: linear-gradient(90deg, var(--accent-2), var(--accent));
|
|
|
|
|
border-radius: 99px;
|
|
|
|
|
transition: width 0.6s var(--ease);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Module grid */
|
|
|
|
|
.ft-grid {
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
|
|
|
|
gap: var(--sp-4);
|
|
|
|
|
}
|
|
|
|
|
.ft-card {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
padding: var(--sp-5);
|
|
|
|
|
background: var(--surface);
|
|
|
|
|
border: 1px solid var(--line);
|
|
|
|
|
border-top: 3px solid var(--ft-color, var(--accent));
|
|
|
|
|
border-radius: var(--radius-lg);
|
|
|
|
|
transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s;
|
|
|
|
|
position: relative;
|
|
|
|
|
}
|
|
|
|
|
.ft-card:hover {
|
|
|
|
|
transform: translateY(-4px);
|
|
|
|
|
background: var(--surface-2);
|
|
|
|
|
}
|
|
|
|
|
.ft-card__top {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
align-items: center;
|
|
|
|
|
margin-bottom: var(--sp-3);
|
|
|
|
|
}
|
|
|
|
|
.ft-card__num {
|
|
|
|
|
font-family: var(--f-mono);
|
|
|
|
|
font-size: var(--s-4);
|
|
|
|
|
color: var(--ft-color, var(--accent));
|
|
|
|
|
font-variant-numeric: tabular-nums;
|
|
|
|
|
}
|
|
|
|
|
.ft-card__check {
|
|
|
|
|
width: 22px; height: 22px;
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
border: 1.5px solid var(--line-strong);
|
|
|
|
|
display: flex; align-items: center; justify-content: center;
|
|
|
|
|
font-size: var(--s-0);
|
|
|
|
|
color: transparent;
|
|
|
|
|
transition: all 0.25s;
|
|
|
|
|
}
|
|
|
|
|
.ft-card--done .ft-card__check {
|
|
|
|
|
background: var(--ft-color, var(--accent));
|
|
|
|
|
border-color: var(--ft-color, var(--accent));
|
|
|
|
|
color: var(--bg);
|
|
|
|
|
}
|
|
|
|
|
.ft-card__eyebrow {
|
|
|
|
|
font-family: var(--f-mono);
|
|
|
|
|
font-size: var(--s-0);
|
|
|
|
|
letter-spacing: 0.12em;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
margin-bottom: 6px;
|
|
|
|
|
}
|
|
|
|
|
.ft-card__title {
|
|
|
|
|
font-family: var(--f-display);
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
font-size: var(--s-5);
|
|
|
|
|
line-height: 1.15;
|
|
|
|
|
color: var(--ink);
|
|
|
|
|
margin-bottom: var(--sp-3);
|
|
|
|
|
}
|
|
|
|
|
.ft-card__desc {
|
|
|
|
|
font-size: var(--s-1);
|
|
|
|
|
line-height: 1.55;
|
|
|
|
|
color: var(--ink-2);
|
|
|
|
|
flex: 1;
|
|
|
|
|
margin-bottom: var(--sp-4);
|
|
|
|
|
}
|
|
|
|
|
.ft-card__foot {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
align-items: center;
|
|
|
|
|
padding-top: var(--sp-3);
|
|
|
|
|
border-top: 1px solid var(--line);
|
|
|
|
|
}
|
|
|
|
|
.ft-card__mins {
|
|
|
|
|
font-family: var(--f-mono);
|
|
|
|
|
font-size: var(--s-0);
|
|
|
|
|
color: var(--subtle);
|
|
|
|
|
}
|
|
|
|
|
.ft-card__arrow {
|
|
|
|
|
font-size: var(--s-1);
|
|
|
|
|
color: var(--ft-color, var(--accent));
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
transition: transform 0.2s var(--ease);
|
|
|
|
|
}
|
|
|
|
|
.ft-card:hover .ft-card__arrow { transform: translateX(5px); }
|
|
|
|
|
|
|
|
|
|
/* Mark-as-read button */
|
|
|
|
|
.ft-done-btn {
|
|
|
|
|
font-family: var(--f-mono);
|
|
|
|
|
font-size: var(--s-0);
|
|
|
|
|
letter-spacing: 0.1em;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
background: var(--surface);
|
|
|
|
|
border: 1px solid var(--line-strong);
|
|
|
|
|
border-radius: 99px;
|
|
|
|
|
padding: 6px 16px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
transition: all 0.2s;
|
|
|
|
|
}
|
|
|
|
|
.ft-done-btn:hover { color: var(--ink); border-color: var(--ink-2); }
|
|
|
|
|
.ft-done-btn--active {
|
|
|
|
|
color: var(--bg);
|
|
|
|
|
background: var(--accent-2);
|
|
|
|
|
border-color: var(--accent-2);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Module body callouts — passed through as raw HTML from markdown */
|
|
|
|
|
.ft-body .callout {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: var(--sp-4);
|
|
|
|
|
margin: var(--sp-5) 0;
|
|
|
|
|
padding: var(--sp-4) var(--sp-5);
|
|
|
|
|
border-radius: var(--radius-lg);
|
|
|
|
|
background: var(--surface);
|
|
|
|
|
border: 1px solid var(--line);
|
|
|
|
|
border-left: 3px solid var(--accent);
|
|
|
|
|
font-size: var(--s-1);
|
|
|
|
|
line-height: 1.6;
|
|
|
|
|
align-items: flex-start;
|
|
|
|
|
}
|
|
|
|
|
.ft-body .callout > div { color: var(--ink-2); }
|
|
|
|
|
.ft-body .callout strong { color: var(--ink); }
|
|
|
|
|
.ft-body .callout__label {
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
font-family: var(--f-mono);
|
|
|
|
|
font-size: 0.6875rem;
|
|
|
|
|
letter-spacing: 0.12em;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
padding-top: 2px;
|
|
|
|
|
min-width: 7.5em;
|
|
|
|
|
color: var(--accent);
|
|
|
|
|
}
|
|
|
|
|
.ft-body .callout--huske {
|
|
|
|
|
border-left-color: var(--accent-2);
|
|
|
|
|
background: color-mix(in srgb, var(--accent-2) 7%, var(--surface));
|
|
|
|
|
}
|
|
|
|
|
.ft-body .callout--huske .callout__label { color: var(--accent-2); }
|
|
|
|
|
.ft-body .callout--eksempel {
|
|
|
|
|
border-left-color: var(--theme-baerekraft);
|
|
|
|
|
background: color-mix(in srgb, var(--theme-baerekraft) 8%, var(--surface));
|
|
|
|
|
}
|
|
|
|
|
.ft-body .callout--eksempel .callout__label { color: var(--theme-baerekraft); }
|
|
|
|
|
.ft-body .callout--felle {
|
|
|
|
|
border-left-color: var(--accent);
|
|
|
|
|
background: color-mix(in srgb, var(--accent) 8%, var(--surface));
|
|
|
|
|
}
|
|
|
|
|
.ft-body .callout--felle .callout__label { color: var(--accent); }
|
|
|
|
|
|
|
|
|
|
@media (max-width: 640px) {
|
|
|
|
|
.ft-body .callout { flex-direction: column; gap: var(--sp-2); }
|
|
|
|
|
.ft-body .callout__label { min-width: 0; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Home promo */
|
|
|
|
|
.ft-promo {
|
|
|
|
|
padding: var(--sp-7) 0;
|
|
|
|
|
border-top: 1px solid var(--line);
|
|
|
|
|
}
|
|
|
|
|
.ft-promo__card {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: var(--sp-5);
|
|
|
|
|
padding: var(--sp-5) var(--sp-6);
|
|
|
|
|
background: var(--surface);
|
|
|
|
|
border: 1px solid var(--line);
|
|
|
|
|
border-radius: var(--radius-lg);
|
|
|
|
|
transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s;
|
|
|
|
|
}
|
|
|
|
|
.ft-promo__card:hover {
|
|
|
|
|
transform: translateY(-3px);
|
|
|
|
|
background: var(--surface-2);
|
|
|
|
|
border-color: var(--line-strong);
|
|
|
|
|
}
|
|
|
|
|
.ft-promo__icon {
|
|
|
|
|
font-family: var(--f-display);
|
|
|
|
|
font-size: var(--s-8);
|
|
|
|
|
line-height: 1;
|
|
|
|
|
color: var(--accent-2);
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
}
|
|
|
|
|
.ft-promo__body { flex: 1; }
|
|
|
|
|
.ft-promo__label {
|
|
|
|
|
font-family: var(--f-mono);
|
|
|
|
|
font-size: var(--s-0);
|
|
|
|
|
letter-spacing: 0.18em;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
color: var(--accent-2);
|
|
|
|
|
margin-bottom: 6px;
|
|
|
|
|
}
|
|
|
|
|
.ft-promo__title {
|
|
|
|
|
font-family: var(--f-display);
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
font-size: var(--s-5);
|
|
|
|
|
color: var(--ink);
|
|
|
|
|
margin-bottom: 6px;
|
|
|
|
|
}
|
|
|
|
|
.ft-promo__title em { font-style: italic; color: var(--accent-2); }
|
|
|
|
|
.ft-promo__desc {
|
|
|
|
|
font-size: var(--s-1);
|
|
|
|
|
line-height: 1.55;
|
|
|
|
|
color: var(--ink-2);
|
|
|
|
|
max-width: 64ch;
|
|
|
|
|
}
|
|
|
|
|
.ft-promo__arrow {
|
|
|
|
|
font-size: var(--s-6);
|
|
|
|
|
color: var(--accent-2);
|
|
|
|
|
transition: transform 0.2s var(--ease);
|
|
|
|
|
}
|
|
|
|
|
.ft-promo__card:hover .ft-promo__arrow { transform: translateX(8px); }
|
|
|
|
|
|
|
|
|
|
@media (max-width: 640px) {
|
|
|
|
|
.ft-promo__card { flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
|
|
|
|
|
.ft-promo__arrow { align-self: flex-end; }
|
|
|
|
|
}
|