/* Base / Reset */
html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

html {
    box-sizing: border-box;
}

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

a {
    color: orange;
    text-decoration: underline;
}

a:hover {
    color: #ffa500;
}

/* Scrollbars */
body {
    scrollbar-color: orange #111;
    scrollbar-width: thin;
}

body::-webkit-scrollbar {
    width: 10px;
}

body::-webkit-scrollbar-track {
    background: #111;
}

body::-webkit-scrollbar-thumb {
    background-color: orange;
    border: 2px solid #111;
    border-radius: 10px;
}

/* Layout: Background & Tiles */
.page-background {
    background-attachment: fixed;
    background-color: black;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

.page-background::before {
    background: rgba(0, 0, 0, 0.5);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 0;
}

.content-tile {
    background-color: #111;
    border-radius: 16px;
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.7);
    color: #e0e0e0;
    margin: 5vh auto 2rem;
    max-width: 600px;
    padding: 2rem 3rem;
    position: relative;
    z-index: 1;

    animation: fadeInUp .6s ease;
}

.content-tile h1,
.content-tile h2 {
    color: orange;
    margin-top: 0;
}

.content-tile .subtitle {
    color: #ccc;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Utility text */
.muted {
    color: #bbb;
    font-size: .95rem;
}

/* Links-list */
.links-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.links-list a {
    background: #222;
    border: 2px solid orange;
    border-radius: 6px;
    color: orange;
    display: block;
    font-weight: 600;
    padding: 12px 20px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.links-list a:hover,
.links-list a:focus {
    background-color: orange;
    color: black;
    outline: none;
}

/* Checkbox (custom) */
.checkbox-label {
    align-items: center;
    color: #ccc;
    cursor: pointer;
    display: flex;
    gap: 0.6em;
    font-size: 1rem;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.custom-checkbox {
    background-color: #111;
    border: 2px solid orange;
    border-radius: 3px;
    display: inline-block;
    height: 18px;
    position: relative;
    transition: background-color 0.2s, border-color 0.2s;
    width: 18px;
}

.checkbox-label input[type="checkbox"]:checked+.custom-checkbox {
    background-color: orange;
    border-color: orange;
}

.custom-checkbox::after {
    border: solid black;
    border-width: 0 2px 2px 0;
    content: "";
    height: 9px;
    left: 5px;
    opacity: 0;
    position: absolute;
    top: 2px;
    transform: rotate(45deg);
    transition: opacity 0.2s ease;
    width: 4px;
}

.checkbox-label input[type="checkbox"]:checked+.custom-checkbox::after {
    opacity: 1;
}

/* Header / Nav */
.site-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1100px;
    padding: 1rem 1.25rem;
    position: relative;
    z-index: 2;
}

.nav-check {
    opacity: 0;
    pointer-events: none;
    position: absolute;
}

.nav-toggle {
    align-items: center;
    border: 2px solid orange;
    border-radius: 8px;
    cursor: pointer;
    display: none;
    height: 34px;
    justify-content: center;
    margin-left: .5rem;
    width: 40px;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
    background: orange;
    content: "";
    display: block;
    height: 2px;
    position: relative;
    transition: transform .2s ease, opacity .2s ease;
    width: 20px;
}

.nav-toggle-bar::before {
    position: relative;
    top: -6px;
}

.nav-toggle-bar::after {
    position: relative;
    top: 6px;
}

.brand {
    align-items: center;
    display: flex;
    gap: .6rem;
    text-decoration: none;
}

.brand-logo {
    border-radius: 6px;
    height: 32px;
    object-fit: cover;
    width: 32px;
}

.brand-title {
    color: orange;
    font-weight: 700;
    letter-spacing: .3px;
}

.site-nav {
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
    gap: .8rem;
}

.site-nav a {
    border-radius: 6px;
    color: #e0e0e0;
    padding: .4rem .6rem;
    text-decoration: none;
}

.site-nav a:hover {
    background: orange;
    color: black;
}

.btn-ghost {
    border: 2px solid orange;
    border-radius: 8px;
    color: orange;
    padding: .55rem .9rem;
    text-decoration: none;
}

.btn-ghost:hover {
    background: orange;
    color: black;
}

/* Hero */
.hero-wrap {
    margin: 0 auto;
    max-width: 1100px;
    padding: 0 1.25rem 4rem;
}

.hero.content-tile {
    box-shadow: 0 0 24px rgba(255, 140, 0, .45);
    max-width: 1100px;
}

.hero h1 {
    margin-bottom: .4rem;
}

.hero-cta {
    display: flex;
    gap: .8rem;
    margin: 1rem 0 0.5rem;
}

/* Status strip / badges */
.status-strip {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .8rem;
}

.badge {
    background: #222;
    border: 1px solid orange;
    border-radius: 999px;
    color: orange;
    font-size: .9rem;
    padding: .25rem .5rem;
}

.badge-warn {
    border-color: #ffae42;
    color: #ffae42;
}

/* Quick cards grid */
.quick-cards {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin: 1.25rem 0 1.5rem;
}

/* Cards (generic) */
.card {
    background: rgba(17, 17, 17, .9);
    border: 1px solid rgba(255, 165, 0, .35);
    border-radius: 14px;
    box-shadow: 0 0 14px rgba(255, 140, 0, .2);
    color: #e0e0e0;
    padding: 1.1rem 1.25rem;
    transition: transform .15s ease;
}

.card:hover {
    transform: translateY(-2px);
}

.card h3 {
    color: orange;
    margin: 0 0 .6rem;
}

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

.card li+li {
    margin-top: .4rem;
}

.card a {
    border-bottom: 1px dashed rgba(255, 165, 0, .5);
    color: #e0e0e0;
    text-decoration: none;
}

.card a:hover {
    background: orange;
    border-bottom-color: transparent;
    border-radius: 6px;
    color: black;
    padding: 0 .25rem;
}

/* Updates list */
.updates.content-tile {
    margin-top: 1rem;
}

.updates-list {
    list-style: none;
    margin: .2rem 0 0;
    padding: 0;
}

.updates-list li {
    align-items: center;
    display: flex;
    gap: .6rem;
    padding: .35rem 0;
}

.updates-list .dot {
    background: orange;
    border-radius: 50%;
    display: inline-block;
    height: 6px;
    width: 6px;
}

.updates-list a {
    color: #e0e0e0;
    text-decoration: none;
}

.updates-list a:hover {
    background: orange;
    border-radius: 6px;
    color: black;
    padding: 0 .25rem;
}

.updates-list time {
    color: #aaa;
    font-size: .9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 860px) {
    .site-header {
        padding: .75rem 1rem;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        display: none;
    }

    .nav-check:checked~.site-nav {
        align-items: stretch;
        background: #111;
        border: 1px solid rgba(255, 165, 0, .35);
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
        display: flex;
        flex-direction: column;
        left: 1rem;
        padding: .5rem;
        position: absolute;
        right: 1rem;
        top: 100%;
    }

    .site-nav a {
        border-radius: 8px;
        font-size: 1.02rem;
        padding: .6rem .75rem;
        width: 100%;
    }

    .nav-check:checked+.nav-toggle .nav-toggle-bar {
        transform: rotate(45deg);
    }

    .nav-check:checked+.nav-toggle .nav-toggle-bar::before {
        top: 0;
        transform: rotate(90deg);
    }

    .nav-check:checked+.nav-toggle .nav-toggle-bar::after {
        opacity: 0;
    }
}

.updates-list li {
    opacity: 0;
    transform: translateY(6px);
    animation: fadeInUp 0.4s ease forwards;
}

.updates-list li:nth-child(1) {
    animation-delay: 0.1s;
}

.updates-list li:nth-child(2) {
    animation-delay: 0.2s;
}

.updates-list li:nth-child(3) {
    animation-delay: 0.3s;
}

.updates-list li:hover {
    color: orange;
    cursor: pointer;
}