/* Wolfhart Puzzles. Colors lifted from the app's Theme.swift. */
:root {
    --night: #080D1A;
    --deep: #0F1729;
    --dusk: #1C2645;
    --slate: #2B3B5E;
    --haze: #45547A;
    --gold: #DEAD4A;
    --amber: #F5C25C;
    --ember: #E8783D;
    --snow: #EDF2FC;
    --muted: #A9B4CC;
    --line: rgba(255, 255, 255, 0.08);
    --display: 'Cinzel', Georgia, 'Times New Roman', serif;
    --body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--night);
    color: var(--snow);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.55;
}
img { max-width: 100%; height: auto; }
a { color: var(--amber); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: 0.01em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
section { padding: 72px 0; }
.eyebrow {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 0.6em;
}
.center { text-align: center; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(8, 13, 26, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--snow); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--snow); }
@media (max-width: 560px) {
    .brand span { display: none; }
    .nav-links { gap: 14px; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--amber), var(--gold));
    color: #1a1305;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(222, 173, 74, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(222, 173, 74, 0.35); }
.btn.soon { background: var(--slate); color: var(--snow); box-shadow: none; cursor: default; }
.btn.soon:hover { transform: none; }
.btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 13px 24px;
    border-radius: 999px;
    border: 1px solid var(--haze);
    color: var(--snow);
    text-decoration: none;
    font-weight: 600;
}
.btn-ghost:hover { border-color: var(--amber); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 28px; }

/* Hero */
.hero { padding: 0 0 56px; }
.hero-art .hero-wide {
    display: block;
    width: 100%;
    aspect-ratio: 2048 / 768;
    object-fit: cover;
    object-position: 35% center;
    min-height: 240px;
    max-height: 620px;
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
}
.hero-copy { text-align: center; padding-top: 8px; max-width: 820px; }
.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); }
.hero-note { font-size: 0.9rem; color: var(--haze); margin-top: 14px; }

/* Puzzle grid */
.puzzle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 36px;
}
.card {
    background: var(--deep);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px 18px 18px;
    text-align: center;
    transition: transform 0.15s ease, border-color 0.15s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(222, 173, 74, 0.35); }
.card img { width: 128px; height: auto; margin: 0 auto 10px; display: block; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45)); }
.card h3 { margin-bottom: 0.3em; }
.card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.8em; }
.pills { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; min-height: 22px; }
.pill {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--amber);
    background: rgba(222, 173, 74, 0.12);
    border-radius: 999px;
    padding: 3px 9px;
}
.legend { margin-top: 18px; font-size: 0.9rem; color: var(--haze); }

/* Alternating feature rows */
.feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.feature.flip .feature-art { order: 2; }
.feature-art img { display: block; width: 100%; border-radius: 20px; }
.feature-art.wolf img { width: min(100%, 360px); margin: 0 auto; border-radius: 0; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.5)); }
.feature ul { padding-left: 0; list-style: none; margin: 0; }
.feature li { position: relative; padding-left: 28px; margin-bottom: 12px; color: var(--muted); }
.feature li strong { color: var(--snow); }
.feature li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gold);
}
@media (max-width: 760px) {
    .feature { grid-template-columns: 1fr; gap: 28px; }
    .feature.flip .feature-art { order: 0; }
}

/* Tiers */
.tiers { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 28px; }
.tier { text-align: center; width: 120px; }
.tier img { width: 96px; height: auto; }
.tier span { display: block; margin-top: 6px; font-weight: 600; font-size: 0.95rem; }

/* Bands */
.band { background: var(--deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-dusk { background: linear-gradient(180deg, var(--dusk), var(--deep)); }

/* Final CTA */
.cta-final { text-align: center; }
.cta-final img { width: min(60%, 300px); height: auto; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.5)); }

/* Text pages */
.page { padding: 48px 0 80px; }
.page h1 { margin-bottom: 0.2em; }
.page h2 { font-size: 1.35rem; margin-top: 2em; }
.page .updated { color: var(--haze); font-size: 0.9rem; margin-bottom: 2em; }
.page ul { padding-left: 1.2em; color: var(--muted); }
.page li { margin-bottom: 0.4em; }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold); font-weight: 400; }
.faq details[open] summary::after { content: '\2013'; }
.faq p { color: var(--muted); margin: 10px 0 0; }
.contact {
    margin-top: 40px;
    padding: 24px;
    border-radius: 16px;
    background: var(--deep);
    border: 1px solid var(--line);
}
.contact p:last-child { margin-bottom: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--haze); font-size: 0.88rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
.site-footer a { color: var(--muted); text-decoration: none; margin-right: 18px; }
.site-footer a:hover { color: var(--snow); }

/* Blazor plumbing */
#blazor-error-ui {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    padding: 0.8rem 1.25rem;
    background: #3a1d1d;
    color: var(--snow);
    z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; }
.blazor-error-boundary { padding: 1rem; background: #3a1d1d; color: var(--snow); }

/* Hero art: the wide header on desktop, the stacked splash logo on phones. */
.hero-art .hero-narrow { display: none; }
@media (max-width: 640px) {
    .hero-art .hero-wide { display: none; }
    .hero-art .hero-narrow {
        display: block;
        width: min(78%, 340px);
        margin: 28px auto 0;
        filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.6));
    }
}

/* FocusOnNavigate moves focus to the h1 after routing; keep it for screen readers, hide the ring. */
h1:focus { outline: none; }

/* Press kit */
.press { max-width: 860px; }
.press blockquote {
    margin: 0 0 1.2em;
    padding: 16px 20px;
    border-left: 3px solid var(--gold);
    background: var(--deep);
    border-radius: 0 12px 12px 0;
    color: var(--snow);
}
.press blockquote p { margin-bottom: 0.8em; }
.press blockquote p:last-child { margin-bottom: 0; }
.facts { width: 100%; border-collapse: collapse; margin-bottom: 1em; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.facts th { width: 150px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.features { list-style: none; padding: 0; }
.features li { position: relative; padding-left: 26px; margin-bottom: 8px; color: var(--muted); }
.features li strong { color: var(--snow); }
.features li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.art-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.art { display: block; background: var(--deep); border: 1px solid var(--line); border-radius: 16px; padding: 16px; text-align: center; text-decoration: none; color: var(--muted); font-size: 0.9rem; }
.art:hover { border-color: rgba(222, 173, 74, 0.35); }
.art img { display: block; width: 100%; max-width: 220px; margin: 0 auto 10px; border-radius: 12px; }
.art.wide { grid-column: 1 / -1; }
.art.wide img { max-width: 100%; }
.badge-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.badge-row img { height: auto; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.4)); }
@media (max-width: 560px) {
    .art-grid { grid-template-columns: 1fr; }
    .facts th { width: 110px; white-space: normal; }
}
