/* ===== Flash Sheet Museum — Custom CSS ===== */

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: #9e0027;
    color: #fff;
    padding: 8px 16px;
    z-index: 9999;
    font-family: 'Work Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.skip-link:focus {
    top: 0;
}

/* Paper Texture */
.paper-texture {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="4"><rect width="4" height="4" fill="%23f5f0e8"/><rect width="1" height="1" fill="%23ece8e0" opacity="0.3"/></svg>');
}

/* Rotated Cards */
.rotated-card-1 { transform: rotate(-1.2deg); }
.rotated-card-2 { transform: rotate(0.8deg); }

/* Soapy Shadow */
.soapy-shadow {
    box-shadow: 0 12px 32px -4px rgba(29, 28, 23, 0.12);
}

/* Vintage Vignette */
.vintage-vignette {
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.1);
}

/* Grain Overlay */
.grain-overlay {
    opacity: 0.15;
    pointer-events: none;
}

/* Ornamental Underline */
.ornamental-underline {
    background: linear-gradient(90deg, transparent, #c41e3a 50%, transparent);
    height: 2px;
    width: 100%;
    margin-top: 4px;
}

/* Rubber Stamp */
.rubber-stamp {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='4' height='4' fill='%23fff'/%3E%3Crect x='1' y='1' width='2' height='2' fill='%23000' opacity='0.1'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='4' height='4' fill='%23fff'/%3E%3Crect x='1' y='1' width='2' height='2' fill='%23000' opacity='0.1'/%3E%3C/svg%3E");
}

/* Pagination */
.nav-links {
    display: flex;
    gap: 4px;
    justify-content: center;
    font-family: 'Work Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
}
.nav-links a,
.nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border: 1px solid #e3bebd;
    padding: 0 12px;
    color: #1d1c17;
    text-decoration: none;
    transition: all 0.3s;
}
.nav-links a:hover {
    background: #9e0027;
    color: #fff;
    border-color: #9e0027;
}
.nav-links .current {
    background: #9e0027;
    color: #fff;
    border-color: #9e0027;
}

/* Comment Form */
.comment-form label {
    font-family: 'Work Sans', sans-serif;
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 4px;
    color: #715b3e;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    border: 1px solid #e3bebd;
    padding: 12px;
    font-family: 'Noto Serif', serif;
    font-size: 1rem;
    background: #fef9f1;
    outline: none;
    transition: border-color 0.3s;
}
.comment-form input:focus,
.comment-form textarea:focus {
    border-color: #9e0027;
}
.comment-form .submit {
    background: #9e0027;
    color: #fff;
    font-family: 'Work Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    padding: 12px 32px;
    border: none;
    border-bottom: 4px solid #715b3e;
    cursor: pointer;
    transition: brightness 0.3s;
}
.comment-form .submit:hover {
    filter: brightness(1.1);
}

/* Comment List */
.comment-list {
    list-style: none;
    padding: 0;
}
.comment-list .comment {
    border: 1px solid #e3bebd;
    padding: 24px;
    margin-bottom: 16px;
    background: #fef9f1;
}
.comment-list .comment .comment-author {
    font-family: 'Newsreader', serif;
    font-weight: 700;
    font-style: italic;
}
.comment-list .comment .comment-metadata {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #715b3e;
}

/* Widget Styles */
.widget {
    margin-bottom: 24px;
}
.widget-title {
    font-family: 'Newsreader', serif;
    font-style: italic;
    font-size: 1.25rem;
    font-weight: 700;
    border-bottom: 1px solid #9e0027;
    padding-bottom: 8px;
    margin-bottom: 16px;
}
.widget ul {
    list-style: none;
    padding: 0;
}
.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #e3bebd;
}
.widget ul li a {
    font-family: 'Work Sans', sans-serif;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: #1d1c17;
    text-decoration: none;
    transition: color 0.3s;
}
.widget ul li a:hover {
    color: #9e0027;
}

/* TOC */
.toc-container {
    background: #f8f3eb;
    padding: 32px;
    border: 1px solid #e3bebd;
    transform: rotate(-1deg);
}
.toc-container h3 {
    font-family: 'Newsreader', serif;
    font-weight: 700;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    border-bottom: 1px solid #9e0027;
    padding-bottom: 8px;
    margin-bottom: 16px;
}
.toc-container ul {
    list-style: none;
    padding: 0;
}
.toc-container ul li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.toc-container ul li::before {
    content: '';
    width: 4px;
    height: 4px;
    background: #9e0027;
    border-radius: 50%;
    flex-shrink: 0;
}
.toc-container ul li a {
    font-family: 'Work Sans', sans-serif;
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: #715b3e;
    text-decoration: none;
    transition: color 0.3s;
}
.toc-container ul li a:hover,
.toc-container ul li a.active {
    color: #9e0027;
}

/* Sticky Sidebar */
.sticky-sidebar,
.fsm-sticky-sidebar {
    position: sticky;
    top: 120px;
}

/* Card Hover */
.card-hover:hover {
    box-shadow: 0 20px 40px -8px rgba(29, 28, 23, 0.15);
}

/* Drop Cap */
.drop-cap::first-letter {
    font-family: 'Newsreader', serif;
    font-size: 4.5rem;
    font-weight: 700;
    color: #9e0027;
    float: left;
    margin-right: 12px;
    line-height: 0.8;
}

/* Prose / Entry Content */
.prose h2,
.entry-content h2 {
    font-family: 'Newsreader', serif;
    font-size: 2rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    position: relative;
    display: inline-block;
}
.prose h2::after,
.entry-content h2::after {
    content: '';
    display: block;
    background: linear-gradient(90deg, transparent, #c41e3a 50%, transparent);
    height: 2px;
    width: 100%;
    margin-top: 4px;
}
.prose h3,
.entry-content h3 {
    font-family: 'Newsreader', serif;
    font-size: 1.5rem;
    font-weight: 700;
    font-style: italic;
    color: #9e0027;
    margin: 1.5rem 0 1rem;
}
.prose p,
.entry-content p {
    font-family: 'Noto Serif', serif;
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}
.prose blockquote,
.entry-content blockquote {
    background: #f2ede5;
    border-left: 4px solid #9e0027;
    padding: 24px 32px;
    margin: 2rem 0;
    transform: rotate(0.5deg);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    font-style: italic;
    font-family: 'Noto Serif', serif;
    position: relative;
    overflow: hidden;
}
.prose img,
.entry-content img {
    border: 4px solid #ece8e0;
    max-width: 100%;
    height: auto;
}
.prose a,
.entry-content a {
    color: #9e0027;
    text-decoration: none;
    border-bottom: 1px solid #9e0027;
    transition: all 0.3s;
}
.prose a:hover,
.entry-content a:hover {
    color: #c41e3a;
    border-bottom-color: #c41e3a;
}
.prose ul,
.entry-content ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 1.5rem;
}
.prose ol,
.entry-content ol {
    list-style: decimal;
    padding-left: 24px;
    margin-bottom: 1.5rem;
}
.prose li,
.entry-content li {
    margin-bottom: 0.5rem;
    font-family: 'Noto Serif', serif;
}
.prose pre,
.entry-content pre {
    background: #1a1a1a;
    color: #f5f0e8;
    padding: 24px;
    overflow-x: auto;
    font-family: monospace;
    margin: 1.5rem 0;
    border: 1px solid #715b3e;
}

/* WP Alignment */
.alignleft { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; margin-bottom: 1rem; }
.alignwide { margin-left: -2rem; margin-right: -2rem; max-width: calc(100% + 4rem); }
.alignfull { margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); max-width: 100vw; width: 100vw; }

/* Line Clamp */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Selection */
::selection { background: #ffdad9; color: #9e0027; }

/* Ad Network Styles */
ins.adsbygoogle { display: block !important; }
.fsm-in-content-ad,
.fsm-after-post-ad,
.fsm-sidebar-ad {
    margin: 1.5rem 0;
    text-align: center;
    clear: both;
}
.fsm-in-content-ad iframe,
.fsm-after-post-ad iframe,
.fsm-sidebar-ad iframe {
    max-width: 100%;
}

/* Focus Ring */
*:focus-visible { outline: 2px solid #9e0027; outline-offset: 2px; }

/* Scrollbar */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
