/*
Theme Name: Phantom Reapers
Theme URI: https://www.phantom-reapers.com/
Author: Phantom Reapers
Description: Tema custom moderno per la community Phantom Reapers.
Version: 1.0.0
Text Domain: phantom-reapers
*/

:root {
    --void: #070809;
    --panel: #111315;
    --panel-soft: #191d20;
    --panel-deep: #0c0f11;
    --bone: #f3efe7;
    --muted: #aeb6b8;
    --oxide: #c4312f;
    --oxide-dark: #7f1d1b;
    --signal: #3ad6cd;
    --brass: #e0b36a;
    --line: rgba(243, 239, 231, 0.16);
    --line-dark: rgba(7, 8, 9, 0.14);
    --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
    --radius: 8px;
}

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

html {
    background: var(--void);
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}

body {
    margin: 0;
    background: var(--void);
    color: var(--bone);
    font-family: Inter, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    letter-spacing: 0;
}

body.nav-open {
    overflow: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

p {
    margin: 0 0 1.1rem;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.05;
    letter-spacing: 0;
}

h1 {
    font-size: 5.6rem;
    text-transform: uppercase;
}

h2 {
    font-size: 3rem;
}

h3 {
    font-size: 1.35rem;
}

ul {
    margin: 0;
}

.shell {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.skip-link,
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.skip-link:focus {
    z-index: 1000;
    top: 12px;
    left: 12px;
    width: auto;
    height: auto;
    padding: 0.75rem 1rem;
    overflow: visible;
    clip: auto;
    background: var(--bone);
    color: var(--void);
}

.site-header {
    position: fixed;
    z-index: 80;
    top: 0;
    right: 0;
    left: 0;
    border-bottom: 1px solid transparent;
    background: linear-gradient(180deg, rgba(7, 8, 9, 0.78), rgba(7, 8, 9, 0));
    transition: background 180ms ease, border-color 180ms ease;
}

.admin-bar .site-header {
    top: 32px;
}

.site-header.is-scrolled,
.nav-open .site-header {
    border-color: var(--line);
    background: rgba(7, 8, 9, 0.94);
    backdrop-filter: blur(14px);
}

.site-header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.4rem;
    min-height: 86px;
}

.brand img {
    width: 190px;
    max-height: 68px;
    object-fit: contain;
}

.primary-nav {
    justify-self: center;
}

.menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
    list-style: none;
}

.menu a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 0.85rem;
    border-radius: 6px;
    color: rgba(243, 239, 231, 0.86);
    font-size: 0.95rem;
}

.menu a:hover,
.menu a:focus-visible {
    background: rgba(243, 239, 231, 0.1);
    color: var(--bone);
}

.header-cta,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 1.2rem;
    border: 1px solid var(--oxide);
    border-radius: 6px;
    background: var(--oxide);
    color: #fff8f0;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    box-shadow: 0 12px 34px rgba(196, 49, 47, 0.28);
}

.header-cta:hover,
.button:hover,
.button:focus-visible {
    background: #df443f;
    border-color: #df443f;
}

.button--ghost {
    background: rgba(7, 8, 9, 0.42);
    border-color: rgba(243, 239, 231, 0.46);
    box-shadow: none;
}

.button--ghost:hover,
.button--ghost:focus-visible {
    background: rgba(243, 239, 231, 0.12);
    border-color: var(--bone);
}

.button--light {
    background: var(--bone);
    border-color: var(--bone);
    color: var(--void);
    box-shadow: none;
}

.menu-toggle {
    display: none;
}

.hero {
    position: relative;
    min-height: 88vh;
    padding: 128px 0 24px;
    overflow: hidden;
    background: var(--void);
}

.hero::after {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 120px;
    pointer-events: none;
    content: "";
    background:
        linear-gradient(180deg, rgba(7, 8, 9, 0), var(--void) 82%),
        radial-gradient(ellipse at 50% 100%, rgba(196, 49, 47, 0.2), transparent 64%);
}

.hero__media,
.hero__shade {
    position: absolute;
    inset: 0;
}

.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.hero__shade {
    background:
        linear-gradient(90deg, rgba(7, 8, 9, 0.86), rgba(7, 8, 9, 0.36) 50%, rgba(7, 8, 9, 0.72)),
        linear-gradient(180deg, rgba(7, 8, 9, 0.18), rgba(7, 8, 9, 0.9));
}

.hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 54vh;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 2rem;
}

.eyebrow {
    margin: 0 0 0.85rem;
    color: var(--signal);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero__lead {
    max-width: 680px;
    margin-top: 1.05rem;
    color: rgba(243, 239, 231, 0.9);
    font-size: 1.22rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.4rem;
}

.mission-strip {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.mission-strip div {
    min-height: 92px;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(17, 19, 21, 0.74);
    backdrop-filter: blur(12px);
}

.mission-strip strong,
.mission-strip span {
    display: block;
}

.mission-strip strong {
    color: var(--bone);
    font-size: 1.18rem;
}

.mission-strip span {
    color: var(--muted);
    font-size: 0.92rem;
}

.section {
    position: relative;
    padding: 86px 0;
    overflow: hidden;
    scroll-margin-top: 92px;
}

.section > .shell {
    position: relative;
    z-index: 2;
}

.section::before,
.section::after {
    position: absolute;
    z-index: 1;
    right: 0;
    left: 0;
    height: 92px;
    pointer-events: none;
    content: "";
}

.section::before {
    top: -1px;
    background:
        linear-gradient(180deg, rgba(7, 8, 9, 0.9), rgba(7, 8, 9, 0)),
        radial-gradient(ellipse at 18% 0%, rgba(196, 49, 47, 0.16), transparent 58%),
        radial-gradient(ellipse at 82% 0%, rgba(58, 214, 205, 0.1), transparent 52%);
}

.section::after {
    bottom: -1px;
    background:
        linear-gradient(180deg, rgba(7, 8, 9, 0), rgba(7, 8, 9, 0.88)),
        radial-gradient(ellipse at 72% 100%, rgba(196, 49, 47, 0.14), transparent 58%),
        radial-gradient(ellipse at 28% 100%, rgba(58, 214, 205, 0.08), transparent 50%);
}

.section--video::before,
.section--operations::before,
.about-band::before,
.recruit-section::before,
.section--armors::before,
.news-section::before,
.section--social::before {
    height: 120px;
}

.section--video::after,
.section--operations::after,
.about-band::after,
.recruit-section::after,
.section--armors::after,
.news-section::after,
.section--social::after {
    height: 120px;
}

.section--light {
    background: var(--panel-deep);
    color: var(--bone);
}

.section--dark {
    background:
        linear-gradient(135deg, rgba(196, 49, 47, 0.14), rgba(58, 214, 205, 0.07)),
        var(--void);
    color: var(--bone);
}

.section--video {
    background:
        linear-gradient(180deg, rgba(7, 8, 9, 0.92), rgba(17, 19, 21, 0.98)),
        radial-gradient(ellipse at 50% 0%, rgba(58, 214, 205, 0.14), transparent 62%),
        var(--void);
    color: var(--bone);
}

.section--operations {
    background:
        linear-gradient(180deg, rgba(7, 8, 9, 0.9), rgba(14, 17, 18, 0.94)),
        linear-gradient(90deg, rgba(7, 8, 9, 0.9), rgba(7, 8, 9, 0.58) 48%, rgba(7, 8, 9, 0.88)),
        url("assets/images/bg-mercury.jpg") center center / cover no-repeat,
        var(--panel-deep);
}

.section--armors {
    background:
        linear-gradient(135deg, rgba(127, 29, 27, 0.26), rgba(7, 8, 9, 0.88) 45%, rgba(58, 214, 205, 0.12)),
        linear-gradient(180deg, rgba(7, 8, 9, 0.84), rgba(7, 8, 9, 0.94)),
        url("assets/images/bg-orbit.jpg") center center / cover no-repeat,
        var(--void);
}

.section--social {
    background:
        linear-gradient(180deg, rgba(7, 8, 9, 0.92), rgba(7, 8, 9, 0.96)),
        linear-gradient(90deg, rgba(7, 8, 9, 0.88), rgba(7, 8, 9, 0.74)),
        url("assets/images/bg-orbit.jpg") center center / cover no-repeat,
        #0d0f10;
    color: var(--bone);
}

.section__header {
    max-width: 780px;
    margin-bottom: 2.2rem;
}

.section__header--center {
    margin-inline: auto;
    text-align: center;
}

.section__header p:last-child {
    color: var(--muted);
    font-size: 1.08rem;
}

.section--social .section__header p:last-child,
.section--dark .section__header p:last-child {
    color: var(--muted);
}

.operations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.operation-card,
.post-card,
.armor-card,
.social-card,
.recruit-panel,
.empty-state {
    border-radius: var(--radius);
}

.operation-card {
    min-height: 270px;
    padding: 1.2rem;
    border: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(243, 239, 231, 0.06), rgba(243, 239, 231, 0.02)),
        var(--panel);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.operation-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 1.4rem;
    border-radius: 50%;
    background: rgba(7, 8, 9, 0.74);
    color: var(--brass);
    font-weight: 900;
}

.operation-card h3 {
    margin-bottom: 0.7rem;
}

.operation-card p {
    color: var(--muted);
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    align-items: center;
    gap: 3rem;
}

.split-layout p {
    max-width: 660px;
    color: rgba(243, 239, 231, 0.82);
    font-size: 1.08rem;
}

.split-layout .button {
    margin-top: 0.7rem;
}

.about-band {
    border-top: 1px solid var(--line);
    background:
        linear-gradient(90deg, rgba(7, 8, 9, 0.96), rgba(7, 8, 9, 0.82) 52%, rgba(7, 8, 9, 0.93)),
        linear-gradient(180deg, rgba(7, 8, 9, 0.94), rgba(7, 8, 9, 0.8)),
        url("assets/images/bg-orbit.jpg") center center / cover no-repeat,
        var(--void);
}

.about-band .split-layout {
    align-items: start;
}

.about-panel {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(17, 19, 21, 0.82);
    box-shadow: var(--shadow);
}

.about-panel img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
}

.about-stats span {
    display: grid;
    min-height: 64px;
    place-items: center;
    color: var(--brass);
    font-weight: 900;
}

.about-stats span + span {
    border-left: 1px solid var(--line);
}

.video-frame {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.video-frame iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

.recruit-panel {
    padding: 1.2rem;
    border: 1px solid var(--line);
    background: rgba(17, 19, 21, 0.82);
    box-shadow: var(--shadow);
}

.recruit-section {
    background:
        linear-gradient(90deg, rgba(7, 8, 9, 0.96), rgba(7, 8, 9, 0.74) 52%, rgba(7, 8, 9, 0.92)),
        linear-gradient(180deg, rgba(7, 8, 9, 0.88), rgba(7, 8, 9, 0.94)),
        url("assets/images/bg-hangar.jpg") center center / cover no-repeat,
        var(--void);
}

.recruit-panel img {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 6px;
    object-fit: cover;
}

.recruit-panel ul {
    display: grid;
    gap: 0.7rem;
    margin-top: 1rem;
    padding-left: 1.1rem;
    color: rgba(243, 239, 231, 0.86);
}

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

.armor-grid--page {
    max-width: 920px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.armor-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(196, 49, 47, 0.32);
    background:
        linear-gradient(180deg, rgba(243, 239, 231, 0.06), rgba(243, 239, 231, 0.02)),
        #101315;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.armor-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    padding: 0.75rem 0.75rem 0;
    object-fit: contain;
    object-position: center top;
    background:
        radial-gradient(circle at 50% 8%, rgba(58, 214, 205, 0.18), transparent 34%),
        linear-gradient(180deg, #20282c, #0c0f11);
}

.armor-card div {
    padding: 1rem;
}

.armor-card h2,
.armor-card h3 {
    display: inline;
    margin-bottom: 0.5rem;
    color: var(--bone);
    font-family: Impact, "Arial Black", Inter, Arial, sans-serif;
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1.1;
    text-decoration-line: underline;
    text-decoration-color: var(--oxide);
    text-decoration-thickness: 3px;
    text-underline-offset: 5px;
    text-transform: uppercase;
    text-shadow: 0 0 18px rgba(196, 49, 47, 0.34);
}

.armor-card p {
    margin-top: 0.85rem;
    color: var(--signal);
    font-family: "Trebuchet MS", Inter, Arial, sans-serif;
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.social-card {
    display: grid;
    min-height: 170px;
    place-items: center;
    gap: 0.85rem;
    padding: 1rem;
    border: 1px solid var(--line);
    background: #15191b;
}

.social-card:hover,
.social-card:focus-visible {
    border-color: var(--signal);
    background: #1a2022;
}

.social-card img {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    object-fit: cover;
}

.social-card span {
    font-weight: 900;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 168px 0 78px;
    background:
        linear-gradient(135deg, rgba(196, 49, 47, 0.18), rgba(58, 214, 205, 0.08)),
        var(--void);
}

.page-hero h1 {
    max-width: 900px;
    font-size: 4.2rem;
}

.page-hero p:not(.eyebrow) {
    max-width: 720px;
    color: rgba(243, 239, 231, 0.82);
    font-size: 1.12rem;
}

.page-hero--image {
    min-height: 520px;
}

.page-hero__media {
    position: absolute;
    inset: 0;
    opacity: 0.32;
}

.page-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero--image .shell {
    position: relative;
}

.warehouse-hero .page-hero__media {
    opacity: 0.38;
}

.content-body {
    max-width: 820px;
}

.content-body--wide {
    max-width: 980px;
}

.content-body h2,
.content-body h3 {
    margin: 1.8rem 0 0.8rem;
}

.content-body a {
    color: var(--oxide-dark);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.warehouse-section {
    min-height: 46vh;
    display: grid;
    align-items: center;
}

.warehouse-placeholder {
    display: grid;
    min-height: 280px;
    place-items: center;
    padding: 3rem 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(243, 239, 231, 0.07), rgba(243, 239, 231, 0.02)),
        rgba(17, 19, 21, 0.82);
    box-shadow: var(--shadow);
    text-align: center;
}

.warehouse-placeholder h2 {
    margin: 0;
    font-size: clamp(2.6rem, 7vw, 5rem);
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.post-card {
    overflow: hidden;
    border: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(243, 239, 231, 0.06), rgba(243, 239, 231, 0.02)),
        var(--panel);
    color: var(--bone);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.post-card__media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.post-card__body {
    padding: 1.1rem;
}

.post-card time {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--brass);
    font-size: 0.85rem;
    font-weight: 800;
}

.post-card h2 {
    margin-bottom: 0.7rem;
    font-size: 1.35rem;
}

.post-card h3 {
    margin-bottom: 0.7rem;
    font-size: 1.28rem;
}

.post-card h2 a,
.post-card h3 a {
    color: inherit;
}

.post-card p {
    color: var(--muted);
}

.news-section .section__header {
    margin-inline: auto;
    text-align: center;
}

.news-section .post-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 420px));
    justify-content: center;
    justify-items: center;
}

.news-section .post-card {
    width: min(100%, 420px);
    text-align: center;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 2rem;
    border: 1px solid var(--line);
    background: var(--panel);
}

.pagination {
    margin-top: 2rem;
}

.nav-links {
    display: flex;
    gap: 0.6rem;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--bone);
}

.single-post__image {
    margin-top: -42px;
}

.single-post__image img {
    width: 100%;
    max-height: 620px;
    border-radius: var(--radius);
    object-fit: cover;
    box-shadow: var(--shadow);
}

.site-footer {
    padding: 56px 0;
    border-top: 1px solid var(--line);
    background: #090b0c;
    color: var(--bone);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.6fr) minmax(260px, 0.8fr);
    gap: 2rem;
    align-items: start;
}

.site-footer__logo {
    width: 150px;
    height: 86px;
    margin-bottom: 1rem;
    border-radius: 6px;
    object-fit: cover;
}

.site-footer p {
    max-width: 520px;
    color: var(--muted);
}

.footer-menu {
    display: grid;
    gap: 0.45rem;
    padding: 0;
    list-style: none;
}

.footer-menu a {
    color: rgba(243, 239, 231, 0.82);
}

.site-footer__cta {
    display: grid;
    gap: 0.9rem;
    justify-items: start;
}

.site-footer__cta span {
    color: var(--signal);
    font-weight: 900;
    text-transform: uppercase;
}

@media (max-width: 1060px) {
    h1 {
        font-size: 4.3rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .operations-grid,
    .mission-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .armor-grid,
    .social-grid,
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .split-layout,
    .site-footer__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    body {
        font-size: 15px;
    }

    h1,
    .page-hero h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2rem;
    }

    .site-header__inner {
        grid-template-columns: auto auto;
        justify-content: space-between;
        min-height: 74px;
    }

    .brand img {
        width: 150px;
        max-height: 56px;
    }

    .header-cta {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
        width: 46px;
        height: 46px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        border: 1px solid var(--line);
        border-radius: 6px;
        background: rgba(7, 8, 9, 0.62);
        color: var(--bone);
    }

    .menu-toggle span:not(.screen-reader-text) {
        display: block;
        width: 20px;
        height: 2px;
        background: currentColor;
    }

    .primary-nav {
        position: fixed;
        top: 84px;
        right: 16px;
        left: 16px;
        display: none;
        width: auto;
        padding: 0.75rem;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: rgba(7, 8, 9, 0.96);
        box-shadow: var(--shadow);
        justify-self: stretch;
    }

    .nav-open .primary-nav {
        display: block;
    }

    .menu {
        align-items: stretch;
        flex-direction: column;
    }

    .menu a {
        min-height: 48px;
        justify-content: center;
    }

    .hero {
        min-height: 86vh;
        padding-top: 96px;
    }

    .hero__content {
        min-height: 48vh;
    }

    .hero__lead {
        font-size: 1.05rem;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .mission-strip,
    .operations-grid,
    .armor-grid,
    .armor-grid--page,
    .social-grid,
    .post-grid {
        grid-template-columns: 1fr;
    }

    .mission-strip div {
        min-height: 78px;
    }

    .section {
        padding: 58px 0;
    }

    .page-hero {
        padding: 126px 0 58px;
    }

    .recruit-panel {
        padding: 0.85rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
