/*
 * The War of the Four.
 *
 * A standalone page rather than a section on the index: the copy is longer than
 * anything the section switcher can hold, and it wants its own URL in six
 * languages so search can reach it directly.
 *
 * Design tokens come from blog.css, which loads first — this file only adds the
 * pieces the page needs: the scoreboard framing, the four god cards and the
 * pull quotes. Nothing here leaks outside .war-page.
 */

/* ------------------------------ The backdrop ----------------------------- */

/*
 * z-index -1 puts it under the copy but over the root background colour, so
 * body keeps painting #050507 behind it and nothing shows through if the image
 * fails to load. Fixed, so it holds still while the page scrolls — and so no
 * `background-attachment: fixed` is needed, which iOS repaints every frame.
 */
.war-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: url('/img/cementerio.webp') center center / cover no-repeat;
}

/* The scrim is what keeps 3000px of body copy readable over a daylit vista. It
 * stays heaviest low down, where the image is brightest and the text densest,
 * and lifts toward the top so the statues actually read behind the masthead. */
.war-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(5, 5, 7, 0.58) 0%,
        rgba(5, 5, 7, 0.68) 45%,
        rgba(5, 5, 7, 0.78) 100%
    );
}

/* With a lighter scrim the copy needs its own contrast rather than borrowing it
 * from the backdrop: a shadow costs nothing and holds the text over whichever
 * part of the image happens to sit behind it. */
.war-page {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85), 0 2px 12px rgba(0, 0, 0, 0.6);
}

.war-page {
    max-width: 900px;
    margin: 0 auto;
}

/* ------------------------------- Masthead ------------------------------- */

.war-hero {
    text-align: center;
    padding: 1rem 0 2.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.22);
    margin-bottom: 2.5rem;
}

/* The link back to the section this page continues. */
.war-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.8rem;
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: rgba(212, 175, 55, 0.06);
    color: var(--l2-gold);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.war-kicker:hover {
    background: rgba(212, 175, 55, 0.14);
    border-color: var(--l2-gold);
}

.war-kicker .material-symbols-outlined { font-size: 14px; }

.war-hero h1 {
    font-family: 'Noto Serif', serif;
    font-style: italic;
    font-size: clamp(2.1rem, 5.5vw, 3.4rem);
    line-height: 1.1;
    color: #fff;
    margin: 1.2rem 0 0;
    text-shadow: 0 0 22px rgba(212, 175, 55, 0.35);
}

.war-hero .war-standfirst {
    max-width: 40rem;
    margin: 1rem auto 0;
    font-family: 'Noto Serif', serif;
    font-style: italic;
    font-size: 1.05rem;
    color: var(--text-dim);
}

/* -------------------------------- Recap --------------------------------- */

/* The bridge from the section on the index: the line the possessed leaves you
   with, and the one mechanic the rest of the page assumes you already know. */
.war-recap {
    margin-bottom: 2.5rem;
    padding: 1.2rem 1.4rem;
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-left: 3px solid var(--l2-purple);
    background: rgba(168, 85, 247, 0.06);
}

.war-recap blockquote {
    margin: 0;
    font-family: 'Noto Serif', serif;
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--l2-purple);
}

.war-recap .war-recap-line {
    margin: 0.7rem 0 0;
    font-family: 'Noto Serif', serif;
    font-style: italic;
    font-size: 1.05rem;
    color: #fff;
}

.war-recap .war-recap-line strong { color: var(--l2-gold); font-weight: 400; }

.war-recap p:last-child {
    margin: 0.9rem 0 0;
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--text-dim);
}

.war-recap p:last-child strong { color: #fff; font-weight: 600; }

/* -------------------------------- Blocks -------------------------------- */

.war-block { margin-bottom: 3rem; }

.war-block h2 {
    font-family: 'Noto Serif', serif;
    font-style: italic;
    font-size: clamp(1.5rem, 3.2vw, 2rem);
    line-height: 1.2;
    color: #fff;
    margin: 0 0 1rem;
}

.war-block p {
    color: var(--text-dim);
    font-size: 1rem;
    margin: 0 0 1rem;
}

.war-block p strong { color: #fff; font-weight: 600; }
.war-block p em { color: var(--l2-gold); font-style: italic; }

/* The line each block is really about, set apart from the argument. */
.war-pull {
    margin: 1.5rem 0;
    padding: 0.9rem 1.2rem;
    border-left: 3px solid var(--l2-gold);
    background: rgba(212, 175, 55, 0.05);
    font-family: 'Noto Serif', serif;
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.55;
    color: #fff;
}

.war-pull.war-pull-purple {
    border-left-color: var(--l2-purple);
    background: rgba(168, 85, 247, 0.07);
}

/* The one number that has no religion. */
.war-scale {
    display: block;
    margin: 1.4rem 0;
    padding: 1.3rem 1rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
    background: linear-gradient(135deg, rgba(30, 30, 35, 0.9), rgba(10, 10, 15, 0.9));
    text-align: center;
    font-family: 'Noto Serif', serif;
    font-style: italic;
    font-size: clamp(1.4rem, 4vw, 2rem);
    color: var(--l2-gold);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

/* What the chest does when the god who set the fight is the one you pray to. */
.war-chest {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    margin-top: 1.5rem;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-left: 3px solid var(--l2-gold);
    background: rgba(212, 175, 55, 0.05);
    font-size: 0.94rem;
    line-height: 1.6;
    color: var(--text-dim);
}

.war-chest .material-symbols-outlined {
    font-size: 21px;
    color: var(--l2-gold);
    flex-shrink: 0;
}

.war-chest strong {
    display: block;
    margin-bottom: 0.25rem;
    font-family: 'Noto Serif', serif;
    font-style: italic;
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--l2-gold);
}

.war-chest em { color: #fff; font-style: italic; }

/* ----------------------------- The four gods ---------------------------- */

.war-gods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.war-god {
    position: relative;
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--god-color);
    background: linear-gradient(135deg, rgba(20, 20, 25, 0.95), rgba(8, 8, 12, 0.95));
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.war-god::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--god-color);
    box-shadow: 0 0 15px var(--god-color);
}

.war-god-head {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
}

.war-god-name {
    font-family: 'Noto Serif', serif;
    font-style: italic;
    font-size: 1.35rem;
    line-height: 1;
    color: var(--god-color);
    text-shadow: 0 0 15px var(--god-color);
}

.war-god-epithet {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.58rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.war-god p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text);
}

/* ------------------------------ The board ------------------------------- */

.war-board {
    margin: 2.5rem 0;
    padding: 1.4rem 1.5rem;
    border: 1px solid var(--outline);
    background: var(--surface-variant);
}

.war-board h3 {
    margin: 0 0 0.9rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--l2-gold);
}

.war-board ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.5rem;
}

.war-board li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.94rem;
    color: var(--text-dim);
}

.war-board li .material-symbols-outlined {
    font-size: 17px;
    color: var(--l2-gold);
    flex-shrink: 0;
}

/* -------------------------------- Closing ------------------------------- */

.war-close {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.22);
    text-align: center;
}

.war-close blockquote {
    margin: 0 0 1.5rem;
    font-family: 'Noto Serif', serif;
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.5;
    color: var(--l2-purple);
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.35);
}

.war-close p {
    margin: 0.4rem 0;
    font-family: 'Noto Serif', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--text-dim);
}

.war-close p.war-close-last { color: var(--l2-gold); }

.war-cta {
    display: inline-block;
    margin-top: 2rem;
}

/* -------------------------------- Phone --------------------------------- */

@media (max-width: 700px) {
    .war-gods { grid-template-columns: 1fr; }
    .war-hero { padding-bottom: 1.8rem; margin-bottom: 1.8rem; }
    .war-block { margin-bottom: 2.2rem; }
    .war-pull { font-size: 0.98rem; padding: 0.8rem 1rem; }
    .war-board { padding: 1.1rem 1.1rem; }
    .war-close p { font-size: 1.05rem; }
    .war-recap { padding: 1rem 1.1rem; margin-bottom: 1.8rem; }
    .war-recap blockquote,
    .war-recap .war-recap-line { font-size: 0.98rem; }
    .war-chest { padding: 0.9rem 1rem; gap: 0.7rem; }
}
