@import "tailwindcss"; /* ─── Google Fonts ─── */ @import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=Sora:wght@300;400;500;600;700&display=swap"); /* ─── Catppuccin Macchiatto Palette ─── */ :root { /* Colors */ --rose: #f5c2e7; --flamingo: #f2cdcd; --pink: #f5c2e7; --mauve: #cba6f7; --red: #f38ba8; --maroon: #eba0ac; --peach: #fab387; --yellow: #f9e2af; --green: #a6e3a1; --teal: #94e2d5; --cyan: #89dceb; --blue: #89b4fa; --lavender: #b4befe; /* Text */ --text: #cdd6f4; --subtext1: #bac2de; --subtext0: #a6adc8; --overlay2: #9399b2; --overlay1: #7f849c; --overlay0: #6c7086; /* Surface */ --surface2: #585b70; --surface1: #45475a; --surface0: #313244; /* Base */ --crust: #11111b; --mantle: #181825; --base: #1e1e2e; /* Application mapping */ --bg: var(--base); --surface: var(--surface0); --surface-hover: var(--surface1); --surface-active: var(--surface2); --surface-elevated: var(--surface0); --text-primary: var(--text); --text-secondary: var(--subtext1); --text-muted: var(--subtext0); --text-on-brand: var(--crust); --border: var(--surface1); --border-focus: var(--blue); --brand: var(--blue); --brand-hover: var(--lavender); --brand-glow: var(--blue); --accent-magenta: var(--mauve); --accent-magenta-subtle: var(--surface1); --accent-cyan: var(--cyan); --accent-emerald: var(--green); /* Shadows */ --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3); --shadow-card-hover: 0 4px 8px rgba(0, 0, 0, 0.4); --shadow-glow: 0 0 8px var(--brand-glow); /* Spacing */ --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px; /* Border radii */ --radius-sm: 2px; --radius-md: 4px; --radius-lg: 6px; --radius-xl: 8px; --radius-full: 9999px; /* Typography */ --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif; --font-body: "Sora", ui-sans-serif, system-ui, sans-serif; /* Typography Scale */ --text-xs: 0.75rem; --text-sm: 0.875rem; --text-base: 1rem; --text-lg: 1.125rem; --text-xl: 1.5rem; --text-2xl: 2rem; /* Semantic aliases */ --text-body: var(--text-base); --text-caption: var(--text-xs); --text-heading: var(--text-xl); /* Animation */ --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1); --ease-spring: cubic-bezier(0.15, 0.9, 0.35, 1); --duration-fast: 120ms; --duration-normal: 200ms; --duration-slow: 350ms; } /* ─── Base ─── */ body { background-color: var(--base); font-family: var(--font-body); color: var(--text); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-size: 16px; line-height: 1.6; } /* ─── App Shell ─── */ .app-shell { max-width: 840px; margin: 0 auto; padding: var(--space-5) var(--space-4); } @media (min-width: 640px) { .app-shell { padding: var(--space-7) var(--space-6); } } /* ─── Input Zone ─── */ .input-zone { display: flex; flex-direction: column; gap: var(--space-4); margin-bottom: var(--space-7); } .input-zone__row { display: flex; gap: var(--space-3); align-items: stretch; } /* ─── Input Field ─── */ .input-field { flex-grow: 1; min-width: 0; padding: var(--space-4) var(--space-5); font-family: var(--font-body); font-size: 1rem; color: var(--text); background: var(--surface0); border: 1px solid var(--border); border-radius: var(--radius-md); transition: border-color var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out), background-color var(--duration-fast) var(--ease-out); } .input-field::placeholder { color: var(--subtext0); } .input-field:focus { outline: none; border-color: var(--blue); box-shadow: var(--shadow-glow); background-color: var(--surface1); } /* ─── Button ─── */ .btn-show { flex-shrink: 0; padding: var(--space-4) var(--space-6); font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--crust); background: var(--blue); border: none; border-radius: var(--radius-md); white-space: nowrap; cursor: pointer; transition: transform var(--duration-fast) var(--ease-spring), box-shadow var(--duration-normal) var(--ease-out), filter var(--duration-fast) var(--ease-out); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); } .btn-show:hover { filter: brightness(1.1); box-shadow: 0 4px 16px rgba(137, 180, 250, 0.4); } .btn-show:active { transform: scale(0.97); } .btn-show:focus-visible { outline: 2px solid var(--lavender); outline-offset: 2px; } /* ─── Post Card ─── */ .post-card { background: var(--surface0); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); overflow: hidden; transition: transform var(--duration-normal) var(--ease-spring), box-shadow var(--duration-normal) var(--ease-out); border: 1px solid var(--border); } .post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); } /* ─── Post Header ─── */ .post-header { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4) var(--space-5) var(--space-3); border-bottom: 1px solid var(--surface1); } .post-header__info { display: flex; flex-direction: column; min-width: 0; } .post-header__name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.3; color: var(--text); } .post-header__handle { font-size: var(--text-sm); line-height: 1.3; color: var(--subtext0); margin-top: 2px; } .post-header__bio { font-size: 0.75rem; line-height: 1.3; color: var(--subtext1); margin-top: var(--space-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* ─── Avatar Ring ─── */ .avatar-ring { width: 3.5rem; height: 3.5rem; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--mauve); padding: 2px; } /* ─── Avatar Fallbacks ─── */ .avatar-fallback { width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--mauve); display: flex; align-items: center; justify-content: center; color: var(--crust); font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; flex-shrink: 0; } /* ─── Post Body ─── */ .post-body { padding: var(--space-4) var(--space-5); color: var(--text); font-size: 1.05rem; line-height: 1.7; white-space: pre-wrap; word-break: break-word; text-wrap: pretty; } /* ─── Post Embed ─── */ .post-embed { padding: 0 var(--space-5) var(--space-4); } /* ─── Image Grid ─── */ .image-grid { display: grid; gap: var(--space-2); border-radius: var(--radius-md); overflow: hidden; margin-top: var(--space-3); } .image-grid--1 { grid-template-columns: 1fr; } .image-grid--2 { grid-template-columns: 1fr 1fr; } .image-grid--3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; } .image-grid--3 img:first-child { grid-row: 1 / 3; } .image-grid--4 { grid-template-columns: 1fr 1fr; } .image-grid img { width: 100%; height: 100%; object-fit: cover; outline: 1px solid var(--surface1); transition: transform var(--duration-normal) var(--ease-out), filter var(--duration-normal) var(--ease-out); } .image-grid img:hover { transform: scale(1.02); filter: brightness(1.1); } /* ─── External Link Card ─── */ .external-link-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: inherit; transition: background-color var(--duration-normal) var(--ease-out); margin-top: var(--space-3); } .external-link-card:hover { background-color: var(--surface1); } .external-link-card__thumb { width: 100%; height: 200px; object-fit: cover; } .external-link-card__content { padding: var(--space-3); } .external-link-card__title { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; line-height: 1.4; margin-bottom: var(--space-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .external-link-card__desc { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.5; margin-bottom: var(--space-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .external-link-card__domain { font-size: 0.75rem; color: var(--text-muted); } /* ─── Quote Post ─── */ .quote-post { border: none; border-left: 3px solid var(--mauve); border-radius: 0; padding: var(--space-3) var(--space-4); margin-top: var(--space-3); background: var(--surface1); box-shadow: none; } .quote-post::before { content: "Quoted post"; display: block; font-size: var(--text-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: var(--space-2); } .quote-post--stub { opacity: 0.8; font-style: italic; } .quote-post__header { display: flex; gap: var(--space-2); margin-bottom: var(--space-2); align-items: baseline; flex-wrap: wrap; } .quote-post__author { font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; } .quote-post__handle { font-size: 0.8rem; color: var(--text-muted); word-break: break-all; } .quote-post__text { font-size: 0.9rem; line-height: 1.5; color: var(--text); margin: 0; } /* ─── Record with Media ─── */ .record-with-media { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-3); } /* ─── Post Footer ─── */ .post-footer { display: flex; align-items: center; justify-content: space-between; margin-top: var(--space-4); padding: var(--space-3) var(--space-5); border-top: 1px solid var(--border); } /* ─── Footer Badges & Timestamp ─── */ .post-footer__badges { display: flex; align-items: center; gap: var(--space-3); } .post-footer__timestamp { font-size: var(--text-xs); color: var(--subtext0); white-space: nowrap; } /* ─── Badge ─── */ .badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--radius-sm); font-size: 0.75rem; font-weight: 600; background: var(--surface1); color: var(--peach); border: 1px solid var(--surface2); } /* ─── Tag Badge ─── */ .tag-badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--radius-sm); font-size: 0.75rem; font-weight: 600; font-family: var(--font-display); background: var(--surface1); color: var(--mauve); border: 1px solid var(--mauve); text-decoration: none; transition: background-color var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-spring); } .tag-badge:hover { background: var(--mauve); color: var(--crust); transform: scale(1.03); } /* ─── Facet Links ─── */ .mention-link { color: var(--blue); font-weight: 600; text-decoration: none; text-decoration-line: underline; text-decoration-color: var(--surface2); text-underline-offset: 2px; transition: color var(--duration-fast) var(--ease-out); } .mention-link:hover { color: var(--lavender); text-decoration-color: var(--lavender); } .link-facet { color: var(--green); font-weight: 500; text-decoration: none; text-decoration-line: underline; text-decoration-color: var(--surface2); text-underline-offset: 2px; transition: color var(--duration-fast) var(--ease-out); } .link-facet:hover { color: var(--teal); text-decoration-color: var(--teal); } .tag-link { color: var(--mauve); font-weight: 600; } .tag-link a { color: inherit; text-decoration: none; transition: color var(--duration-fast) var(--ease-out); } .tag-link a:hover { color: var(--pink); } /* ─── Reply Context ─── */ .reply-context { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); color: var(--text-muted); background: var(--surface1); border-left: 3px solid var(--mauve); } .reply-context__label { color: var(--subtext0); opacity: 0.7; } /* ─── Loading Skeleton ─── */ .loading-skeleton { background: var(--surface1); position: relative; overflow: hidden; border-radius: var(--radius-md); border: 1px solid var(--border); } .loading-skeleton::after { content: ""; position: absolute; top: 0; left: -150%; width: 50%; height: 100%; background: var(--surface2); animation: shimmer 1.5s ease-in-out infinite; } @keyframes shimmer { 0% { transform: translateX(0); } 100% { transform: translateX(300%); } } /* ─── Error State ─── */ .error-state { padding: var(--space-5); color: var(--red); font-weight: 500; text-align: center; background: var(--surface1); border-radius: var(--radius-lg); border: 1px solid var(--red); } /* ─── Empty State ─── */ .empty-state { padding: var(--space-8) var(--space-5); text-align: center; color: var(--subtext0); } .empty-state__title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--subtext1); text-wrap: balance; margin-bottom: var(--space-2); } .empty-state__desc { font-size: 0.95rem; line-height: 1.6; text-wrap: pretty; } /* ─── Animations ─── */ @keyframes fadeSlideIn { from { opacity: 0; transform: translateY(12px); filter: blur(4px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } } .stagger-1 { animation: fadeSlideIn var(--duration-slow) var(--ease-out) both; animation-delay: 0ms; } .stagger-2 { animation: fadeSlideIn var(--duration-slow) var(--ease-out) both; animation-delay: 60ms; } .stagger-3 { animation: fadeSlideIn var(--duration-slow) var(--ease-out) both; animation-delay: 120ms; } /* ─── Reduced Motion ─── */ @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } } /* ─── Error Badge ─── */ .error-badge { margin-top: var(--space-3); font-size: 0.8rem; color: var(--red); background: var(--surface0); padding: var(--space-2) var(--space-3); border-radius: var(--radius-lg); } /* ─── Image Cover ─── */ .image-cover { width: 100%; height: auto; object-fit: cover; } /* ─── Badge Group ─── */ .badge-group { display: flex; gap: var(--space-1); flex-wrap: wrap; } /* ─── Profile Card ─── */ .profile-card { background: var(--surface0); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); overflow: hidden; transition: transform var(--duration-normal) var(--ease-spring), box-shadow var(--duration-normal) var(--ease-out); border: 1px solid var(--border); animation: fadeInUp var(--duration-slow) var(--ease-out) both; margin-bottom: var(--space-7); } .profile-card--loading { background: var(--surface1); } .profile-card--error { background-color: rgba(243, 139, 168, 0.1); border-left: 4px solid var(--red); padding: var(--space-4); } .profile-card__content { padding: var(--space-5); display: flex; gap: var(--space-4); align-items: flex-start; } .profile-card__info { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; } /* ─── Profile Banner ─── */ .profile-banner { height: 120px; background: var(--surface1); position: relative; overflow: hidden; } .profile-banner--skeleton { background: linear-gradient(90deg, var(--surface1) 25%, var(--surface2) 50%, var(--surface1) 75%); background-size: 200px 100%; animation: shimmer 1.5s ease-in-out infinite; } .profile-banner--empty { background: var(--surface1); } .profile-banner__image { width: 100%; height: 100%; object-fit: cover; } /* ─── Profile Avatar ─── */ .profile-avatar { width: 5rem; height: 5rem; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 3px solid var(--surface0); background: var(--mauve); } .profile-avatar--skeleton { width: 5rem; height: 5rem; border-radius: 50%; background: linear-gradient(90deg, var(--surface1) 25%, var(--surface2) 50%, var(--surface1) 75%); background-size: 200px 100%; animation: shimmer 1.5s ease-in-out infinite; } .profile-avatar--fallback { width: 5rem; height: 5rem; border-radius: 50%; background: var(--mauve); display: flex; align-items: center; justify-content: center; color: var(--crust); font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; } /* ─── Profile Name ─── */ .profile-name { font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); line-height: 1.3; color: var(--text); margin: 0; } .profile-name--empty { color: var(--subtext0); } /* ─── Profile Bio ─── */ .profile-bio { font-size: 0.95rem; line-height: 1.6; color: var(--subtext1); margin: 0; text-wrap: pretty; } /* ─── Profile Joined ─── */ .profile-joined { font-size: 0.85rem; color: var(--subtext0); margin: 0; } /* ─── Loading Text ─── */ .loading-text { font-size: 0.9rem; color: var(--subtext0); text-align: center; margin-top: var(--space-3); } /* ─── Skeleton Lines ─── */ .skeleton-line { background: linear-gradient(90deg, var(--surface1) 25%, var(--surface2) 50%, var(--surface1) 75%); background-size: 200px 100%; animation: shimmer 1.5s ease-in-out infinite; border-radius: var(--radius-sm); height: 1rem; } .skeleton-line-md { width: 70%; height: 1.25rem; } .skeleton-line-sm { width: 50%; height: 0.875rem; } .skeleton-circle { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: linear-gradient(90deg, var(--surface1) 25%, var(--surface2) 50%, var(--surface1) 75%); background-size: 200px 100%; animation: shimmer 1.5s ease-in-out infinite; flex-shrink: 0; } /* ─── Feed Container ─── */ .feed-container { display: flex; flex-direction: column; gap: var(--space-3); } .feed-loading-header { text-align: center; padding: var(--space-4); } /* ─── Feed Item ─── */ .feed-item { background: var(--surface0); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); padding: var(--space-4) var(--space-5); border: 1px solid var(--border); transition: transform var(--duration-normal) var(--ease-spring), box-shadow var(--duration-normal) var(--ease-out); animation: fadeInUp var(--duration-slow) var(--ease-out) both; } .feed-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); } .feed-item--loading { background: var(--surface1); pointer-events: none; } .feed-item--error { background-color: rgba(243, 139, 168, 0.1); border-left: 4px solid var(--red); padding: var(--space-4); } .feed-item__content { display: flex; flex-direction: column; gap: var(--space-3); } .feed-item__header { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); } .feed-item__header-info { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; } .feed-item__body { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-3); } .feed-item__text { font-size: 1rem; line-height: 1.6; color: var(--text); text-wrap: pretty; word-break: break-word; } .feed-item__footer { display: flex; flex-direction: column; gap: var(--space-2); padding-top: var(--space-3); border-top: 1px solid var(--surface1); } .feed-item__timestamp { font-size: 0.8rem; color: var(--subtext0); } /* ─── Error Message ─── */ .error-message { color: var(--red); font-weight: 500; margin-bottom: var(--space-3); } /* ─── Retry Button ─── */ .btn-retry { padding: var(--space-3) var(--space-5); font-family: var(--font-display); font-size: 0.9rem; font-weight: 600; color: var(--crust); background: var(--red); border: none; border-radius: var(--radius-md); cursor: pointer; transition: background-color var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-spring); } .btn-retry:hover { background: var(--maroon); transform: translateY(-1px); } .btn-retry:active { transform: translateY(0); } /* ─── Fade In Up Animation ─── */ @keyframes fadeInUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } /* ─── Stagger Animation Delays ─── */ .stagger-1 { animation-delay: 0ms; } .stagger-2 { animation-delay: 60ms; } .stagger-3 { animation-delay: 120ms; } .stagger-4 { animation-delay: 180ms; } .stagger-5 { animation-delay: 240ms; } /* ─── Responsive Design ─── */ @media (max-width: 640px) { .app-shell { padding: var(--space-4) var(--space-3); } .profile-card__content { padding: var(--space-4); flex-direction: column; align-items: center; text-align: center; } .profile-card__info { align-items: center; } .profile-name { font-size: 1.25rem; } .profile-avatar, .profile-avatar--skeleton, .profile-avatar--fallback { width: 4rem; height: 4rem; } .input-zone__row { flex-direction: column; gap: var(--space-3); } .input-field { width: 100%; } .btn-show, .btn-retry { width: 100%; justify-content: center; } .feed-item { padding: var(--space-3) var(--space-4); } .feed-item__text { font-size: 0.95rem; } } /* ─── Accessibility ─── */ @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }