/* ============================================
   Owl Gazette — Styles
   ============================================ */


*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32'><line x1='3' y1='3' x2='28' y2='28' stroke='%23000' stroke-width='5' stroke-linecap='round' opacity='0.35'/><line x1='3' y1='3' x2='28' y2='28' stroke='%23a08060' stroke-width='2.5' stroke-linecap='round'/><line x1='20' y1='20' x2='28' y2='28' stroke='%23604020' stroke-width='3.5' stroke-linecap='round'/><circle cx='3' cy='3' r='3' fill='%23ffeebb' opacity='0.7'/><circle cx='3' cy='3' r='1.5' fill='white' opacity='0.9'/></svg>") 3 3, default;
}

html {
    height: 100%;
    overflow-y: scroll;
    background: #252542;
    scrollbar-color: #0a0a0a #0a0a0a;
}

body {
    height: 100%;
    background: #252542;
    color: #e0d6c2;
    font-family: 'EB Garamond', Georgia, serif;
}


::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #0a0a0a;
}

html.revealed {
    scrollbar-color: #2a2218 #252542;
}

html.revealed::-webkit-scrollbar-track {
    background: #252542;
}

html.revealed::-webkit-scrollbar-thumb {
    background: #2a2218;
    border-radius: 4px;
}

html.revealed::-webkit-scrollbar-thumb:hover {
    background: #3a3226;
}


.responsive-gate {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    background: #0a0a0a;
    z-index: 300;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.responsive-gate p {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-style: italic;
    color: #b8a88a;
}

.site-wrapper {
    display: block;
    height: 100%;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (max-width: 1199px) {
    .responsive-gate {
        opacity: 1;
        pointer-events: auto;
    }

    .site-wrapper {
        opacity: 0;
        transform: scale(0.97);
        pointer-events: none;
    }
}


.password-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0a url('assets/images/stone-texture.png') repeat;
}

.password-container {
    text-align: center;
    max-width: 400px;
    padding: 2rem;
}

.password-title {
    font-family: 'UnifrakturMaguntia', cursive;
    font-size: 3rem;
    color: #c4a35a;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(196, 163, 90, 0.3);
}

.password-subtitle {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 1.1rem;
    color: #8a7d6b;
    margin-bottom: 2.5rem;
}

.password-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.password-input {
    background: #1a1610;
    border: 1px solid #5a4a3a;
    border-radius: 4px;
    padding: 0.85rem 1rem;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.1rem;
    color: #e0d6c2;
    text-align: center;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.password-input::placeholder {
    color: #7a6d5d;
    font-style: italic;
}

.password-input:focus {
    border-color: #c4a35a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 12px rgba(196, 163, 90, 0.15);
}

.password-submit {
    background: #1a1610;
    border: 1px solid #c4a35a;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    color: #c4a35a;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: background 0.3s ease;
}

.password-submit:hover {
    background: #2a2218;
}


.password-error {
    margin-top: 1.5rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 0.95rem;
    color: #a0522d;
    min-height: 1.4em;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.password-error.visible {
    opacity: 1;
}


@keyframes shake {
    0%, 100% { transform: translateX(0); }
    15% { transform: translateX(-8px); }
    30% { transform: translateX(8px); }
    45% { transform: translateX(-6px); }
    60% { transform: translateX(6px); }
    75% { transform: translateX(-3px); }
    90% { transform: translateX(3px); }
}

.password-input.shake {
    animation: shake 0.5s ease-in-out;
    border-color: #a0522d;
}


.snitch {
    display: none;
    position: fixed;
    width: 40px;
    height: 40px;
    z-index: 500;
    pointer-events: none;
}

.snitch-body {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background: radial-gradient(circle at 35% 35%, #f0d060, #c4a035, #a08020);
    border-radius: 50%;
    box-shadow:
        0 0 10px rgba(196, 163, 90, 0.5),
        0 0 20px rgba(196, 163, 90, 0.2);
}

.snitch-wing {
    position: absolute;
    top: 50%;
    width: 28px;
    height: 16px;
    border: 2px solid rgba(220, 220, 240, 0.6);
    border-radius: 50% 50% 0 0;
    border-bottom: none;
}

.snitch-wing-left {
    right: 55%;
    transform-origin: right center;
    animation: wing-flutter-left 0.3s ease-in-out infinite alternate;
}

.snitch-wing-right {
    left: 55%;
    transform-origin: left center;
    animation: wing-flutter-right 0.3s ease-in-out infinite alternate;
}

@keyframes wing-flutter-left {
    0% { transform: rotate(20deg); }
    100% { transform: rotate(50deg); }
}

@keyframes wing-flutter-right {
    0% { transform: rotate(-20deg); }
    100% { transform: rotate(-50deg); }
}


.smoke-particle {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(180, 170, 150, 0.4);
    filter: blur(8px);
    pointer-events: none;
    z-index: 150;
}


.newspaper-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100%;
    padding: 3rem 2rem;
    perspective: 2000px;
}

.newspaper-flipper {
    display: grid;
    grid-template-areas: "face";
    width: 100%;
    max-width: 1100px;
    transform-style: preserve-3d;
}

@property --border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.newspaper {
    position: relative;
    width: 100%;
    min-height: 600px;
    grid-area: face;
    color: #2a2218;
    padding: 3rem;
    border: 5px solid transparent;
    border-radius: 8px;
    background:
        linear-gradient(#e4d5b8, #e4d5b8) padding-box,
        conic-gradient(
            from var(--border-angle),
            rgba(196, 163, 90, 0.1) 0%,
            rgba(255, 215, 100, 0.9) 3%,
            rgba(196, 163, 90, 0.1) 6%,
            rgba(196, 163, 90, 0.1) 47%,
            rgba(255, 215, 100, 0.9) 50%,
            rgba(196, 163, 90, 0.1) 53%,
            rgba(196, 163, 90, 0.1) 100%
        ) border-box;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 10px 25px rgba(0, 0, 0, 0.5),
        0 30px 60px rgba(0, 0, 0, 0.7),
        0 60px 120px rgba(0, 0, 0, 0.8);
    animation: border-rotate 10s linear infinite;
}

@keyframes border-rotate {
    to {
        --border-angle: 360deg;
    }
}

.newspaper::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: multiply;
}

.newspaper::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 80px rgba(42, 34, 24, 0.15);
    pointer-events: none;
    z-index: 1;
}

.newspaper > * {
    position: relative;
    z-index: 2;
}


.newspaper--front,
.newspaper--back {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.newspaper--back {
    transform: rotateY(180deg);
}


.action-buttons {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 200;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.action-buttons.visible {
    display: flex;
}

.lang-toggle {
    display: flex;
    background: rgba(26, 26, 46, 0.7);
    border: 1px solid #3a3226;
    border-radius: 18px;
    overflow: hidden;
    height: 36px;
}

.lang-toggle__btn {
    background: none;
    border: none;
    padding: 0 10px;
    height: 100%;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.3s ease, background 0.3s ease;
    line-height: 36px;
}

.lang-toggle__btn.active {
    opacity: 1;
    background: rgba(196, 163, 90, 0.2);
    box-shadow: inset 0 0 8px rgba(196, 163, 90, 0.15);
}

.lang-toggle__btn:hover {
    opacity: 0.8;
}

.lang-toggle__btn.active:hover {
    opacity: 1;
}

.action-btn {
    background: rgba(26, 26, 46, 0.7);
    border: 1px solid #3a3226;
    border-radius: 18px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    padding: 0;
    color: #8a7d6b;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    cursor: pointer;
    transition: color 0.3s ease;
}

.action-btn:hover {
    color: #c4a35a;
}

.action-btn--expandable {
    flex-direction: row-reverse;
    max-width: 36px;
    transition: max-width 0.35s ease, color 0.3s ease;
}

.action-btn--expandable:hover {
    max-width: 200px;
}

.action-btn__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    min-width: 36px;
    height: 36px;
    font-size: 1rem;
}

.action-btn__label {
    opacity: 0;
    padding-left: 0.5rem;
    transition: opacity 0.2s ease 0.1s;
}

.action-btn--expandable:hover .action-btn__label {
    opacity: 1;
}

.wand-glow {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    background: radial-gradient(
        circle 200px at var(--wand-x, -100px) var(--wand-y, -100px),
        rgba(255, 248, 220, 0.10) 0%,
        rgba(255, 240, 200, 0.05) 35%,
        transparent 70%
    );
    mix-blend-mode: screen;
}

/* ============================================
   Newspaper Content Styles
   ============================================ */


.newspaper-masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 0;
}

.masthead-cat {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
}

.masthead-cat svg {
    width: 100%;
    height: 100%;
}

.masthead-title {
    font-family: 'UnifrakturMaguntia', cursive;
    font-size: 5.5rem;
    color: #1a1208;
    line-height: 1.1;
    letter-spacing: 2px;
    text-align: right;
    flex: 1;
}

.masthead-reminder {
    text-align: center;
    font-family: 'EB Garamond', Georgia, serif;
    font-style: italic;
    font-size: 0.82rem;
    color: #6a5a4a;
    padding: 0.5rem 0 0.4rem 0;
    letter-spacing: 0.5px;
}

.masthead-rule-bottom {
    height: 3px;
    background: #2a2218;
    margin: 0 0 1.5rem 0;
}


.newspaper-lead-full {
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.newspaper-lead-full .article-headline {
    font-size: 2.4rem;
    text-align: center;
    margin-bottom: 0.75rem;
}



.article-headline {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1.2;
    color: #1a1208;
    margin-bottom: 0.5rem;
}

.article-byline {
    font-family: 'EB Garamond', Georgia, serif;
    font-style: italic;
    font-size: 0.85rem;
    color: #6a5a4a;
    margin-bottom: 1rem;
}

.article-text {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #2a2218;
    margin-bottom: 0.8rem;
    text-align: justify;
    hyphens: auto;
}

.dropcap {
    float: left;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    font-size: 5.5rem;
    line-height: 0.75;
    padding: 0.1rem 0.5rem 0.15rem 0.3rem;
    margin-right: 0.3rem;
    margin-top: 0.1rem;
    color: #1a1208;
    border: 2px solid #2a2218;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.dropcap::before {
    content: '\269C';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: serif;
    font-size: 9rem;
    color: #c4b89a;
    opacity: 0.7;
    z-index: -1;
    pointer-events: none;
}

.article-byline--animated {
    transition: opacity 0.6s ease;
}

.article-image-placeholder {
    background: #d9cbac;
    border: 1px dashed #b8a88a;
    padding: 3rem 1rem;
    text-align: center;
    margin: 1rem 0;
    font-family: 'EB Garamond', Georgia, serif;
    font-style: italic;
    font-size: 0.9rem;
    color: #8a7a6a;
}


.newspaper-filler {
    text-align: center;
    font-family: 'EB Garamond', Georgia, serif;
    font-style: italic;
    font-size: 0.82rem;
    color: #8a7a6a;
    padding: 0.75rem 0;
    letter-spacing: 0.5px;
}


.newspaper-rule {
    height: 1px;
    background: #c4b89a;
    margin: 1.5rem 0;
}

.newspaper-secondary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.secondary-headline {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1208;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.secondary-story {
    padding-right: 1.5rem;
    border-right: 1px solid #c4b89a;
}

.secondary-story:last-child {
    border-right: none;
    padding-right: 0;
}


.newspaper-classifieds {
    margin-top: 0.5rem;
}

.classifieds-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #1a1208;
    margin-bottom: 1rem;
}

.classifieds-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.newspaper-next-issue {
    text-align: center;
    padding: 0.5rem 0;
}

.next-issue-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #1a1208;
    margin-bottom: 0.3rem;
}

.next-issue-text {
    font-family: 'EB Garamond', Georgia, serif;
    font-style: italic;
    font-size: 0.85rem;
    color: #5a4a3a;
    letter-spacing: 0.5px;
}

.column-aside {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #c4b89a;
}

.column-aside-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1a1208;
    margin-bottom: 0.5rem;
    text-align: center;
}

.quidditch-standings {
    width: 100%;
    border-collapse: collapse;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 0.85rem;
    color: #2a2218;
}

.quidditch-standings th {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #2a2218;
    padding: 0.2rem 0.4rem;
    text-align: left;
}

.quidditch-standings td {
    padding: 0.2rem 0.4rem;
    border-bottom: 1px solid #c4b89a;
}

.aside-letter {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 0.82rem;
    line-height: 1.4;
    color: #3a3228;
    margin-bottom: 0.4rem;
}

.aside-reply {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 0.82rem;
    line-height: 1.4;
    color: #3a3228;
}

.column-aside .ad-border {
    border: 2px solid #2a2218;
    padding: 0.8rem;
    text-align: center;
}

.column-aside .ad-title {
    font-family: 'UnifrakturMaguntia', cursive;
    font-size: 1.1rem;
    color: #1a1208;
    margin-bottom: 0.3rem;
}

.column-aside .ad-text {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 0.85rem;
    color: #2a2218;
    margin-bottom: 0.2rem;
}

.column-aside .ad-small {
    font-size: 0.75rem;
    color: #6a5a4a;
    margin-bottom: 0;
}

.secondary-divider {
    height: 1px;
    background: #c4b89a;
    margin: 1rem 0;
}

.article-image-placeholder--portrait {
    float: right;
    width: 30%;
    aspect-ratio: 1 / 1;
    margin: 0 0 1rem 1.5rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-image-placeholder--vertical {
    aspect-ratio: 2 / 3;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-video-wrapper {
    position: relative;
    margin: 1rem 0;
}

.article-video-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(216, 200, 168, 0.25);
    mix-blend-mode: multiply;
    pointer-events: none;
}

.article-video {
    width: 100%;
    display: block;
    filter: sepia(0.15) saturate(0.7) contrast(0.9);
}

.article-video--vertical {
    aspect-ratio: 7 / 10;
}

.article-video-wrapper--portrait {
    float: right;
    width: 30%;
    margin: 0 0 0 1.5rem;
    overflow: hidden;
    border: none;
}

.article-video-wrapper--portrait .article-video {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    filter: sepia(0.15) saturate(0.7) contrast(0.75) brightness(0.85);
    mask-image: radial-gradient(ellipse 65% 65% at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 65% 65% at center, black 40%, transparent 100%);
}

.article-video-wrapper--portrait::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.4;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

.article-video-wrapper--portrait::after {
    background: radial-gradient(ellipse 60% 60% at center, transparent 30%, rgba(42, 34, 24, 0.4) 100%),
                rgba(216, 200, 168, 0.25);
    mix-blend-mode: multiply;
}

.article-video-wrapper--textured {
    overflow: hidden;
}

.article-video-wrapper--textured .article-video {
    filter: sepia(0.15) saturate(0.7) contrast(0.85) brightness(1.1);
}

.article-video-wrapper--textured::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.4;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

.classified-ad {
    border: 1px solid #b8a88a;
    padding: 0.6rem 0.8rem;
}

.classified-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1a1208;
    margin-bottom: 0.3rem;
}

.classified-text {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 0.82rem;
    line-height: 1.4;
    color: #3a3228;
}
