@media (prefers-color-scheme: light) {
    :root {
        --background: #ffffff;
        --surface: #f5f5f5;
        --primary: #282828;
        --secondary: #282828;
        --border: #bfbfbf;
        --hyperlink: #3882b7;

        --logo: url("/assets/svg/979_icon_light.svg");
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --background: #060605;
        --surface: #070707;
        --primary: #dededa;
        --secondary: #817e77;
        --border: #121110;
        --hyperlink: #569cd6;

        --logo: url("/assets/svg/979_icon_dark.svg");
    }
}

@font-face {
    font-family: "InterVariable";
    src: url("/assets/fonts/InterVariable.woff2") format("woff2");
}

@font-face {
    font-family: "CascadiaCode";
    src: url("/assets/fonts/CascadiaCode.woff2") format("woff2");
}

:root {
    --font: "InterVariable", sans-serif;
    --font-secure: "CascadiaCode", monospace;
}

* {
    box-sizing: border-box;
}

body {
    padding: 0;
    margin: 0;
    background: var(--background);
    color: var(--primary);
    font-family: var(--font);
}

header {
    width: 100%;
    box-shadow: 0 0 0 1px var(--border);
}

.header-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wordmark,
.wordmark:hover {
    font-size: 3rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--primary);
}

main {
    max-width: 900px;
    min-height: 100dvh;
    margin: 0 auto;
    padding: 3rem 1rem;
    overflow-wrap: break-word;
    word-break: break-word;
}

.donation-card {
    margin: 2rem 0rem;
    padding: 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.qr-section img {
    width: 150px;
    height: 150px;
    display: block;
    border-radius: 4px;
    background: white;
    padding: 8px;
}

.info-section {
    flex: 1;
    min-width: 0;
}

.crypto-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
}

.address-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0 0 0.5rem 0;
}

.address {
    font-size: 0.875rem;
    font-family: var(--font-secure);
    word-break: break-all;
    margin: 0 0 1rem 0;
}

.wallet-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.wallet-link:hover {
    text-decoration: none;
    border-color: var(--hyperlink);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

footer {
    width: 100%;
    min-height: 40dvh;
    box-shadow: 0 0 0 1px var(--border);
}

.footer-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 2rem 1.5rem;
    align-items: start;
    justify-items: center;
}

.logo {
    width: 3rem;
    height: 3rem;
    border-radius: 1.5rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-image: var(--logo);
    margin-left: 1.5rem;
    justify-self: start;
}

.footer-category {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-width: 180px;
}

.footer-category p {
    margin: 0;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: var(--primary);
    line-height: 2rem;
}

.footer-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-category li {
    font-size: 0.875rem;
    font-weight: 500;
}

.footer-category a {
    color: var(--secondary);
}

.footer-category a:hover {
    color: var(--hyperlink);
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
}

b {
    font-weight: 700;
}

p {
    font-weight: 500;
}

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

a:hover {
    text-decoration: underline;
}
