/* Battlefield launch site (add-battlefield-landing-page).
   Plain CSS, no frameworks, no webfonts, no trackers. The palette and
   composition follow the desktop direction reference: dark meadow green,
   parchment gold accents, ivory text, serif display title. */

:root {
    --meadow-deep: #16281e;
    --meadow: #1d3527;
    --gold: #d9b36a;
    --gold-soft: #c9a45c;
    --ivory: #f2ead8;
    --ivory-dim: rgba(242, 234, 216, 0.78);
    --ink-shadow: rgba(10, 18, 13, 0.55);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--meadow-deep);
    color: var(--ivory);
    font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-text-size-adjust: 100%;
}

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }

a { color: var(--gold); }

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--gold); color: var(--meadow-deep);
    padding: 0.5rem 1rem; z-index: 10; border-radius: 0 0 0.5rem 0;
}
.skip-link:focus { left: 0; }

/* Hero: full-bleed dawn art with the copy over a scrim that keeps the
   text readable without hiding the flag. */
.hero {
    position: relative;
    min-height: 88svh;
    display: flex;
    align-items: flex-end;
    background:
        linear-gradient(to top, var(--ink-shadow) 0%, rgba(10, 18, 13, 0.1) 55%, rgba(10, 18, 13, 0.25) 100%),
        var(--meadow) center / cover no-repeat url("images/hero-desktop-1280.jpg");
    image-rendering: auto;
}
.hero picture, .hero img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: -1;
}
.hero-scrim {
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(to top, var(--ink-shadow) 0%, rgba(10, 18, 13, 0.08) 55%, rgba(10, 18, 13, 0.22) 100%);
}
.hero-copy { padding: 4rem 0 3.5rem; max-width: 34rem; }
.hero h1 {
    font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    font-size: clamp(2.6rem, 7vw, 4.2rem);
    line-height: 1.05;
    margin: 0 0 0.75rem;
    letter-spacing: 0.02em;
}
.hero .tagline {
    font-size: clamp(1.05rem, 2.6vw, 1.3rem);
    color: var(--ivory-dim);
    margin: 0 0 2rem;
    max-width: 26rem;
}

/* Primary action: the black App Store treatment. Prelaunch state shows
   availability copy instead of a live destination. */
.store-button {
    display: inline-flex; align-items: center; gap: 0.7rem;
    background: #0b0b0f; color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 0.6rem;
    padding: 0.7rem 1.3rem 0.7rem 1.1rem;
    text-decoration: none;
    transition: transform 120ms ease;
}
.store-button:hover, .store-button:focus-visible { transform: translateY(-1px); }
.store-button .mark { width: 1.9rem; height: 1.9rem; flex: none; fill: #fff; }
.store-button .label { display: flex; flex-direction: column; line-height: 1.2; }
.store-button .label .small { font-size: 0.72rem; opacity: 0.82; letter-spacing: 0.04em; }
.store-button .label .main { font-size: 1.18rem; font-weight: 600; letter-spacing: 0.01em; }
.store-button[aria-disabled="true"] { cursor: default; }
.store-button[aria-disabled="true"]:hover { transform: none; }
.launch-note { margin: 0.9rem 0 0; font-size: 0.92rem; color: var(--ivory-dim); }

/* Gameplay gallery: three columns on desktop, single column on phones. */
.gallery { padding: 3.5rem 0 2.5rem; }
.gallery h2, .page h1 {
    font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    font-weight: 600;
}
.gallery h2 { font-size: 1.7rem; margin: 0 0 1.75rem; }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
figure.card { margin: 0; display: flex; flex-direction: column; gap: 0.75rem; }
figure.card img {
    width: 100%; height: auto; display: block;
    border-radius: 0.75rem;
    border: 1px solid rgba(217, 179, 106, 0.28);
    box-shadow: 0 10px 28px var(--ink-shadow);
}
figure.card figcaption { color: var(--ivory-dim); font-size: 0.95rem; }

.about { padding: 0 0 3.5rem; }
.about p { maxwidth: 42rem; max-width: 42rem; color: var(--ivory-dim); }

/* Footer: Privacy, Support and the Crowns of the March web game. */
footer.site {
    border-top: 1px solid rgba(217, 179, 106, 0.25);
    padding: 1.6rem 0 2.2rem;
    font-size: 0.95rem;
    color: var(--ivory-dim);
}
footer.site .links { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-bottom: 0.8rem; }
footer.site a { color: var(--gold-soft); text-decoration: none; border-bottom: 1px solid rgba(201, 164, 92, 0.4); }
footer.site a:hover, footer.site a:focus-visible { color: var(--gold); border-bottom-color: var(--gold); }

/* Supporting pages (privacy, support): article layout. */
.page { padding: 3rem 0 3.5rem; max-width: 44rem; }
.page h1 { font-size: 2rem; margin: 0 0 1.5rem; }
.page h2 { font-size: 1.2rem; margin: 2rem 0 0.6rem; color: var(--gold-soft); }
.page p, .page li { color: var(--ivory-dim); }
.page .home-link { display: inline-block; margin-bottom: 1.5rem; }
.draft-note {
    border: 1px dashed rgba(217, 179, 106, 0.5);
    border-radius: 0.5rem;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    color: var(--gold-soft);
    margin: 0 0 1.5rem;
}
.pending { color: var(--gold-soft); font-style: italic; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

@media (max-width: 820px) {
    .hero { min-height: 74svh; }
    .hero-copy { padding: 3rem 0 2.5rem; }
    .gallery-grid { grid-template-columns: 1fr; }
    figure.card { max-width: 24rem; }
    .gallery { padding: 2.5rem 0 2rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .store-button { transition: none; }
}
