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

body {
    font-family: 'Courier New', Courier, monospace;
    background-color: #0f0f10;
    color: #e6e6e6;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Top navigation (small links and toggle) */
header {
    position: relative;
    padding: 18px 40px;
    width: 100%;
    max-width: none;
    margin: 0;
}

.top-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    font-size: 13px;
    color: #cfcfcf;
}

.top-nav a {
    margin: 0 12px;
    display: inline-block;
}

.theme-toggle {
    position: absolute;
    right: 22px;
    top: 18px;
    width: 44px;
    height: 24px;
    border-radius: 12px;
    background: linear-gradient(#222, #121212);
    box-shadow: 0 1px 0 rgba(255,255,255,0.02) inset;
}

/* Main narrow profile column */
main {
    max-width: 640px;
    margin: 40px auto;
    padding: 0 20px 80px 20px;
    text-align: center;
}

.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.avatar {
    width: 96px;
    height: 96px;
    display: block;
    margin: 8px 0 18px 0;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.06);
    box-shadow: 0 6px 18px rgba(0,0,0,0.6);
    transition: transform 220ms cubic-bezier(.2,.9,.2,1), box-shadow 220ms;
}

/* Slight grow on hover/focus to feel interactive */
.avatar:hover,
.avatar:focus {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 18px 36px rgba(0,0,0,0.6);
}

h1 {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 18px;
    text-transform: lowercase;
    letter-spacing: 1px;
}

p {
    color: #cfcfcf;
    margin-bottom: 14px;
    max-width: 52ch;
    font-size: 16px;
}

/* ensure paragraphs and pre blocks are centered within main */
main p, main pre { margin-left: auto; margin-right: auto; }

/* Style the index links area */
.links {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
}
.link_item a {
    display: inline-block;
    padding: 8px 12px;
    color: #9ad2ff;
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(154,210,255,0.14);
    transition: transform 180ms cubic-bezier(.2,.9,.2,1), box-shadow 180ms ease, color 160ms, background 160ms, border-color 160ms;
    transform-origin: center;
    will-change: transform;
    cursor: pointer;
    text-decoration: none;
    font-weight: 700;
}

/* top-nav links also get a subtle hover grow */
.top-nav a {
    transition: transform 160ms cubic-bezier(.2,.9,.2,1), color 160ms;
    will-change: transform;
}

.link_item a:hover,
.top-nav a:hover {
    transform: translateY(-4px) scale(1.06);
    color: #d7f4ff;
}

.link_item a:hover {
    box-shadow: 0 10px 24px rgba(0,0,0,0.5);
    background: rgba(154,210,255,0.06);
    border-color: rgba(154,210,255,0.34);
}

.link_item a:focus-visible {
    outline: 2px solid rgba(154,210,255,0.22);
    outline-offset: 3px;
}

/* support for custom <lb> used in HTML */
lb { display: block; height: 12px; }

/* make pre wrap nicely and center */
pre {
    max-width: 52ch;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: #cfcfcf;
    margin-bottom: 12px;
}

/* Emphasized links similar to screenshot */
a {
    color: #9ad2ff;
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 700;
}

/* add horizontal spacing for inline links */
a { margin: 0 6px; }

strong, b {
    color: #ffffff;
}

/* Small subtle footer links */
.small {
    font-size: 14px;
    color: #d0d0d0;
}

/* Utility */
.spacer { height: 12px; }

/* Footer spanning full width */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 28px 40px;
    color: #bfbfbf;
    display: flex;
    justify-content: center;
    align-items: center;
}

footer p {
    text-align: center;
    margin: 0;
}

/* Invisible links */
.invisible_link {
    color: #e6e6e6;
    text-decoration: none;
    display: inline-block;
    transition: color 0.3s ease;
}

.invisible_link:hover {
    color: #4a9eff;
    text-decoration: underline;
}

/* Responsive tweaks */
@media (max-width: 720px) {
    h1 { font-size: 40px; }
    .avatar { width: 80px; height: 80px; }
    main { padding-bottom: 40px; }
}

@media (min-width: 1000px) {
    .avatar { width: 120px; height: 120px; }
    h1 { font-size: 56px; }
}