/* Adapted from henrythierrydev/Minecket (MIT).
   Palette, navbar, header, cards, buttons, news, play, footer class names kept.
   Theme shifted toward minecraft.net: cinematic dark hero, chunky type, grass CTAs, news grid.

   Type: Noto Sans SC for titles and body (readable for a Chinese personal page).
*/

:root {
    --primary-bc: #0b0b0b;
    --primary-tc: #f3f3f3;
    --secondary-bc: #111111;
    --secondary-tc: #ececec;
    --tertiary-bc: #171717;
    --tertiary-tc: #ffffff;
    --primary-button-bc: #3c8527;
    --primary-button-tc: #ffffff;
    --sucess-button-bc: #3c8527;
    --sucess-button-tc: #ffffff;
    --alert-button-bc: #e20c3b;
    --alert-button-tc: #ffffff;
    --grass: #3c8527;
    --grass-hover: #4f9a32;
    --lime: #8fe36a;
    --line: #262626;
    --max: 1180px;
    --font-display: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
    --font-body: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    color: var(--primary-tc);
    background: var(--primary-bc);
    font-family: var(--font-body);
    font-synthesis: none;
}

img { max-width: 100%; display: block; }

a { color: var(--lime); }

.skip-link {
    position: absolute;
    left: 12px;
    top: -40px;
    z-index: 2000;
    padding: 8px 12px;
    background: var(--grass);
    color: #fff;
}

.skip-link:focus { top: 12px; }

.flex {
    display: flex;
    align-items: center;
}

.container {
    width: min(var(--max), calc(100% - 48px));
    margin: 0 auto;
}

.section-kicker {
    margin: 0 0 8px;
    color: var(--lime);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: uppercase;
}

.section-sub {
    margin: 8px 0 0;
    color: #bdbdbd;
    font-weight: 400;
}

/* Buttons — Minecket .btn + chunky MC press */
.btn,
.nav-btn {
    display: inline-block;
    padding: 14px 26px;
    text-decoration: none;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: 0;
    color: var(--sucess-button-tc);
    background: var(--sucess-button-bc);
    border: 3px solid #1d3f12;
    box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.16), 0 4px 0 #1d3f12;
}

.btn:hover,
.nav-btn:hover {
    background: var(--grass-hover);
    filter: none;
}

.btn-sucess {
    color: var(--sucess-button-tc);
    background: var(--sucess-button-bc);
}

.btn-outline {
    color: #fff;
    background: transparent;
    border-color: #fff;
    box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.08), 0 4px 0 #000;
}

.btn-outline:hover {
    color: #111;
    background: #fff;
}

.btn-dark {
    color: var(--secondary-tc);
    background: #000;
}

/* Navbar */
.nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    justify-content: space-between;
    padding: 12px 36px;
    background: rgba(12, 12, 12, 0.94);
    border-bottom: 2px solid var(--line);
    backdrop-filter: blur(12px);
}

.nav-logo {
    gap: 10px;
    text-decoration: none;
    color: var(--secondary-tc);
}

.nav-logo h1,
.navbars-title h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.nav-logo h1::after { content: none; }

.nav-list { gap: 4px; }

.nav-list a {
    padding: 10px 14px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 400;
    text-decoration: none;
    color: var(--secondary-tc);
}

.nav-list a:hover {
    color: var(--lime);
    background: transparent;
}

.nav-btn {
    margin-left: 10px;
    padding: 10px 18px;
}

.nav-mobile { display: none; }

/* Header / cinematic hero */
.header {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    padding: 72px 8vw 96px;
    color: var(--secondary-tc);
    background-color: #070b14;
    overflow: hidden;
}

.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-slides img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slides img.is-active {
    opacity: 1;
}

.header::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.42) 55%, rgba(0, 0, 0, 0.5) 100%);
}

.header-inner,
.header-text {
    position: relative;
    z-index: 2;
}

.header-inner {
    width: min(var(--max), 100%);
    margin: 0 auto;
}

.header-text {
    text-align: left;
    max-width: 640px;
}

.hero-kicker {
    margin: 0 0 12px;
    color: var(--lime);
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: 0;
    text-transform: uppercase;
}

.header h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(52px, 9vw, 104px);
    font-weight: 400;
    line-height: 0.95;
    text-transform: none;
    text-shadow: 0 5px 0 #000000a2;
}

.hero-aka {
    margin: 12px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    text-shadow: 3px 3px 0 #000;
}

.hero-lead {
    max-width: 36em;
    margin: 22px 0 0;
    font-size: 18px;
    line-height: 1.7;
    color: #d7d7d7;
}

.hero-actions { gap: 14px; margin-top: 28px; flex-wrap: wrap; }

/* About banner — Minecket .play */
.play {
    padding: 48px 24px;
    color: var(--secondary-tc);
    background: var(--secondary-bc);
}

.play-content {
    width: min(var(--max), 100%);
    margin: 0 auto;
    gap: 36px;
    padding: 36px;
    align-items: center;
    background: var(--tertiary-bc);
    border: 3px solid #2a2a2a;
    box-shadow: 0 6px 0 #000;
}

.play-images img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border: 3px solid #3c8527;
}

.play-text h2 {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 400;
    text-shadow: 0 3px 0 #00000040;
}

.play-text h2 span {
    display: inline-block;
    margin-left: 8px;
    font-size: 22px;
    color: #bdbdbd;
}

.play-text p { margin: 0 0 12px; line-height: 1.7; color: #d5d5d5; }

.play-meta { color: #9a9a9a !important; font-size: 14px; }

/* Project / news cards */
.main {
    padding: 64px 0;
    background: var(--primary-bc);
}

.main-title h2,
.news-title h2,
.discover h2,
.contact h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 400;
}

.news-grid,
.cards.news-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 28px;
    padding: 0;
    list-style: none;
}

.card {
    display: flex;
    flex-direction: column;
    width: auto;
    overflow: hidden;
    text-decoration: none;
    color: var(--primary-tc);
    background: #151515;
    border: 2px solid #2c2c2c;
}

.card:hover {
    border-color: var(--grass);
    transform: translateY(-3px);
}

.card-image { height: 168px; }

.tone-grass {
    background:
        linear-gradient(#0000, #0007),
        repeating-linear-gradient(90deg, #2f6b1e 0 20px, #3c8527 20px 40px) 0 0 / 100% 58%,
        repeating-linear-gradient(#5a3a1c 0 20px, #6b4a2b 20px 40px) 0 100% / 100% 42%;
    background-repeat: no-repeat;
}

.tone-purple {
    background:
        linear-gradient(#0000, #0007),
        repeating-linear-gradient(90deg, #4a2d72 0 20px, #6b3fa0 20px 40px) 0 0 / 100% 58%,
        repeating-linear-gradient(#2a1c40 0 20px, #3b2758 20px 40px) 0 100% / 100% 42%;
    background-repeat: no-repeat;
}

.tone-cyan {
    background:
        linear-gradient(#0000, #0007),
        repeating-linear-gradient(90deg, #1b6b6b 0 20px, #2aa3a3 20px 40px) 0 0 / 100% 58%,
        repeating-linear-gradient(#16343a 0 20px, #1f4a52 20px 40px) 0 100% / 100% 42%;
    background-repeat: no-repeat;
}

.tone-copper {
    background:
        linear-gradient(#0000, #0007),
        repeating-linear-gradient(90deg, #8a4b1a 0 20px, #c46a22 20px 40px) 0 0 / 100% 58%,
        repeating-linear-gradient(#4a2c16 0 20px, #6b3d1c 20px 40px) 0 100% / 100% 42%;
    background-repeat: no-repeat;
}

.card-content { padding: 18px 20px 22px; }

.card-tag {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--lime);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: uppercase;
}

.card-content h3,
.card-content h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 400;
}

.card-content p {
    margin: 8px 0 0;
    color: #b0b0b0;
    font-size: 14px;
}

.card-plain {
    padding: 20px;
    color: #b0b0b0;
}

/* Skills */
.news {
    padding: 64px 0;
    background: #101010;
}

.skill-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 28px;
}

.skill-group {
    padding: 22px;
    background: #161616;
    border-left: 7px solid var(--grass);
    box-shadow: 0 6px 0 #1d3f12;
}

.skill-group h3 {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 400;
    color: #cfcfcf;
}

.skill-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-chips span {
    padding: 6px 10px;
    border: 1px solid #3a3a3a;
    color: #e8e8e8;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 400;
}

/* GitHub */
.discover {
    padding: 64px 24px 72px;
    color: var(--secondary-tc);
    background: var(--secondary-bc);
    text-align: left;
}

.discover-container {
    width: min(var(--max), calc(100% - 0px));
    margin: 0 auto;
}

.discover h2::after { content: none; }

.github-grid {
    width: min(var(--max), 100%);
    margin: 28px auto 0;
}

.github-grid .card { min-height: 160px; }

/* Contact */
.contact {
    padding: 64px 0;
    background: var(--primary-bc);
}

.contact-card {
    padding: 36px;
    background: #151515;
    border: 2px solid #2c2c2c;
}

.contact-name {
    margin: 16px 0 8px;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 400;
}

.contact-name span { color: #bdbdbd; font-size: 18px; }

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.contact-links a {
    color: #fff;
    text-decoration: none;
    border-bottom: 2px solid var(--grass);
}

.contact-links a:hover { color: var(--lime); }

/* Hypixel — very bottom */
.hypixel {
    background: #0a0a0a;
    border-top: 2px solid var(--line);
}

.hypixel-bar {
    width: min(var(--max), calc(100% - 48px));
    margin: 0 auto;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 0;
    text-decoration: none;
    color: inherit;
}

.hypixel-widget { gap: 14px; min-width: 0; }

.hypixel-widget img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border: 2px solid #3c8527;
}

.hypixel-widget .name {
    font-family: var(--font-display);
    font-weight: 400;
}

.hypixel-widget .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #b0b0b0;
    font-size: 13px;
}

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 4px;
    border-radius: 99px;
    background: #888;
}

.dot.on { background: #6ee04a; }
.dot.off { background: #666; }
.dot.unk { background: #d4a017; }

.hypixel-more {
    color: var(--lime);
    font-family: var(--font-display);
    font-weight: 400;
    white-space: nowrap;
}

/* Footer */
.footer {
    padding: 28px 36px;
    background: #0e0e0e;
    border-top: 2px solid var(--line);
}

.footer-container { justify-content: space-between; gap: 24px; align-items: flex-start; }

.footer-credits-photo { gap: 10px; }

.footer-credits-photo h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 400;
}

.footer-credits-photo h2::after { content: none; }

.footer-credits p { margin: 8px 0 0; color: #9a9a9a; }

.footer-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #9a9a9a;
    font-size: 13px;
}

.footer-items a { color: #d0d0d0; }

@media only screen and (max-width: 999px) {
    .nav { display: none; }

    .nav-mobile {
        display: block;
        position: sticky;
        top: 0;
        z-index: 1000;
        color: var(--secondary-tc);
        background: var(--secondary-bc);
        border-bottom: 2px solid var(--line);
    }

    .nav-mobile-title {
        justify-content: space-between;
        padding: 10px 16px;
    }

    .navbars-title {
        gap: 8px;
        text-decoration: none;
        color: inherit;
    }

    .navbars-bars {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 0;
        border: 0;
        background: none;
        cursor: pointer;
    }

    .bar {
        width: 28px;
        height: 3px;
        margin: 3px;
        background: #fff;
    }

    .nav-mobile-menu {
        display: none;
        flex-direction: column;
        padding: 8px 0 16px;
        border-top: 2px solid var(--line);
    }

    .nav-mobile-menu.active { display: flex; }

    .nav-mobile-menu a {
        width: 100%;
        padding: 14px 0;
        font-family: var(--font-display);
        font-weight: 400;
        text-align: center;
        text-decoration: none;
        color: var(--secondary-tc);
    }

    .header { padding: 56px 24px 72px; min-height: 78vh; }

    .header h1 { font-size: 56px; }

    .play-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
    }

    .news-grid,
    .skill-groups { grid-template-columns: 1fr; }

    .footer-container,
    .hypixel-bar { flex-direction: column; align-items: flex-start; }
}

@media only screen and (min-width: 1000px) {
    .nav { display: flex; }
    .nav-mobile { display: none; }
}

@media (max-width: 720px) {
    .news-grid { grid-template-columns: 1fr; }
}
