/*
Theme Name:Comical
Theme URI: https://martymilagros.com
Author: Squeaker Media
Author URI: https://squeakermedia.com
Description: Custom theme for Marty Milagros Dooms the Earth by Veronica V. Jones. Built from the original single-page launch site's visual system: comic-panel backgrounds, Bangers display type, and a per-section tint palette.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: Unlicense
Text Domain: marty-milagros
*/

/* =========================================================
   1. CUSTOM PROPERTIES — the whole palette lives here.
   Change a value once, it updates everywhere.
   ========================================================= */
:root {
    /* Type */
    --font-display: 'Bangers', system-ui, sans-serif;
    --font-body: 'Montserrat', sans-serif;

    /* Core text/link colors (scoped, not blanket) */
    --color-text: #ffffff;
    --color-text-muted: rgba(255, 255, 255, 0.75);
    --color-link: #ffcc00;
    --color-link-hover: #ffe066;

    /* Display type treatment */
    --color-display: #ffcc00;
    --color-display-shadow: #602010;

    /* CTA */
    --color-cta-bg: #e63946;
    --color-cta-hover-bg: #ffcc00;
    --color-cta-hover-text: #000000;

    /* Section tint system — carried forward from the original site's
       ID-based color system (#hero, #conflict, #friends, #cta, #author) */
    --tint-space-blue: #0a152ad0;
    --tint-blood-red: #2a0a0bd0;
    --tint-forest-green: #0a2a1ad0;
    --tint-dark-gold: #0a2420d0;
    --tint-void-purple: #1a0a2ad0;

    /* Layout */
    --content-max-width: 1400px;
    --focus-ring: 3px solid var(--color-link);
}

/* =========================================================
   2. RESET & BASE
   ========================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: #000;
    line-height: 1.6;
}

img { max-width: 100%; display: block; }

/* =========================================================
   3. ACCESSIBILITY BASICS
   ========================================================= */

/* Visible focus state everywhere — the original site had none.
   :focus-visible keeps mouse users from seeing a ring on click
   while keyboard users always get one. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
    outline: var(--focus-ring);
    outline-offset: 3px;
}

/* Skip link — hidden until focused, then jumps above the header */
.skip-link {
    position: absolute;
    top: -999px;
    left: 0;
    background: #000;
    color: var(--color-link);
    padding: 1rem 1.5rem;
    z-index: 1000;
    font-family: var(--font-body);
    font-weight: 700;
    text-decoration: underline;
}

.skip-link:focus {
    top: 0;
}

/* Screen-reader-only text (menu labels, form labels, etc.) */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

/* =========================================================
   4. SITE HEADER / FOOTER
   ========================================================= */
.site-header {
    background: #000;
    border-bottom: 1px solid rgba(255, 204, 0, 0.25);
    padding: 1rem 2rem;
    position: relative;
    z-index: 100;
}

.site-header-inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-branding a {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    color: var(--color-display);
    text-shadow: 2px 2px 0px var(--color-display-shadow);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.primary-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.primary-nav a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 0.25rem;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
    color: var(--color-link);
    border-bottom-color: var(--color-link);
}

.primary-nav a[aria-current="page"] {
    color: var(--color-link);
    border-bottom-color: var(--color-link);
}

.menu-toggle {
    display: none;
}

.site-footer {
    background: #000;
    color: var(--color-text-muted);
    text-align: center;
    padding: 2rem;
    font-size: 0.85rem;
}

.site-footer a {
    color: var(--color-link);
}

/* =========================================================
   5. MAIN CONTENT WRAPPER
   ========================================================= */
main#main {
    display: block;
}

/* Default readable styling for plain block-editor pages
   (About, Contact) that aren't built from .module sections.
   Dark background + white text + real link states, scoped
   to this container rather than applied globally. */
.page-content {
    background-color: #0a0a0a;
    color: var(--color-text);
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.page-content a {
    color: var(--color-link);
    text-decoration: underline;
}

.page-content a:hover,
.page-content a:focus-visible {
    color: var(--color-link-hover);
}

.page-content h1,
.page-content h2,
.page-content h3 {
    font-family: var(--font-display);
    color: var(--color-display);
    text-shadow: 3px 3px 0px var(--color-display-shadow);
    text-transform: uppercase;
    margin: 1.5rem 0 0.75rem;
    line-height: 1.1;
}

.page-content h1:first-child,
.page-content h2:first-child {
    margin-top: 0;
}

.page-content p,
.page-content ul,
.page-content ol {
    margin-bottom: 1rem;
}

/* =========================================================
   6. RESPONSIVE NAV (small screens)
   ========================================================= */
@media (max-width: 700px) {
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: 1px solid var(--color-link);
        color: var(--color-link);
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        border-radius: 6px;
        cursor: pointer;
    }

    .primary-nav {
        flex-basis: 100%;
    }

    .primary-nav ul {
        display: none;
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding-top: 1rem;
    }

    .primary-nav.is-open ul {
        display: flex;
    }

    .primary-nav a {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

 .cta-button {
    margin: 0.5rem 1rem;
    padding: 1.2rem 3.5rem;
    background-color: #e63946;
    text-decoration: none;
    font-family: 'Bangers', system-ui;
    font-size: 1.5rem;
    border-radius: 8px;
    display: inline-block;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

/* !important needed here to override the nuclear white rule on hover */
.cta-button:hover {
    transform: scale(1.1) rotate(-2deg);
    background-color: #ffcc00 !important;
    color: #000 !important;
}
