/* Link List - A Free Design by Bryant Smith (bryantsmith.com)
   A single, narrow column of big friendly link rows.
   Every colour and spacing value lives in the :root block below. */


/* ---- COLOURS: change these once to re-skin the whole page ---- */

:root {
    --bg: #0f1115;            /* page background       */
    --surface: #191c23;       /* link row background   */
    --surface-hover: #20242e; /* link row on hover     */
    --border: #2a2f3a;        /* thin lines and edges  */
    --text: #eef2f6;          /* main text             */
    --muted: #9aa5b4;         /* secondary text        */
    --faint: #6b7280;         /* footer and arrows     */
    --accent: #62d9a0;        /* mint green accent     */
    --accent-2: #57b8ff;      /* sky blue accent       */
    --radius: 16px;
}


/* ---- RESET: a small, predictable starting point ---- */

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


/* ---- BODY: the dark "hub" the page sits on ---- */

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    padding: 40px 16px 56px;
    text-align: center;
}

/* A soft glow behind the top of the page. Purely decorative. */
body::before {
    background: radial-gradient(120% 100% at 50% 0%,
        rgba(98, 217, 160, 0.16),
        rgba(87, 184, 255, 0.08) 42%,
        rgba(15, 17, 21, 0) 72%);
    content: "";
    height: 440px;
    inset: 0 0 auto 0;
    pointer-events: none;
    position: fixed;
}


/* ---- PAGE: the centered column everything lives in ---- */

#page {
    margin: 0 auto;
    max-width: 720px;
    position: relative;
    text-align: left;
}


/* ---- MENU: the small row of navigation links ---- */

#menu {
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 44px;
    text-align: center;
    text-transform: uppercase;
}

#menu a,
#menu a:visited {
    border-bottom: 2px solid transparent;
    color: var(--muted);
    margin: 0 10px;
    padding: 8px 2px;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
}

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


/* ---- PROFILE: avatar, name, handle and bio ---- */

.profile {
    margin-bottom: 44px;
    text-align: center;
}

/* The avatar is a circle made with a gradient border trick:
   one gradient fills the inside, another paints the thin ring. */
.avatar {
    align-items: center;
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        linear-gradient(140deg, var(--accent), var(--accent-2)) border-box;
    border: 3px solid transparent;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45),
                0 0 0 8px rgba(98, 217, 160, 0.06);
    color: var(--text);
    display: grid;
    font-size: 32px;
    font-weight: 700;
    height: 96px;
    justify-content: center;
    letter-spacing: 1px;
    margin: 0 auto 20px;
    width: 96px;
}

h1 {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.15;
}

.handle {
    color: var(--accent);
    font-size: 13px;
    letter-spacing: 1.5px;
    margin-top: 6px;
    text-transform: uppercase;
}

.bio {
    color: var(--muted);
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 17px;
    font-style: italic;
    line-height: 1.7;
    margin: 18px auto 0;
    max-width: 430px;
}


/* ---- HEADINGS: small uppercase labels ---- */

h2 {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.list-heading {
    margin: 0 auto 18px;
    max-width: 520px;
    text-align: center;
}


/* ---- LINK LIST: one big tap-friendly row per link ---- */

.links {
    display: grid;
    gap: 12px;
    list-style: none;
    margin: 0 auto;
    max-width: 520px;
}

.link-row {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    display: flex;
    gap: 16px;
    min-height: 68px;
    padding: 14px 18px;
    text-decoration: none;
    transition: transform 0.18s ease, background 0.18s ease,
        border-color 0.18s ease, box-shadow 0.18s ease;
}

.link-row:hover,
.link-row:focus-visible {
    background: var(--surface-hover);
    border-color: rgba(98, 217, 160, 0.55);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
    outline: none;
    transform: translateY(-2px);
}

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

/* The first row is highlighted to show an emphasis style. */
.link-row--featured {
    background: linear-gradient(135deg,
        rgba(98, 217, 160, 0.16),
        rgba(87, 184, 255, 0.10));
    border-color: rgba(98, 217, 160, 0.35);
}

.link-row--featured .link-mark {
    background: rgba(98, 217, 160, 0.22);
}

/* The little monogram square on the left of each row. */
.link-mark {
    align-items: center;
    background: rgba(98, 217, 160, 0.12);
    border-radius: 12px;
    color: var(--accent);
    display: grid;
    flex: 0 0 auto;
    font-size: 17px;
    font-weight: 700;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.link-text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.link-label {
    font-size: 16px;
    font-weight: 600;
}

.link-note {
    color: var(--muted);
    font-size: 13px;
    margin-top: 2px;
}

/* The arrow is a rotated square border, not an image. */
.link-arrow {
    border-right: 2px solid var(--faint);
    border-top: 2px solid var(--faint);
    flex: 0 0 auto;
    height: 9px;
    transform: rotate(45deg);
    transition: border-color 0.18s ease, transform 0.18s ease;
    width: 9px;
}

.link-row:hover .link-arrow,
.link-row:focus-visible .link-arrow {
    border-color: var(--accent);
    transform: rotate(45deg) translate(3px, -3px);
}


/* ---- NOTE: the bordered "how to use this template" box ---- */

.note {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 12px;
    margin: 40px auto 0;
    max-width: 520px;
    padding: 22px 24px;
}

.note h2 {
    margin-bottom: 12px;
}

.note p {
    color: var(--muted);
    font-size: 14.5px;
}

.note p + p {
    margin-top: 12px;
}

.note strong {
    color: var(--text);
}


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

#footer {
    border-top: 1px solid var(--border);
    color: var(--faint);
    font-size: 11px;
    letter-spacing: 1px;
    margin-top: 56px;
    padding-top: 22px;
    text-align: center;
    text-transform: uppercase;
}

#footer a,
#footer a:visited {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

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


/* ---- SMALL SCREENS: tighten spacing and text on phones ---- */

@media (max-width: 640px) {
    body {
        padding: 28px 14px 40px;
    }

    #menu {
        margin-bottom: 30px;
    }

    #menu a {
        margin: 0 7px;
    }

    .avatar {
        font-size: 27px;
        height: 80px;
        width: 80px;
    }

    h1 {
        font-size: 26px;
    }

    .bio {
        font-size: 15.5px;
    }

    .link-row {
        gap: 13px;
        min-height: 62px;
        padding: 12px 14px;
    }

    .link-mark {
        height: 40px;
        width: 40px;
    }
}


/* ---- REDUCED MOTION: respect the visitor's preference ---- */

@media (prefers-reduced-motion: reduce) {
    .link-row,
    .link-arrow,
    #menu a,
    #footer a {
        transition: none;
    }
}


/* ---- PRINT: drop the dark background and decoration ---- */

@media print {
    body {
        background: #ffffff;
        color: #111111;
        padding: 0;
    }

    body::before,
    #menu,
    .note {
        display: none;
    }

    #page {
        max-width: 100%;
    }

    .avatar {
        background: none;
        border-color: #cccccc;
        box-shadow: none;
        color: #111111;
    }

    .link-row {
        background: none;
        border-color: #cccccc;
        box-shadow: none;
        transform: none;
    }

    .link-label {
        color: #111111;
    }

    #footer,
    .link-note,
    .link-mark {
        color: #555555;
    }
}
