/*
 * SEO surfaces.
 * - .seo-noscript: the notice in index.html <noscript> (loaded through style.css, features layer).
 * - .seo-page-*: the static /about/ and /guide/ pages. They link this file directly after
 *   styles/foundation/tokens.css and styles/components/button.css (no app shell), so the document
 *   defaults and the brand mark they need are defined here.
 */

/* No-JavaScript notice: the app shell never renders, so the notice is centered on the empty page. */
.seo-noscript {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 14010;
    width: min(440px, calc(100vw - 32px));
    padding: var(--space-5);
    border: 1px solid var(--color-line-2);
    border-radius: var(--radius-xl);
    background: var(--color-surface-1);
    box-shadow: var(--shadow-inset-top), var(--shadow-3);
    color: var(--color-text-2);
    font-size: var(--text-base);
    line-height: 1.6;
    text-align: center;
    word-break: keep-all;
    transform: translate(-50%, -50%);
}

.seo-noscript a {
    color: var(--color-gold-1);
    text-underline-offset: 3px;
}

/* Static pages */
.seo-page-body,
.seo-page-body *,
.seo-page-body *::before,
.seo-page-body *::after {
    box-sizing: border-box;
}

.seo-page-body {
    margin: 0;
    min-height: 100vh;
    background-color: var(--color-bg);
    background-image:
        radial-gradient(120% 60% at 50% -10%, var(--color-gold-faint), transparent 60%),
        linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-deep) 100%);
    background-attachment: fixed;
    color: var(--color-text-1);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}

.seo-page-body ::selection {
    background: var(--color-gold-soft);
}

.seo-page-body a:focus-visible {
    outline: none;
    box-shadow: var(--shadow-focus);
}

.seo-site-header,
.seo-page-shell {
    width: min(1040px, calc(100% - 32px));
    margin: 0 auto;
}

.seo-site-header {
    display: flex;
    align-items: center;
    height: var(--topbar-h);
    border-bottom: 1px solid var(--color-line-1);
}

/* Brand mark (same construction as the in-game top bar logo). */
.seo-brand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2-5);
    border-radius: var(--radius-sm);
    color: var(--color-text-1);
    text-decoration: none;
}

.seo-brand-emblem {
    position: relative;
    flex: none;
    width: 22px;
    height: 22px;
}

.seo-brand-emblem::before,
.seo-brand-emblem::after {
    content: '';
    position: absolute;
    inset: 3px;
    border: 1.5px solid var(--color-gold-2);
    transform: rotate(45deg);
}

.seo-brand-emblem::after {
    inset: 8px;
    border: 0;
    background: var(--color-gold-1);
}

.seo-brand-wordmark {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: var(--weight-bold);
    line-height: 1;
    letter-spacing: 0.08em;
}

.seo-brand-accent {
    color: var(--color-gold-1);
}

.seo-page-shell {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    padding: clamp(32px, 6vw, 64px) 0 var(--space-10);
}

.seo-page-hero {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    max-width: 760px;
}

.seo-page-kicker {
    margin: 0;
    color: var(--color-text-3);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-caps);
}

.seo-page-title {
    margin: 0;
    color: var(--color-text-1);
    font-size: clamp(var(--text-3xl), 4.4vw, 44px);
    font-weight: var(--weight-bold);
    line-height: var(--leading-tight);
    letter-spacing: -0.02em;
}

.seo-page-lead {
    margin: 0;
    max-width: 66ch;
    color: var(--color-text-2);
    font-size: var(--text-lg);
    line-height: 1.7;
}

.seo-page-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-2);
}

/* button.css puts the box model on the `button` element; links styled as .btn need it here. */
.seo-page-nav a.btn {
    min-height: var(--control-h-md);
    padding: 6px var(--space-3);
    border: 1px solid var(--color-line-2);
    border-radius: var(--radius-md);
    font-size: var(--text-md);
    font-weight: var(--weight-semibold);
    line-height: 1.25;
    text-decoration: none;
    transition:
        background-color var(--duration-fast) var(--ease-out),
        border-color var(--duration-fast) var(--ease-out),
        color var(--duration-fast) var(--ease-out);
}

.seo-page-nav a.btn--ghost {
    border-color: transparent;
}

.seo-page-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.seo-section-title {
    margin: 0;
    color: var(--color-text-1);
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
}

.seo-page-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
}

.seo-page-card {
    padding: var(--space-6);
    border: 1px solid var(--color-line-1);
    border-radius: var(--radius-lg);
    background: var(--color-surface-1);
    box-shadow: var(--shadow-inset-top), var(--shadow-1);
}

.seo-page-card h2 {
    margin: 0 0 var(--space-2-5);
    color: var(--color-text-1);
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
}

.seo-page-card p,
.seo-page-card li,
.seo-page-faq-item p {
    color: var(--color-text-2);
    font-size: var(--text-base);
    line-height: 1.7;
}

.seo-page-card p,
.seo-page-faq-item p {
    margin: 0;
}

.seo-page-card ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-1-5);
    margin: 0;
    padding-left: var(--space-5);
}

.seo-page-card li::marker {
    color: var(--color-text-3);
}

.seo-page-faq-item {
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-line-1);
}

.seo-page-faq-item h3 {
    margin: 0 0 var(--space-1-5);
    color: var(--color-text-1);
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
}

.seo-page-note {
    padding: var(--space-4) var(--space-5);
    border: 1px solid var(--color-line-1);
    border-left: 2px solid var(--color-line-3);
    border-radius: var(--radius-md);
    background: var(--color-surface-1);
    color: var(--color-text-2);
    line-height: 1.7;
}

.seo-page-footer {
    padding-top: var(--space-5);
    border-top: 1px solid var(--color-line-1);
    color: var(--color-text-3);
    font-size: var(--text-sm);
}

@media (max-width: 760px) {
    .seo-page-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .seo-page-card {
        padding: var(--space-5);
    }

    .seo-page-lead {
        font-size: var(--text-base);
    }
}
