@import 'tailwindcss'; /* ===== FitOS „Ember” — ciepły grafit + koral (dark, jedyny motyw strony web) ===== */ :root { color-scheme: dark; --bg: #141210; --bg-card: #1c1917; --bg-input: #0f0d0b; --line: #2b2620; --text: #f2ede6; --text-dim: #a1968a; --accent: #ff6b4a; --accent-dark: #f0542f; --accent-ink: #1c0d06; --accent-text: #ff7e61; --shadow: 0 1px 0 color-mix(in srgb, var(--text) 4%, transparent) inset; --card-grad: linear-gradient( 180deg, color-mix(in srgb, var(--text) 2.5%, var(--bg-card)), var(--bg-card) 60% ); --glow: 0 8px 40px -16px color-mix(in srgb, var(--accent) 40%, transparent); --ambient: radial-gradient( 720px 340px at 50% -80px, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70% ); --grain-opacity: 0.028; --dur-1: 120ms; --dur-2: 180ms; --dur-3: 240ms; --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1); --btn-grad: linear-gradient( 180deg, color-mix(in srgb, var(--accent) 88%, #fff), var(--accent-dark) ); --btn-shadow: 0 3px 14px -6px color-mix(in srgb, var(--accent) 65%, transparent), inset 0 1px 0 color-mix(in srgb, #fff 28%, transparent); --mark-grad: linear-gradient( 160deg, color-mix(in srgb, var(--accent) 82%, #fff), var(--accent-dark) ); --mark-shadow: 0 2px 10px -3px color-mix(in srgb, var(--accent) 60%, transparent); --radius: 0.875rem; } /* Map design tokens to Tailwind utilities (bg-bg, text-dim, border-line, font-display, ...) */ @theme inline { --font-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; --font-display: 'Space Grotesk', 'Manrope', system-ui, sans-serif; --font-mono: 'Cascadia Code', ui-monospace, SFMono-Regular, Consolas, monospace; --color-bg: var(--bg); --color-card: var(--bg-card); --color-input: var(--bg-input); --color-line: var(--line); --color-ink: var(--text); --color-dim: var(--text-dim); --color-accent: var(--accent); --color-accent-dark: var(--accent-dark); --color-accent-ink: var(--accent-ink); --color-accent-text: var(--accent-text); --shadow-card: var(--shadow); --shadow-glow: var(--glow); --radius-lg: var(--radius); --radius-md: calc(var(--radius) - 4px); --radius-sm: calc(var(--radius) - 6px); } /* Pulsujący wskaźnik „na żywo” (kopiowany ze stylów apki) */ @keyframes live-ping { 0% { transform: scale(0.5); opacity: 0.8; } 80%, 100% { transform: scale(1.5); opacity: 0; } } .live-dot { width: 7px; height: 7px; border-radius: 99px; background: var(--accent); position: relative; display: inline-block; flex: none; } .live-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 99px; border: 1.5px solid var(--accent); opacity: 0.7; animation: live-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite; } /* Kursor karetki w boot-logu */ @keyframes caret-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } } .boot-caret { display: inline-block; width: 0.55ch; height: 1.1em; margin-left: 2px; vertical-align: text-bottom; background: var(--accent); animation: caret-blink 1s steps(1) infinite; } /* Zapalanie kropek killstreaka */ @keyframes streak-ignite { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } } .streak-dot { animation: streak-ignite 260ms var(--ease-out-quart) backwards; } /* Wejścia sekcji na scroll (IntersectionObserver dodaje .revealed) */ .reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-3) var(--ease-out-quart), transform var(--dur-3) var(--ease-out-quart); transition-delay: var(--reveal-delay, 0ms); } .reveal.revealed { opacity: 1; transform: none; } /* Glow kafelków-okien na hover */ .window-glow { transition: box-shadow var(--dur-2) ease, border-color var(--dur-2) ease, transform var(--dur-2) var(--ease-out-quart); } .window-glow:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--glow); transform: translateY(-2px); } @layer base { html { background-color: var(--bg); scroll-behavior: smooth; } body { margin: 0; font-family: var(--font-sans); background: transparent; color: var(--text); font-size: 15px; -webkit-font-smoothing: antialiased; } /* ciepła poświata u góry widoku */ body::before { content: ''; position: fixed; top: 0; left: 0; right: 0; height: 420px; background: var(--ambient); pointer-events: none; z-index: -1; } /* ziarno — przełamuje płaskie powierzchnie */ body::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: var(--grain-opacity); mix-blend-mode: overlay; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E"); } h1, h2, h3 { font-family: var(--font-display); } a { color: var(--accent-text); text-decoration: none; } ::selection { background: color-mix(in srgb, var(--accent) 32%, transparent); } :focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; } } /* Redukcja ruchu: typewriter/kropki/wejścia renderują się statycznie */ @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .live-dot::after, .boot-caret { animation: none; } .boot-caret { display: none; } .streak-dot { animation: none; } .reveal { opacity: 1; transform: none; transition: none; } .window-glow:hover { transform: none; } }