/* ============================================
   FAMST AGENCY — Global Stylesheet
   Paper & Ink Editorial Design System
   ============================================ */

/* Material Symbols */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
    line-height: 1;
}

/* Hairline borders — the signature of the Paper & Ink system */
.hairline { border: 1px solid #e6ddc9; }
.hairline-b { border-bottom: 1px solid #e6ddc9; }
.hairline-t { border-top: 1px solid #e6ddc9; }
.hairline-l { border-left: 1px solid #e6ddc9; }
.hairline-r { border-right: 1px solid #e6ddc9; }

/* Dark ink overlay for hero images */
.ink-overlay { background: rgba(21, 19, 15, 0.82); }
.ink-overlay-light { background: rgba(21, 19, 15, 0.55); }

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f6eddf; }
::-webkit-scrollbar-thumb { background: #ccc6bc; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #7b766e; }

/* Selection color */
::selection { background: #f7bd48; color: #271900; }

/* Smooth page load */
body.fade-in { opacity: 0; transition: opacity 0.3s ease; }
body.fade-in.loaded { opacity: 1; }

/* Scroll fade-in animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Delay variations */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Blog / Article rich text */
.prose-famst h2 { font-family: 'Playfair Display', serif; font-size: 32px; font-weight: 700; line-height: 1.3; color: #1f1b13; margin-top: 48px; margin-bottom: 16px; }
.prose-famst h3 { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 700; color: #1f1b13; margin-top: 36px; margin-bottom: 12px; }
.prose-famst p { font-family: 'Inter', sans-serif; font-size: 18px; line-height: 1.75; color: #4a463f; margin-bottom: 20px; }
.prose-famst blockquote { border-left: 4px solid #7b5800; padding: 12px 24px; margin: 32px 0; font-family: 'Playfair Display', serif; font-size: 22px; font-style: italic; color: rgba(31,27,19,0.8); background: #fcf2e5; border-radius: 0 8px 8px 0; }
.prose-famst ul, .prose-famst ol { font-family: 'Inter', sans-serif; font-size: 17px; line-height: 1.7; color: #4a463f; padding-left: 24px; margin-bottom: 20px; }
.prose-famst ul li { list-style-type: disc; margin-bottom: 8px; }
.prose-famst ol li { list-style-type: decimal; margin-bottom: 8px; }
.prose-famst a { color: #7b5800; text-decoration: underline; }
.prose-famst a:hover { color: #5d4200; }
.prose-famst strong { font-weight: 700; color: #1f1b13; }
.prose-famst img { border-radius: 8px; margin: 32px 0; width: 100%; }
.prose-famst pre { background: #1d1b17; color: #ffdea6; padding: 24px; border-radius: 8px; overflow-x: auto; margin: 24px 0; font-size: 14px; line-height: 1.6; }
.prose-famst code { background: #f6eddf; color: #673d10; padding: 2px 6px; border-radius: 4px; font-size: 14px; }

/* Video embed */
.video-embed-wrapper { border-radius: 8px; overflow: hidden; }
.video-embed-wrapper iframe,
.video-embed-wrapper video { border-radius: 8px; }

/* Card hover effects */
.product-card, .blog-card, .experiment-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-card:hover, .blog-card:hover, .experiment-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(21,19,15,0.12);
}

/* Alert / Notification styles */
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-family: 'Inter', sans-serif; font-size: 14px; border: 1px solid; }
.alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.alert-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.alert-info { background: #fcf2e5; border-color: #f8ba82; color: #7b5800; }

/* Tag pills */
.tag-pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 100px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid currentColor;
}

/* Form elements */
.famst-input {
    width: 100%;
    padding: 12px 16px;
    background: #fff8f2;
    border: 1px solid #ccc6bc;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #1f1b13;
    transition: border-color 0.2s;
}
.famst-input:focus {
    outline: none;
    border-color: #7b5800;
    box-shadow: 0 0 0 3px rgba(123,88,0,0.1);
}
.famst-input::placeholder { color: #7b766e; }

.famst-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #4a463f;
    margin-bottom: 8px;
}

/* Stats counter animation */
@keyframes count-up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.stat-number { animation: count-up 0.6s ease forwards; }

/* Hero gradient overlay */
.hero-gradient {
    background: linear-gradient(135deg, rgba(21,19,15,0.9) 0%, rgba(21,19,15,0.5) 100%);
}

/* Gold accent line */
.gold-line {
    display: block;
    width: 48px;
    height: 3px;
    background: #7b5800;
    margin-bottom: 16px;
}

/* Linktree button */
.linktree-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    border: 1px solid #e6ddc9;
    border-radius: 8px;
    background: #fff8f2;
    transition: all 0.2s ease;
    text-decoration: none;
    width: 100%;
}
.linktree-btn:hover {
    border-color: #7b5800;
    background: #fcf2e5;
    transform: translateX(4px);
}

/* Admin notice at bottom of body */
#admin-notice-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1d1b17;
    color: #f7bd48;
    text-align: center;
    padding: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    z-index: 9999;
    letter-spacing: 0.05em;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(123,88,0,0.2);
    border-top-color: #7b5800;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Responsive image in blog post */
.blog-featured-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 12px;
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
@media (max-width: 768px) {
    .prose-famst h2 { font-size: 24px; }
    .prose-famst h3 { font-size: 20px; }
    .prose-famst p { font-size: 16px; }
    .prose-famst blockquote { font-size: 18px; }
}
