/*
 * ashborn.css — Ashborn site styles
 * Depends on: styles/main.css (must be loaded first for resets, box-sizing,
 *   body background, CSS custom properties, and shared tokens)
 *
 * Sections: ab-page, ab-wrap, ab-nav, ab-hero, ab-saga, ab-bands,
 *           ab-signup, ab-foot
 */

.ab-page { position: relative; isolation: isolate; background: var(--color-ink-900); color: var(--fg-1); }
.ab-page::before { content: ""; position: fixed; inset: 0; background-image: var(--grain-svg); background-size: 220px; mix-blend-mode: overlay; opacity: 0.55; pointer-events: none; z-index: 1; }
.ab-wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 3; }

.ab-nav { position: absolute; top: 0; left: 0; right: 0; z-index: 10; padding: 24px 0; }
.ab-nav-inner { display: flex; align-items: center; gap: 32px; }
.ab-nav-brand { font-family: var(--font-display); font-size: 22px; color: #f7f1e3; text-decoration: none; letter-spacing: 0.02em; }
.ab-nav-brand small { display: block; font: 600 9.5px var(--font-sans); letter-spacing: 0.32em; text-transform: uppercase; color: var(--accent); margin-top: 2px; }
.ab-nav-links { display: flex; gap: 28px; margin-left: auto; }
.ab-nav-links a { color: rgba(247,241,227,0.7); font-size: 13px; text-decoration: none; letter-spacing: 0.04em; }
.ab-nav-links a:hover { color: #f7f1e3; }

/* hero — full bleed plate, smoke and ember */
.ab-hero { position: relative; min-height: 92vh; padding: 110px 0 100px; overflow: hidden; display: flex; align-items: flex-end; }
.ab-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 30%; filter: saturate(0.9) brightness(0.55) contrast(1.05); }
.ab-hero-fade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,16,13,0.65) 0%, rgba(20,16,13,0.2) 25%, rgba(20,16,13,0.4) 60%, rgba(20,16,13,0.96) 100%), radial-gradient(ellipse at 50% 30%, rgba(184,90,44,0.22) 0%, transparent 55%); }
.ab-hero::after { content: ""; position: absolute; inset: 0; background-image: var(--grain-svg); background-size: 220px; mix-blend-mode: overlay; opacity: 0.4; pointer-events: none; z-index: 2; }
.ab-hero-inner { position: relative; z-index: 3; padding-bottom: 40px; max-width: 760px; }
.ab-hero-mark { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.ab-hero-mark-line { width: 60px; height: 1px; background: var(--accent); }
.ab-hero-mark-text { font: 600 11px var(--font-sans); letter-spacing: 0.32em; text-transform: uppercase; color: var(--accent); }
.ab-hero-h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(64px, 9vw, 144px); line-height: 0.9; letter-spacing: 0; margin: 0 0 8px; color: #f7f1e3; text-shadow: 0 4px 32px rgba(0,0,0,0.7), 0 0 80px rgba(184,90,44,0.15); }
.ab-hero-h1-sub { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: clamp(22px, 2.6vw, 36px); color: rgba(247,241,227,0.78); letter-spacing: 0.02em; margin: 0 0 30px; }
.ab-hero-tag { font-family: var(--font-serif); font-size: 19px; line-height: 1.65; color: rgba(247,241,227,0.85); margin: 0 0 38px; max-width: 52ch; text-wrap: pretty; }
.ab-hero-cta { display: flex; gap: 14px; align-items: center; }
.ab-btn-solid, .ab-btn-frame {
  display: inline-flex; align-items: center; gap: 9px; padding: 13px 26px;
  font: 600 12px var(--font-sans); letter-spacing: 0.18em; text-transform: uppercase;
  border: 1px solid; cursor: pointer; text-decoration: none;
  transition: all 240ms var(--easing-settle); border-radius: 2px;
}
.ab-btn-solid { background: var(--accent); color: #f7f1e3; border-color: var(--accent-strong); box-shadow: inset 0 1px 0 rgba(255,240,210,0.15), 0 6px 20px rgba(184,90,44,0.3); }
.ab-btn-solid:hover { background: var(--accent-strong); }
.ab-btn-frame { background: transparent; color: #f7f1e3; border-color: rgba(247,241,227,0.45); }
.ab-btn-frame:hover { border-color: #f7f1e3; background: rgba(247,241,227,0.06); }
.ab-hero-meta { margin-top: 38px; padding-top: 22px; border-top: 1px solid rgba(247,241,227,0.14); display: flex; gap: 36px; }
.ab-hero-meta div { font-size: 12px; color: rgba(247,241,227,0.6); letter-spacing: 0.04em; }
.ab-hero-meta strong { display: block; color: #f7f1e3; font-family: var(--font-display); font-size: 18px; letter-spacing: 0.01em; margin-bottom: 2px; }

/* the saga — scroll target */
.ab-saga { padding: 100px 0; position: relative; z-index: 3; border-top: 1px solid var(--border); }
.ab-saga-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: center; }
.ab-saga-eye { font: 600 11px var(--font-sans); letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.ab-saga-h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(40px, 5vw, 72px); line-height: 1; margin: 0 0 22px; color: #f7f1e3; }
.ab-saga-p { font-family: var(--font-serif); font-size: 18px; line-height: 1.8; color: var(--fg-2); margin: 0 0 16px; text-wrap: pretty; }
.ab-saga-p::first-letter { font-family: var(--font-display); font-size: 3.6em; float: left; line-height: 1; padding: 4px 10px 0 0; color: var(--accent); }
.ab-saga-p + .ab-saga-p::first-letter { font-size: inherit; float: none; padding: 0; color: inherit; }
.ab-saga-portrait { aspect-ratio: 4/5; border: 1px solid var(--border-strong-c); overflow: hidden; position: relative; box-shadow: var(--shadow-lg); }
.ab-saga-portrait img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85) brightness(0.85); }
.ab-saga-portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(20,16,13,0.85) 100%); }
.ab-saga-portrait .cap { position: absolute; left: 18px; bottom: 16px; right: 18px; z-index: 1; font-family: var(--font-serif); font-style: italic; font-size: 13px; color: rgba(247,241,227,0.85); }

/* warbands */
.ab-bands { padding: 100px 0; border-top: 1px solid var(--border); position: relative; z-index: 3; }
.ab-bands-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 36px; }
.ab-bands-head h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(36px, 4.4vw, 56px); margin: 0; }
.ab-bands-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ab-band { aspect-ratio: 3/4; position: relative; overflow: hidden; border: 1px solid var(--border); }
.ab-band img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9) brightness(0.7); transition: all 420ms var(--easing-settle); }
.ab-band:hover img { filter: saturate(1) brightness(0.85); }
.ab-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(20,16,13,0.95)); }
.ab-band-body { position: absolute; left: 16px; right: 16px; bottom: 18px; z-index: 1; }
.ab-band-eye { font: 600 9.5px var(--font-sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.ab-band-name { font-family: var(--font-display); font-size: 24px; line-height: 1; margin: 5px 0 4px; color: #f7f1e3; }
.ab-band-tag { font-family: var(--font-serif); font-style: italic; font-size: 12.5px; color: rgba(247,241,227,0.75); margin: 0; }

/* signup — restrained */
.ab-signup { padding: 100px 0; border-top: 1px solid var(--border); text-align: center; position: relative; z-index: 3; }
.ab-signup-frame { max-width: 620px; margin: 0 auto; padding: 56px 48px; border: 1px solid rgba(184,90,44,0.4); background: rgba(20,16,13,0.5); position: relative; }
.ab-signup-frame::before, .ab-signup-frame::after { content: ""; position: absolute; width: 22px; height: 22px; border: 1px solid var(--accent); }
.ab-signup-frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.ab-signup-frame::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.ab-signup h3 { font-family: var(--font-display); font-size: 44px; line-height: 1; margin: 0 0 12px; color: #f7f1e3; }
.ab-signup p { font-family: var(--font-serif); font-style: italic; font-size: 15.5px; color: rgba(247,241,227,0.78); margin: 0 0 24px; }
.ab-signup-input { display: flex; gap: 8px; max-width: 460px; margin: 0 auto; }
.ab-signup-input input { flex: 1; padding: 12px 14px; background: rgba(20,16,13,0.7); border: 1px solid rgba(247,241,227,0.2); color: #f7f1e3; font: 14px var(--font-sans); border-radius: 2px; outline: none; }
.ab-signup-input input:focus { border-color: var(--accent); }

.ab-foot { padding: 28px 0; border-top: 1px solid var(--border); display: flex; align-items: center; font: 12px var(--font-sans); color: var(--fg-3); position: relative; z-index: 3; }
.ab-foot a { color: var(--fg-3); margin-left: 22px; text-decoration: none; }


/* ==========================================================================
   Responsive — Tablet (max-width: 900px)
   ========================================================================== */

@media (max-width: 900px) {

    /* Saga grid — stack to single column */
    .ab-saga-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ab-saga-portrait {
        max-width: 400px;
        margin: 0 auto;
    }

    /* Bands grid — 2 columns on tablet */
    .ab-bands-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Built on History / Built with Mimir 2-col grid */
    .ab-history-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }
}


/* ==========================================================================
   Responsive — Mobile (max-width: 767px)
   ========================================================================== */

@media (max-width: 767px) {

    /* Container padding */
    .ab-wrap {
        padding: 0 20px;
    }

    /* Hero title — reduce clamp for small screens */
    .ab-hero-h1 {
        font-size: clamp(48px, 11vw, 80px);
    }

    .ab-hero-h1-sub {
        font-size: clamp(18px, 3vw, 24px);
    }

    .ab-hero-tag {
        font-size: 16px;
    }

    .ab-hero {
        padding: 90px 0 60px;
        min-height: auto;
    }

    /* Hero CTA buttons — stack on mobile */
    .ab-hero-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Hero meta — wrap on mobile */
    .ab-hero-meta {
        flex-wrap: wrap;
        gap: 20px;
    }

    /* Nav links — hide on mobile (page is short enough to scroll) */
    .ab-nav-links {
        display: none;
    }

    /* Saga section */
    .ab-saga {
        padding: 64px 0;
    }

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

    .ab-saga-h2 {
        font-size: clamp(32px, 7vw, 48px);
    }

    .ab-saga-p {
        font-size: 16px;
    }

    /* Bands grid — 1 column on small mobile */
    .ab-bands {
        padding: 64px 0;
    }

    .ab-bands-grid {
        grid-template-columns: 1fr;
    }

    .ab-bands-head h2 {
        font-size: clamp(28px, 6vw, 40px);
    }

    /* Signup input — stack on mobile */
    .ab-signup-input {
        flex-direction: column;
    }

    .ab-signup-input input {
        width: 100%;
    }

    .ab-signup-frame {
        padding: 32px 24px;
    }

    .ab-signup h3 {
        font-size: 32px;
    }

    .ab-signup {
        padding: 64px 0;
    }

    /* Footer — stack on mobile */
    .ab-foot > .ab-wrap {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .ab-foot > .ab-wrap > span:last-child {
        margin-left: 0;
    }

    .ab-foot a {
        margin-left: 0;
        margin-right: 14px;
    }
}

/* Mobile hamburger + drawer */
.ab-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: 1px solid rgba(247,241,227,0.3); border-radius: 4px; padding: 8px; cursor: pointer; width: 36px; height: 36px; justify-content: center; margin-left: auto; }
.ab-hamburger span { display: block; width: 100%; height: 1px; background: #f7f1e3; }
.ab-drawer { display: none; flex-direction: column; gap: 8px; padding: 16px 32px 24px; border-top: 1px solid var(--border); background: var(--color-ink-900); }
.ab-drawer.is-open { display: flex; }
.ab-drawer a { color: rgba(247,241,227,0.7); font-size: 15px; text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--border); }
.ab-drawer a:last-child { border: none; }
.ab-drawer a:hover { color: #f7f1e3; }
@media (max-width: 767px) {
  .ab-nav-links { display: none; }
  .ab-hamburger { display: flex; }
}


/* ==========================================================================
   Ashborn content modifiers
   ========================================================================== */

/* Small caveat text in the saga section */
.ab-saga-caveat {
    font-size: 13px;
    color: var(--fg-3);
    margin-top: 12px;
}

/* Constrained paragraph width — Ashborn bands intro */
.ab-bands-intro {
    max-width: 60ch;
    margin-bottom: 36px;
}

/* Panoramic landscape image */
.ab-panoramic {
    width: 100%;
    margin-top: 48px;
    border: 1px solid var(--border);
    filter: saturate(0.85) brightness(0.8);
}

/* History and Mimir 2-column grid */
.ab-history-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 48px;
}

/* History grid section headings */
.ab-history-h3 {
    font-family: var(--font-display);
    font-size: 24px;
    color: #f7f1e3;
    margin: 0 0 12px;
}

/* In-development section — centered text */
.ab-saga--centered {
    text-align: center;
}

/* Narrower wrap for development section */
.ab-wrap--narrow {
    max-width: 640px;
}

/* Development section heading size override */
.ab-saga-h2--dev {
    font-size: clamp(36px, 4.5vw, 56px);
}

/* Signup section post-form note */
.ab-signup-note {
    font-size: 14px;
    color: var(--fg-2);
    margin-top: 20px;
}

/* Accent-coloured inline link */
.ab-accent-link {
    color: var(--accent);
}
