Study/src/app/globals.css
2026-07-11 13:48:02 -07:00

193 lines
7.5 KiB
CSS

@import "tailwindcss";
@layer base {
:root {
--theme-bg-base: #f5f2ea;
--theme-bg-surface: #fffdf8;
--theme-bg-surface-alt: #eeeae0;
--theme-bg-callout: #ebe9ff;
--theme-primary: #4f46e5;
--theme-primary-hover: #3f37c9;
--theme-primary-light: #756ef0;
--theme-accent: #f97360;
--theme-text-heading: #172033;
--theme-text-body: #344054;
--theme-text-secondary: #667085;
--theme-text-muted: #8b91a0;
--theme-border: #d7d2c7;
--theme-border-light: #e7e2d8;
--theme-success: #25845f;
--theme-success-bg: #e3f4ec;
--theme-error: #c44747;
--theme-error-bg: #fae8e5;
--theme-badge-bg: #e8e5ff;
--theme-badge-text: #4840bb;
--theme-danger: #c44747;
--theme-danger-hover: #a93636;
--theme-shadow-card: 0 1px 2px rgba(23, 32, 51, 0.04), 0 8px 24px rgba(23, 32, 51, 0.055);
--theme-shadow-card-hover: 0 2px 4px rgba(23, 32, 51, 0.05), 0 18px 40px rgba(23, 32, 51, 0.1);
--theme-shadow-modal: 0 28px 80px rgba(23, 32, 51, 0.22);
}
:root.dark {
--theme-bg-base: #0d1117;
--theme-bg-surface: #151b23;
--theme-bg-surface-alt: #1c2430;
--theme-bg-callout: #25234a;
--theme-primary: #8b83ff;
--theme-primary-hover: #a49eff;
--theme-primary-light: #b2adff;
--theme-accent: #ff8a75;
--theme-text-heading: #f6f3ec;
--theme-text-body: #d8dde6;
--theme-text-secondary: #aab3c0;
--theme-text-muted: #7f8998;
--theme-border: #354050;
--theme-border-light: #293342;
--theme-success: #58c596;
--theme-success-bg: #173c30;
--theme-error: #ff8177;
--theme-error-bg: #472424;
--theme-badge-bg: #2d2959;
--theme-badge-text: #bbb7ff;
--theme-danger: #ff8177;
--theme-danger-hover: #ffa098;
--theme-shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.18);
--theme-shadow-card-hover: 0 2px 4px rgba(0, 0, 0, 0.36), 0 20px 44px rgba(0, 0, 0, 0.28);
--theme-shadow-modal: 0 30px 90px rgba(0, 0, 0, 0.55);
}
* {
border-color: var(--theme-border-light);
}
html {
background: var(--theme-bg-base);
scroll-behavior: smooth;
}
body {
min-width: 320px;
background:
radial-gradient(circle at 88% -10%, color-mix(in srgb, var(--theme-primary) 9%, transparent), transparent 32rem),
var(--theme-bg-base);
color: var(--theme-text-body);
font-family: var(--font-manrope), ui-sans-serif, system-ui, sans-serif;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
}
button, a, input, textarea, select {
outline-color: var(--theme-primary);
}
:focus-visible {
outline: 3px solid color-mix(in srgb, var(--theme-primary) 45%, transparent);
outline-offset: 3px;
}
button, [role="button"], a {
-webkit-tap-highlight-color: transparent;
}
button:not(:disabled), [role="button"], a {
cursor: pointer;
}
::selection {
background: color-mix(in srgb, var(--theme-primary) 24%, transparent);
}
}
@theme inline {
--color-bg-base: var(--theme-bg-base);
--color-bg-surface: var(--theme-bg-surface);
--color-bg-surface-alt: var(--theme-bg-surface-alt);
--color-bg-callout: var(--theme-bg-callout);
--color-primary: var(--theme-primary);
--color-primary-hover: var(--theme-primary-hover);
--color-primary-light: var(--theme-primary-light);
--color-accent: var(--theme-accent);
--color-text-heading: var(--theme-text-heading);
--color-text-body: var(--theme-text-body);
--color-text-secondary: var(--theme-text-secondary);
--color-text-muted: var(--theme-text-muted);
--color-border: var(--theme-border);
--color-border-light: var(--theme-border-light);
--color-success: var(--theme-success);
--color-success-bg: var(--theme-success-bg);
--color-error: var(--theme-error);
--color-error-bg: var(--theme-error-bg);
--color-badge-bg: var(--theme-badge-bg);
--color-badge-text: var(--theme-badge-text);
--color-danger: var(--theme-danger);
--color-danger-hover: var(--theme-danger-hover);
--font-sans: var(--font-manrope), ui-sans-serif, system-ui, sans-serif;
--font-serif: var(--font-newsreader), ui-serif, Georgia, serif;
--shadow-card: var(--theme-shadow-card);
--shadow-card-hover: var(--theme-shadow-card-hover);
--shadow-modal: var(--theme-shadow-modal);
--ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-border); border: 2px solid transparent; border-radius: 999px; background-clip: padding-box; }
.app-page {
width: 100%;
max-width: 1280px;
margin-inline: auto;
padding: 2rem clamp(1rem, 3vw, 3rem) 5rem;
}
.editorial-title {
font-family: var(--font-newsreader), Georgia, serif;
font-weight: 600;
letter-spacing: -0.035em;
}
.paper-grid {
background-image: radial-gradient(color-mix(in srgb, var(--theme-text-muted) 18%, transparent) 0.7px, transparent 0.7px);
background-size: 18px 18px;
}
.perspective-1000 { perspective: 1000px; }
.preserve-3d { transform-style: preserve-3d; }
.backface-hidden { backface-visibility: hidden; }
.rotate-y-180 { transform: rotateY(180deg); }
.rotate-x-180 { transform: rotateX(180deg); }
@keyframes swipeLeft { to { transform: translateX(-44px) rotate(-6deg); opacity: 0; } }
@keyframes swipeRight { to { transform: translateX(44px) rotate(6deg); opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes subtlePulse { 0%, 100% { opacity: 1; } 50% { opacity: .58; } }
.animate-swipe-left { animation: swipeLeft .36s var(--ease-spring) forwards; }
.animate-swipe-right { animation: swipeRight .36s var(--ease-spring) forwards; }
.animate-fade-in { animation: fadeIn .2s ease-out; }
.animate-slide-up { animation: slideUp .32s var(--ease-spring); }
.animate-subtle-pulse { animation: subtlePulse 1.7s ease-in-out infinite; }
.markdown-content h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: .5rem; color: var(--color-text-heading); }
.markdown-content h2 { font-size: 1.25rem; font-weight: 650; margin-bottom: .5rem; color: var(--color-text-heading); }
.markdown-content h3 { font-size: 1.125rem; font-weight: 650; margin-bottom: .5rem; color: var(--color-text-heading); }
.markdown-content p { margin-bottom: .75rem; line-height: 1.72; }
.markdown-content ul { list-style: disc; padding-left: 1.35rem; margin-bottom: .75rem; }
.markdown-content ol { list-style: decimal; padding-left: 1.35rem; margin-bottom: .75rem; }
.markdown-content li { margin-bottom: .25rem; line-height: 1.65; }
.markdown-content strong { font-weight: 700; color: var(--color-text-heading); }
.markdown-content code { background: var(--color-bg-surface-alt); padding: .15rem .4rem; border-radius: .35rem; font-size: .875rem; }
.markdown-content table { border-collapse: collapse; width: 100%; margin-bottom: .75rem; }
.markdown-content th { background: var(--color-bg-surface-alt); font-weight: 650; text-align: left; padding: .6rem .8rem; border: 1px solid var(--color-border-light); }
.markdown-content td { padding: .6rem .8rem; border: 1px solid var(--color-border-light); }
.markdown-content *:last-child { margin-bottom: 0; }
@media (max-width: 767px) {
.app-page { padding-top: 1.25rem; padding-bottom: 6rem; }
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}