@import url('https://fonts.googleapis.com/css2?family=Akt:wght@100..900&family=DynaPuff:wght@400..700&family=Fredoka:wght@300..700&family=Merriweather+Sans:ital,wght@0,300..800;1,300..800&family=Onest:wght@100..900&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap');

:root {
    --sky-top: #89c9ff;
    --sky-bottom: #d5f0ff;
    --grass: #63b33d;
    --grass-dark: #3f8125;
    --dirt: #8b5a2b;
    --dirt-dark: #5f3817;
    --stone: #c6c8c6;
    --stone-dark: #7a7d78;
    --wood: #b8824a;
    --wood-dark: #6f4724;
    --gold: #f6d04d;
    --gold-dark: #a16f12;
    --text: #1c140c;
    --text-soft: #41352a;
    --surface: #f2e2b5;
    --surface-soft: #e2c98f;
    --panel-shadow: 0 10px 0 rgba(53, 33, 15, 0.38);
    --pixel-border-light: #fff6d6;
    --pixel-border-dark: #4e3218;
    --content-width: 1080px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    user-select: none;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text);
    font-family: "Trebuchet MS", "Verdana", sans-serif;
    line-height: 1.6;
    background:
        linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 48%, #d8f0a1 48%, #d8f0a1 51%, #8fc95b 51%, #8fc95b 56%, #6a4627 56%, #6a4627 100%);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.35;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.14) 50%, transparent 50%),
        linear-gradient(rgba(255, 255, 255, 0.1) 50%, transparent 50%);
    background-size: 22px 22px;
    animation: shimmer-grid 10s linear infinite;
}

body::after {
    content: "";
    position: fixed;
    inset: auto 0 0 0;
    height: 180px;
    pointer-events: none;
    background:
        repeating-linear-gradient(90deg,
            rgba(85, 55, 25, 0.28) 0 24px,
            rgba(54, 35, 16, 0.34) 24px 48px);
    opacity: 0.3;
}

header,
main,
footer {
    width: min(calc(100% - 2rem), var(--content-width));
    margin: 0 auto;
}

header,
main,
footer,
section,
button,
code,
header nav a,
footer nav a {
    image-rendering: pixelated;
}

header {
    margin-top: 1.4rem;
    padding: 1.2rem 1.3rem 1.35rem;
    position: relative;
    background:
        linear-gradient(180deg, #d8bb7c, #b98c53);
    border: 4px solid var(--pixel-border-dark);
    box-shadow:
        inset 4px 4px 0 var(--pixel-border-light),
        inset -4px -4px 0 rgba(87, 54, 23, 0.42),
        var(--panel-shadow);
    animation: rise-in 420ms ease-out;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: "Impact", "Trebuchet MS", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1;
    text-shadow: 2px 2px 0 rgba(255, 248, 219, 0.75);
}

h1 {
    margin-bottom: 1rem;
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    color: #2b190b;
}

h2 {
    margin-bottom: 1rem;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    color: #2f1d0b;
}

h3 {
    margin-bottom: 0.7rem;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    color: #3e260e;
}

p,
li,
a,
button,
code {
    font-size: 1rem;

}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

header nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

header nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0.7rem 1rem;
    background: linear-gradient(180deg, #8fd15a, #4e9728);
    border: 3px solid #274d13;
    box-shadow:
        inset 2px 2px 0 rgba(225, 255, 194, 0.8),
        inset -2px -2px 0 rgba(27, 76, 8, 0.45),
        0 4px 0 rgba(28, 72, 10, 0.52);
    color: #0d2608;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: transform 180ms ease-out, filter 180ms ease-out, box-shadow 180ms ease-out;
}

header nav a:hover,
header nav a:focus-visible {
    transform: translateY(-3px);
    filter: brightness(1.05);
    box-shadow:
        inset 2px 2px 0 rgba(225, 255, 194, 0.92),
        inset -2px -2px 0 rgba(27, 76, 8, 0.45),
        0 7px 0 rgba(28, 72, 10, 0.52);
}

main {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    padding: clamp(1.3rem, 3vw, 2.4rem);
    position: relative;
    background:
        linear-gradient(180deg, #f8ebc5, #e6cf94);
    border: 4px solid var(--pixel-border-dark);
    box-shadow:
        inset 4px 4px 0 #fff5cf,
        inset -4px -4px 0 rgba(126, 91, 45, 0.35),
        var(--panel-shadow);
    animation: rise-in 520ms ease-out;
}

main::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(90deg,
            rgba(255, 255, 255, 0.08) 0 20px,
            rgba(0, 0, 0, 0.02) 20px 40px);
    opacity: 0.4;
}

main>* {
    position: relative;
    z-index: 1;
}

main>p:first-of-type {
    max-width: 64ch;
    color: var(--text-soft);
    font-size: 1.05rem;
}

section+section {
    margin-top: 1rem;
}

section {
    padding: 1.15rem 1.2rem;
    background:
        linear-gradient(180deg, #d6d7d4, #acafab);
    border: 4px solid #565954;
    box-shadow:
        inset 3px 3px 0 #eef0eb,
        inset -3px -3px 0 rgba(68, 71, 66, 0.34),
        0 6px 0 rgba(56, 58, 55, 0.35);
    transition: transform 180ms ease-out, box-shadow 180ms ease-out;
}

section:hover {
    transform: translateY(-2px);
    box-shadow:
        inset 3px 3px 0 #eef0eb,
        inset -3px -3px 0 rgba(68, 71, 66, 0.34),
        0 8px 0 rgba(56, 58, 55, 0.35);
}

a:link,
a:visited {
    color: #1f5f18;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
    transition: color 120ms linear, text-shadow 120ms linear;
}

a:hover,
a:focus-visible {
    color: #9a5d00;
    text-shadow: 0 0 12px rgba(246, 208, 77, 0.35);
}

button {
    appearance: none;
    min-height: 56px;
    padding: 0.95rem 1.5rem;
    border: 4px solid #76510d;
    background:
        linear-gradient(180deg, #ffe269, #d7a520);
    color: #412806;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    box-shadow:
        inset 3px 3px 0 #fff1a7,
        inset -3px -3px 0 rgba(119, 82, 11, 0.35),
        0 7px 0 rgba(119, 82, 11, 0.52);
    transition:
        transform 180ms ease-out,
        filter 180ms ease-out,
        box-shadow 180ms ease-out;
    animation: pulse-idle 2.8s steps(10, end) infinite;
}

button:hover,
button:focus-visible {
    transform: translateY(-3px) scale(1.01);
    filter: brightness(1.06);
    box-shadow:
        inset 3px 3px 0 #fff1a7,
        inset -3px -3px 0 rgba(119, 82, 11, 0.35),
        0 10px 0 rgba(119, 82, 11, 0.52);
}

button:active {
    transform: translateY(2px);
    box-shadow:
        inset 3px 3px 0 #fff1a7,
        inset -3px -3px 0 rgba(119, 82, 11, 0.35),
        0 3px 0 rgba(119, 82, 11, 0.52);
}

button:disabled {
    cursor: wait;
    opacity: 0.8;
    animation: none;
    transform: none;
    box-shadow:
        inset 3px 3px 0 rgba(255, 241, 167, 0.5),
        inset -3px -3px 0 rgba(119, 82, 11, 0.2),
        0 3px 0 rgba(119, 82, 11, 0.28);
}

code {
    display: inline-block;
    padding: 0.45rem 0.72rem;
    background: #4d2d13;
    border: 3px solid #241208;
    color: #f7e8b6;
    font-family: "Consolas", "Courier New", monospace;
    font-weight: 700;
    box-shadow: inset 2px 2px 0 rgba(255, 234, 187, 0.12);
}

#sha256 {
    word-break: break-word;
}

footer {
    margin-bottom: 1.5rem;
    padding: 1.2rem 1.3rem;
    background:
        linear-gradient(180deg, #8b5a2b, #6d431f);
    border: 4px solid #46270f;
    box-shadow:
        inset 4px 4px 0 rgba(240, 196, 136, 0.4),
        inset -4px -4px 0 rgba(67, 37, 17, 0.45),
        var(--panel-shadow);
    animation: rise-in 620ms ease-out;
}

footer nav ul {
    display: grid;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

footer nav a {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem 1rem;
    background: linear-gradient(180deg, #d6d7d4, #acaea8);
    border: 3px solid #565954;
    box-shadow:
        inset 2px 2px 0 #eef0eb,
        inset -2px -2px 0 rgba(68, 71, 66, 0.34),
        0 4px 0 rgba(56, 58, 55, 0.35);
    color: #2a190c;
    text-decoration: none;
    transition: transform 180ms ease-out, box-shadow 180ms ease-out, filter 180ms ease-out;
}

footer nav a:hover,
footer nav a:focus-visible {
    transform: translateX(4px);
    filter: brightness(1.03);
    box-shadow:
        inset 2px 2px 0 #eef0eb,
        inset -2px -2px 0 rgba(68, 71, 66, 0.34),
        0 6px 0 rgba(56, 58, 55, 0.35);
}

footer nav img {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    object-fit: contain;
    padding: 0.35rem;
    background: #f6e5bd;
    border: 3px solid #765031;
}

footer p {
    margin: 0;
    color: #f8e7b8;
    font-weight: 700;
    text-shadow: 1px 1px 0 rgba(56, 31, 12, 0.65);
}

@keyframes rise-in {
    0% {
        opacity: 0;
        transform: translateY(26px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-idle {

    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.06);
    }
}

@keyframes shimmer-grid {
    0% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(8px, 4px, 0);
    }

    100% {
        transform: translate3d(0, 0, 0);
    }
}

@media (max-width: 720px) {

    header,
    main,
    footer {
        width: min(calc(100% - 1rem), var(--content-width));
    }

    header {
        padding: 1rem;
    }

    header nav ul {
        flex-direction: column;
    }

    header nav a {
        width: 100%;
    }

    main,
    footer {
        padding: 1rem;
    }

    section {
        padding: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
