/* ========================================
   Frank Eyevee â€” Web 1.0 notebook paper, typewriter
   ======================================== */

   html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Special Elite', 'Courier New', monospace;
    color: #1f3a8a;

    background-color: #f5efd8;
    background-image:
        linear-gradient(to right, transparent 60px, #d4a8a8 60px, #d4a8a8 61px, transparent 61px),
        repeating-linear-gradient(
            to bottom,
            transparent 0,
            transparent 27px,
            #a8b8d4 27px,
            #a8b8d4 28px
        );
    background-attachment: fixed;
}

.page {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 20px 60px 80px;
    box-sizing: border-box;
}

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

.hero-name {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-weight: 400;
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    margin: 20px 0 0;
    line-height: 1.1;
    color: #1f3a8a;
    letter-spacing: 2px;
}

/* Secret link wrapping the hero name â€” looks identical, just clickable */
.hero-name-link {
    color: inherit;
    text-decoration: none;
}

.hero-name-link:hover .hero-name {
    color: #c2185b;
    transition: color 0.15s ease;
}

.pill-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 20px 0 30px;
}

.pill-nav a {
    display: inline-block;
    background-color: transparent;
    color: #1f3a8a;
    text-decoration: underline;
    font-family: 'Special Elite', monospace;
    font-size: 1rem;
    padding: 4px 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    letter-spacing: 1px;
    transition: color 0.1s ease;
}

.pill-nav a:hover {
    color: #c2185b;
}

.pill-nav a:active {
    color: #d4a017;
}

.stamps {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 14px 4px 24px;
    margin: 0 -20px 30px;
    scrollbar-width: thin;
}

.stamps::-webkit-scrollbar { height: 6px; }
.stamps::-webkit-scrollbar-thumb { background: rgba(31, 58, 138, 0.3); border-radius: 3px; }

.stamp {
    flex: 0 0 auto;
    width: 130px;
    height: 90px;
    box-sizing: border-box;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    transition: transform 0.15s ease;
}

.stamp img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.stamp:nth-child(4n+1) { transform: rotate(-2deg); }
.stamp:nth-child(4n+2) { transform: rotate(1deg); }
.stamp:nth-child(4n+3) { transform: rotate(-1deg); }
.stamp:nth-child(4n)   { transform: rotate(2deg); }

.stamp:hover {
    transform: rotate(0deg) translateY(-2px);
}

button.stamp {
    font: inherit;
    color: inherit;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

/* EP cover on the home page â€” click through to the Fortune Teller page */
.ep-cover-link {
    display: block;
    width: 100%;
    max-width: 360px;
    margin: 10px auto 34px;
    text-decoration: none;
    color: #1f3a8a;
    text-align: center;
}

.ep-cover {
    display: block;
    width: 100%;
    height: auto;
    box-sizing: border-box;
    border: 1px solid rgba(31, 58, 138, 0.35);
    transform: rotate(-1deg);
    transition: transform 0.15s ease;
}

.ep-cover-link:hover .ep-cover {
    transform: rotate(0deg) translateY(-3px);
}

.ep-cover-caption {
    display: block;
    margin-top: 10px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-decoration: underline;
}

.ep-cover-link:hover .ep-cover-caption {
    color: #c2185b;
}

/* Notes â€” text floating on notebook paper */
.note {
    background-color: transparent;
    border: none;
    border-radius: 0;
    padding: 16px 0;
    margin: 0 auto 28px;
    max-width: 480px;
    box-shadow: none;
    font-size: 1rem;
    line-height: 1.55;
    color: #1f3a8a;
}

.note p {
    margin: 0 0 12px;
}

.note p:last-child {
    margin-bottom: 0;
}

.note-title {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-weight: 400;
    font-size: 1.05rem;
    text-align: center;
    margin: 0 0 14px !important;
    color: #1f3a8a;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.75;
}

.note .caps {
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.note ul li {
    padding: 8px 0;
    border-bottom: 1px dashed rgba(31, 58, 138, 0.25);
    font-size: 1rem;
}

.note ul li:last-child {
    border-bottom: none;
}

.note a {
    color: #c2185b;
    text-decoration: underline;
}

.note a:hover {
    color: #d4a017;
}

.note a.ep-link {
    color: #1f3a8a;
    text-decoration: none;
}

.note a.ep-link:hover {
    color: #c0392b;
    text-decoration: underline;
}

.note .loading {
    font-style: italic;
    opacity: 0.6;
    text-align: center;
    border-bottom: none;
}

.note .stars {
    color: #d4a017;
    margin-left: 6px;
}

.note-footer {
    text-align: center;
    font-size: 0.85rem;
    margin-top: 12px !important;
}

.link-list li {
    padding: 8px 0;
}

.social-row {
    text-align: center;
    margin-top: 40px;
    padding: 16px;
    font-family: 'Special Elite', monospace;
    font-size: 1rem;
    letter-spacing: 1px;
}

.social-row a {
    color: #1f3a8a;
    text-decoration: underline;
}

.social-row a:hover {
    color: #c2185b;
}

.social-row .dot {
    margin: 0 8px;
    color: rgba(31, 58, 138, 0.4);
}

/* ----- Contact page ----- */
.contact-intro {
    text-align: center;
}

.contact-logo {
    display: block;
    margin: 0 auto 12px;
    width: 80px;
    height: auto;
}

.contact-form-wrap {
    max-width: 560px;
}

#contact-form {
    display: flex;
    flex-direction: column;
}

.field-label {
    font-family: 'Special Elite', monospace;
    font-weight: 400;
    font-size: 0.9rem;
    margin: 12px 0 4px;
    color: #1f3a8a;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.8;
}

.field {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 1rem;
    padding: 10px 12px;
    border: 1px solid #1f3a8a;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.5);
    color: #1f3a8a;
    box-sizing: border-box;
    width: 100%;
    box-shadow: inset 1px 1px 0 rgba(31, 58, 138, 0.1);
}

.field:focus {
    outline: 2px solid #d4a017;
    outline-offset: 1px;
}

textarea.field {
    resize: vertical;
    min-height: 100px;
    font-family: 'Special Elite', monospace;
}

.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.paint-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 10px 0;
    padding: 8px;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid #1f3a8a;
    border-radius: 0;
    box-shadow: 2px 2px 0 rgba(31, 58, 138, 0.2);
}

.tool-group {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 2px 6px;
    border-right: 1px dashed rgba(31, 58, 138, 0.35);
}

.tool-group:last-child {
    border-right: none;
}

.tool-btn, .action-btn, .size-btn {
    font-family: 'Special Elite', monospace;
    font-size: 0.9rem;
    padding: 4px 10px;
    border: 1px solid #1f3a8a;
    background: rgba(255, 255, 255, 0.6);
    color: #1f3a8a;
    cursor: pointer;
    border-radius: 0;
    box-shadow: 1px 1px 0 rgba(31, 58, 138, 0.2);
}

.tool-btn.active, .size-btn.active {
    background: #d4a017;
    color: #1f3a8a;
    box-shadow: inset 1px 1px 0 rgba(0,0,0,0.2);
}

.color-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #1f3a8a;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    box-shadow: 1px 1px 0 rgba(31, 58, 138, 0.25);
}

.color-btn.active {
    outline: 2px dashed #d4a017;
    outline-offset: 2px;
}

.size-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
}

.size-dot {
    display: inline-block;
    background: #1f3a8a;
    border-radius: 50%;
}

.action-btn:hover, .tool-btn:hover, .size-btn:hover, .color-btn:hover {
    transform: translate(-1px, -1px);
    box-shadow: 2px 2px 0 rgba(31, 58, 138, 0.3);
}

#paint {
    width: 100%;
    max-width: 500px;
    height: auto;
    aspect-ratio: 500 / 350;
    background: #ffffff;
    border: 2px solid #1f3a8a;
    border-radius: 0;
    box-shadow: 3px 3px 0 rgba(31, 58, 138, 0.25);
    touch-action: none;
    cursor: crosshair;
    display: block;
    margin: 0 auto 16px;
}

.send-btn {
    font-family: 'Special Elite', monospace;
    font-weight: 400;
    font-size: 1.05rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 10px 0;
    margin: 18px auto 6px;
    background: transparent;
    color: #c2185b;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    align-self: center;
    transition: color 0.1s ease;
}

.send-btn:hover {
    color: #d4a017;
}

.send-btn:active {
    color: #1f3a8a;
}

.form-note {
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.7;
    font-style: italic;
    margin-top: 8px !important;
    color: #1f3a8a;
}

.success-msg {
    text-align: center;
    padding: 20px 0;
    color: #1f3a8a;
}

/* ----- Lightbox ----- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 40px;
    box-sizing: border-box;
    animation: lightbox-fade 0.18s ease;
}

@keyframes lightbox-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.lightbox[hidden] {
    display: none;
}

.lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border: 4px solid #fff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 24px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 3rem;
    line-height: 1;
    cursor: pointer;
    padding: 8px 16px;
    font-family: 'Special Elite', monospace;
}

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

/* ----- Corner watermark logos (now wrapped in links) ----- */
.corner-logo-link {
    position: fixed;
    z-index: 5;
    display: block;
    line-height: 0;
}

.corner-logo-link.top-left     { top: 16px;    left: 16px; }
.corner-logo-link.top-right    { top: 16px;    right: 16px; }
.corner-logo-link.bottom-left  { bottom: 16px; left: 16px; }
.corner-logo-link.bottom-right { bottom: 16px; right: 16px; }

.corner-logo {
    position: static;
    width: 30px;
    height: auto;
    opacity: 0.75;
    display: block;
    transition: opacity 0.15s ease;
}

.corner-logo-link:hover .corner-logo {
    opacity: 1;
}

/* Wormhole link â€” blends with surrounding text, no underline, still clickable */
.note a.wormhole-link {
    color: #1f3a8a !important;
    text-decoration: none !important;
}

.note a.wormhole-link:hover {
    color: #c2185b !important;
}

@media (max-width: 600px) {
    .page {
        padding: 30px 16px 40px 50px;
    }

    html, body {
        background-image:
            linear-gradient(to right, transparent 30px, #d4a8a8 30px, #d4a8a8 31px, transparent 31px),
            repeating-linear-gradient(
                to bottom,
                transparent 0,
                transparent 27px,
                #a8b8d4 27px,
                #a8b8d4 28px
            );
    }

    .stamps {
        margin: 0 -16px 24px;
        padding: 10px 16px 20px;
    }

    .stamp {
        width: 110px;
        height: 76px;
    }

    .note-title {
        font-size: 0.95rem;
    }

    .paint-toolbar {
        gap: 8px;
        padding: 6px;
    }

    .tool-group {
        padding: 2px 4px;
    }

    .color-btn {
        width: 24px;
        height: 24px;
    }

    /* Keep the social footer on one line on narrow screens */
    .social-row {
        font-size: 0.8rem;
        letter-spacing: 0.5px;
        padding: 16px 8px;
        white-space: nowrap;
    }

    .social-row .dot {
        margin: 0 4px;
    }

    .corner-logo {
        width: 22px;
    }
    .corner-logo-link.top-left,
    .corner-logo-link.top-right    { top: 10px; }
    .corner-logo-link.bottom-left,
    .corner-logo-link.bottom-right { bottom: 10px; }
    .corner-logo-link.top-left,
    .corner-logo-link.bottom-left  { left: 10px; }
    .corner-logo-link.top-right,
    .corner-logo-link.bottom-right { right: 10px; }
}