@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier Prime', monospace;
    background: #f8f8f8;
    color: #000;
    line-height: 1.4;
    padding: 0 0 40px 0;
}

.zine-container {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    min-height: 100vh;
}

@media (min-width: 768px) {
    .zine-container {
        margin: 20px auto;
        border: 2px solid #000;
        min-height: calc(100vh - 40px);
    }
}

.masthead {
    background: #000;
    color: white;
    padding: 20px 16px;
    text-align: center;
    border-bottom: 4px solid #000;
}

.title {
    font-size: clamp(40px, 15vw, 80px);
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 16px;
    letter-spacing: 1px;
    opacity: 0.8;
}

.issue-info {
    font-size: 16px;
    margin-top: 8px;
    border-top: 1px solid #333;
    padding-top: 8px;
}

.content {
    padding: 40px 16px 0 16px;
}

.section-header {
    background: #000;
    color: white;
    padding: 8px 16px;
    margin: 20px -16px 16px -16px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
}

.article,
.interview,
.article-with-sidebar,
.article-with-photo,
.advice-column {
    margin-top: 32px;
    margin-bottom: 32px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
}

.article:first-child,
.interview:first-child,
.article-with-sidebar:first-child,
.article-with-photo:first-child,
.advice-column:first-child {
    margin-top: 0;
}

.article:last-child {
    border-bottom: none;
}

.headline {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
    text-transform: uppercase;
}

.big-headline {
    font-size: 40px;
    letter-spacing: 1px;
}

.byline {
    font-size: 16px;
    color: #666;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.body-text {
    font-size: 18px;
    margin-bottom: 12px;
}

.pull-quote {
    background: #f0f0f0;
    border-left: 4px solid #000;
    padding: 16px;
    margin: 32px 0 16px 0;
    font-size: 20px;
    font-weight: 700;
    font-style: italic;
    text-align: center;
}

.micro-content,
.weather {
    background: #000;
    color: white;
    padding: 24px 20px;
    margin: 24px -16px;
    font-size: 18px;
    text-align: center;
}

.weather {
    padding: 16px;
    margin: 16px -16px;
}

.micro-content .label,
.weather .label {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    opacity: 0.7;
}

.weather .label {
    letter-spacing: 2px;
    opacity: 0.8;
}

.weather .description {
    font-size: 18px;
    font-style: italic;
}

.list-item {
    border-bottom: 1px dotted #ccc;
    padding: 8px 0;
    font-size: 16px;
    display: flex;
    gap: 12px;
}

.list-item:last-child {
    border-bottom: none;
}

.number {
    font-weight: 700;
    font-size: 22px;
    flex-shrink: 0;
    width: 24px;
}

.author-photo {
    width: 75px;
    height: 94px;
    border-radius: 4px;
    border: 2px solid #000;
    background: #f0f0f0;
}

.poem {
    text-align: center;
    font-style: italic;
    padding: 20px 0;
    border: 2px solid #000;
    margin: 16px 0;
}

.poem-line {
    font-size: 18px;
    margin-bottom: 4px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: #000;
    margin: 32px -16px 16px -16px;
}

.stat {
    background: white;
    padding: 16px;
    text-align: center;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.footer {
    background: #000;
    color: white;
    padding: 16px;
    margin: 20px -16px 0 -16px;
    text-align: center;
    font-size: 16px;
}

/* Article with sidebar/photo variants */
.article-with-sidebar,
.article-with-photo {
    position: relative;
}

.article-with-sidebar .author-photo,
.article-with-photo .author-photo {
    position: absolute;
    left: 0;
    top: 0;
}

.article-with-sidebar .headline,
.article-with-sidebar .byline,
.article-with-photo .headline,
.article-with-photo .byline {
    margin-left: 91px;
}

.article-with-sidebar .body-text,
.article-with-photo .body-text {
    clear: both;
    margin-left: 0;
}

.article-with-sidebar .body-text:first-of-type {
    margin-top: 20px;
}

.article-with-photo .body-text:first-of-type {
    margin-top: 60px;
}

.sidebar-box {
    background: #f8f8f8;
    border: 2px solid #000;
    padding: 12px;
    margin: 16px 0;
}

.sidebar-box .sidebar-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-box .sidebar-item {
    font-size: 16px;
    padding: 6px 0;
    border-bottom: 1px dotted #ccc;
}

.sidebar-box .sidebar-item:last-child {
    border-bottom: none;
}

.sidebar-box .sidebar-number {
    font-weight: 700;
    margin-right: 8px;
}

.image-block {
    margin: 32px 0;
}

.image-block img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transition: opacity 0.2s;
}

.image-block img:hover {
    opacity: 0.9;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.lightbox-close:hover {
    color: #ccc;
}

.image-square {
    aspect-ratio: 1 / 1;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #999;
}

.image-rectangle {
    aspect-ratio: 16 / 9;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #999;
}

/* Interview component */
.interview-q {
    margin-bottom: 16px;
    padding-left: 20px;
    border-left: 4px solid #000;
}

.interview-a {
    margin-bottom: 20px;
    background: #f8f8f8;
    padding: 12px;
    margin-left: 20px;
}

.interview-q .label,
.interview-a .label {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.interview-q .text {
    font-size: 18px;
    font-style: italic;
}

.interview-a .text {
    font-size: 18px;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.experimental-text {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    transform: rotate(-2deg);
    margin: 32px 0 20px 0;
    border: 3px solid #000;
    padding: 20px;
}

.guide-block,
.puzzle-block {
    margin-top: 32px;
    margin-bottom: 32px;
    border: 3px solid #000;
    padding: 24px 20px;
    background: white;
}

.puzzle-block {
    text-align: center;
}

.guide-preheader {
    font-size: 18px;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.guide-title {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.1;
}

.guide-subhead {
    font-size: 20px;
    text-align: center;
    font-style: italic;
    padding: 16px 0;
    margin: 20px 0;
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
}

.guide-body {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.puzzle-title {
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.puzzle-intro,
.puzzle-prompt {
    font-size: 18px;
    font-style: italic;
    line-height: 1.5;
}

.puzzle-intro {
    margin-bottom: 20px;
}

.puzzle-prompt {
    margin-bottom: 16px;
}

.puzzle-divider {
    border-top: 2px dashed #000;
    margin: 20px 0;
}

.puzzle-word {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: 4px;
    margin: 20px 0;
    line-height: 1;
    position: relative;
    display: inline-block;
}

.puzzle-word-cover {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #000;
    color: white;
    padding: 20px 60px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
    transition: all 0.4s ease-out;
    border: 2px solid #000;
    width: 100%;
    text-align: center;
}

.puzzle-word-cover:hover {
    background: #222;
}

.puzzle-word-cover.revealed {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.2);
    pointer-events: none;
}

.puzzle-word-cover.revealed::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: transparent;
    transform: translate(-50%, -50%) scale(0);
    animation: dissolve 0.4s ease-out forwards;
}

@keyframes dissolve {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.puzzle-hints {
    margin-top: 20px;
    text-align: left;
    padding: 0 20px;
}

.puzzle-hint {
    font-size: 16px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.puzzle-hint strong {
    font-weight: 700;
}

/* ========================================
   SITE-LEVEL COMPONENTS (Header, Footer, Ticker)
   ======================================== */

/* Site Header / Navigation */
.site-header-wrapper {
    background: #000;
    border-bottom: 4px solid #000;
}

.site-masthead {
    max-width: 500px;
    margin: 0 auto;
    background: #000;
    color: white;
    padding: 20px 16px;
    text-align: center;
}

body.full-width .site-masthead {
    max-width: 100%;
}

body.full-width .footer-subscribe,
body.full-width .footer-links,
body.full-width .footer-copyright {
    max-width: 100%;
}

.site-nav {
    font-size: 14px;
    letter-spacing: 1px;
    padding: 12px 16px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    position: sticky;
    top: 0;
    background: #000;
    z-index: 100;
}

.site-nav a {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s;
}

.site-nav a:hover {
    opacity: 0.7;
}

.nav-separator {
    color: #666;
    margin: 0 4px;
}

.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    background-color: #000;
    border: 2px solid white;
    min-width: 200px;
    z-index: 1000;
    top: 100%;
    margin-top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.nav-dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    border-bottom: 1px solid #333;
}

.nav-dropdown-content a:last-child {
    border-bottom: none;
}

.nav-dropdown-content a:hover {
    background-color: #222;
}

.nav-dropdown:hover .nav-dropdown-content,
.nav-dropdown-content:hover {
    display: block;
}

/* Site Footer */
.site-footer {
    background: #f0f0f0;
    border-top: 4px solid #000;
    padding: 40px 20px 80px 20px;
}

@media (min-width: 768px) {
    .site-footer {
        padding: 60px 40px 100px 40px;
    }
}

.footer-subscribe {
    background: white;
    border: 2px solid #000;
    padding: 24px;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.subscribe-heading {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.subscribe-subtext {
    font-size: 14px;
    text-align: center;
    margin-bottom: 20px;
    color: #666;
}

.subscribe-form {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-direction: column;
}

@media (min-width: 500px) {
    .subscribe-form {
        flex-direction: row;
    }
}

.subscribe-input {
    flex: 1;
    padding: 12px;
    border: 2px solid #000;
    font-family: 'Courier Prime', monospace;
    font-size: 14px;
}

.subscribe-input:focus {
    outline: none;
    border-color: #666;
}

.subscribe-button {
    padding: 12px 24px;
    background: #000;
    color: white;
    border: 2px solid #000;
    font-family: 'Courier Prime', monospace;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.subscribe-button:hover {
    background: white;
    color: #000;
}

.subscribe-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.subscribe-message {
    padding: 12px;
    margin-bottom: 12px;
    border: 2px solid;
    font-size: 14px;
    text-align: center;
}

.subscribe-message.success {
    background: #e8f5e9;
    border-color: #2e7d32;
    color: #1b5e20;
}

.subscribe-message.error {
    background: #ffebee;
    border-color: #c62828;
    color: #b71c1c;
}

.subscribe-fine-print {
    font-size: 12px;
    text-align: center;
    color: #666;
    margin-top: 12px;
}

.footer-links {
    text-align: center;
    font-size: 14px;
    margin-bottom: 20px;
    padding: 16px 0;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.footer-links a {
    color: #000;
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer-links a:hover {
    opacity: 0.6;
}

.footer-separator {
    margin: 0 8px;
    color: #999;
}

.footer-social {
    text-align: center;
    margin: 24px auto;
    max-width: 600px;
}

.social-link {
    display: inline-block;
    color: #000;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.social-link svg {
    display: block;
}

.footer-copyright {
    text-align: center;
    font-size: 12px;
    color: #666;
    letter-spacing: 1px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Scrolling Ticker Bar */
.ticker-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #000;
    color: white;
    height: 40px;
    overflow: hidden;
    z-index: 9999;
    border-top: 2px solid white;
}

.ticker-content {
    display: flex;
    height: 100%;
    align-items: center;
    font-size: 14px;
    letter-spacing: 1px;
    will-change: transform;
}

/* Welcome Box (for intro message above issue content) */
.welcome-box {
    max-width: 500px;
    margin: 0 auto 40px auto;
    background: #f8f8f8;
    border: 2px solid #000;
    padding: 24px 20px;
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
}

.welcome-box .welcome-line {
    margin-bottom: 12px;
}

.welcome-box .welcome-line:last-child {
    margin-top: 20px;
    font-style: italic;
    opacity: 0.8;
}

/* Issue Info Bar (sits between site header and content) */
.issue-info-bar {
    max-width: 500px;
    margin: 40px auto 0 auto;
    background: #000;
    color: white;
    text-align: center;
    padding: 12px 16px;
    font-size: 16px;
    letter-spacing: 1px;
    border-bottom: 4px solid #000;
}

@media (min-width: 768px) {
    .issue-info-bar {
        border-left: 2px solid #000;
        border-right: 2px solid #000;
    }
}

/* Advice Column Component */
.advice-column {
    padding-top: 16px;
}

.advice-header {
    text-align: center;
    margin-bottom: 24px;
}

.advice-header .column-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.advice-header .columnist {
    font-size: 16px;
    font-style: italic;
}

.question-block {
    background: #f8f8f8;
    padding: 16px;
    margin-bottom: 20px;
    border-left: 6px solid #000;
}

.question-block .label,
.answer-block .label {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.question-block .label {
    margin-bottom: 8px;
}

.answer-block .label {
    margin-bottom: 12px;
}

.question-block .signature {
    font-size: 16px;
    margin-top: 8px;
    text-align: right;
    font-style: italic;
}

.question-text,
.answer-text {
    font-size: 18px;
    line-height: 1.6;
}

.question-text {
    line-height: 1.5;
}

.answer-text {
    margin-bottom: 16px;
}

.answer-block {
    padding-left: 20px;
}

.divider {
    border-top: 2px dotted #ccc;
    margin: 24px 0;
}

/* Novelties Grid */
.novelties-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.novelty-card {
    background: #f8f8f8;
    border: 3px solid #000;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    color: #000;
    transition: all 0.3s ease;
    cursor: pointer;
    display: block;
}

.novelty-card:hover {
    background: #000;
    color: white;
}

.novelty-card.coming-soon {
    background: #e0e0e0;
    border-color: #999;
    color: #666;
    cursor: default;
}

.novelty-card.coming-soon:hover {
    background: #d0d0d0;
    color: #666;
}

.novelty-title {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.novelty-description {
    font-size: 14px;
    line-height: 1.4;
}

/* Rant-o-Matic Styles */
.rant-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 4px solid black;
    padding-bottom: 20px;
}

.rant-header h1 {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 10px;
}

.rant-header .subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.letter-container {
    background: white;
    border: 3px solid black;
    padding: 30px;
    margin-bottom: 30px;
    font-size: 1.1rem;
    position: relative;
}

.letter-header {
    text-align: right;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.blank {
    display: inline-block;
    min-width: 120px;
    padding: 2px 8px;
    border-bottom: 3px solid black;
    margin: 0 4px;
    font-weight: bold;
    text-align: center;
    position: relative;
    transition: all 0.2s ease;
    cursor: pointer;
}

.blank.empty {
    background: #e0e0e0;
    border: 2px solid #999;
    border-radius: 2px;
}

.blank.empty:hover {
    background-color: #d0d0d0;
    border-color: #666;
}

.blank.filled {
    background: black;
    color: white;
    animation: snapIn 0.3s ease;
}

.blank.active {
    background: #ddd;
    z-index: 100;
}

@keyframes snapIn {
    0% {
        transform: scale(1.2);
    }
    50% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

.choice-fan {
    position: absolute;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: 500px;
    z-index: 1000;
    animation: fanOut 0.3s ease;
}

.choice-fan.stacked {
    grid-template-columns: 1fr;
    max-width: 250px;
}

@keyframes fanOut {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.choice {
    background: white;
    border: 3px solid black;
    padding: 8px 16px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.choice:hover {
    background: black;
    color: white;
    transform: translateY(-4px);
}

.rant-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.rant-actions button {
    background: black;
    color: white;
    border: none;
    padding: 15px 30px;
    font-family: 'Courier Prime', monospace;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

.rant-actions button:hover {
    background: white;
    color: black;
    outline: 3px solid black;
}

.rant-actions button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.letter-container .signature {
    margin-top: 30px;
    text-align: right;
    font-style: italic;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 999;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 500px) {
    .novelties-grid {
        grid-template-columns: 1fr;
    }

    .title {
        font-size: 48px;
        letter-spacing: 2px;
    }

    .puzzle-word {
        font-size: 32px;
        letter-spacing: 2px;
    }

    .puzzle-word-cover {
        font-size: 12px;
        padding: 15px 30px;
    }

    .big-headline {
        font-size: 28px;
    }

    .advice-header .big-headline {
        font-size: 24px;
    }

    .column-name {
        font-size: 12px;
    }

    .experimental-text {
        font-size: 22px;
        padding: 16px 12px;
    }

    .guide-title {
        font-size: 28px;
        line-height: 1.2;
    }

    .lightbox-close {
        font-size: 32px;
        right: 15px;
    }

    .content {
        padding: 20px 16px 0 16px;
    }

    .sidebar-box {
        padding: 12px 8px;
    }

    .rant-header h1 {
        font-size: 1.8rem;
    }

    .letter-container {
        padding: 20px;
        font-size: 1rem;
    }

    .blank {
        min-width: 100px;
    }

    .rant-actions button {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .choice {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
}
