/* ============================================================
   FiR — Founder in Residence
   Brand override layer on top of Encore.
   Locked design system from masterclass/fir-style-guide.html v1.0 (2026-05-24).

   Architecture: this file is the only stylesheet we edit. Encore's own
   styles.scss.liquid is left untouched so future Encore upgrades stay clean.
   Variables, then resets, then component-by-component overrides.
   ============================================================ */


/* ----------------------------------------
   1. FiR design tokens
   ---------------------------------------- */

:root {
    /* Palette (locked 2026-05-24). All four colors maximum, no expansion. */
    --fir-ink:       #0A0A0A;
    --fir-paper:     #FFFFFF;
    --fir-cream:     #F6F1E6;
    --fir-ink-blue:  #14304D;
    --fir-rule:      rgba(10, 10, 10, 0.14);
    --fir-mute:      rgba(10, 10, 10, 0.60);
    --fir-mute-soft: rgba(10, 10, 10, 0.40);

    /* Type system (one face, nine weights, Gifford thin+bold pairing) */
    --fir-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    --fir-font-italic: 'Inter', Georgia, 'Times New Roman', serif; /* fallback only */
    --fir-weight-thin: 100;
    --fir-weight-extralight: 200;
    --fir-weight-light: 300;
    --fir-weight-regular: 400;
    --fir-weight-medium: 500;
    --fir-weight-semibold: 600;
    --fir-weight-bold: 700;
    --fir-weight-extrabold: 800;
    --fir-weight-black: 900;

    /* Editorial scale. Restrained, not assertive. NYT/NYRB register. */
    --fir-fs-kicker:    13px;
    --fir-fs-body:      18px;
    --fir-fs-body-lg:   22px;
    --fir-fs-quote:     26px;
    --fir-fs-h6:        16px;
    --fir-fs-h5:        20px;
    --fir-fs-h4:        26px;
    --fir-fs-h3:        34px;
    --fir-fs-h2:        46px;
    --fir-fs-h1:        72px;
    --fir-fs-hero:      96px;

    /* Mobile sizes (Encore scales h1-h6 mobile separately). FiR keeps the same scale relationship. */
    --fir-fs-h1-mobile: 44px;
    --fir-fs-h2-mobile: 34px;
    --fir-fs-h3-mobile: 26px;
    --fir-fs-hero-mobile: 56px;

    /* Tracking. Tight on display, slightly loose on labels. */
    --fir-track-display: -0.022em;
    --fir-track-heading: -0.018em;
    --fir-track-body:    -0.005em;
    --fir-track-kicker:  0.18em;

    /* Measure. Editorial pages want a real maximum. */
    --fir-measure-prose: 64ch;
    --fir-measure-narrow: 48ch;

    /* Black-and-white photography filter. Documentary register. */
    --fir-img-bw: grayscale(1) contrast(1.02);
    --fir-img-bw-soft: grayscale(0.92) contrast(1.02);
}


/* ----------------------------------------
   2. Type stack reset — apply Inter everywhere
   Selectors are scoped to body so we beat Encore's defaults
   without using !important (kept it out where possible).
   ---------------------------------------- */

body#encore-theme,
body#encore-theme p,
body#encore-theme li,
body#encore-theme blockquote,
body#encore-theme figcaption,
body#encore-theme small,
body#encore-theme input,
body#encore-theme textarea,
body#encore-theme select,
body#encore-theme button {
    font-family: var(--fir-font);
    font-feature-settings: 'ss01' on, 'cv11' on; /* Inter's stylistic alternates */
    letter-spacing: var(--fir-track-body);
}

body#encore-theme {
    background: var(--fir-paper);
    color: var(--fir-ink);
    font-weight: var(--fir-weight-regular);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body#encore-theme h1,
body#encore-theme h2,
body#encore-theme h3,
body#encore-theme h4,
body#encore-theme h5,
body#encore-theme h6 {
    font-family: var(--fir-font);
    color: var(--fir-ink);
    letter-spacing: var(--fir-track-heading);
    line-height: 1.08;
    font-weight: var(--fir-weight-bold); /* Inverted Gifford: bold as default, <em> and .fir-light are the exception */
}

body#encore-theme h1 { letter-spacing: var(--fir-track-display); line-height: 1.04; }
body#encore-theme h2 { line-height: 1.06; }


/* ----------------------------------------
   3. The inverted Gifford move — bold default + light exception
   Headings render Inter Bold (700) by default. To get the light contrast
   word, wrap it in <em> or apply class .fir-light. <strong> remains bold
   (semantic), which now matches the default — that's fine.
   ---------------------------------------- */

body#encore-theme h1 em,
body#encore-theme h2 em,
body#encore-theme h3 em,
body#encore-theme h4 em,
body#encore-theme h5 em,
body#encore-theme h6 em,
body#encore-theme .hero em,
body#encore-theme .global-hero em,
body#encore-theme .hero-title em,
body#encore-theme h1 .fir-light,
body#encore-theme h2 .fir-light,
body#encore-theme h3 .fir-light,
body#encore-theme h4 .fir-light,
body#encore-theme h5 .fir-light,
body#encore-theme h6 .fir-light,
body#encore-theme .hero .fir-light,
body#encore-theme .global-hero .fir-light,
body#encore-theme .hero-title .fir-light,
body#encore-theme .fir-light {
    font-weight: var(--fir-weight-light);
    font-style: normal; /* Override browser italic default on <em> */
}

/* Inside body copy <strong> stays semantic but a touch heavier than Encore default */
body#encore-theme p strong,
body#encore-theme li strong {
    font-weight: var(--fir-weight-semibold);
}


/* ----------------------------------------
   4. Body copy
   ---------------------------------------- */

body#encore-theme p,
body#encore-theme li {
    font-size: var(--fir-fs-body);
    line-height: 1.65;
    font-weight: var(--fir-weight-regular);
    color: var(--fir-ink);
}

body#encore-theme .lead,
body#encore-theme [data-fir-lead] {
    font-size: var(--fir-fs-body-lg);
    line-height: 1.5;
    font-weight: var(--fir-weight-light);
    color: var(--fir-ink);
    max-width: var(--fir-measure-prose);
}

/* Prose blocks (blog post, page content) get a real reading measure */
body#encore-theme .blog-post-body p,
body#encore-theme .page-content p,
body#encore-theme [data-fir-prose] p {
    max-width: var(--fir-measure-prose);
}


/* ----------------------------------------
   5. Editorial primitives
   ---------------------------------------- */

/* Kicker / eyebrow. Use as: <p class="fir-kicker">No. 001</p> or applied inline. */
.fir-kicker,
[data-fir-kicker] {
    font-family: var(--fir-font);
    font-size: var(--fir-fs-kicker);
    font-weight: var(--fir-weight-medium);
    letter-spacing: var(--fir-track-kicker);
    text-transform: uppercase;
    color: var(--fir-ink);
    margin: 0 0 12px;
    display: inline-block;
}

/* Spine number. The Criterion treatment — small numeric tag aligned with the title. */
.fir-spine,
[data-fir-spine] {
    font-family: var(--fir-font);
    font-size: 13px;
    font-weight: var(--fir-weight-medium);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fir-mute);
    display: block;
    margin: 0 0 18px;
}

.fir-spine::before { content: "FiR No. "; }

/* Drop cap. Apply to a paragraph via .fir-dropcap. */
.fir-dropcap::first-letter,
[data-fir-dropcap]::first-letter {
    font-family: var(--fir-font);
    font-weight: var(--fir-weight-bold);
    font-size: 4.4em;
    line-height: 0.86;
    float: left;
    margin: 4px 14px 0 0;
    color: var(--fir-ink);
}

/* Pull quote. */
.fir-pullquote,
[data-fir-pullquote] {
    font-size: var(--fir-fs-quote);
    line-height: 1.35;
    font-weight: var(--fir-weight-light);
    color: var(--fir-ink);
    max-width: var(--fir-measure-narrow);
    margin: 36px 0;
    padding: 24px 0;
    border-top: 1px solid var(--fir-rule);
    border-bottom: 1px solid var(--fir-rule);
}

.fir-pullquote strong { font-weight: var(--fir-weight-bold); }

/* Rule / hairline */
.fir-rule { border: 0; border-top: 1px solid var(--fir-rule); margin: 32px 0; }


/* ----------------------------------------
   6. Photography — B&W register
   Documentary B&W only across every surface.
   Applied to all images by default; opt out with .fir-color.
   ---------------------------------------- */

body#encore-theme img:not(.fir-color):not([class*="logo"]):not([class*="icon"]):not([class*="favicon"]) {
    filter: var(--fir-img-bw);
}

body#encore-theme .block-image img,
body#encore-theme .block-feature img,
body#encore-theme .blog-listing img,
body#encore-theme .blog-post-body img,
body#encore-theme .global-hero img,
body#encore-theme .hero img {
    filter: var(--fir-img-bw);
}

/* Soft variant for marquee imagery */
body#encore-theme .fir-img-soft img,
body#encore-theme .hero-image img {
    filter: var(--fir-img-bw-soft);
}


/* ----------------------------------------
   7. Buttons
   Encore's button system is configurable via theme settings. We override
   colors and tracking to match FiR; size/width/style stay user-configurable.
   ---------------------------------------- */

body#encore-theme .btn,
body#encore-theme button.btn,
body#encore-theme a.btn,
body#encore-theme .button {
    font-family: var(--fir-font);
    font-weight: var(--fir-weight-medium);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 0;
}

/* Button colors are NOT pinned here on purpose. Block-level color settings
   in the Kajabi page editor must win, otherwise form blocks, CTA blocks,
   and per-section buttons can't be coloured individually. The global default
   comes from settings_data.json (btn_background_color = FiR Ink Blue). */

/* Outline buttons inherit the page-level color via Encore's own SCSS; we
   only adjust border weight to match the FiR rule conventions. */
body#encore-theme .btn-outline {
    border-width: 1.5px;
}


/* ----------------------------------------
   8. Links
   ---------------------------------------- */

body#encore-theme a {
    color: var(--fir-ink);
    text-decoration: underline;
    text-decoration-color: var(--fir-rule);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: text-decoration-color 150ms ease;
}

body#encore-theme a:hover {
    text-decoration-color: var(--fir-ink);
    color: var(--fir-ink);
}

/* Nav and button links keep their own treatment */
body#encore-theme .site-header a,
body#encore-theme .site-footer a,
body#encore-theme .nav a,
body#encore-theme .btn,
body#encore-theme .button {
    text-decoration: none;
}


/* ----------------------------------------
   9. Header / navigation
   ---------------------------------------- */

body#encore-theme .site-header,
body#encore-theme header.kjb-header {
    background: var(--fir-paper);
    border-bottom: 1px solid var(--fir-rule);
}

body#encore-theme .site-header a,
body#encore-theme .nav a {
    font-family: var(--fir-font);
    font-size: 13px;
    font-weight: var(--fir-weight-medium);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--fir-ink);
}


/* ----------------------------------------
   10. Hero / global hero
   ---------------------------------------- */

body#encore-theme .global-hero,
body#encore-theme .hero {
    background: var(--fir-cream);
    color: var(--fir-ink);
}

body#encore-theme .global-hero .hero-title,
body#encore-theme .hero-title,
body#encore-theme .hero h1 {
    font-size: clamp(var(--fir-fs-hero-mobile), 7vw, var(--fir-fs-hero));
    line-height: 0.98;
    font-weight: var(--fir-weight-bold);
    letter-spacing: var(--fir-track-display);
    max-width: 22ch;
    margin: 0 0 24px;
    color: var(--fir-ink);
}

body#encore-theme .hero-subtitle,
body#encore-theme .hero p {
    font-size: var(--fir-fs-body-lg);
    font-weight: var(--fir-weight-light);
    line-height: 1.45;
    color: var(--fir-ink);
    max-width: var(--fir-measure-narrow);
}


/* ----------------------------------------
   11. Course card (Criterion spine treatment)
   Apply via .fir-course-card to any block-card or custom block.
   ---------------------------------------- */

.fir-course-card {
    background: var(--fir-paper);
    border: 1px solid var(--fir-rule);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: border-color 150ms ease, transform 150ms ease;
    text-decoration: none;
}

.fir-course-card:hover {
    border-color: var(--fir-ink);
    transform: translateY(-1px);
}

.fir-course-card__spine {
    font-family: var(--fir-font);
    font-size: 12px;
    font-weight: var(--fir-weight-medium);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--fir-mute);
}

.fir-course-card__title {
    font-family: var(--fir-font);
    font-weight: var(--fir-weight-bold);
    font-size: 28px;
    line-height: 1.08;
    letter-spacing: var(--fir-track-heading);
    color: var(--fir-ink);
    margin: 0;
}

.fir-course-card__title strong { font-weight: var(--fir-weight-bold); }

.fir-course-card__instructor {
    font-family: var(--fir-font);
    font-size: 13px;
    font-weight: var(--fir-weight-regular);
    color: var(--fir-mute);
}

.fir-course-card__instructor strong { font-weight: var(--fir-weight-semibold); color: var(--fir-ink); }

.fir-course-card__meta {
    font-family: var(--fir-font);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fir-mute);
    margin-top: auto;
}


/* ----------------------------------------
   12. Lecture row (for course pages, Massey model)
   Big, numbered, breakable into single-evening units.
   ---------------------------------------- */

.fir-lecture-row {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 32px;
    padding: 28px 0;
    border-top: 1px solid var(--fir-rule);
    align-items: baseline;
}

.fir-lecture-row:last-child { border-bottom: 1px solid var(--fir-rule); }

.fir-lecture-row__num {
    font-family: var(--fir-font);
    font-size: 13px;
    font-weight: var(--fir-weight-medium);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--fir-mute);
}

.fir-lecture-row__title {
    font-family: var(--fir-font);
    font-size: 26px;
    font-weight: var(--fir-weight-bold);
    line-height: 1.15;
    letter-spacing: var(--fir-track-heading);
    color: var(--fir-ink);
    margin: 0;
}

.fir-lecture-row__title strong { font-weight: var(--fir-weight-bold); }

.fir-lecture-row__runtime {
    font-family: var(--fir-font);
    font-size: 12px;
    font-weight: var(--fir-weight-regular);
    letter-spacing: 0.08em;
    color: var(--fir-mute);
}


/* ----------------------------------------
   13. Rector's preface (Founder's welcome on homepage)
   ---------------------------------------- */

.fir-rectors-preface {
    background: var(--fir-cream);
    padding: 80px 0;
    margin: 80px 0;
    text-align: left;
}

.fir-rectors-preface__inner {
    max-width: var(--fir-measure-prose);
    margin: 0 auto;
    padding: 0 32px;
}

.fir-rectors-preface__kicker {
    font-family: var(--fir-font);
    font-size: var(--fir-fs-kicker);
    font-weight: var(--fir-weight-medium);
    letter-spacing: var(--fir-track-kicker);
    text-transform: uppercase;
    color: var(--fir-ink);
    margin: 0 0 18px;
}

.fir-rectors-preface__body {
    font-family: var(--fir-font);
    font-size: var(--fir-fs-body-lg);
    font-weight: var(--fir-weight-light);
    line-height: 1.55;
    color: var(--fir-ink);
}

.fir-rectors-preface__body strong { font-weight: var(--fir-weight-bold); }

.fir-rectors-preface__sig {
    margin-top: 28px;
    font-family: var(--fir-font);
    font-size: 14px;
    font-weight: var(--fir-weight-medium);
    color: var(--fir-ink);
}

.fir-rectors-preface__sig small {
    display: block;
    font-weight: var(--fir-weight-regular);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fir-mute);
    margin-top: 4px;
}


/* ----------------------------------------
   14. Forms (newsletter opt-in, contact, login)
   ---------------------------------------- */

body#encore-theme input[type="text"],
body#encore-theme input[type="email"],
body#encore-theme input[type="password"],
body#encore-theme textarea,
body#encore-theme select {
    background: var(--fir-paper);
    border: 1px solid var(--fir-rule);
    border-radius: 0;
    color: var(--fir-ink);
    font-family: var(--fir-font);
    font-size: 16px;
    padding: 14px 16px;
    transition: border-color 150ms ease;
}

body#encore-theme input[type="text"]:focus,
body#encore-theme input[type="email"]:focus,
body#encore-theme input[type="password"]:focus,
body#encore-theme textarea:focus {
    border-color: var(--fir-ink);
    outline: none;
}

body#encore-theme ::placeholder {
    color: var(--fir-mute-soft);
}


/* ----------------------------------------
   15. Footer
   ---------------------------------------- */

body#encore-theme .site-footer,
body#encore-theme footer.kjb-footer {
    background: var(--fir-ink);
    color: var(--fir-paper);
    padding: 64px 0 40px;
}

body#encore-theme .site-footer a,
body#encore-theme .site-footer p,
body#encore-theme .site-footer li {
    color: var(--fir-paper);
    opacity: 0.88;
}

body#encore-theme .site-footer h1,
body#encore-theme .site-footer h2,
body#encore-theme .site-footer h3,
body#encore-theme .site-footer h4,
body#encore-theme .site-footer h5,
body#encore-theme .site-footer h6 {
    color: var(--fir-paper);
}


/* ----------------------------------------
   16. Mobile typography
   ---------------------------------------- */

@media (max-width: 768px) {
    body#encore-theme h1 { font-size: var(--fir-fs-h1-mobile); }
    body#encore-theme h2 { font-size: var(--fir-fs-h2-mobile); }
    body#encore-theme h3 { font-size: var(--fir-fs-h3-mobile); }
    body#encore-theme .hero h1,
    body#encore-theme .global-hero .hero-title {
        font-size: var(--fir-fs-hero-mobile);
    }
    .fir-lecture-row {
        grid-template-columns: 60px 1fr;
    }
    .fir-lecture-row__runtime {
        grid-column: 2;
    }
}


/* ----------------------------------------
   17. Utility classes
   ---------------------------------------- */

.fir-bg-paper { background: var(--fir-paper); }
.fir-bg-cream { background: var(--fir-cream); }
.fir-bg-ink   { background: var(--fir-ink); color: var(--fir-paper); }
.fir-bg-ink * { color: var(--fir-paper); }
.fir-text-ink-blue { color: var(--fir-ink-blue); }

.fir-measure { max-width: var(--fir-measure-prose); }
.fir-measure-narrow { max-width: var(--fir-measure-narrow); }

.fir-thin { font-weight: var(--fir-weight-thin); }
.fir-bold { font-weight: var(--fir-weight-bold); }



/* ----------------------------------------
   18. Component-level light exception
   Inverted Gifford rule applied inside the FiR custom components.
   ---------------------------------------- */

.fir-course-card__title em,
.fir-course-card__title .fir-light,
.fir-lecture-row__title em,
.fir-lecture-row__title .fir-light,
.fir-rectors-preface__body em,
.fir-rectors-preface__body .fir-light,
.fir-pullquote em,
.fir-pullquote .fir-light {
    font-weight: var(--fir-weight-light);
    font-style: normal;
}

/* End of FiR override layer */
