- Add OnboardingWizard, BetaBanner, CookieBanner components - Add legal pages (Privacy, Terms, Cookies) - Update Layout with mobile topbar, sidebar drawer, plan banner - Update SettingsPage with profile, API config, security - Update CharacterForm with topic suggestions, niche chips - Update EditorialCalendar with shared strategy card - Update ContentPage with narrative technique + brief - Update SocialAccounts with 4 platforms and token guides - Fix CSS button color inheritance, mobile responsive - Add backup script - Update .gitignore for pgdata and backups Co-Authored-By: Claude (BRAIN/StackOS) <noreply@anthropic.com>
241 lines
6.6 KiB
CSS
241 lines
6.6 KiB
CSS
@tailwind base;
|
|
@tailwind components;
|
|
@tailwind utilities;
|
|
|
|
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400&family=DM+Sans:wght@400;500;600&display=swap');
|
|
|
|
:root {
|
|
/* Core palette */
|
|
--cream: #FFFBF5;
|
|
--cream-dark: #F5F0E8;
|
|
--ink: #1A1A1A;
|
|
--ink-light: #4A4A4A;
|
|
--ink-muted: #7A7A7A;
|
|
--accent: #E85A4F;
|
|
--accent-hover: #D14940;
|
|
--accent-light: #FFF0EE;
|
|
--border: #E5E0D8;
|
|
--border-strong: #D0C9BD;
|
|
--success: #2D7A4F;
|
|
--success-light: #F0F9F4;
|
|
--error: #C53030;
|
|
--error-light: #FFF5F5;
|
|
--surface: #FFFFFF;
|
|
|
|
/* Legacy aliases used in components */
|
|
--coral: var(--accent);
|
|
--muted: var(--ink-muted);
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
|
|
/* Prevent buttons from inheriting unexpected colors */
|
|
button {
|
|
color: inherit;
|
|
font-family: inherit;
|
|
}
|
|
/* ─── Base layout — mobile-first ───────────────────────────────── */
|
|
html, body {
|
|
height: 100%;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
#root {
|
|
min-height: 100dvh;
|
|
}
|
|
|
|
|
|
|
|
body {
|
|
background-color: var(--cream);
|
|
color: var(--ink);
|
|
font-family: 'DM Sans', sans-serif;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
h1, h2, h3, h4 {
|
|
font-family: 'Fraunces', serif;
|
|
letter-spacing: -0.02em;
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* ─── Card editorial ────────────────────────────────────────── */
|
|
.card-editorial {
|
|
position: relative;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: 0;
|
|
padding: 1.5rem;
|
|
overflow: hidden;
|
|
}
|
|
.card-editorial::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 4px;
|
|
background: var(--accent);
|
|
}
|
|
|
|
/* ─── Buttons ───────────────────────────────────────────────── */
|
|
.btn-primary {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 0.6rem 1.25rem;
|
|
background-color: var(--ink);
|
|
color: #FFFFFF;
|
|
border: none;
|
|
border-radius: 0;
|
|
font-family: 'DM Sans', sans-serif;
|
|
font-weight: 600;
|
|
font-size: 0.875rem;
|
|
cursor: pointer;
|
|
transition: background-color 0.2s ease, transform 0.15s ease;
|
|
text-decoration: none;
|
|
}
|
|
.btn-primary:hover:not(:disabled) {
|
|
background-color: var(--accent);
|
|
transform: translateY(-1px);
|
|
}
|
|
.btn-primary:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.btn-outline {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 0.6rem 1.25rem;
|
|
background-color: transparent;
|
|
color: var(--ink);
|
|
border: 1px solid var(--border-strong);
|
|
border-radius: 0;
|
|
font-family: 'DM Sans', sans-serif;
|
|
font-weight: 500;
|
|
font-size: 0.875rem;
|
|
cursor: pointer;
|
|
transition: border-color 0.2s ease, background-color 0.2s ease;
|
|
text-decoration: none;
|
|
}
|
|
.btn-outline:hover:not(:disabled) {
|
|
border-color: var(--ink);
|
|
background-color: var(--cream-dark);
|
|
}
|
|
|
|
/* ─── Inputs ────────────────────────────────────────────────── */
|
|
.input-editorial {
|
|
width: 100%;
|
|
padding: 0.625rem 0.875rem;
|
|
border: 1px solid var(--border);
|
|
border-radius: 0;
|
|
font-family: 'DM Sans', sans-serif;
|
|
font-size: 0.875rem;
|
|
color: var(--ink);
|
|
background-color: var(--surface);
|
|
outline: none;
|
|
transition: border-color 0.15s ease;
|
|
}
|
|
.input-editorial:focus {
|
|
border-color: var(--ink);
|
|
}
|
|
.input-editorial::placeholder {
|
|
color: var(--ink-muted);
|
|
}
|
|
|
|
/* ─── Editorial tags & decorators ──────────────────────────── */
|
|
.editorial-tag {
|
|
display: inline-block;
|
|
font-family: 'DM Sans', sans-serif;
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
letter-spacing: 0.1em;
|
|
text-transform: uppercase;
|
|
color: var(--accent);
|
|
}
|
|
|
|
.editorial-line {
|
|
width: 60px;
|
|
height: 3px;
|
|
background-color: var(--accent);
|
|
margin: 0.5rem 0;
|
|
}
|
|
|
|
/* ─── Animations ────────────────────────────────────────────── */
|
|
@keyframes fade-up {
|
|
from { opacity: 0; transform: translateY(12px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
@keyframes fade-in {
|
|
from { opacity: 0; }
|
|
to { opacity: 1; }
|
|
}
|
|
|
|
.animate-fade-up {
|
|
animation: fade-up 0.6s ease-out both;
|
|
}
|
|
.animate-fade-in {
|
|
animation: fade-in 0.4s ease-out both;
|
|
}
|
|
.delay-100 { animation-delay: 0.1s; }
|
|
.delay-200 { animation-delay: 0.2s; }
|
|
.delay-300 { animation-delay: 0.3s; }
|
|
.delay-400 { animation-delay: 0.4s; }
|
|
|
|
/* ─── Scrollbar ─────────────────────────────────────────────── */
|
|
::-webkit-scrollbar { width: 5px; height: 5px; }
|
|
::-webkit-scrollbar-track { background: transparent; }
|
|
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 2px; }
|
|
::-webkit-scrollbar-thumb:hover { background: var(--ink-muted); }
|
|
|
|
/* ─── Mobile / Responsive ───────────────────────────────────── */
|
|
@media (max-width: 767px) {
|
|
/* Minimum touch target size */
|
|
button, a, [role="button"] {
|
|
min-height: 44px;
|
|
min-width: 44px;
|
|
}
|
|
/* Prevent iOS font size zoom on inputs */
|
|
input, select, textarea {
|
|
font-size: 16px !important;
|
|
}
|
|
/* Cards stack nicely on mobile */
|
|
.card-editorial {
|
|
padding: 1.25rem !important;
|
|
}
|
|
/* Legal pages readable on small screens */
|
|
.legal-content table {
|
|
font-size: 0.78rem;
|
|
display: block;
|
|
overflow-x: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
/* Fix ghost navbar space on mobile */
|
|
#root {
|
|
min-height: 100dvh;
|
|
min-height: -webkit-fill-available;
|
|
}
|
|
|
|
/* Ensure secondary buttons always look like buttons on mobile */
|
|
.btn-outline, .btn-primary {
|
|
min-height: 44px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
}
|
|
|
|
|
|
/* ─── Mobile UX improvements ───────────────────────────────────── */
|
|
/* ─── Print ─────────────────────────────────────────────────── */
|
|
@media print {
|
|
aside, footer, .cookie-banner { display: none !important; }
|
|
}
|