:root {
    --bg: #07121f;
    --bg-deep: #030b14;
    --surface: #0d1c2b;
    --surface-strong: #132538;
    --text: #f4f7fb;
    --muted: #b7c3cf;
    --ink: #102131;
    --accent: #ff7147;
    --accent-strong: #f0522f;
    --accent-soft: #ffb18f;
    --line: rgba(255, 255, 255, 0.12);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--bg);
    color: var(--text);
    font-family: "Noto Sans KR", sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body,
button,
a {
    font: inherit;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.shell {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;
    padding: 10px 16px;
    border-radius: 8px;
    background: white;
    color: var(--ink);
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

:focus-visible {
    outline: 3px solid #ffd4c4;
    outline-offset: 4px;
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    background: rgba(3, 11, 20, 0.88);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.site-header.scrolled {
    background: rgba(3, 11, 20, 0.97);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: var(--text);
    text-decoration: none;
}

.brand-lockup img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
}

.brand-lockup span {
    display: grid;
    line-height: 1.12;
}

.brand-lockup small {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.02em;
}

.brand-lockup strong,
.site-footer strong {
    font-family: "Orbitron", sans-serif;
    letter-spacing: 0.08em;
}

.brand-lockup strong {
    font-size: 1.18rem;
    color: var(--accent-soft);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-menu a {
    display: block;
    padding: 10px 13px;
    border-radius: 999px;
    color: #d9e2eb;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
    background: rgba(255, 113, 71, 0.14);
    color: white;
}

.mobile-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: white;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu-btn[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-btn[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.hero {
    min-height: calc(100svh - 76px);
    margin-top: 76px;
    display: grid;
    align-items: center;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(3, 11, 20, 0.96) 0%, rgba(3, 11, 20, 0.84) 48%, rgba(3, 11, 20, 0.30) 100%),
        linear-gradient(0deg, rgba(3, 11, 20, 0.5), rgba(3, 11, 20, 0.1)),
        url("../images/optimized/2025worldcup.webp") center 42% / cover no-repeat;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    z-index: -1;
    height: 160px;
    background: linear-gradient(transparent, var(--bg));
}

.hero-inner {
    padding: 100px 0 86px;
}

.hero-copy {
    max-width: 760px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent-soft);
    font-family: "Orbitron", sans-serif;
    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(2.65rem, 6.1vw, 5.2rem);
    line-height: 1.12;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.hero-description {
    max-width: 680px;
    margin: 28px 0 0;
    color: #d1dae4;
    font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.button-primary {
    background: var(--accent);
    color: #180a05;
}

.button-primary:hover {
    background: #ff8a65;
}

.button-secondary {
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(3, 11, 20, 0.44);
    color: white;
}

.button-secondary:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.08);
}

.hero-facts {
    display: flex;
    gap: 0;
    margin: 46px 0 0;
}

.hero-facts div {
    min-width: 130px;
    padding: 0 26px;
    border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-facts div:first-child {
    padding-left: 0;
    border-left: 0;
}

.hero-facts dt {
    color: var(--muted);
    font-size: 0.78rem;
}

.hero-facts dd {
    margin: 2px 0 0;
    color: white;
    font-family: "Orbitron", sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
}

.section {
    padding: 104px 0;
    scroll-margin-top: 86px;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 46px;
}

.section-heading h2,
.story-copy h2,
.schedule-card h2 {
    margin: 0;
    letter-spacing: -0.035em;
    line-height: 1.22;
}

.section-heading h2,
.story-copy h2 {
    font-size: clamp(2.1rem, 4.5vw, 3.45rem);
}

.section-heading > p:last-child {
    margin: 15px 0 0;
    color: var(--muted);
    font-size: 1.04rem;
}

.records-section {
    background: var(--bg);
}

.records-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.record-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.14);
}

.record-card-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
}

.record-image {
    position: relative;
    min-height: 270px;
    overflow: hidden;
    background: var(--surface-strong);
}

.record-image img {
    width: 100%;
    height: 100%;
    min-height: 270px;
    object-fit: cover;
}

.record-card-featured .record-image,
.record-card-featured .record-image img {
    min-height: 410px;
}

.record-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--accent);
    color: #1b0b06;
    font-size: 0.78rem;
    font-weight: 800;
}

.record-badge-muted {
    background: rgba(3, 11, 20, 0.84);
    color: white;
}

.record-body {
    padding: 26px 28px 30px;
}

.record-card-featured .record-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 42px;
}

.record-body time {
    color: var(--accent-soft);
    font-family: "Orbitron", sans-serif;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.record-body h3 {
    margin: 9px 0 11px;
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    line-height: 1.35;
}

.record-body p {
    margin: 0;
    color: var(--muted);
}

.story-section {
    background: #eef3f7;
    color: var(--ink);
}

.story-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(40px, 7vw, 88px);
    align-items: center;
}

.story-image {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.story-image img {
    width: 100%;
    min-height: 510px;
    object-fit: cover;
}

.story-copy .eyebrow {
    color: var(--accent-strong);
}

.story-copy > p:not(.eyebrow) {
    margin: 24px 0 0;
    color: #425465;
    font-size: 1.05rem;
}

.story-points {
    display: grid;
    gap: 0;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid #cdd8e1;
}

.story-points li {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 18px;
    padding: 20px 0;
    border-bottom: 1px solid #cdd8e1;
}

.story-points strong {
    color: var(--ink);
}

.story-points span {
    color: #526475;
}

.players-section {
    background: var(--bg-deep);
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.player-card {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
}

.player-card-lead {
    border-color: rgba(255, 113, 71, 0.48);
    background: linear-gradient(145deg, rgba(255, 113, 71, 0.12), var(--surface));
}

.player-card img {
    width: 64px;
    height: 64px;
    flex: 0 0 auto;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    background: #24384a;
}

.player-card div {
    min-width: 0;
}

.player-card span {
    color: var(--accent-soft);
    font-size: 0.75rem;
    font-weight: 700;
}

.player-card h3 {
    margin: 2px 0 0;
    font-size: 1.08rem;
}

.player-card p {
    margin: 2px 0 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.schedule-section {
    padding: 0 0 104px;
    background: var(--bg-deep);
    scroll-margin-top: 86px;
}

.schedule-card {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 36px;
    padding: 40px 46px;
    border: 1px solid rgba(255, 113, 71, 0.36);
    border-radius: 22px;
    background: linear-gradient(110deg, rgba(255, 113, 71, 0.14), rgba(13, 28, 43, 0.84));
}

.schedule-card h2 {
    font-size: clamp(1.65rem, 3vw, 2.4rem);
}

.schedule-card > p {
    max-width: 470px;
    margin: 0;
    color: var(--muted);
}

.site-footer {
    padding: 56px 0 24px;
    border-top: 1px solid var(--line);
    background: #02070c;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 36px;
}

.site-footer strong {
    color: var(--accent-soft);
}

.site-footer p {
    margin: 8px 0 0;
    color: #8fa0b1;
    font-size: 0.9rem;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.site-footer nav a {
    color: #c8d2dc;
    text-decoration: none;
    font-size: 0.9rem;
}

.site-footer nav a:hover {
    color: white;
}

.footer-bottom {
    margin-top: 34px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 1040px) {
    .players-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .story-grid {
        gap: 44px;
    }
}

@media (max-width: 880px) {
    .shell {
        width: min(100% - 32px, 1200px);
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        display: grid;
        gap: 4px;
        padding: 14px 16px 18px;
        border-bottom: 1px solid var(--line);
        background: rgba(3, 11, 20, 0.98);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-menu a {
        padding: 12px 16px;
        border-radius: 10px;
    }

    .hero {
        background-position: 62% center;
    }

    .hero-copy {
        max-width: 650px;
    }

    .record-card-featured {
        grid-template-columns: 1fr;
    }

    .record-card-featured .record-image,
    .record-card-featured .record-image img {
        min-height: 330px;
    }

    .story-grid {
        grid-template-columns: 1fr;
    }

    .story-image img {
        min-height: 420px;
    }
}

@media (max-width: 680px) {
    .header-inner {
        min-height: 70px;
    }

    .brand-lockup small {
        display: none;
    }

    .brand-lockup strong {
        font-size: 1rem;
    }

    .brand-lockup img {
        width: 38px;
        height: 38px;
    }

    .hero {
        min-height: calc(100svh - 70px);
        margin-top: 70px;
        background:
            linear-gradient(0deg, rgba(3, 11, 20, 0.97) 0%, rgba(3, 11, 20, 0.68) 60%, rgba(3, 11, 20, 0.45) 100%),
            url("../images/optimized/2025worldcup.webp") 52% center / cover no-repeat;
    }

    .hero-inner {
        align-self: end;
        padding: 150px 0 58px;
    }

    .hero h1 {
        font-size: clamp(2.35rem, 12vw, 3.4rem);
    }

    .hero-description {
        margin-top: 22px;
        font-size: 1rem;
    }

    .hero-actions {
        display: grid;
    }

    .button {
        width: 100%;
    }

    .hero-facts {
        justify-content: space-between;
        margin-top: 36px;
    }

    .hero-facts div {
        min-width: 0;
        flex: 1;
        padding: 0 12px;
    }

    .hero-facts dd {
        font-size: 1.15rem;
    }

    .section {
        padding: 76px 0;
    }

    .section-heading {
        margin-bottom: 32px;
    }

    .records-grid {
        grid-template-columns: 1fr;
    }

    .record-card-featured {
        grid-column: auto;
        display: block;
    }

    .record-image,
    .record-image img,
    .record-card-featured .record-image,
    .record-card-featured .record-image img {
        min-height: 230px;
    }

    .record-card-featured .record-body,
    .record-body {
        padding: 23px 22px 26px;
    }

    .story-image img {
        min-height: 330px;
    }

    .story-points li {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .players-grid {
        grid-template-columns: 1fr;
    }

    .schedule-section {
        padding-bottom: 76px;
    }

    .schedule-card {
        display: block;
        padding: 30px 26px;
    }

    .schedule-card > p {
        margin-top: 18px;
    }

    .footer-grid {
        display: grid;
    }

    .site-footer nav {
        gap: 14px;
    }
}

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

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
