/* Link in bio theme for Datenstrom Yellow, one column of big link buttons */
/* Idea and layout inspired by LittleLink, https://littlelink.io */

:root {
    color-scheme: light;
    --bg: #ffffff;
    --surface: #f7f6f2;
    --text: #212121;
    --text-light: #585858;
    --border: #898ea4;
    --accent: #b45309;
    --website-bg: #212121;
    --website-text: #ffffff;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --bg: #212121;
        --surface: #2b2b2b;
        --text: #dcdcdc;
        --text-light: #ababab;
        --border: #666666;
        --accent: #ffb300;
        --website-bg: #f7f6f2;
        --website-text: #212121;
    }
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #212121;
    --surface: #2b2b2b;
    --text: #dcdcdc;
    --text-light: #ababab;
    --border: #666666;
    --accent: #ffb300;
    --website-bg: #f7f6f2;
    --website-text: #212121;
}

*, *::before, *::after {
    box-sizing: border-box;
}
html {
    -webkit-text-size-adjust: 100%;
}
body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: -apple-system, BlinkMacSystemFont, "Avenir Next", Avenir, "Nimbus Sans L", Roboto, "Noto Sans", "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
}

/* Page */

.links {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 26rem;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    padding: 4.5rem 1rem 3rem;
    text-align: center;
}
.avatar {
    display: block;
    width: 7rem;
    height: 7rem;
    margin-bottom: 1rem;
    border-radius: 50%;
    object-fit: cover;
}
.avatar-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    background: var(--surface);
    font-size: 3rem;
    font-weight: 700;
}
h1 {
    margin: 0;
    font-size: 1.75rem;
    line-height: 1.2;
}
.bio {
    margin: 0.5rem 0 1.75rem;
    color: var(--text-light);
}

/* Link buttons */

.links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}
.button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    padding: 0.5rem 3rem;
    color: var(--button-text, #ffffff);
    background: var(--button-bg);
    border: 2px solid var(--button-border, transparent);
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.12s ease, filter 0.12s ease;
}
.button:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
}
.button:focus-visible,
.theme-toggle:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}
.button::before {
    content: "";
    position: absolute;
    left: 1rem;
    width: 1.25rem;
    height: 1.25rem;
    background: currentColor;
    -webkit-mask: var(--icon) center / contain no-repeat;
    mask: var(--icon) center / contain no-repeat;
}
.button-website {
    --button-bg: var(--website-bg);
    --button-text: var(--website-text);
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.5 3.8 5.5 3.8 9s-1.300 6.500-3.800 9c-2.500-2.500-3.800-5.500-3.800-9S9.500 5.500 12 3z'/%3E%3C/svg%3E");
}
.button-bluesky {
    --button-bg: #0866d6;
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 10.8c-1.087-2.114-4.046-6.053-6.798-7.995C2.566.944 1.561 1.266.902 1.565.139 1.908 0 3.08 0 3.768c0 .69.378 5.65.624 6.479.815 2.736 3.713 3.66 6.383 3.364.136-.02.275-.039.415-.056-.138.022-.276.04-.415.056-3.912.58-7.387 2.005-2.83 7.078 5.013 5.19 6.87-1.113 7.823-4.308.953 3.195 2.05 9.271 7.733 4.308 4.267-4.308 1.172-6.498-2.74-7.078a8.741 8.741 0 0 1-.415-.056c.14.017.279.036.415.056 2.67.297 5.568-.628 6.383-3.364.246-.828.624-5.79.624-6.479 0-.688-.139-1.86-.902-2.203-.659-.299-1.664-.621-4.3 1.24C16.046 4.748 13.087 8.687 12 10.8Z'/%3E%3C/svg%3E");
}
.button-linkedin {
    --button-bg: #0a66c2;
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 4.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z'/%3E%3C/svg%3E");
}
.button-indieweb {
    --button-bg: #c2410c;
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='5' cy='12' r='3'/%3E%3Ccircle cx='19' cy='5' r='3'/%3E%3Ccircle cx='19' cy='19' r='3'/%3E%3Cpath d='M7.700 10.700l8.600-4.400M7.700 13.300l8.600 4.400'/%3E%3C/svg%3E");
}
.button-complaint {
    --button-bg: transparent;
    --button-text: var(--text);
    --button-border: var(--border);
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10v4l13 5V5L3 10zM16 9h2a3 3 0 0 1 0 6h-2M7 15.500V20h3v-3.300'/%3E%3C/svg%3E");
}

/* Color theme button */

.theme-toggle {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
}
.icon {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.theme-toggle .icon-light,
.theme-toggle .icon-dark,
[data-theme-choice="light"] .theme-toggle .icon-system,
[data-theme-choice="dark"] .theme-toggle .icon-system {
    display: none;
}
[data-theme-choice="light"] .theme-toggle .icon-light,
[data-theme-choice="dark"] .theme-toggle .icon-dark {
    display: block;
}
@media (prefers-reduced-motion: reduce) {
    .button {
        transition: none;
    }
    .button:hover {
        transform: none;
    }
}
