:root {
    --color-bg: #07100D;
    --color-surface: #0D1B15;
    --color-surface-container: #132820;
    --color-border: #1E3A2F;
    --color-accent: #10B981;
    --color-accent-jade: #34D399;
    --color-accent-dim: rgba(16, 185, 129, 0.15);
    --color-text: #F1F5F9;
    --color-text-secondary: #94A3B8;
}

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

html, body {
    height: 100%;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--color-accent-jade);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.85;
}

header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
    z-index: 100;
    background: var(--color-surface);
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
    padding: 0.5rem 1rem;
    height: 57px;
}

header h1 {
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    margin: 0;
}

#goToTop {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    background: var(--color-accent);
    color: #07100D;
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-bg);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
    z-index: 99;
    font-size: 1.25rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

#goToTop:hover {
    transform: translateY(-2px);
    background: var(--color-accent-jade);
    box-shadow: 0 0 1rem var(--color-accent);
}

@media screen and (min-width: 1024px) {
    header,
    main,
    footer {
        padding-left: calc(50vw - 430px);
        padding-right: calc(50vw - 430px);
    }

    #goToTop {
        right: calc(50vw - 430px);
    }
}

main {
    flex: 1;
    width: 100%;
    max-width: 860px;
    margin: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

button, a[button] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 9999px;
    border: 1px solid var(--color-border);
    background: var(--color-surface-container);
    color: var(--color-text);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

button:hover, a[button]:hover {
    background: #183328;
    border-color: var(--color-accent);
}

button.primary, a[button].primary {
    background: var(--color-accent);
    color: #07100D;
    border-color: var(--color-accent);
    font-weight: 600;
}

button.primary:hover, a[button].primary:hover {
    opacity: 0.9;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.4);
}

footer {
    text-align: center;
    padding: 1.5rem;
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    border-top: 1px solid var(--color-border);
}

footer a {
    color: inherit;
    display: inline-block;
    opacity: 0.35;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

footer a:hover {
    opacity: 0.85;
}
