@import url(https://fonts.bunny.net/css?family=martian-mono:400);

:root {
    color-scheme: light dark;

    --background: #fff9f5;
    --surface: #fffcfa;
    --text: #342d32;
    --primary: #a43f66;
    --secondary: #476b58;
    --border: #dfcbd1;

    font-family: "Martian Mono", monospace;
    font-size: 18px;

    background: var(--background);
    color: var(--text);
}

@media (prefers-color-scheme: dark) {
    :root {
        --background: #1c191e;
        --surface: #242026;
        --text: #f3e8ed;
        --primary: #f2a7c3;
        --secondary: #a8ccb5;
        --border: #58444e;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100svh;
    display: grid;
    place-items: center;
}

main {
    width: 100%;
    max-width: 28rem;
}

header {
    text-align: center;
}

.peony {
    display: block;
    margin: 0 auto 1.5rem;
    max-width: 100%;
    height: auto;
}

h1 {
    margin: 0.125rem 0;
    color: var(--primary);
    line-height: 1.2;
}

nav {
    margin-top: 2.5rem;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    background: var(--surface);
}

li:first-child {
    border-top: none;
}
li {
    border-top: 1px solid var(--border);
}

a {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.25rem 1rem;
    padding: 1rem 1.25rem;
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 0.2em;
    overflow-wrap: anywhere;
}

.nerd-dst {
    color: var(--secondary);
}

a:hover {
    text-decoration-thickness: 0.15em;
}

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

@media (max-width: 640px) {
    :root {
        font-size: 115%;
        line-height: 1.75;
    }

    body {
        padding: 2rem 1rem;
    }

    .peony {
        margin-bottom: 1rem;
    }

    nav {
        margin-top: 1.5rem;
    }

    a {
        flex-direction: column;
        gap: 0.375rem;
        padding: 0.75rem 0.75rem;
    }

    .nerd-dst {
        font-size: 0.8em;
    }
}
