/* andymoore.info — Commodore / Teletext / terminal shell aesthetic */

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

html, body {
    height: 100%;
}

body {
    background: #0a0a0a;
    background-image:
        repeating-linear-gradient(
            0deg,
            rgba(0, 255, 0, 0.02) 0px,
            rgba(0, 255, 0, 0.02) 1px,
            transparent 1px,
            transparent 3px
        );
    color: #33ff33;
    font-family: "Courier New", Courier, "Lucida Console", Monaco, monospace;
    font-size: 15px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 24px;
    text-shadow: 0 0 4px rgba(51, 255, 51, 0.45);
}

main {
    flex: 1;
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    padding: 16px 0;
}

header {
    text-align: left;
    border-bottom: 2px solid #33ff33;
    padding-bottom: 16px;
}

h1 {
    font-family: inherit;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #33ff33;
    margin-bottom: 6px;
    text-transform: uppercase;
}

h1::before {
    content: "> ";
    color: #ffcc00;
}

.tagline {
    font-size: 1rem;
    color: #33ff33;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.me {
    background: transparent;
    border: 1px solid #33ff33;
    border-radius: 0;
    padding: 20px 22px;
    text-align: left;
}

h3 {
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    color: #ffcc00;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    text-shadow: 0 0 6px rgba(255, 204, 0, 0.55);
}

h3::before {
    content: "// ";
    color: #33ff33;
}

/* The <hr> tags get turned into dashed teletext-style dividers */
hr {
    border: none !important;
    border-top: 1px dashed #33ff33 !important;
    margin: 16px 0 !important;
    opacity: 0.6;
}

p {
    font-family: inherit;
    color: #33ff33;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 14px;
}

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

.highlighted {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffcc00;
    font-style: italic;
    text-shadow: 0 0 5px rgba(255, 204, 0, 0.5);
}

.subtle {
    font-size: 0.9rem;
    font-weight: 400;
    color: #1faa1f;
    font-style: italic;
}

footer {
    text-align: center;
    font-size: 0.75rem;
    color: #1faa1f;
    padding-top: 16px;
    border-top: 1px dashed rgba(51, 255, 51, 0.4);
    margin-top: 24px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

footer a {
    color: #33ff33;
    text-decoration: none;
    border-bottom: 1px dotted #33ff33;
}

footer a:hover {
    color: #ffcc00;
    border-bottom-color: #ffcc00;
}

/* Blinking cursor after the last paragraph — Commodore style */
.me > p:last-of-type::after {
    content: "▊";
    color: #33ff33;
    margin-left: 4px;
    animation: blink 1s step-end infinite;
}
@keyframes blink {
    0%, 50%   { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Selection */
::selection {
    background: #33ff33;
    color: #0a0a0a;
}

/* Mobile */
@media (max-width: 600px) {
    body {
        padding: 16px;
        font-size: 14px;
    }

    main {
        gap: 24px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .me {
        padding: 18px 16px;
    }
}