/* Neon Note - A Free Design by Bryant Smith (bryantsmith.com)
   A dark page built from wide stacked bands with one electric green accent.
   Every colour and size lives in the sections below - change them and the
   whole page follows. */


/* ---- COLOURS: the few values the whole page is built from ---- */

:root {
    --night: #0b0e0c;        /* the main dark background          */
    --night-2: #0f1411;      /* the slightly lighter striped band  */
    --panel: #111a14;        /* card and quote backgrounds         */
    --line: #1e2a20;         /* thin dividing lines                */
    --text: #cfd8d1;         /* normal body text                   */
    --muted: #8a978d;        /* quieter labels and captions        */
    --accent: #39ff14;       /* the one electric green             */
    --accent-soft: rgba(57, 255, 20, 0.10);
}


/* ---- RESET + BASE ---- */

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

body {
    background: var(--night);
    color: var(--text);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover,
a:focus-visible {
    color: #b6ffa4;
    text-decoration: underline;
}

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* the narrow centred column that sits inside every full-width band */
.wrap {
    margin: 0 auto;
    max-width: 860px;
    padding: 0 28px;
}


/* ---- LABELS: the small monospace green captions ---- */

.label {
    color: var(--accent);
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    letter-spacing: 3px;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.label::before {
    color: var(--accent);
    content: "> ";
}


/* ---- TOP BAR: the sticky strip with the menu ---- */

#topbar {
    background: rgba(11, 14, 12, 0.92);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 10;
}

#topbar .wrap {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    min-height: 60px;
}

.brand {
    color: var(--text);
    font-family: "Courier New", Courier, monospace;
    font-size: 17px;
    font-weight: bold;
    letter-spacing: 1px;
}

.brand span {
    color: var(--accent);
}

.brand:hover {
    color: var(--text);
    text-decoration: none;
}

#menu {
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

#menu a {
    color: var(--muted);
    margin-left: 22px;
    padding-bottom: 4px;
}

#menu a:hover,
#menu a:focus-visible {
    border-bottom: 2px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
}


/* ---- BANDS: the stacked full-width sections ---- */

.band {
    border-top: 1px solid var(--line);
    padding: 68px 0;
}

.band-alt {
    background: var(--night-2);
}

.band h2 {
    color: #f2f7f3;
    font-size: 27px;
    font-weight: bold;
    letter-spacing: -0.3px;
    line-height: 1.25;
    margin-bottom: 20px;
}

.band p {
    margin-bottom: 18px;
    max-width: 65ch;
}

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


/* ---- HERO: the tall opening band with the soft green glow ---- */

.hero {
    background:
        radial-gradient(680px 300px at 22% 0%, var(--accent-soft), transparent 70%),
        var(--night);
    border-top: none;
    padding: 96px 0 88px 0;
}

.hero h1 {
    color: #ffffff;
    font-size: 62px;
    font-weight: bold;
    letter-spacing: -1.5px;
    line-height: 1.05;
    margin-bottom: 22px;
    text-shadow: 0 0 26px rgba(57, 255, 20, 0.28);
}

.hero .tagline {
    color: var(--muted);
    font-size: 19px;
    max-width: 52ch;
}


/* ---- LEAD PARAGRAPH ---- */

.lead {
    color: #e2e9e4;
    font-size: 20px;
    line-height: 1.7;
}

.lead::first-letter {
    color: var(--accent);
    font-size: 1.05em;
    font-weight: bold;
}


/* ---- CARDS: the three hobby boxes ---- */

.cards {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 34px;
}

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 26px 24px;
    transition: border-color 0.18s ease, transform 0.18s ease;
}

.card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.card h3 {
    color: #f2f7f3;
    font-size: 19px;
    margin-bottom: 10px;
}

.card p {
    color: var(--muted);
    font-size: 14px;
    max-width: none;
}

.card .label {
    font-size: 10px;
    margin-bottom: 8px;
}

.more {
    border-bottom: 1px solid var(--accent);
    display: inline-block;
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
    letter-spacing: 1px;
    margin-top: 16px;
    padding-bottom: 2px;
    text-transform: uppercase;
}

.more:hover {
    text-decoration: none;
}


/* ---- ENTRIES: the dated logbook list ---- */

.entries {
    list-style: none;
    margin-top: 26px;
}

.entries li {
    align-items: baseline;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 22px;
    padding: 16px 0;
}

.entries .date {
    color: var(--accent);
    flex: 0 0 96px;
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.entries a {
    font-size: 17px;
}


/* ---- QUOTE BAND ---- */

.quote-band {
    background: var(--panel);
}

blockquote {
    border-left: 3px solid var(--accent);
    color: #e2e9e4;
    font-size: 23px;
    font-style: italic;
    line-height: 1.6;
    max-width: 60ch;
    padding: 6px 0 6px 26px;
}

blockquote p {
    margin: 0;
    max-width: none;
}


/* ---- STEPS: the numbered how-to list ---- */

.steps {
    counter-reset: step;
    list-style: none;
    margin-top: 28px;
    max-width: 64ch;
}

.steps li {
    border-top: 1px solid var(--line);
    padding: 20px 0 20px 52px;
    position: relative;
}

.steps li::before {
    color: var(--accent);
    content: "0" counter(step);
    counter-increment: step;
    font-family: "Courier New", Courier, monospace;
    font-size: 15px;
    font-weight: bold;
    left: 0;
    position: absolute;
    top: 20px;
}

.steps strong {
    color: #f2f7f3;
}


/* ---- FOOTER: the required credit link ---- */

#footer {
    background: var(--night);
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    letter-spacing: 1px;
    padding: 34px 20px;
    text-align: center;
    text-transform: uppercase;
}

#footer a {
    color: var(--muted);
}

#footer a:hover {
    color: var(--accent);
}


/* ---- MEDIUM SCREENS: let the cards drop to two columns ---- */

@media (max-width: 800px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ---- SMALL SCREENS: stack everything and tighten the spacing ---- */

@media (max-width: 640px) {
    .wrap {
        padding: 0 20px;
    }

    .band {
        padding: 48px 0;
    }

    .hero {
        padding: 64px 0 58px 0;
    }

    .hero h1 {
        font-size: 38px;
        letter-spacing: -0.8px;
    }

    .hero .tagline,
    .lead {
        font-size: 17px;
    }

    .band h2 {
        font-size: 22px;
    }

    #menu a {
        margin-left: 0;
        margin-right: 16px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .entries li {
        display: block;
    }

    .entries .date {
        display: block;
        margin-bottom: 2px;
    }

    blockquote {
        font-size: 19px;
        padding-left: 18px;
    }
}
