/* Torchlight Mapper website — torchlight dark theme.
   No build step, no JavaScript, no external dependencies. */

:root {
    --bg: #14100c;
    --bg-raised: #1f1913;
    --bg-card: #262019;
    --border: #3a3026;
    --text: #ece3d5;
    --text-muted: #a89b87;
    --accent: #e8a33d;
    --accent-dim: #b87d28;
    --accent-soft: rgba(232, 163, 61, 0.12);
    --max-width: 1080px;
    --radius: 10px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}

.wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Header / nav ---------- */

.site-header {
    border-bottom: 1px solid var(--border);
    background: var(--bg-raised);
    position: sticky;
    top: 0;
    z-index: 10;
}

.site-header .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
    letter-spacing: 0.2px;
}

.brand:hover {
    text-decoration: none;
}

.brand .flame {
    color: var(--accent);
    font-size: 1.2rem;
    line-height: 1;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.95rem;
}

.site-nav a {
    color: var(--text-muted);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--accent);
    text-decoration: none;
}

/* ---------- Hero ---------- */

.hero {
    padding: 72px 0 56px;
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(900px 380px at 20% -10%, rgba(232, 163, 61, 0.14), transparent 70%),
        var(--bg);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero h1 {
    font-size: 2.6rem;
    line-height: 1.15;
    margin: 0 0 14px;
    letter-spacing: -0.5px;
}

.hero .tagline {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin: 0 0 24px;
}

.hero-shots {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    justify-content: center;
}

.hero-shots img {
    width: 100%;
    max-width: 260px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 8px;
}

.pill {
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 600;
}

.btn {
    display: inline-block;
    padding: 11px 22px;
    border-radius: 8px;
    background: var(--accent);
    color: #1a1206;
    font-weight: 700;
    border: 1px solid var(--accent-dim);
}

.btn:hover {
    background: #f0b357;
    text-decoration: none;
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--accent-soft);
    color: var(--accent);
}

/* ---------- Sections ---------- */

section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border);
}

section:last-of-type {
    border-bottom: none;
}

h2 {
    font-size: 1.75rem;
    margin: 0 0 8px;
    letter-spacing: -0.3px;
}

h3 {
    font-size: 1.15rem;
    margin: 0 0 6px;
}

.section-lead {
    color: var(--text-muted);
    margin: 0 0 32px;
    max-width: 68ch;
}

/* ---------- Story ---------- */

.story {
    background: var(--bg-raised);
}

.story blockquote {
    margin: 0;
    padding: 24px 28px;
    background: var(--bg-card);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 1.08rem;
}

.story blockquote p:last-child {
    margin-bottom: 0;
}

/* ---------- Feature cards ---------- */

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 22px;
}

.card h3 {
    color: var(--accent);
}

.card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.96rem;
}

/* ---------- Screenshot gallery ---------- */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.gallery figure {
    margin: 0;
}

.gallery img {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card);
    display: block;
}

.gallery figcaption {
    margin-top: 10px;
    font-size: 0.88rem;
    color: var(--text-muted);
    text-align: center;
}

.gallery-wide {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* ---------- Legal / prose pages ---------- */

/* Longhand vertical padding only: the shorthand would reset the horizontal padding that `.wrap`
   supplies, and every prose page carries both classes, so legal text would run to the screen edge. */
.prose {
    max-width: 76ch;
    padding-top: 56px;
    padding-bottom: 72px;
    border-bottom: none;
}

.prose h1 {
    font-size: 2.1rem;
    margin: 0 0 6px;
}

.prose .effective {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin: 0 0 32px;
}

.prose h2 {
    font-size: 1.25rem;
    margin: 36px 0 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.prose h2:first-of-type {
    border-top: none;
}

.prose ul {
    padding-left: 22px;
}

.prose li {
    margin-bottom: 6px;
}

.callout {
    background: var(--accent-soft);
    border: 1px solid var(--accent-dim);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin: 24px 0;
}

.callout strong {
    color: var(--accent);
}

.callout p:last-child {
    margin-bottom: 0;
}

/* ---------- FAQ ---------- */

.faq dt {
    font-weight: 700;
    color: var(--accent);
    margin-top: 22px;
}

.faq dd {
    margin: 6px 0 0;
    color: var(--text-muted);
}

/* ---------- Footer ---------- */

.site-footer {
    border-top: 1px solid var(--border);
    background: var(--bg-raised);
    padding: 36px 0 44px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 16px;
}

.site-footer p {
    margin: 6px 0;
    max-width: 76ch;
}

/* ---------- Responsive ---------- */

@media (max-width: 780px) {
    .hero {
        padding: 48px 0 40px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero h1 {
        font-size: 2.05rem;
    }

    .hero-shots img {
        max-width: 190px;
    }

    section {
        padding: 44px 0;
    }
}
