@import url('https://fonts.googleapis.com/css2?family=Libre+Caslon+Text:wght@400;700&family=Inter:wght@400;500;600;700&display=swap');

/* Allow the shortcode to escape AMLA's narrow default-page wrapper. */
body.page-id-4:has(.amla-homepage) #primary,
body:has(.amla-homepage) #primary.content-area--blog { display: block; }
body.page-id-4:has(.amla-homepage) #main,
body.page-id-4:has(.amla-homepage) #main > article,
body.page-id-4:has(.amla-homepage) .entry-content,
body:has(.amla-homepage) #main.main--blog,
body:has(.amla-homepage) #main > article,
body:has(.amla-homepage) #main > article > .entry-content { width: 100%; max-width: none; }
body.page-id-4:has(.amla-homepage) .entry-header,
body:has(.amla-homepage) #main > article > .entry-header,
body.page-id-4 .page-title,
body:has(.amla-homepage) .page-title { display: none; }

.amla-homepage {
    --ink: #111010;
    --ink-soft: #2a2726;
    --crimson: #b01e24;
    --crimson-dark: #89151a;
    --paper: #faf8f6;
    --white: #fff;
    --muted: #665f5c;
    --line: #e3ddda;
    position: relative;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    overflow: hidden;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, Arial, sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.amla-homepage *, .amla-homepage *::before, .amla-homepage *::after { box-sizing: border-box; }
.amla-homepage h1, .amla-homepage h2, .amla-homepage h3, .amla-homepage p { margin-top: 0; }
.amla-homepage h1, .amla-homepage h2, .amla-homepage h3 { font-family: "Libre Caslon Text", Georgia, serif; }
.amla-homepage a { text-decoration: none; }
.amla-home-shell { width: min(1240px, calc(100% - 80px)); margin: 0 auto; }
.amla-home-eyebrow { display: block; margin-bottom: 15px; color: var(--crimson); font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }

.amla-home-hero { position: relative; overflow: hidden; padding: 104px 0 96px; color: var(--white); background: var(--ink); }
.amla-home-hero::before { content: ""; position: absolute; inset: 0 0 0 auto; width: 46%; background: repeating-linear-gradient(-55deg, transparent 0 30px, rgba(176,30,36,.14) 30px 32px); }
.amla-home-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.35fr) minmax(260px,.65fr); align-items: center; gap: 90px; }
.amla-home-hero-copy { max-width: 800px; }
.amla-home-hero h1 { margin-bottom: 25px; color: var(--white); font-size: clamp(48px, 6.3vw, 82px); line-height: 1.02; letter-spacing: -.035em; }
.amla-home-hero p { max-width: 690px; margin-bottom: 32px; color: #d2cbc7; font-size: 17px; line-height: 1.8; }
.amla-home-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.amla-home-button { display: inline-flex; align-items: center; justify-content: center; min-height: 49px; padding: 12px 24px; border: 2px solid transparent; font-size: 13px; font-weight: 700; line-height: 1.2; transition: .2s ease; }
.amla-home-button--primary { color: var(--white) !important; background: var(--crimson); border-color: var(--crimson); }
.amla-home-button--primary:hover { background: var(--crimson-dark); border-color: var(--crimson-dark); }
.amla-home-button--outline { color: var(--white) !important; border-color: #6d6764; }
.amla-home-button--outline:hover { border-color: var(--white); }
.amla-home-button--light { color: var(--ink) !important; background: var(--white); }
.amla-home-button--light:hover { color: var(--crimson) !important; }
.amla-home-button--outline-dark { color: var(--ink) !important; border-color: #aaa19d; }
.amla-home-button--outline-dark:hover { border-color: var(--ink); }
.amla-home-hero-mark { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 350px; border: 1px solid rgba(255,255,255,.16); }
.amla-home-mark-large { color: var(--white); font-family: "Libre Caslon Text",Georgia,serif; font-size: 190px; font-weight: 700; line-height: .8; }
.amla-home-mark-line { width: 74px; height: 3px; margin: 28px 0 18px; background: var(--crimson); }
.amla-home-mark-small { color: #d2cbc7; font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }

.amla-home-intro { padding: 91px 0 86px; }
.amla-home-section-heading--split { display: grid; grid-template-columns: minmax(300px,.85fr) minmax(0,1.15fr); gap: 85px; align-items: end; padding-bottom: 55px; border-bottom: 1px solid var(--line); }
.amla-home-section-heading h2 { margin-bottom: 0; font-size: clamp(34px,4.2vw,54px); line-height: 1.15; }
.amla-home-section-heading p { max-width: 690px; margin-bottom: 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.amla-home-pillars { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; margin-top: 55px; }
.amla-home-pillars article { min-height: 250px; padding: 8px 38px 8px 0; }
.amla-home-pillars article + article { padding-left: 38px; border-left: 1px solid var(--line); }
.amla-home-pillar-number { color: var(--crimson); font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.amla-home-pillars h3 { margin: 25px 0 13px; font-size: 27px; }
.amla-home-pillars p { margin-bottom: 0; color: var(--muted); font-size: 14.5px; line-height: 1.75; }

.amla-home-spotlight { padding: 88px 0; background: #f0ece9; }
.amla-home-spotlight-card { display: grid; grid-template-columns: minmax(310px,.8fr) minmax(0,1.2fr); min-height: 480px; background: var(--white); box-shadow: 0 18px 55px rgba(34,25,22,.08); }
.amla-home-spotlight-visual { display: flex; align-items: center; justify-content: center; min-height: 420px; color: rgba(255,255,255,.88); background: linear-gradient(145deg,var(--crimson-dark),var(--ink)); background-position: center; background-size: cover; }
.amla-home-spotlight-visual.has-image { position: relative; }
.amla-home-spotlight-visual.has-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top,rgba(17,16,16,.35),transparent 60%); }
.amla-home-spotlight-visual > span { font-family: "Libre Caslon Text",Georgia,serif; font-size: clamp(65px,9vw,120px); font-weight: 700; letter-spacing: -.06em; }
.amla-home-spotlight-copy { align-self: center; max-width: 680px; padding: 60px 65px; }
.amla-home-spotlight-copy h2 { margin-bottom: 22px; font-size: clamp(33px,4vw,51px); line-height: 1.17; }
.amla-home-spotlight-copy p { margin-bottom: 27px; color: var(--muted); font-size: 15.5px; line-height: 1.8; }
.amla-home-text-link { color: var(--crimson) !important; font-size: 13px; font-weight: 700; }
.amla-home-text-link:hover { color: var(--crimson-dark) !important; }

.amla-home-pathways { background: var(--white); }
.amla-home-pathway-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; max-width: none; }
.amla-home-pathway { min-height: 420px; padding: 75px max(45px,calc((100vw - 1240px)/2)); }
.amla-home-pathway h2 { max-width: 530px; margin-bottom: 20px; color: var(--white); font-size: clamp(32px,3.8vw,47px); line-height: 1.18; }
.amla-home-pathway p { max-width: 540px; margin-bottom: 30px; color: rgba(255,255,255,.76); }
.amla-home-pathway--dark { padding-left: max(40px,calc((100vw - 1240px)/2)); background: var(--ink); }
.amla-home-pathway--red { padding-right: max(40px,calc((100vw - 1240px)/2)); background: var(--crimson); }
.amla-home-pathway .amla-home-eyebrow { color: #f1a4a7; }

.amla-home-insights { padding: 88px 0 96px; }
.amla-home-section-heading--row { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.amla-home-article-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.amla-home-article-card { display: flex; flex-direction: column; min-height: 330px; padding: 31px; border: 1px solid var(--line); border-top: 4px solid var(--crimson); background: var(--white); }
.amla-home-article-card time { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.amla-home-article-card h3 { margin: 21px 0 14px; font-size: 25px; line-height: 1.3; }
.amla-home-article-card h3 a { color: var(--ink); }
.amla-home-article-card p { margin-bottom: 25px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.amla-home-article-card > .amla-home-text-link { margin-top: auto; }

.amla-home-join { padding: 83px 0; border-top: 1px solid var(--line); background: var(--white); }
.amla-home-join-inner { display: grid; grid-template-columns: minmax(0,1fr) minmax(350px,.8fr); gap: 85px; align-items: center; }
.amla-home-join h2 { max-width: 680px; margin-bottom: 0; font-size: clamp(34px,4.2vw,54px); line-height: 1.17; }
.amla-home-join p { margin-bottom: 25px; color: var(--muted); line-height: 1.8; }
.amla-home-empty { grid-column: 1/-1; color: var(--muted); }

@media (max-width: 940px) {
    .amla-home-shell { width: min(100% - 48px,1240px); }
    .amla-home-hero-grid, .amla-home-section-heading--split, .amla-home-spotlight-card, .amla-home-join-inner { grid-template-columns: 1fr; }
    .amla-home-hero-mark { display: none; }
    .amla-home-section-heading--split, .amla-home-join-inner { gap: 35px; }
    .amla-home-pillars, .amla-home-article-grid { grid-template-columns: 1fr; }
    .amla-home-pillars article { min-height: auto; padding: 28px 0; }
    .amla-home-pillars article + article { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
    .amla-home-spotlight-copy { max-width: none; }
    .amla-home-pathway-grid { grid-template-columns: 1fr; }
    .amla-home-pathway { min-height: auto; padding: 62px 24px; }
}

@media (max-width: 600px) {
    .amla-home-shell { width: calc(100% - 32px); }
    .amla-home-hero { padding: 72px 0 66px; }
    .amla-home-hero h1 { font-size: clamp(41px,13vw,58px); }
    .amla-home-intro, .amla-home-spotlight, .amla-home-insights, .amla-home-join { padding-top: 60px; padding-bottom: 60px; }
    .amla-home-spotlight-visual { min-height: 330px; }
    .amla-home-spotlight-copy { padding: 39px 25px; }
    .amla-home-section-heading--row { align-items: flex-start; flex-direction: column; }
    .amla-home-article-card { min-height: auto; padding: 27px 23px; }
}
