/* =============================================================
   Brands — Pointer Commerce's product surface for brand workspaces.
   Loaded after styles.css and editorial.css, by /brands/ only.
   Same editorial language as the homepage and Produced with Pointer
   (type, tokens, buttons, section surfaces come from editorial.css).
   Scoped to body.is-brands / .br-*. Static: no animation.
   ============================================================= */

body.is-brands {
    --br-gap: clamp(10px, 1.6vw, 20px);
}

/* ---------- Hero: paragraph rhythm ---------- */
.br-hero__copy {
    max-width: 42rem;
}

.br-hero__copy .ed-body {
    max-width: 42rem;
    color: var(--ed-muted);
}

.br-hero__beat {
    margin: clamp(22px, 3.2vw, 32px) 0 0;
    font-family: var(--ed-serif);
    font-style: italic;
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    line-height: 1.2;
    color: var(--ed-bone);
}

/* ---------- Framework intro paragraphs ---------- */
.br-fw-intro {
    max-width: 42rem;
    margin-bottom: clamp(36px, 5vw, 56px);
}

.br-fw-intro .ed-body {
    max-width: 42rem;
    color: var(--ed-paper-muted);
}

.ed-section--paper .br-fw-intro .ed-lead {
    color: var(--ed-paper-ink);
}

/* ---------- Five framework components ---------- */
.br-components {
    display: grid;
    gap: 0;
}

.br-component {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 18px;
    padding-block: clamp(26px, 4vw, 38px);
    border-top: 1px solid var(--ed-paper-line);
}

.br-component:first-child {
    border-top: 0;
    padding-top: 0;
}

.br-component__num {
    font: 500 .78rem/1.4 var(--ed-mono);
    letter-spacing: .08em;
    color: var(--ed-amber);
}

.br-component__body h3 {
    margin: 0 0 10px;
    font-family: var(--ed-serif);
    font-weight: 400;
    font-size: clamp(1.5rem, 2.8vw, 2rem);
}

.br-component__body p {
    margin: 0 0 10px;
    max-width: 56ch;
    color: var(--ed-paper-muted);
}

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

/* ---------- Campaign Architecture: three dimensions ---------- */
.br-dims {
    display: grid;
    align-items: start;
    gap: var(--br-gap);
    margin: clamp(16px, 2.4vw, 22px) 0 clamp(18px, 2.6vw, 26px);
    padding: clamp(18px, 2.6vw, 24px);
    background: var(--ed-paper);
    border: 1px solid var(--ed-paper-line);
    border-radius: var(--ed-radius);
}

.br-dim__label {
    margin: 0 0 4px;
    font: 500 .72rem/1.4 var(--ed-mono);
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ed-amber);
}

.br-dim__desc {
    margin: 0;
    max-width: 48ch;
    color: var(--ed-paper-muted);
}

.br-dim__desc + .br-dim__desc {
    margin-top: 10px;
}

/* ---------- Brand Workspace / Pointer on Pointer / Invitations copy blocks ---------- */
.br-bw-copy,
.br-pop-copy,
.br-invite-copy {
    max-width: 42rem;
}

.br-bw-copy .ed-body,
.br-invite-copy .ed-body {
    max-width: 42rem;
    color: var(--ed-muted);
}

/* .br-pop-copy sits in an ed-section--paper (light) section, unlike the two
   ink-section blocks above — it needs the paper-contrast muted color, not
   the bone/ink one, or the body copy reads as near-invisible on the sand
   background (contrast ~1.1:1). */
.br-pop-copy .ed-body {
    max-width: 42rem;
    color: var(--ed-paper-muted);
}

.br-pop-copy {
    margin-bottom: clamp(24px, 3.6vw, 36px);
}

/* ---------- Instagram nine-grid (verified published posts) ---------- */
.br-ig {
    max-width: 460px;
    margin-top: clamp(40px, 6vw, 64px);
    padding: 16px;
    background: var(--ed-paper-ink);
    border: 1px solid var(--ed-paper-line);
    border-radius: var(--ed-radius);
}

.br-ig__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.br-ig__handle {
    font: 500 .78rem/1.4 var(--ed-mono);
    letter-spacing: .04em;
    color: var(--ed-bone);
}

.br-ig__link {
    font: 500 .68rem/1.4 var(--ed-mono);
    letter-spacing: .04em;
    color: var(--ed-sand);
    text-decoration: none;
    border-bottom: 1px solid rgba(231, 218, 198, .3);
}

.br-ig__link:hover {
    color: var(--ed-bone);
    border-color: var(--ed-bone);
}

.br-ig__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.br-ig__tile {
    display: block;
    line-height: 0;
}

.br-ig__tile img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

@media (min-width: 760px) {
    .br-component {
        grid-template-columns: 80px 1fr;
    }

    .br-dims {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Brand Workspace: readable body copy on the dark section. */
#workspace.ed-section--ink .br-pop-copy .ed-body {
    color: rgba(245, 236, 224, 0.78);
}
