/* Clone.fyi inspired styling */
*,*::before,*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Removed unused IBM Plex Mono font import */

@font-face {
    font-family: 'PressStart2P';
    src: url('PressStart2P-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.5;
    background-color: #ffffff;
    color: #000000;
    cursor: none;
    -webkit-font-smoothing: antialiased;
}

/* Text selection styling - pen underline effect */
::selection {
    background-color: rgba(255, 255, 0, 0.3);
    color: #000000;
    text-decoration: underline;
    text-decoration-color: #000000;
    text-decoration-thickness: 2px;
}

::-moz-selection {
    background-color: rgba(255, 255, 0, 0.3);
    color: #000000;
    text-decoration: underline;
    text-decoration-color: #000000;
    text-decoration-thickness: 2px;
}

/* Animated ASCII cursor */
.animated-cursor {
    position: fixed;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: bold;
    color: #000000;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-8px, -8px);
}

.container {
    max-width: 72rem;
    margin: 0 auto;
    padding-inline: 1rem;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.25rem 0;
}

.settings {
    margin-top: 1rem;
    font-size: 0.875rem;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
    font-family: 'Average', serif;
}

.checkbox-label input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.header h1 {
    font-family: 'Linden Hill', serif;
    font-size: 3rem;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0;
    color: #000000;
    margin-bottom: 8px;
    text-transform: none;
    position: relative;
}



.headline-link {
    margin-top: 15px;
    text-align: center;
}

.headline-link a {
    font-size: 1.25rem;
    text-decoration: underline;
    font-weight: bold;
    animation: 1s step-start infinite blink;
}



@keyframes blink{0%,49%{opacity:1}50%,to{opacity:.7}}

/* Main content */
.main {
    margin-bottom: 1.25rem;
}


/* Three Column Layout */
.columns-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

@media (min-width: 48rem) {
    .columns-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

@media (min-width: 64rem) {
    .columns-container {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 1.5rem;
    }
}

.column {
    min-width: 0;
}

/* News Items */
.news-item {
    margin-bottom: 1rem;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: flex-start;
    gap: 0.5rem;
}

.favicon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.favicon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.news-content {
    flex: 1;
    min-width: 0;
}

.news-title {
    font-family: 'Average', serif;
    font-weight: 500;
    color: #047cfc;
    text-decoration: none;
    font-size: 1.2rem;
    line-height: 1.56;
    display: block;
    margin-bottom: 0.25rem;
}

.news-title:hover {
    color: #0366d6;
}

.news-summary {
    font-family: 'Average', serif;
    color: #333333;
    line-height: 1.5;
    margin-bottom: 0.25rem;
}

.news-meta {
    font-family: 'Average', serif;
    font-size: 0.875rem;
    color: #666666;
}

.news-domain {
    color: #999999;
}

.news-time {
    color: #666666;
    margin-right: 0.5rem;
}

/* Footer */
.footer {
    text-align: center;
    font-size: 0.875rem;
    color: #666666;
    margin-top: 2.5rem;
    padding-bottom: 2rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-icons a {
    display: inline-block;
    width: 24px;
    height: 24px;
    color: #000000;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-icons a:nth-child(2) {
    margin-left: -5px;
}

.social-icons a:hover {
    transform: scale(1.1);
    opacity: 0.7;
}

.social-icons svg {
    width: 100%;
    height: 100%;
    display: block;
}

.footer-description {
    font-family: 'Average', serif;
    font-size: 1rem;
    margin-bottom: 1.25rem;
    color: #333333;
}

.footer-credits {
    font-family: 'Average', serif;
    font-size: 0.75rem;
    color: #999999;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.footer-credits a {
    color: #999999;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-credits a:hover {
    color: #333333;
}

.footer-credits a:visited {
    color: #999999;
}

/* ASCII Click Animation */
.ascii-particle {
    position: fixed;
    font-size: 14px;
    color: #000000;
    pointer-events: none;
    z-index: 1000;
    font-family: monospace;
    font-weight: bold;
    animation: retro-float 0.8s ease-out forwards;
}

@keyframes retro-float {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1) translateY(-15px);
    }
    100% {
        opacity: 0;
        transform: scale(0.9) translateY(-30px);
    }
}

/* Error and empty states */
.error-item,
.empty-item {
    color: #666666;
    font-style: italic;
    padding: 1.25rem;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 800px) {
    .container {
        padding-inline: 1rem;
    }

    .header h1 {
        font-size: 2rem;
        letter-spacing: 1px;
    }
}

@media (max-width: 600px) {
    .header h1::before,
    .header h1::after {
        display: none;
    }

    .header h1 {
        font-size: 1.75rem;
        letter-spacing: 0;
    }

    .news-item {
        margin-bottom: 1rem;
    }
}

/* Web 1.0 link styling */
a {
    color: #047cfc;
    text-decoration: underline;
}

a:visited {
    color: #fc5c25;
}

a:hover {
    color: #0366d6;
}