/* Custom styles for The Top Story */

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(254, 253, 251, 0.92) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(200, 160, 128, 0.12);
    box-shadow: 0 1px 12px rgba(200, 160, 128, 0.06);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf7ee;
}
::-webkit-scrollbar-thumb {
    background: #e8c4a0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d94a20;
}

/* Selection color */
::selection {
    background: #f8c4b0;
    color: #7a2b16;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #d94a20;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Image aspect ratio helpers */
.aspect-card {
    aspect-ratio: 4 / 3;
}

/* Subtle gradient border on cards */
.gradient-border {
    position: relative;
    background: white;
    border-radius: 1.5rem;
}
.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    padding: 1px;
    background: linear-gradient(135deg, rgba(232, 160, 80, 0.2), rgba(217, 74, 32, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
#mobile-menu.open {
    max-height: 400px;
}

/* Print styles */
@media print {
    nav, #contact, .reveal { display: none; }
    body { color: #1c1917; background: white; }
}
