
:root {
    --ink: #15122B;
    --pink: #FF2E88;
    --cyan: #19C3FF;
    --sun: #FFD23F;
    --paper: #F4F0FF;
    --white: #fff;
    --bd: 3px solid var(--ink);
    --sh: 5px 5px 0 var(--ink);
}

/* ========================================
   RESET & BASE
======================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font: 17px/1.65 Nunito, system-ui, sans-serif;
    color: var(--ink);
    background: var(--paper) radial-gradient(
        circle,
        rgba(21, 18, 43, .09) 1.5px,
        transparent 1.6px
    ) 0 0 / 18px 18px;
}

/* ========================================
   TYPOGRAPHY
======================================== */

h1,
h2,
h3 {
    font-family: Bangers, Impact, sans-serif;
    font-weight: 400;
    letter-spacing: .04em;
    line-height: 1.05;
    margin: 0 0 .5em;
}

h1 {
    font-size: clamp(2.8rem, 8vw, 5.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: 1.6rem;
}

a {
    color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 4px solid var(--cyan);
    outline-offset: 2px;
}

/* ========================================
   LAYOUT
======================================== */

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   MAIN HEADER & NAVIGATION
======================================== */

header.top {
    background: var(--sun);
    border-bottom: var(--bd);
    position: sticky;
    top: 0;
    z-index: 100;
}

header.top .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.logo img {
    height: 52px;
    display: block;
}

nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

nav a {
    font-family: Bangers, Impact, sans-serif;
    letter-spacing: .05em;
    font-size: 1.2rem;
    text-decoration: none;
    padding: 4px 12px;
    border: 3px solid transparent;
    border-radius: 10px;
}

nav a:hover,
nav a[aria-current] {
    background: var(--white);
    border-color: var(--ink);
}

nav a.cta {
    background: var(--pink);
    color: #fff;
    border-color: var(--ink);
    box-shadow: 3px 3px 0 var(--ink);
}

/* ========================================
   BUTTONS
======================================== */

.btn {
    display: inline-block;
    font-family: Bangers, Impact, sans-serif;
    font-size: 1.4rem;
    letter-spacing: .05em;
    text-decoration: none;
    padding: 8px 22px;
    border: var(--bd);
    border-radius: 12px;
    background: var(--pink);
    color: #fff;
    box-shadow: var(--sh);
    cursor: pointer;
    transition: transform .1s, box-shadow .1s;
}

.btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 3px 3px 0 var(--ink);
}

.btn.alt {
    background: var(--white);
    color: var(--ink);
}

.btn.cy {
    background: var(--cyan);
    color: var(--ink);
}

/* ========================================
   HERO SECTION
======================================== */

.hero {
    background: var(--cyan) radial-gradient(
        circle,
        rgba(21, 18, 43, .22) 2.5px,
        transparent 2.6px
    ) 0 0 / 16px 16px;
    border-bottom: var(--bd);
    padding: 56px 0 64px;
    overflow: hidden;
}

.hero .wrap {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 30px;
    align-items: center;
}

.hero h1 {
    color: var(--white);
    -webkit-text-stroke: 3px var(--ink);
    paint-order: stroke fill;
    text-shadow: 5px 5px 0 var(--ink);
    transform: rotate(-1.5deg);
}

.bubble {
    background: var(--white);
    border: var(--bd);
    border-radius: 26px;
    padding: 18px 22px;
    box-shadow: var(--sh);
    position: relative;
    font-weight: 700;
}

.bubble:after {
    content: "";
    position: absolute;
    left: 34px;
    bottom: -22px;
    width: 30px;
    height: 30px;
    background: var(--white);
    border-right: var(--bd);
    border-bottom: var(--bd);
    transform: skewY(35deg) rotate(0);
}

.search {
    display: flex;
    gap: 10px;
    margin: 26px 0 8px;
    flex-wrap: wrap;
}

input,
select,
textarea {
    font: inherit;
    padding: 11px 14px;
    border: var(--bd);
    border-radius: 12px;
    background: var(--white);
    color: var(--ink);
    width: 100%;
}

.search input {
    flex: 1 1 220px;
    width: auto;
    box-shadow: var(--sh);
}

.pow {
    justify-self: center;
    width: min(300px, 80%);
    aspect-ratio: 1;
    background: var(--sun);
    border: var(--bd);
    clip-path: polygon(
        50% 0, 61% 20%, 82% 9%, 78% 33%,
        100% 38%, 83% 54%, 98% 74%, 74% 74%,
        70% 98%, 50% 83%, 30% 98%, 26% 74%,
        2% 74%, 17% 54%, 0 38%, 22% 33%,
        18% 9%, 39% 20%
    );
    display: grid;
    place-items: center;
    font-family: Bangers, Impact, sans-serif;
    font-size: 2.4rem;
    text-align: center;
    line-height: 1;
    transform: rotate(8deg);
    color: var(--ink);
}

/* ========================================
   SECTIONS
======================================== */

section {
    padding: 56px 0;
}

/* State directory */

.states {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
}

.state {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: var(--bd);
    border-radius: 12px;
    padding: 10px 14px;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 4px 4px 0 var(--ink);
    transition: transform .1s;
}

.state:hover {
    transform: translate(2px, 2px) rotate(-1deg);
    background: var(--sun);
}

.count {
    background: var(--pink);
    color: #fff;
    border: 2px solid var(--ink);
    border-radius: 99px;
    padding: 0 10px;
    font-size: .85rem;
    min-width: 30px;
    text-align: center;
}

.count.zero {
    background: var(--paper);
    color: var(--ink);
    opacity: .7;
}

/* Comic store cards */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
}

.card {
    background: var(--white);
    border: var(--bd);
    border-radius: 16px;
    box-shadow: var(--sh);
    overflow: hidden;
}

.card header {
    background: var(--pink);
    color: #fff;
    border-bottom: var(--bd);
    padding: 10px 16px;
}

.card header h3 {
    margin: 0;
    -webkit-text-stroke: 1px var(--ink);
    text-shadow: 2px 2px 0 var(--ink);
}

.card .body {
    padding: 14px 16px;
}

.card p {
    margin: .2em 0;
}

.card .acts {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.card .acts a {
    font-weight: 800;
    font-size: .95rem;
    text-decoration: none;
    border: var(--bd);
    border-radius: 10px;
    padding: 3px 12px;
    background: var(--sun);
}

.card .acts a:hover {
    background: var(--cyan);
}

.hours {
    font-size: .9rem;
    margin-top: 10px;
    border-top: 2px dashed var(--ink);
    padding-top: 8px;
}

.hours div {
    display: flex;
    justify-content: space-between;
}

.empty {
    background: var(--white);
    border: var(--bd);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--sh);
}

/* Dark strip and content panels */

.strip {
    background: var(--ink);
    color: #fff;
    border-block: var(--bd);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
}

.panel {
    background: var(--white);
    border: var(--bd);
    border-radius: 16px;
    padding: 22px;
    box-shadow: var(--sh);
}

.strip .panel {
    color: var(--ink);
}

/* ========================================
   INNER PAGES & TEXT
======================================== */

.page {
    padding: 48px 0 70px;
}

.page h1 {
    font-size: clamp(2.6rem, 6vw, 4.2rem);
    color: var(--pink);
    -webkit-text-stroke: 2px var(--ink);
    paint-order: stroke fill;
    text-shadow: 4px 4px 0 var(--ink);
}

.prose {
    background: var(--white);
    border: var(--bd);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--sh);
    max-width: 820px;
}

.prose h2 {
    font-size: 2rem;
    margin-top: 1.2em;
}

.prose h2:first-child {
    margin-top: 0;
}

/* ========================================
   FORMS & MESSAGES
======================================== */

form.f {
    display: grid;
    gap: 16px;
    max-width: 720px;
}

.f label {
    font-weight: 800;
    display: grid;
    gap: 5px;
}

.f .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.hp {
    position: absolute;
    left: -9999px;
}

.msg {
    padding: 14px 18px;
    border: var(--bd);
    border-radius: 12px;
    font-weight: 800;
    display: none;
}

.msg.ok {
    display: block;
    background: #b8f5c9;
}

.msg.err {
    display: block;
    background: #ffc2c2;
}

/* ========================================
   BREADCRUMBS
======================================== */

.crumbs {
    font-weight: 800;
    margin-bottom: 14px;
}

.crumbs a {
    text-decoration: none;
    border-bottom: 3px solid var(--pink);
}

/* ========================================
   FOOTER
======================================== */

footer {
    background: var(--ink);
    color: #fff;
    padding: 40px 0 24px;
    border-top: var(--bd);
}

footer .cols {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
}

footer img {
    height: 50px;
}

footer h4 {
    font-family: Bangers, Impact, sans-serif;
    letter-spacing: .06em;
    font-size: 1.4rem;
    color: var(--sun);
    margin: 0 0 6px;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer a {
    color: #fff;
}

footer small {
    display: block;
    margin-top: 28px;
    opacity: .75;
}

/* ========================================
   MOBILE RESPONSIVE STYLES
======================================== */

@media (max-width: 760px) {
    /*
       Keep the main header at the top on mobile.
       The inner wrap can still stack vertically.
    */

    header.top {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .hero .wrap,
    footer .cols,
    .f .row {
        grid-template-columns: 1fr;
    }

    .pow {
        display: none;
    }

    header.top .wrap {
        flex-direction: column;
    }
}

/* ========================================
   REDUCED MOTION ACCESSIBILITY
======================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }

    html {
        scroll-behavior: auto;
    }
}
